@digabi/exam-engine-core 23.13.0 → 23.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see main-bundle.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define?define(["react","react-dom"],t):"object"==typeof exports?exports.ExamBundle=t(require("react"),require("react-dom")):e.ExamBundle=t(e.React,e.ReactDOM)}(this,((e,t)=>(()=>{var n={42:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={editor:{mathEditor:"Matematikeditor",title:"Formeleditorns utvecklingsversion",description:"\n<ul>\n <li>Under knappen “Lägg till formel” hittar du de vanligaste beteckningarna som används i matematik, fysik och kemi. Dessutom kan du använda specialtecken för att skriva formler.</li>\n<li>Det går att konstruera formler genom att klicka på beteckningarna i menyerna och/eller genom att skriva LaTeX.</li>\n<li>Det går förutom att skriva text och formler, att också att lägga till bilder i svarsfältet.</li></ul>",shortcutTitle:"Tips på tangentkombinationer",shortcuts:'<table><tbody>\n<tr><th>Lägg till en bild från urklippet</th><td>Ctrl-V</td></tr>\n<tr><th>Skriv en formel</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">I formeln </th></tr>\n<tr><th>Bråkstreck</th><td>/</td></tr>\n<tr><th>Multiplikationstecken</th><td>*</td></tr>\n<tr><th>Exponent</th><td>^</td></tr>\n<tr><th>Stäng formeln</th><td>Esc</td></tr>\n<tr><th>Lägg till en formel på följande rad</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Formatering",specialCharacters:"Specialtecken",insertEquation:"Lägg till formel",close:"stäng",save:"Spara",updated:"Uppdaterad",sendFeedback:"Skicka feedback",langLink:"/",langLabel:"Suomeksi",answerTitle:"Svar",toggleInstructions:"Visa intruktioner",help_overlay:{screenshotTitle:"Skärmdumpar",screenshotInstruction:[["text","Skapa bilden med valbart program. Klicka på skärmdumpsikonen i övre balken och avgränsa den delen av skärmen du vill använda."],["key","CTRL"],["text","-"],["key","V"],["text"," bifogar bilden i svarsfältet där kursorn ligger. Du kan ändra på bildens position genom att släpa bilden eller genom att klippa den med kommandot"],["key","CTRL"],["text","-"],["key","X"],["text"," och klistra in den med kommandot"],["key","CTRL"],["text","-"],["key","V"],["text"," på valbart ställe."]],equationTitle:"Formler",equationInstruction:[["text","Formeln läggs till med kommandot "],["key","CTRL"],["text","-"],["key","E"]],equationHotkeys:"Snabbkommandon med formler:",equationTable:[["Divisionsstreck","/"],["Multiplikationstecken","*"],["Upphöjt index","^"],["Nedsänkt index","_"],["Lägg till formel på nästa rad","↵"],["Stäng formeln","esc"]]},render_error:"Fel i LaTeX-koden"},annotating:{sendFeedback:"Skicka respons",updated:"Uppdaterad",mathEditor:"Matematikeditor",title:"Bedömning",backLink:"/sv",backLinkLabel:"Matematikeditor",save:"Spara anteckningar",langLink:"/tarkistus",langLabel:"Suomeksi"}}},199:(e,t,n)=>{"use strict";let r,i,o=n(2780);class a extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a,o.registerRoot(a)},285:(e,t,n)=>{e.exports=n(8447)},489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",children:(0,r.jsx)("g",{id:"surface1",children:(0,r.jsx)("path",{fill:"#359BB7",d:"M 18.316406 1.253906 C 18.859375 1.253906 19.378906 1.675781 19.378906 2.3125 L 19.378906 8.007812 C 19.378906 8.421875 19.042969 8.757812 18.628906 8.757812 L 12.9375 8.757812 C 12.300781 8.757812 11.882812 8.238281 11.882812 7.695312 C 11.882812 7.4375 11.976562 7.171875 12.191406 6.957031 L 13.953125 5.195312 C 12.851562 4.289062 11.460938 3.761719 9.996094 3.761719 C 6.554688 3.761719 3.753906 6.5625 3.753906 10.003906 C 3.753906 13.449219 6.554688 16.246094 9.996094 16.246094 C 12.851562 16.246094 13.488281 14.75 14.492188 14.75 C 15.214844 14.75 15.742188 15.335938 15.742188 15.996094 C 15.742188 17.367188 12.554688 18.75 10 18.75 C 5.179688 18.75 1.253906 14.824219 1.253906 10.003906 C 1.253906 5.183594 5.179688 1.265625 10 1.265625 C 12.132812 1.265625 14.148438 2.0625 15.71875 3.425781 L 17.578125 1.566406 C 17.792969 1.351562 18.058594 1.253906 18.316406 1.253906 Z M 18.316406 1.253906 "})})})};const r=n(1085)},546:(e,t,n)=>{"use strict";var r=n(4345);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.clear=function(){this.handlers&&(this.handlers=[])},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},588:()=>{},609:(e,t,n)=>{"use strict";let{dirname:r,relative:i,resolve:o,sep:a}=n(5324),{SourceMapConsumer:s,SourceMapGenerator:l}=n(8645),{pathToFileURL:c}=n(588),u=n(611),d=Boolean(s&&l),f=Boolean(r&&o&&i&&a);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new s(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,s.source&&s.source.start?(o.source=this.sourcePath(s),o.original.line=s.source.start.line,o.original.column=s.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=a.match(/\n/g),t?(n+=t.length,e=a.lastIndexOf("\n"),r=a.length-e):r+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(o.source=this.sourcePath(s),o.original.line=s.source.end.line,o.original.column=s.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let a=i(n,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},611:(e,t,n)=>{"use strict";let{nanoid:r}=n(945),{isAbsolute:i,resolve:o}=n(5324),{SourceMapConsumer:a,SourceMapGenerator:s}=n(8645),{fileURLToPath:l,pathToFileURL:c}=n(588),u=n(6069),d=n(833),f=n(3215),p=Symbol("fromOffsetCache"),h=Boolean(a&&s),g=Boolean(o&&i);class m{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!g||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from)),g&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,o,i);return a=s?new u(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new u(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),a.input={column:n,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[p]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o,a,s=this.map.consumer(),u=s.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),a=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:o&&o.column,endLine:o&&o.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let f=s.sourceContentFor(u.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,f&&f.registerInput&&f.registerInput(m)},612:(e,t,n)=>{"use strict";let r=n(697),i=n(7910),o=n(3531),a=n(199),s=n(6825),l=n(1374);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,i,o=new r;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),a&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,a]of e.entries()){if(n=a,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,s,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(s=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",c[s]||c[a]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},697:(e,t,n)=>{"use strict";let r=n(2780);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},733:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},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)},833:(e,t,n)=>{"use strict";let{existsSync:r,readFileSync:i}=n(8892),{dirname:o,join:a}=n(5324),{SourceMapConsumer:s,SourceMapGenerator:l}=n(8645);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=o(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof s)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(o(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}},993:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},1051:(e,t,n)=>{"use strict";let r=n(6069),i=n(9845),o=n(5930),{isClean:a,my:s}=n(2990);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let o=0;o<e.length;o++){if(r===t.line&&n===t.column){i=o;break}"\n"===e[o]?(n=1,r+=1):n+=1}return i}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[s]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),o=i+e;for(let e=i;e<o;e++)"\n"===r[e]?(t=1,n+=1):t+=1;return{column:t,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(e.word);-1!==i&&(t=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}}e.exports=u,u.default=u},1085:(e,t,n)=>{"use strict";e.exports=n(3335)},1138: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(3338),a=n(2888);i(n(2888),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},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)}()},1206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(8642),i=n(8052);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:s(n)};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=c("summary",n)||c("content",n);o&&(r.description=o);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o),u(r,"description","subtitle",n);var a=c("updated",n);return a&&(r.updated=new Date(a)),u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:s(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t)||c("dc:date",t);return r&&(n.pubDate=new Date(r)),n}))};u(o,"title","title",r),u(o,"link","link",r),u(o,"description","description",r);var a=c("lastBuildDate",r);return a&&(o.updated=new Date(a)),u(o,"author","managingEditor",r,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r<i.length;r++)t[c=i[r]]&&(n[c]=t[c]);for(var s=0,l=a;s<l.length;s++){var c;t[c=l[s]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,r,i){void 0===i&&(i=!1);var o=c(n,r,i);o&&(e[t]=o)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},1372:function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{isToolbarExpanded:e}=(0,g.default)();return(0,l.jsxs)(y,{tabIndex:0,"data-testid":"toolbar",onMouseDown:(0,m.eventHandlerWithoutFocusLoss)(),children:[(0,l.jsx)(u.default,{}),(0,l.jsxs)(b,{cols:v,children:[(0,l.jsx)(d.default,{isExpanded:e,cols:13,chars:h.BASIC,span:v}),(0,l.jsx)(d.default,{isExpanded:e,cols:3,chars:h.ALGEBRA}),(0,l.jsx)(d.default,{isExpanded:e,cols:3,chars:h.GEOMETRY}),(0,l.jsx)(d.default,{isExpanded:e,cols:6,chars:h.SET_THEORY})]}),(0,l.jsx)(f.default,{}),(0,l.jsx)(p.default,{})]})};const l=n(1085),c=s(n(3864)),u=s(n(1818)),d=s(n(2463)),f=s(n(8799)),p=s(n(9333)),h=a(n(3858)),g=s(n(2373)),m=n(2127),v=3,y=c.default.div`
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ExamBundle=t(require("react"),require("react-dom")):e.ExamBundle=t(e.React,e.ReactDOM)}(this,((e,t)=>(()=>{var n={42:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={editor:{mathEditor:"Matematikeditor",title:"Formeleditorns utvecklingsversion",description:"\n<ul>\n <li>Under knappen “Lägg till formel” hittar du de vanligaste beteckningarna som används i matematik, fysik och kemi. Dessutom kan du använda specialtecken för att skriva formler.</li>\n<li>Det går att konstruera formler genom att klicka på beteckningarna i menyerna och/eller genom att skriva LaTeX.</li>\n<li>Det går förutom att skriva text och formler, att också att lägga till bilder i svarsfältet.</li></ul>",shortcutTitle:"Tips på tangentkombinationer",shortcuts:'<table><tbody>\n<tr><th>Lägg till en bild från urklippet</th><td>Ctrl-V</td></tr>\n<tr><th>Skriv en formel</th><td>Ctrl-E</td></tr>\n<tr><th colspan="2">I formeln </th></tr>\n<tr><th>Bråkstreck</th><td>/</td></tr>\n<tr><th>Multiplikationstecken</th><td>*</td></tr>\n<tr><th>Exponent</th><td>^</td></tr>\n<tr><th>Stäng formeln</th><td>Esc</td></tr>\n<tr><th>Lägg till en formel på följande rad</th><td>Enter</td></tr>\n</tbody>\n</table>',formatting:"Formatering",specialCharacters:"Specialtecken",insertEquation:"Lägg till formel",close:"stäng",save:"Spara",updated:"Uppdaterad",sendFeedback:"Skicka feedback",langLink:"/",langLabel:"Suomeksi",answerTitle:"Svar",toggleInstructions:"Visa intruktioner",help_overlay:{screenshotTitle:"Skärmdumpar",screenshotInstruction:[["text","Skapa bilden med valbart program. Klicka på skärmdumpsikonen i övre balken och avgränsa den delen av skärmen du vill använda."],["key","CTRL"],["text","-"],["key","V"],["text"," bifogar bilden i svarsfältet där kursorn ligger. Du kan ändra på bildens position genom att släpa bilden eller genom att klippa den med kommandot"],["key","CTRL"],["text","-"],["key","X"],["text"," och klistra in den med kommandot"],["key","CTRL"],["text","-"],["key","V"],["text"," på valbart ställe."]],equationTitle:"Formler",equationInstruction:[["text","Formeln läggs till med kommandot "],["key","CTRL"],["text","-"],["key","E"]],equationHotkeys:"Snabbkommandon med formler:",equationTable:[["Divisionsstreck","/"],["Multiplikationstecken","*"],["Upphöjt index","^"],["Nedsänkt index","_"],["Lägg till formel på nästa rad","↵"],["Stäng formeln","esc"]]},render_error:"Fel i LaTeX-koden"},annotating:{sendFeedback:"Skicka respons",updated:"Uppdaterad",mathEditor:"Matematikeditor",title:"Bedömning",backLink:"/sv",backLinkLabel:"Matematikeditor",save:"Spara anteckningar",langLink:"/tarkistus",langLabel:"Suomeksi"}}},199:(e,t,n)=>{"use strict";let r,i,o=n(2780);class a extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},e.exports=a,a.default=a,o.registerRoot(a)},285:(e,t,n)=>{e.exports=n(8447)},489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",children:(0,r.jsx)("g",{id:"surface1",children:(0,r.jsx)("path",{fill:"#359BB7",d:"M 18.316406 1.253906 C 18.859375 1.253906 19.378906 1.675781 19.378906 2.3125 L 19.378906 8.007812 C 19.378906 8.421875 19.042969 8.757812 18.628906 8.757812 L 12.9375 8.757812 C 12.300781 8.757812 11.882812 8.238281 11.882812 7.695312 C 11.882812 7.4375 11.976562 7.171875 12.191406 6.957031 L 13.953125 5.195312 C 12.851562 4.289062 11.460938 3.761719 9.996094 3.761719 C 6.554688 3.761719 3.753906 6.5625 3.753906 10.003906 C 3.753906 13.449219 6.554688 16.246094 9.996094 16.246094 C 12.851562 16.246094 13.488281 14.75 14.492188 14.75 C 15.214844 14.75 15.742188 15.335938 15.742188 15.996094 C 15.742188 17.367188 12.554688 18.75 10 18.75 C 5.179688 18.75 1.253906 14.824219 1.253906 10.003906 C 1.253906 5.183594 5.179688 1.265625 10 1.265625 C 12.132812 1.265625 14.148438 2.0625 15.71875 3.425781 L 17.578125 1.566406 C 17.792969 1.351562 18.058594 1.253906 18.316406 1.253906 Z M 18.316406 1.253906 "})})})};const r=n(1085)},546:(e,t,n)=>{"use strict";var r=n(4345);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.clear=function(){this.handlers&&(this.handlers=[])},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},588:()=>{},609:(e,t,n)=>{"use strict";let{dirname:r,relative:i,resolve:o,sep:a}=n(5324),{SourceMapConsumer:s,SourceMapGenerator:l}=n(8645),{pathToFileURL:c}=n(588),u=n(611),d=Boolean(s&&l),f=Boolean(r&&o&&i&&a);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new s(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((a,s,l)=>{if(this.css+=a,s&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,s.source&&s.source.start?(o.source=this.sourcePath(s),o.original.line=s.source.start.line,o.original.column=s.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=a.match(/\n/g),t?(n+=t.length,e=a.lastIndexOf("\n"),r=a.length-e):r+=a.length,s&&"start"!==l){let e=s.parent||{raws:{}};("decl"===s.type||"atrule"===s.type&&!s.nodes)&&s===e.last&&!e.raws.semicolon||(s.source&&s.source.end?(o.source=this.sourcePath(s),o.original.line=s.source.end.line,o.original.column=s.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let a=i(n,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===a&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},611:(e,t,n)=>{"use strict";let{nanoid:r}=n(945),{isAbsolute:i,resolve:o}=n(5324),{SourceMapConsumer:a,SourceMapGenerator:s}=n(8645),{fileURLToPath:l,pathToFileURL:c}=n(588),u=n(6069),d=n(833),f=n(3215),p=Symbol("fromOffsetCache"),h=Boolean(a&&s),g=Boolean(o&&i);class m{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!g||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from)),g&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,i=e.col}else o=r.line,i=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let s=this.origin(t,n,o,i);return a=s?new u(e,void 0===s.endLine?s.line:{column:s.column,line:s.line},void 0===s.endLine?s.column:{column:s.endColumn,line:s.endLine},s.source,s.file,r.plugin):new u(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),a.input={column:n,endColumn:i,endLine:o,line:t,source:this.css},this.file&&(c&&(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[p]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o,a,s=this.map.consumer(),u=s.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(o=s.originalPositionFor({column:r,line:n})),a=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:o&&o.column,endLine:o&&o.line,line:u.line,url:a.toString()};if("file:"===a.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(a)}let f=s.sourceContentFor(u.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,f&&f.registerInput&&f.registerInput(m)},612:(e,t,n)=>{"use strict";let r=n(697),i=n(7910),o=n(3531),a=n(199),s=n(6825),l=n(1374);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,i,o=new r;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let a=!1,s=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),a&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,a]of e.entries()){if(n=a,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a,s=[];for(;e.length&&(a=e[0][0],"space"===a||"comment"===a);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new s;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(a&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!a)for(;s.length&&(l=s[s.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,s,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(s=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",c[s]||c[a]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new s;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},697:(e,t,n)=>{"use strict";let r=n(2780);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},733:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},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)},833:(e,t,n)=>{"use strict";let{existsSync:r,readFileSync:i}=n(8892),{dirname:o,join:a}=n(5324),{SourceMapConsumer:s,SourceMapGenerator:l}=n(8645);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=o(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=o(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof s)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(o(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}},993:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},1051:(e,t,n)=>{"use strict";let r=n(6069),i=n(9845),o=n(5930),{isClean:a,my:s}=n(2990);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let o=0;o<e.length;o++){if(r===t.line&&n===t.column){i=o;break}"\n"===e[o]?(n=1,r+=1):n+=1}return i}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[s]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),o=i+e;for(let e=i;e<o;e++)"\n"===r[e]?(t=1,n+=1):t+=1;return{column:t,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(c(r,this.source.start),c(r,this.source.end)).indexOf(e.word);-1!==i&&(t=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}}e.exports=u,u.default=u},1085:(e,t,n)=>{"use strict";e.exports=n(3335)},1138: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(3338),a=n(2888);i(n(2888),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,r=new a.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===o.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new a.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},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)}()},1206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var r=n(8642),i=n(8052);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:s(n)};u(r,"id","id",n),u(r,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=c("summary",n)||c("content",n);o&&(r.description=o);var a=c("updated",n);return a&&(r.pubDate=new Date(a)),r}))};u(r,"id","id",n),u(r,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(r.link=o),u(r,"description","subtitle",n);var a=c("updated",n);return a&&(r.updated=new Date(a)),u(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:s(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var r=c("pubDate",t)||c("dc:date",t);return r&&(n.pubDate=new Date(r)),n}))};u(o,"title","title",r),u(o,"link","link",r),u(o,"description","description",r);var a=c("lastBuildDate",r);return a&&(o.updated=new Date(a)),u(o,"author","managingEditor",r,!0),o}(t):null};var o=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function s(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=o;r<i.length;r++)t[c=i[r]]&&(n[c]=t[c]);for(var s=0,l=a;s<l.length;s++){var c;t[c=l[s]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,r.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,r,i){void 0===i&&(i=!1);var o=c(n,r,i);o&&(e[t]=o)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},1372:function(e,t,n){"use strict";var r,i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),a=0;a<n.length;a++)"default"!==n[a]&&i(t,e,n[a]);return o(t,e),t}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const{isToolbarExpanded:e}=(0,g.default)();return(0,l.jsxs)(y,{tabIndex:0,"data-testid":"toolbar",onMouseDown:(0,m.eventHandlerWithoutFocusLoss)(),children:[(0,l.jsx)(u.default,{}),(0,l.jsxs)(b,{cols:v,children:[(0,l.jsx)(d.default,{isExpanded:e,cols:13,chars:h.BASIC,span:v}),(0,l.jsx)(d.default,{isExpanded:e,cols:3,chars:h.ALGEBRA}),(0,l.jsx)(d.default,{isExpanded:e,cols:3,chars:h.GEOMETRY}),(0,l.jsx)(d.default,{isExpanded:e,cols:6,chars:h.SET_THEORY})]}),(0,l.jsx)(f.default,{}),(0,l.jsx)(p.default,{})]})};const l=n(1085),c=s(n(3864)),u=s(n(1818)),d=s(n(2463)),f=s(n(8799)),p=s(n(9333)),h=a(n(3858)),g=s(n(2373)),m=n(2127),v=3,y=c.default.div`
3
3
  position: fixed;
4
4
  top: 0;
5
5
  left: 0;
@@ -217,7 +217,7 @@
217
217
  line-height: 1.3;
218
218
  display: inline-block;
219
219
  box-shadow: 0 0 0 1px #0000004d;
220
- `},4195:(e,t,n)=>{"use strict";var r=n(4345),i=n(5400),o=n(285);function a(e){return r.isPlainObject(e)||r.isArray(e)}function s(e){return r.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map((function(e,t){return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var c=r.toFlatObject(r,{},null,(function(e){return/^is[A-Z]/.test(e)}));e.exports=function(e,t,n){if(!r.isObject(e))throw new TypeError("target must be an object");t=t||new(o||FormData);var u,d=(n=r.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.isUndefined(t[e])}))).metaTokens,f=n.visitor||v,p=n.dots,h=n.indexes,g=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&r.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];if(!r.isFunction(f))throw new TypeError("visitor must be a function");function m(e){if(null===e)return"";if(r.isDate(e))return e.toISOString();if(!g&&r.isBlob(e))throw new i("Blob is not supported. Use a Buffer instead.");return r.isArrayBuffer(e)||r.isTypedArray(e)?g&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function v(e,n,i){var o=e;if(e&&!i&&"object"==typeof e)if(r.endsWith(n,"{}"))n=d?n:n.slice(0,-2),e=JSON.stringify(e);else if(r.isArray(e)&&function(e){return r.isArray(e)&&!e.some(a)}(e)||r.isFileList(e)||r.endsWith(n,"[]")&&(o=r.toArray(e)))return n=s(n),o.forEach((function(e,i){!r.isUndefined(e)&&null!==e&&t.append(!0===h?l([n],i,p):null===h?n:n+"[]",m(e))})),!1;return!!a(e)||(t.append(l(i,n,p),m(e)),!1)}var y=[],b=Object.assign(c,{defaultVisitor:v,convertValue:m,isVisitable:a});if(!r.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!r.isUndefined(n)){if(-1!==y.indexOf(n))throw Error("Circular reference detected in "+i.join("."));y.push(n),r.forEach(n,(function(n,o){!0===(!(r.isUndefined(n)||null===n)&&f.call(t,n,r.isString(o)?o.trim():o,i,b))&&e(n,i?i.concat(o):[o])})),y.pop()}}(e),t}},4291: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};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var a=o(n(6439)),s=n(3379),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),f=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",f],["rp",f],["tbody",u],["tfoot",u]]),h=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g=new Set(["math","svg"]),m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),v=/\s|\//,y=function(){function e(e,t){var n,r,i,o,s;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:a.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,s.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&h.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&p.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),g.has(e)?this.foreignContext.push(!0):m.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,s;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(g.has(l)||m.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,s.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===a.QuoteType.Double?'"':e===a.QuoteType.Single?"'":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(v),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,s,l,c,u,d,f;this.endIndex=t;var p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,p),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(f=(d=this.cbs).oncommentend)||void 0===f||f.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=y},4345:(e,t,n)=>{"use strict";var r,i=n(5063),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return"number"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),g=s("File"),m=s("Blob"),v=s("FileList");function y(e){return"[object Function]"===o.call(e)}var b=s("URLSearchParams");function I(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var x,w,A=(x="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return x&&e instanceof x}),M=s("HTMLFormElement"),T=(w=Object.prototype.hasOwnProperty,function(e,t){return w.call(e,t)});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:d,isObject:f,isPlainObject:p,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:c,isDate:h,isFile:g,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:I,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)I(arguments[r],n);return t},extend:function(e,t,n){return I(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!d(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:A,isFileList:v,forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:T}},4651:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,g=h.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,I={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in I)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var A="3.7.1",M=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:A,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[t]=T.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(A+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=a(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||h.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=T.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?T.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!M.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var N=o.pop,S=o.sort,k=o.splice,j="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(L,O)};var R=b,P=c;!function(){var e,t,n,i,a,l,c,d,f,h,g=P,v=T.expando,y=0,b=0,I=ee(),x=ee(),w=ee(),A=ee(),M=function(e,t){return e===t&&(a=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+j+"*("+L+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+j+"*\\]",z=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",U=new RegExp(j+"+","g"),B=new RegExp("^"+j+"*,"+j+"*"),_=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),F=new RegExp(j+"|>"),G=new RegExp(z),Z=new RegExp("^"+L+"$"),H={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,W=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},K=fe((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(R.childNodes),R.childNodes),o[R.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,s.call(t))},call:function(e){P.apply(e,s.call(arguments,1))}}}function $(e,t,n,r){var i,o,a,s,c,u,p,h=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,d)){if(11!==y&&(c=V.exec(e)))if(i=c[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(h&&(a=h.getElementById(i))&&$.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(A[e+" "]||f&&f.test(e))){if(p=e,h=t,1===y&&(F.test(e)||_.test(e))){for((h=W.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);p=u.join(",")}try{return g.apply(n,h.querySelectorAll(p)),n}catch(t){A(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(D,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return C(t,"input")&&t.type===e}}function ie(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:R;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,d=!T.isXMLDoc(l),h=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return c.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),m.disconnectedMatch=ne((function(e){return h.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(Q,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Q,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+j+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),M=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==R&&$.contains(R,e)?-1:t===l||t.ownerDocument==R&&$.contains(R,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),d&&!A[t+" "]&&(!f||!f.test(t)))try{var n=h.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),S.call(e,M),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)k.call(e,n[r],1)}return i=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,J),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&I(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=$.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,I=!1;if(g){if(o){for(;h;){for(d=t;d=d[h];)if(s?C(d,m):1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){for(I=(f=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[h]||(I=f=0)||p.pop();)if(1===d.nodeType&&++I&&d===t){u[e]=[y,f,I];break}}else if(b&&(I=f=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===I)for(;(d=++f&&d&&d[h]||(I=f=0)||p.pop())&&(!(s?C(d,m):1===d.nodeType)||!++I||(b&&((u=d[v]||(d[v]={}))[e]=[y,I]),d!==t)););return(I-=i)===r||I%r==0&&I/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=u.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(D,"$1"));return r[v]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return $(e,t).length>0}})),contains:te((function(e){return e=e.replace(Q,J),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return Z.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(Q,J).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function ue(e,n){var r,i,o,a,s,l,c,u=x[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in r&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=_.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(D," ")}),s=s.slice(r.length)),t.filter)!(i=H[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?$.error(e):x(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),i&&C(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,o)),te((function(o,a,s,l){var c,d,f,p,h=[],m=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)$(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:he(y,h,e,s,l);if(n?n(b,p=i||(o?e:v||r)?[]:a,s,l):p=b,r)for(c=he(p,m),r(c,[],s,l),d=c.length;d--;)(f=c[d])&&(p[m[d]]=!(b[m[d]]=f));if(o){if(i||e){if(i){for(c=[],d=p.length;d--;)(f=p[d])&&c.push(b[d]=f);i(null,p=[],c,l)}for(d=p.length;d--;)(f=p[d])&&(c=i?u.call(o,f):h[d])>-1&&(o[c]=!(a[c]=f))}}else p=he(p===a?p.splice(v,p.length):p),i?i(null,a,p,l):g.apply(a,p)}))}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=fe((function(e){return e===r}),l,!0),f=fe((function(e){return u.call(r,e)>-1}),l,!0),p=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):f(e,t,i));return r=null,o}];c<a;c++)if(i=t.relative[e[c].type])p=[fe(pe(p),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(D,"$1"),i,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}p.push(i)}return pe(p)}function ve(e,r){var i,o=[],a=[],s=w[e+" "];if(!s){for(r||(r=ue(e)),i=r.length;i--;)(s=me(r[i]))[v]?o.push(s):a.push(s);s=w(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,c,u,f){var p,h,m,v=0,b="0",I=a&&[],x=[],w=n,A=a||o&&t.find.TAG("*",f),M=y+=null==w?1:Math.random()||.1,E=A.length;for(f&&(n=s==l||s||f);b!==E&&null!=(p=A[b]);b++){if(o&&p){for(h=0,s||p.ownerDocument==l||(le(p),c=!d);m=e[h++];)if(m(p,s||l,c)){g.call(u,p);break}f&&(y=M)}i&&((p=!m&&p)&&v--,a&&I.push(p))}if(v+=b,i&&b!==v){for(h=0;m=r[h++];)m(I,x,s,c);if(a){if(v>0)for(;b--;)I[b]||x[b]||(x[b]=N.call(u));x=he(x)}g.apply(u,x),f&&!a&&x.length>0&&v+r.length>1&&T.uniqueSort(u)}return f&&(y=M,n=w),I};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,c,u="function"==typeof e&&e,f=!i&&ue(e=u.selector||e);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Q,J),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(i=c(s.matches[0].replace(Q,J),W.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(u||ve(e,f))(i,n,!d,r,!n||W.test(e)&&se(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(M).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=$,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,$.compile=ve,$.select=ye,$.setDocument=le,$.tokenize=ue,$.escape=T.escapeSelector,$.getText=T.text,$.isXML=T.isXMLDoc,$.selectors=T.expr,$.support=T.support,$.uniqueSort=T.uniqueSort}();var z=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},U=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},B=T.expr.match.needsContext,_=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&B.test(e)?T(e):e||[],!1).length}});var G,Z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||G,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Z.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),_.test(r[1])&&T.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,G=T(b);var H=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&T(e);if(!B.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return z(e,"parentNode")},parentsUntil:function(e,t,n){return z(e,"parentNode",n)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return z(e,"nextSibling")},prevAll:function(e){return z(e,"previousSibling")},nextUntil:function(e,t,n){return z(e,"nextSibling",n)},prevUntil:function(e,t,n){return z(e,"previousSibling",n)},siblings:function(e){return U((e.parentNode||{}).firstChild,e)},children:function(e){return U(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(q[e]||T.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}}));var V=/[^\x20\t\r\n\f]+/g;function W(e){return e}function Q(e){throw e}function J(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(V)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){T.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?i?c.call(r,a(o,t,W,i),a(o,t,Q,i)):(o++,c.call(r,a(o,t,W,i),a(o,t,Q,i),a(o,t,W,t.notifyWith))):(n!==W&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,u.error),e+1>=o&&(n!==Q&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),r.setTimeout(u))}}return T.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:W,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:W)),t[2][3].add(a(0,r,v(n)?n:Q))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},o={};return T.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=T.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(J(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)J(i[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&X.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){r.setTimeout((function(){throw e}))};var K=T.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),r.removeEventListener("load",$),T.ready()}T.fn.ready=function(e){return K.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",$),r.addEventListener("load",$));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===w(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(V)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){T.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:T.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return T.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===T.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&pe.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var Ie={};function xe(e){var t,n=e.ownerDocument,r=e.nodeName,i=Ie[r];return i||(t=n.body.appendChild(n.createElement(r)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Ie[r]=i,i)}function we(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=xe(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}T.fn.extend({show:function(){return we(this,!0)},hide:function(){return we(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var Ae,Me,Te=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;Ae=b.createDocumentFragment().appendChild(b.createElement("div")),(Me=b.createElement("input")).setAttribute("type","radio"),Me.setAttribute("checked","checked"),Me.setAttribute("name","t"),Ae.appendChild(Me),m.checkClone=Ae.cloneNode(!0).cloneNode(!0).lastChild.checked,Ae.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ae.cloneNode(!0).lastChild.defaultValue,Ae.innerHTML="<option></option>",m.option=!!Ae.lastChild;var Ne={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ne.tbody=Ne.tfoot=Ne.colgroup=Ne.caption=Ne.thead,Ne.th=Ne.td,m.option||(Ne.optgroup=Ne.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===w(o))T.merge(f,o.nodeType?[o]:o);else if(je.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Ee.exec(o)||["",""])[1].toLowerCase(),l=Ne[s]||Ne._default,a.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(c=me(o),a=Se(d.appendChild(o),"script"),c&&ke(a),n)for(u=0;o=a[u++];)Ce.test(o.type||"")&&n.push(o);return d}var Le=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Re(){return!1}function Pe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Pe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Re;else if(!i)return e;return 1===o&&(a=i,i=function(e){return T().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function ze(e,t,n){n?(se.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===se.get(e,t)&&T.event.add(e,t,Oe)}T.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(ge,i),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(V)||[""]).length;c--;)p=g=(s=Le.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),T.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(V)||[""]).length;c--;)if(p=g=(s=Le.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,r,!0);T.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=T.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(c)>-1:T.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&ze(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&ze(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&C(t,"input")&&se.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Re,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Re,isPropagationStopped:Re,isImmediatePropagationStopped:Re,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(ze(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return ze(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Pe(this,e,t,n,r)},one:function(e,t,n,r){return Pe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Re),this.each((function(){T.event.remove(this,e,n,t)}))}});var Ue=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)T.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=T.extend({},o),le.set(t,a))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ye(e,t,n,r){t=l(t);var i,o,a,s,c,u,d=0,f=e.length,p=f-1,h=t[0],g=v(h);if(g||f>1&&"string"==typeof h&&!m.checkClone&&Be.test(h))return e.each((function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),Ye(o,t,n,r)}));if(f&&(o=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=T.map(Se(i,"script"),Ge)).length;d<f;d++)c=i,d!==p&&(c=T.clone(c,!0,!0),s&&T.merge(a,Se(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Ze),d=0;d<s;d++)c=a[d],Ce.test(c.type||"")&&!se.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(_e,""),c,u))}return e}function Ve(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(Se(r)),r.parentNode&&(n&&me(r)&&ke(Se(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Se(s),r=0,i=(o=Se(e)).length;r<i;r++)qe(o[r],a[r]);if(t)if(n)for(o=o||Se(e),a=a||Se(s),r=0,i=o.length;r<i;r++)He(o[r],a[r]);else He(e,s);return(a=Se(s,"script")).length>0&&ke(a,!l&&Se(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ye(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Ye(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ue.test(e)&&!Ne[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Se(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),T(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var We=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Qe=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Xe=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ke=new RegExp(he.join("|"),"i");function $e(e,t,n){var r,i,o,a,s=Qe.test(t),l=e.style;return(n=n||Je(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(D,"$1")||void 0),""!==a||me(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&We.test(a)&&Ke.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){return T.cssProps[e]||rt[e]||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=pe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(e,n+he[a],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+he[a],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+he[a]+"Width",!0,i))):(l+=T.css(e,"padding"+he[a],!0,i),"padding"!==n?l+=T.css(e,"border"+he[a]+"Width",!0,i):s+=T.css(e,"border"+he[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var r=Je(e),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,a=$e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Qe.test(t),c=e.style;if(l||(t=it(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=pe.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Qe.test(t)||(t=it(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=$e(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Xe(e,at,(function(){return ut(e,t,r)}))},set:function(e,n,r){var i,o=Je(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,o),l=r?ct(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(i=pe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),lt(0,n,l)}}})),T.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+he[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Je(e),i=t.length;a<i;a++)o[t[a]]=T.css(e,t[a],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=dt.prototype.init,T.fx.step={};var ft,pt,ht=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){pt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,T.fx.interval),T.fx.tick())}function vt(){return r.setTimeout((function(){ft=void 0})),ft=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=he[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(It.tweeners[t]||[]).concat(It.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function It(e,t,n){var r,i,o=0,a=It.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ft||vt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:ft||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<a;o++)if(r=It.prefilters[o].call(c,e,u,c.opts))return v(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(It,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(V);for(var n,r=0,i=e.length;r<i;r++)n=e[r],It.tweeners[n]=It.tweeners[n]||[],It.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ht.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(we([e],!0),c=e.style.display||c,u=T.css(e,"display"),we([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(f.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&we([e],!0),f.done((function(){for(r in g||we([e]),se.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=bt(g?m[r]:0,r,f),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?It.prefilters.unshift(e):It.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),o=T.speed(t,n,r),a=function(){var t=It(this,T.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=T.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&gt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}})),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ft=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ft=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pt||(pt=!0,mt())},T.fx.stop=function(){pt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var xt,wt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(V);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||T.find.attr;wt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=wt[a],wt[a]=i,i=null!=n(e,t,r)?a:null,wt[a]=o),i}}));var At=/^(?:input|select|textarea|button)$/i,Mt=/^(?:a|area)$/i;function Tt(e){return(e.match(V)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,Et(this)))})):(t=Ct(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){T(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=Ct(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=Tt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,Et(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each((function(){if(s)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=Et(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Tt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var Nt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Nt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var St=r.location,kt={guid:Date.now()},jt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,i){var o,a,s,l,c,u,d,f,h=[n||b],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Dt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Lt),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,Lt),T.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,Rt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Ut(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||Ot.test(e)?r(e,i):Ut(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)Ut(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ut(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&zt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Bt=/%20/g,_t=/#.*$/,Ft=/([?&])_=[^&]*/,Gt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Zt=/^(?:GET|HEAD)$/,Ht=/^\/\//,qt={},Yt={},Vt="*/".concat("*"),Wt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(V)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jt(e,t,n,r){var i={},o=e===Yt;function a(s){var l;return i[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Xt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Wt.href=St.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,T.ajaxSettings),t):Xt(T.ajaxSettings,e)},ajaxPrefilter:Qt(qt),ajaxTransport:Qt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,c,u,d,f,p=T.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},I={},x={},w="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Gt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,I[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),M(0,t),this}};if(m.promise(A),p.url=((e||p.url||St.href)+"").replace(Ht,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Jt(qt,p,t,A),c)return A;for(d in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Zt.test(p.type),i=p.url.replace(_t,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Bt,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(jt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Ft,"$1"),f=(jt.test(i)?"&":"?")+"_="+kt.guid+++f),p.url=i+f),p.ifModified&&(T.lastModified[i]&&A.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&A.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vt+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,A,p)||c))return A.abort();if(w="abort",v.add(p.complete),A.done(p.success),A.fail(p.error),n=Jt(Yt,p,t,A)){if(A.readyState=1,u&&g.trigger("ajaxSend",[A,p]),c)return A;p.async&&p.timeout>0&&(s=r.setTimeout((function(){A.abort("timeout")}),p.timeout));try{c=!1,n.send(I,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,a,l){var d,f,b,I,x,w=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",A.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(I=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,A,a)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),I=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,I,A,d),d?(p.ifModified&&((x=A.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=A.getResponseHeader("etag"))&&(T.etag[i]=x)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=I.state,f=I.data,d=!(b=I.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),A.status=e,A.statusText=(t||w)+"",d?m.resolveWith(h,[f,w,A]):m.rejectWith(h,[A,w,b]),A.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[A,p,d?f:b]),v.fireWith(h,[A,w]),u&&(g.trigger("ajaxComplete",[A,p]),--T.active||T.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},$t=T.ajaxSettings.xhr();m.cors=!!$t&&"withCredentials"in $t,m.ajax=$t=!!$t,T.ajaxTransport((function(e){var t,n;if(m.cors||$t&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+kt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(jt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=_.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=T.css(e,"position"),u=T(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ge}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=$e(e,t),We.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?T.css(t,n,s):T.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=y,T.camelCase=ie,T.type=w,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return T.noConflict=function(e){return r.$===T&&(r.$=an),e&&r.jQuery===T&&(r.jQuery=on),T},void 0===i&&(r.jQuery=r.$=T),T}))},4816:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isEmptyObject(t)?r.merge({},e):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},4828:(e,t,n)=>{"use strict";n(7120)},4833:(e,t,n)=>{"use strict";var r=n(7741);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:r},4860:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5063:e=>{"use strict";e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ9IkUxLUxBVElOTU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tbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cbWF0aHJte1R9PC90aXRsZT4KPGRlZnMgYXJpYS1oaWRkZW49InRydWUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjEiIGlkPSJFMS1MQVRJTk1PREVSTk1BSU4tNTQiIGQ9Ik02ODUgNDUyaC0yNWMtMTQgMTYxIC0yOSAxOTQgLTE4MCAxOTRjLTE5IDAgLTQ2IDAgLTU3IC0yYy0xOCAtNCAtMTggLTE4IC0xOCAtMzh2LTUyN2MwIC0zNCAwIC00OCAxMDUgLTQ4aDQwdi0zMWMtNDEgMyAtMTQ0IDMgLTE5MCAzcy0xNDggMCAtMTg5IC0zdjMxaDQwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}]},5193:function(e,t,n){"use strict";var r=this&&this.__assign||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)},i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var s=a(n(3338)),l=n(2305),c=n(6593),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,"&quot;")}var f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function p(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=h(n[i],t);return r}function h(e,t){switch(e.type){case s.Root:return p(e.children,t);case s.Doctype:case s.Directive:return"<".concat(e.data,">");case s.Comment:return"\x3c!--".concat(e.data,"--\x3e");case s.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&g.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<".concat(e.name),o=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);return o&&(i+=" ".concat(o)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&f.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),!t.xmlMode&&f.has(e.name)||(i+="</".concat(e.name,">"))),i}(e,t);case s.Text:return function(e,t){var n,r=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(r):(0,l.escapeText)(r)),r}(e,t)}}t.render=p,t.default=p;var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},5220:(e,t,n)=>{"use strict";var r=n(5400);function i(e,t,n){r.call(this,null==e?"canceled":e,r.ERR_CANCELED,t,n),this.name="CanceledError"}n(4345).inherits(i,r,{__CANCEL__:!0}),e.exports=i},5324:()=>{},5400:(e,t,n)=>{"use strict";var r=n(4345);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},5442:t=>{"use strict";t.exports=e},5482: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.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=n(4291),l=n(4291);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(1138),u=n(1138);function d(e,t){var n=new c.DomHandler(void 0,t);return new s.Parser(n,t).end(e),n.root}function f(e,t){return d(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=d,t.parseDOM=f,t.createDomStream=function(e,t,n){var r=new c.DomHandler(e,t,n);return new s.Parser(r,t)};var p=n(6439);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}}),t.ElementType=o(n(3338));var h=n(6403),g=n(6403);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var m={xmlMode:!0};t.parseFeed=function(e,t){return void 0===t&&(t=m),(0,h.getFeed)(f(e,t))},t.DomUtils=o(n(6403))},5517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(1138);function i(e){return(0,r.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}t.getChildren=i,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!=t)return i(t);for(var n=[e],r=e.prev,a=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=a;)n.push(a),a=a.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},5905:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},5912:(e,t,n)=>{"use strict";var r=n(5220);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,i,o){n.reason||(n.reason=new r(e,i,o),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},5919:(e,t,n)=>{"use strict";e.exports=n(4047)},5930:(e,t,n)=>{"use strict";let r=n(9845);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},5968:(e,t,n)=>{!function(){var t=n(4651),r="mathquill-command-id",i="mathquill-block-id",o=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function s(){}var l=[].slice;function c(e){var t=e.length-1;return function(){var n=l.call(arguments,0,t),r=l.call(arguments,t);return e.apply(this,n.concat([r]))}}var u=c((function(e,t){return c((function(n,r){if(e in n)return n[e].apply(n,t.concat(r))}))}));function d(e){return c((function(t,n){return"function"!=typeof t&&(t=u(t)),e.call(this,(function(e){return t.apply(e,[e].concat(n))}))}))}function f(e){var t=l.call(arguments,1);return function(){return e.apply(this,t)}}function p(e,t){if(!t)throw new Error("prayer failed: "+e)}var h=function(e,t){function n(e){return"object"==typeof e}function r(e){return"function"==typeof e}function i(){}return function o(a,s){function l(){var e=new c;return r(e.init)&&e.init.apply(e,arguments),e}function c(){}void 0===s&&(s=a,a=Object),l.Bare=c;var u,d=i[e]=a[e],f=c[e]=l[e]=l.p=new i;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(u={},r(e)?u=e.call(l,f,d,l,a):n(e)&&(u=e),n(u))for(var i in u)t.call(u,i)&&(f[i]=u[i]);return r(f.init)||(f.init=a),l})(s)}}("prototype",{}.hasOwnProperty),g=-1;function m(e){p("a direction was passed",e===g||1===e)}var v=h(t,(function(e){e.insDirOf=function(e,t){return e===g?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===g?this.prependTo(t):this.appendTo(t)}})),y=h((function(e){e.parent=0,e[g]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[g]=t,this[1]=n},this.copy=function(e){return y(e.parent,e[g],e[1])}})),b=h((function(e){e[g]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,b.byId[this.id]=this,this.ends={},this.ends[g]=0,this.ends[1]=0},e.dispose=function(){delete b.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=v(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&b.byId[n].jQadd(e),r&&b.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}e=v(e||this.html());for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){m(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[g],t[1]),n},e.createLeftOf=function(e){return this.createDir(g,e)},e.selectChildren=function(e,t){return T(e,t)},e.bubble=d((function(e){for(var t=this;t&&!1!==e(t);t=t.parent);return this})),e.postOrder=d((function(e){return function t(n){n.eachChild(t),e(n)}(this),this})),e.isEmpty=function(){return 0===this.ends[g]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return x(this.ends[g],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return x(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return x(this,this).adopt(e,t,n),this},e.disown=function(){return x(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}}));function I(e,t,n){p("a parent is always present",e),p("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[g]===n),p("rightward is properly set up",n?n[g]===t&&n.parent===e:e.ends[1]===t)}var x=h((function(e){e.init=function(e,t,n){if(void 0===n&&(n=g),m(n),p("no half-empty fragments",!e==!t),this.ends={},e){p("withDir is passed to Fragment",e instanceof b),p("oppDir is passed to Fragment",t instanceof b),p("withDir and oppDir have the same parent",e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],(function(e,t){return e.push.apply(e,t.jQ.get()),e}));this.jQ=this.jQ.add(r)}},e.jQ=v(),e.withDirAdopt=function(e,t,n,r){return e===g?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){I(e,t,n);var r=this;r.disowned=!1;var i=r.ends[g];if(!i)return this;var o=r.ends[1];return t||(e.ends[g]=i),n?n[g]=o:e.ends[1]=o,r.ends[1][1]=n,r.each((function(n){n[g]=t,n.parent=e,t&&(t[1]=n),t=n})),r},e.disown=function(){var e=this,t=e.ends[g];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[1],r=t.parent;return I(r,t[g],t),I(r,n,n[1]),t[g]?t[g][1]=n[1]:r.ends[g]=n[1],n[1]?n[1][g]=t[g]:r.ends[1]=t[g],e},e.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},e.each=d((function(e){var t=this,n=t.ends[g];if(!n)return t;for(;n!==t.ends[1][1]&&!1!==e(n);n=n[1]);return t})),e.fold=function(e,t){return this.each((function(n){e=t.call(this,e,n)})),e}})),w={},A={},M=h(y,(function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=v('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[g][g]===this[g]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=v(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return m(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},e.insLeftOf=function(e){return this.insDirOf(g,e)},e.insRightOf=function(e){return this.insDirOf(1,e)},e.insAtDirEnd=function(e,t){return m(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(g,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=y.copy(n);var r=n.upDownCache[t.id];if(r)r[1]?n.insLeftOf(r[1]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[g];if(e.disown().eachChild((function(i){i.isEmpty()||(i.children().adopt(t,r,n).each((function(t){t.jQ.insertBefore(e.jQ.first())})),r=i.ends[1])})),!this[1])if(this[g])this[1]=this[g][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[g]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[g].siblingDeleted&&e[g].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,g)},e.startSelection=function(){for(var e=this.anticursor=y.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(this[g]===e[g]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}p("cursor and anticursor in the same tree",n);var r,i,o=e.ancestors[n.id],a=1;if(t[g]!==o)for(var s=t;s;s=s[1])if(s[1]===o[1]){a=g,r=t,i=o;break}return 1===a&&(r=o,i=t),r instanceof y&&(r=r[1]),i instanceof y&&(i=i[g]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(a,this.selection.ends[a]),this.selectionChanged(),!0},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[g]=this.selection.ends[g][g],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[g]=e.ends[g][g],this[1]=e.ends[1][1],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=e instanceof W?1:0;return t},e.isTooDeep=function(e){if(void 0!==this.options.maxDepth)return this.depth()+(e||0)>this.options.maxDepth}})),T=h(x,(function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",(function(t,n){return t+n[e]()}))}})),E=h((function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=M(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===g||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}})),C={},N=h(),S={},k=h(),j={};function D(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function L(e){return D(),He(e)}L.prototype=k.p,L.VERSION="v0.10.11",L.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(D=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),L},L.getInterface=P;var O=P.MIN=1,R=P.MAX=2;function P(e){if(!(O<=e&&e<=R))throw"Only interface versions between "+O+" and "+R+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=v(e).children(".mq-root-block").attr(i),n=t&&b.byId[t].controller;return n?r[n.KIND_OF_MQ](n):null}var r={};function o(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:r}),t)if(t.hasOwnProperty(n)){var i=t[n],o=S[n];e[n]=o?o(i):i}}n.L=g,n.R=1,n.saneKeyboardEvents=F,n.config=function(e){return o(N.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";j[e]=t};var a=r.AbstractMathQuill=h(k,(function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,r=t.container;t.createTextarea();var o=r.addClass(e).contents().detach();n.jQ=v('<span class="mq-root-block"/>').attr(i,n.id).appendTo(r),this.latex(o.text()),this.revert=function(){return r.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(o)}},e.config=function(e){return o(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}}));for(var l in n.prototype=a.prototype,r.EditableField=h(a,(function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[g]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=w[e]||_e[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[g];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(g)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:s});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-v(window).scrollLeft(),i=t-v(window).scrollTop(),o=document.elementFromPoint(r,i);this.__controller.seek(v(o),e,t),Be().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,o=i.root;return t.contains(o.jQ[0],r)||(r=o.jQ[0]),i.seek(v(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}})),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=r.EditableField.prototype,C)!function(t,i){var o=r[t]=i(r);n[t]=function(r,i){var a=n(r);if(a instanceof o||!r||!r.nodeType)return a;var s=E(o.RootBlock(),v(r),N());return s.KIND_OF_MQ=t,o(s).__mathquillify(i,e)},n[t].prototype=o.prototype}(l,C[l]);return n}L.noConflict=function(){return window.MathQuill=z,L};var z=window.MathQuill;function U(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=L;var B,_=h((function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(a)._(""+e,(function(e,t){return t}),r)},e.or=function(e){p("or is passed a parser",e instanceof n);var t=this;return n((function(n,r,i){return t._(n,r,(function(t){return e._(n,r,i)}))}))},e.then=function(e){var t=this;return n((function(r,i,o){return t._(r,(function(t,r){var a=e instanceof n?e:e(r);return p("a parser is returned",a instanceof n),a._(t,i,o)}),o)}))},e.many=function(){var e=this;return n((function(t,n,r){for(var i=[];e._(t,o,a););return n(t,i);function o(e,n){return t=e,i.push(n),!0}function a(){return!1}}))},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n((function(n,i,o){for(var a,s=[],l=!0,c=0;c<e;c+=1)if(!(l=r._(n,u,d)))return o(n,a);for(;c<t&&l;c+=1)l=r._(n,u,f);return i(n,s);function u(e,t){return s.push(t),n=e,!0}function d(e,t){return a=t,n=e,!1}function f(e,t){return!1}}))},e.result=function(e){return this.then(o(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then((function(e){return t.many().map((function(t){return e.concat(t)}))}))},e.map=function(e){return this.then((function(t){return o(e(t))}))},e.skip=function(e){return this.then((function(t){return e.result(t)}))},this.string=function(e){var t=e.length,r="expected '"+e+"'";return n((function(n,i,o){var a=n.slice(0,t);return a===e?i(n.slice(t),a):o(n,r)}))};var i=this.regex=function(e){p("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n((function(n,r,i){var o=e.exec(n);if(o){var a=o[0];return r(n.slice(a.length),a)}return i(n,t)}))},o=n.succeed=function(e){return n((function(t,n){return n(t,e)}))},a=(n.fail=function(e){return n((function(t,n,r){return r(t,e)}))},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n((function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")})),n.all=n((function(e,t,n){return t("",e)})),n.eof=n((function(e,t,n){return e?n(e,"expected EOF"):t(e,e)})))})),F=(B={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,o=null,a=t(e),l=t(n.container||a),c=s;function u(e){c=e,clearTimeout(r),r=setTimeout(e)}function d(e){u((function(t){c=s,clearTimeout(r),e(t)}))}l.bind("keydown keypress input keyup focusout paste",(function(e){c(e)}));var f=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=B[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function h(){if(!("selectionStart"in(e=a[0]))||e.selectionStart===e.selectionEnd){var e,t=a.val();1===t.length?(a.val(""),n.typedText(t)):t&&a[0].select&&a[0].select()}}function g(){var e=a.val();a.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){e.target===a[0]&&(i=e,o=null,f&&d((function(e){e&&"focusout"===e.type||!a[0].select||a[0].select()})),p())},keypress:function(e){e.target===a[0]&&(i&&o&&p(),o=e,u(h))},keyup:function(e){e.target===a[0]&&i&&!o&&u(h)},focusout:function(){i=o=null},cut:function(){d((function(){n.cut()}))},copy:function(){d((function(){n.copy()}))},paste:function(e){e.target===a[0]&&(document.activeElement!==a[0]&&a.focus(),u(g))}}),{select:function(e){c(),c=s,clearTimeout(r),a.val(e),e&&a[0].select&&a[0].select(),f=!!e}}});E.open((function(e,t){e.exportText=function(){return this.root.foldChildren("",(function(e,t){return e+t.text()}))}})),E.open((function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),o()}function o(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),v(window).unbind("blur",i)}t.textarea.focus((function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()})).blur((function(){t.blurred=!0,e=setTimeout((function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),o()})),v(window).bind("blur",i)})),t.blurred=!0,r.hide().parent.blur()},e.unbindFocusBlurEvents=function(){this.textarea.unbind("focus blur")}})),E.open((function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}})),b.open((function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(g);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(g,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[g];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[g]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[g])for(;r[g];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[g];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){p("overridden or never called on this node")}})),E.open((function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[g][r]?n.insAtRightEnd(n[g][r]):n.parent.bubble((function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof b&&n.jumpUpDown(e,t),!0!==t))return!1})),e}this.onNotify((function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()})),e.escapeDir=function(e,t,n){m(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},S.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){m(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(g)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify((function(e){"upDown"!==e&&(this.upDownCache={})})),this.onNotify((function(e){"edit"===e&&this.show().deleteSelection()})),e.deleteDir=function(e){m(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[g].siblingDeleted&&t[g].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,g),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){m(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===g?x(t.parent.ends[g],t[g]).remove():x(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[g].siblingDeleted&&t[g].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,g),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(g)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify((function(e){"select"!==e&&this.endSelection()})),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;m(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(g)},e.selectRight=function(){return this.selectDir(1)}}));var G=function(){function e(e){for(var t=e[0]||W(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=_.string,n=_.regex,r=_.letter,i=_.any,o=_.optWhitespace,a=_.succeed,s=_.fail,l=r.map((function(e){return re(e)})),c=n(/^[^${}\\_^]/).map((function(e){return Y(e)})),u=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then((function(e){var t=w[e];return t?t(e).parser():s("unknown command: \\"+e)})).or(l).or(c),d=t("{").then((function(){return p})).skip(t("}")),f=o.then(d.or(u.map((function(e){var t=W();return e.adopt(t,0,0),t})))),p=f.many().map(e).skip(o),h=t("[").then(f.then((function(e){return"]"!==e.join("latex")?a(e):s()})).many().map(e).skip(o)).skip(t("]")),g=p;return g.block=f,g.optBlock=h,g}();E.open((function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},S.maxDepth=function(e){return"number"==typeof e?e:void 0},e.writeLatex=function(e){var t=this.notify("edit").cursor;return t.parent.writeLatex(t,e),this},e.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=(n.options,t.jQ),i=_.all,o=_.eof,a=G.skip(o).or(i.result(!1)).parse(e);if(t.eachChild("postOrder","dispose"),t.ends[g]=t.ends[1]=0,a&&a.prepareInsertionAt(n)){a.children().adopt(t,0,0);var s=a.join("html");r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[g]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=_.regex,i=_.string,o=_.eof,a=_.all,s=i("$").then(G).skip(i("$").or(o)).map((function(e){var t=$(n);t.createBlocks();var r=t.ends[g];return e.children().adopt(r,0,0),t})),l=i("\\$").result("$").or(r(/^[^$]/)).map(Y),c=s.or(l).many().skip(o).or(a.result(!1)).parse(e);if(c){for(var u=0;u<c.length;u+=1)c[u].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}})),E.open((function(e){N.p.ignoreNextMousedown=s,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind("mousedown.mathquill",(function(t){var n,r=v(t.target).closest(".mq-root-block"),o=b.byId[r.attr(i)||e.attr(i)].controller,a=o.cursor,l=a.blink,c=o.textareaSpan,u=o.textarea;function d(e){n=v(e.target)}function f(e){a.anticursor||a.startSelection(),o.seek(n,e.pageX,e.pageY).cursor.select(),n=void 0}t.preventDefault(),t.target.unselectable=!0,a.options.ignoreNextMousedown(t)||(a.options.ignoreNextMousedown=s,o.blurred&&(o.editable||r.prepend(c),u.focus()),a.blink=s,o.seek(v(t.target),t.pageX,t.pageY).cursor.startSelection(),r.mousemove(d),v(t.target.ownerDocument).mousemove(f).mouseup((function e(t){a.blink=l,a.selection||(o.editable?a.show():c.detach()),r.unbind("mousemove",d),v(t.target.ownerDocument).unbind("mousemove",f).unbind("mouseup",e)})))}))}})),E.open((function(e){e.seek=function(e,t,n){var o=this.notify("select").cursor;if(e){var a=e.attr(i)||e.attr(r);if(!a){var s=e.parent();a=s.attr(i)||s.attr(r)}}var l=a?b.byId[a]:this.root;return p("nodeId is the id of some Node that exists",l),o.clearSelection().show(),l.seek(t,o),this.scrollHoriz(),this}})),E.open((function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=e.offset();if(n){var r=e.jQ.closest(".mq-editable-field"),i=Number(n.top-r.offset().top+2*e.jQ.height());r.find(".mq-textarea textarea").css("top",i+"px")}var o=this.root.jQ[0].getBoundingClientRect();if(t){var a=t.jQ[0].getBoundingClientRect(),s=a.left-(o.left+20),l=a.right-(o.right-20);if(t.ends[g]===e[1])if(s<0)u=s;else{if(!(l>0))return;u=a.left-l<o.left+20?s:l}else if(l>0)u=l;else{if(!(s<0))return;u=a.right-s>o.right-20?l:s}}else{var c=e.jQ[0].getBoundingClientRect().left;if(c>o.right-20)var u=c-(o.right-20);else{if(!(c<o.left+20))return;u=c-(o.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+u},100)}})),E.open((function(e){N.p.substituteTextarea=function(){return v("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},e.createTextarea=function(){var e=this.textareaSpan=v('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=v(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;ye(e.container[0]),void 0===e.textareaSelectionTimeout&&(e.textareaSelectionTimeout=setTimeout((function(){e.setTextareaSelection()})))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=void 0;var e="";this.cursor.selection&&(e=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(e="$"+e+"$")),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function o(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",(function(){e.setTextareaSelection()})).focus((function(){e.blurred=!1})).blur((function(){n.selection&&n.selection.clear(),setTimeout(o)})),e.selectFn=function(e){r.val(e),e&&r.select()}},N.p.substituteKeyboardEvents=F,e.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},e.unbindEditablesEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan;this.selectFn=function(e){t.val(e),e&&t.select()},n.remove(),this.unbindFocusBlurEvents(),e.blurred=!0,t.bind("cut paste",!1)},e.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout((function(){e.notify("edit"),t.parent.bubble("reflow")}))},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}}));var Z=h(b,(function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder("finalizeTree",e),n.postOrder("contactWeld",t),n.postOrder("blur"),n.postOrder("reflow"),n[1].siblingCreated&&n[1].siblingCreated(e,g),n[g].siblingCreated&&n[g].siblingCreated(e,1),n.bubble("reflow")},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(void 0!==t){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t,n=0,r=[[this,n]];r.length;)(t=r.shift())[0].children().each((function(i){var o=i instanceof W?1:0;(n=t[1]+o)<=e?r.push([i,n]):(o?i.children():i).remove()}))}})),H=h(Z,(function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||(i.ctrlSeq=e),n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,(function(e,t){return e&&t.isEmpty()}))},e.parser=function(){var e=G.block,t=this;return e.times(t.numBlocks()).map((function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t}))},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[g],0,0),r.jQ.appendTo(n.ends[g].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=W()).adopt(e,e.ends[1],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[g],(function(e,t){return e.isEmpty()?e:t})))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return T(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[g]=e.jQ.offset().left,t[1]=t[g]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[g])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var o=i[g];r.eachChild((function(a){var s=n(a);return e<s[g]?(e-o<s[g]-e?a[g]?t.insAtRightEnd(a[g]):t.insLeftOf(r):t.insAtLeftEnd(a),!1):e>s[1]?void(a[1]?o=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(a)):(a.seek(e,t),!1)}))},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=" mathquill-command-id="+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);p("no unmatched angle brackets",r.join("")===this.htmlTemplate);for(var i=0,o=r[0];o;o=r[i+=1])if("/>"===o.slice(-2))r[i]=o.slice(0,-2)+n+"/>";else if("<"===o.charAt(0)){p("not an unmatched top-level close tag","/"!==o.charAt(1)),r[i]=o.slice(0,-1)+n+">";var a=1;do{p("no missing close tags",o=r[i+=1]),"</"===o.slice(0,2)?a-=1:"<"===o.charAt(0)&&"/>"!==o.slice(-2)&&(a+=1)}while(a>0)}return r.join("").replace(/>&(\d+)/g,(function(e,n){return" mathquill-block-id="+t[n].id+">"+t[n].join("html")}))},e.latex=function(){return this.foldChildren(this.ctrlSeq,(function(e,t){return e+"{"+(t.latex()||" ")+"}"}))},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],(function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||"")}))}})),q=h(H,(function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return _.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=s,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=s,e.isEmpty=function(){return!0}})),Y=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}})),V=h(q,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}})),W=h(Z,(function(e,t){e.join=function(e){return this.foldChildren("",(function(t,n){return t+n[e]()}))},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[g]===this.ends[1]&&0!==this.ends[g]?this.ends[g].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?g:1,e,n))},e.moveOutOf=function(e,t,n){n&&this.parent[n+"Into"]||!this[e]?t.insDirOf(e,this.parent):t.insAtDirEnd(-e,this[e])},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[g].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[g];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?re(e):/^\d$/.test(e)?te(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?w["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?w["×"](e):(n=A[e]||w[e])?n(e):Y(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.writeLatex=function(e,t){var n=_.all,r=_.eof,i=G.skip(r).or(n.result(!1)).parse(t);i&&!i.isEmpty()&&i.prepareInsertionAt(e)&&(i.children().adopt(e.parent,e[g],e[1]),i.jQize().insertBefore(e.jQ),e[g]=i.ends[1],i.finalizeInsert(e.options,e),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(e.options,g),i.ends[g][g].siblingCreated&&i.ends[g][g].siblingCreated(e.options,1),e.parent.bubble("reflow"))},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}}));N.p.mouseEvents=!0,C.StaticMath=function(e){return h(e.AbstractMathQuill,(function(t,n){this.RootBlock=W,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.InnerMathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.InnerMathField),t}}))};var Q=h(W,U);C.MathField=function(e){return h(e.EditableField,(function(e,t){this.RootBlock=Q,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=s),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}}))},C.InnerMathField=function(e){return h(e.MathField,(function(e,t){e.makeStatic=function(){this.__controller.editable=!1,this.__controller.root.blur(),this.__controller.unbindEditablesEvents(),this.__controller.container.removeClass("mq-editable-field")},e.makeEditable=function(){this.__controller.editable=!0,this.__controller.editablesTextareaEvents(),this.__controller.cursor.insAtRightEnd(this.__controller.root),this.__controller.container.addClass("mq-editable-field")}}))};var J=h(b,(function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){p("only node in TextBlock span is Text node",3===t.nodeType);var n=X(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof x?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[g]&&this.ends[g].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r));n[1].siblingCreated&&n[1].siblingCreated(e.options,g),n[g].siblingCreated&&n[g].siblingCreated(e.options,1),n.bubble("reflow")},e.parser=function(){var e=this,t=_.string,n=_.regex;return _.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map((function(t){return 0===t.length?x():(X(t).adopt(e,0,0),e)}))},e.textContents=function(){return this.foldChildren("",(function(e,t){return e+t.text}))},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=H.prototype.selectTowards,e.deleteTowards=H.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[g]?e[g].appendText(n):X(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Y("\\$","$").createLeftOf(e);else if(e[1])if(e[g]){var r=J(),i=this.ends[g];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this);this.bubble("reflow")},e.writeLatex=function(e,t){e[g]?e[g].appendText(t):X(t).createLeftOf(e),this.bubble("reflow")},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,o=Math.round((e-this.jQ.offset().left)/i);o<=0?t.insAtLeftEnd(this):o>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(o));for(var a=e-t.show().offset().left,s=a&&a<0?g:1,l=s;t[s]&&a*l>0;)t[s].moveTowards(s,t),l=a,a=e-t.offset().left;if(s*a<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var c=t[g]&&t[g].text.length;if(this.anticursorPosition===c)t.anticursor=y.copy(t);else{if(this.anticursorPosition<c){var u=t[g].splitRight(this.anticursorPosition);t[g]=u}else u=t[1].splitRight(this.anticursorPosition-c);t.anticursor=y(this,u[g],u)}}}else this.anticursorPosition=t[g]&&t[g].text.length},e.blur=function(e){W.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[g]===this?e[g]=this[g]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=W.prototype.focus})),X=h(b,(function(e,t){function n(e,t){return t.charAt(e===g?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=v(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){m(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=X(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){m(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):X(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){m(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var o=X(i).createDir(e,t);r[e]=o,t.insDirOf(e,o)}else{var a=this[-e];a?a.insTextAtDirEnd(i,e):(o=X(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ),1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}}));function K(e,t,n){return h(J,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}w.text=w.textnormal=w.textrm=w.textup=w.textmd=J,w.em=w.italic=w.italics=w.emph=w.textit=w.textsl=K("\\textit","i",'class="mq-text-mode"'),w.strong=w.bold=w.textbf=K("\\textbf","b",'class="mq-text-mode"'),w.sf=w.textsf=K("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),w.tt=w.texttt=K("\\texttt","span",'class="mq-monospace mq-text-mode"'),w.textsc=K("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),w.uppercase=K("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),w.lowercase=K("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var $=h(H,(function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[g].cursor=this.cursor,this.ends[g].write=function(e,t){"$"!==t?W.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Y("\\$","$").createLeftOf(e.show())):e[1]?e[g]?W.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[g].latex()+"$"}})),ee=h(Q,(function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;e.show().deleteSelection(),"$"===t?$(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),Y(t,n).createLeftOf(e))}}));C.TextField=function(e){return h(e.EditableField,(function(e,t){this.RootBlock=ee,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}}))};var te=h(Y,(function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[g]instanceof ne&&!1!==e[g].isItalic||e[g]instanceof Ee&&e[g][g]instanceof ne&&!1!==e[g][g].isItalic)?(w._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}})),ne=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[g]||this[g]instanceof ne||this[g]instanceof V||"\\ "===this[g].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof V||this[1]instanceof Ee||(e+="*")),e}}));N.p.autoCommands={_maxLength:0},S.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(w[o]===se)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var re=h(ne,(function(e,t){function n(e){return!e||e instanceof V||e instanceof Ne}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",o=this,a=0;o instanceof re&&o.ctrlSeq===o.letter&&a<r;)i=o.letter+i,o=o[g],a+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(a=1,o=this;a<i.length;a+=1,o=o[g]);return x(o,this).remove(),e[g]=o[g],w[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==g&&this[1]instanceof re||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,i=this[g];i instanceof re;i=i[g])r=i.letter+r;for(var a=this[1];a instanceof re;a=a[1])r+=a.letter;x(i[1]||this.parent.ends[g],a[g]||this.parent.ends[1]).each((function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter}));e:for(var s=0,l=i[1]||this.parent.ends[g];s<r.length;s+=1,l=l[1])for(var c=o(t._maxLength,r.length-s);c>0;c-=1){var u=r.slice(s,s+c);if(t.hasOwnProperty(u)){for(var d=0,f=l;d<c;d+=1,f=f[1]){f.italicize(!1);var p=f}var h=ie.hasOwnProperty(u);if(l.ctrlSeq=(h?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=h?" ":"}",ae.hasOwnProperty(u)&&p[g][g][g].jQ.addClass("mq-last"),n(l[g])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof Ee){var m=p[1];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass("mq-after-operator-name",!(m[1]instanceof Re))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof Re));s+=c-1,l=p;continue e}}}}})),ie={},oe=N.p.autoOperatorNames={_maxLength:9},ae={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)ie[e[t]]=oe[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)ie[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)oe[r[t]]=oe["arc"+r[t]]=oe[r[t]+"h"]=oe["ar"+r[t]+"h"]=oe["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)oe[i[t]]=1}(),S.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var se=h(q,(function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)re(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=W(),n=0;n<e.length;n+=1)re(e.charAt(n)).adopt(t,t.ends[1],0);return _.succeed(t.children())}}));for(var le in oe)oe.hasOwnProperty(le)&&(w[le]=se);w.operatorname=h(H,(function(e){e.createLeftOf=s,e.numBlocks=function(){return 1},e.parser=function(){return G.block.map((function(e){return e.children()}))}})),w.f=h(re,(function(e,t){e.init=function(){q.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}})),w[" "]=w.space=f(Y,"\\ ","&nbsp;"),w[","]=f(Y,"{,}",","),w["'"]=w.prime=f(Y,"'","&prime;"),w["″"]=w.dprime=f(Y,"″","&Prime;"),w.backslash=f(Y,"\\backslash ","\\"),A["\\"]||(A["\\"]=w.backslash),w.$=f(Y,"\\$","$");var ce=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}}));w["@"]=ce,w["#"]=f(ce,"\\#","#"),w["&"]=f(ce,"\\&","&amp;"),w["%"]=f(ce,"\\%","%"),w.alpha=w.beta=w.gamma=w.delta=w.zeta=w.eta=w.theta=w.iota=w.kappa=w.mu=w.nu=w.xi=w.rho=w.sigma=w.tau=w.chi=w.psi=w.omega=h(ne,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),w.phi=f(ne,"\\phi ","&#981;"),w.phiv=w.varphi=f(ne,"\\varphi ","&phi;"),w.epsilon=f(ne,"\\epsilon ","&#1013;"),w.epsiv=w.varepsilon=f(ne,"\\varepsilon ","&epsilon;"),w.piv=w.varpi=f(ne,"\\varpi ","&piv;"),w.sigmaf=w.sigmav=w.varsigma=f(ne,"\\varsigma ","&sigmaf;"),w.thetav=w.vartheta=w.thetasym=f(ne,"\\vartheta ","&thetasym;"),w.upsilon=w.upsi=f(ne,"\\upsilon ","&upsilon;"),w.gammad=w.Gammad=w.digamma=f(ne,"\\digamma ","&#989;"),w.kappav=w.varkappa=f(ne,"\\varkappa ","&#1008;"),w.rhov=w.varrho=f(ne,"\\varrho ","&#1009;"),w.pi=w["π"]=f(ce,"\\pi ","&pi;"),w.lambda=f(ce,"\\lambda ","&lambda;"),w.Upsilon=w.Upsi=w.upsih=w.Upsih=f(q,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),w.Gamma=w.Delta=w.Theta=w.Lambda=w.Xi=w.Pi=w.Sigma=w.Phi=w.Psi=w.Omega=w.forall=h(Y,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}));var ue=h(H,(function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=G.parse(this.latex);t.children().adopt(e.parent,e[g],e[1]),e[g]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,g),t.ends[g][g].siblingCreated&&t.ends[g][g].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=G.parse(this.latex).children();return _.succeed(e)}}));w["⁰"]=f(ue,"^0"),w["¹"]=f(ue,"^1"),w["²"]=f(ue,"^2"),w["³"]=f(ue,"^3"),w["⁴"]=f(ue,"^4"),w["⁵"]=f(ue,"^5"),w["⁶"]=f(ue,"^6"),w["⁷"]=f(ue,"^7"),w["⁸"]=f(ue,"^8"),w["⁹"]=f(ue,"^9"),w["₀"]=f(ue,"_0"),w["₁"]=f(ue,"_1"),w["₂"]=f(ue,"_2"),w["₃"]=f(ue,"_3"),w["₄"]=f(ue,"_4"),w["₅"]=f(ue,"_5"),w["₆"]=f(ue,"_6"),w["₇"]=f(ue,"_7"),w["₈"]=f(ue,"_8"),w["₉"]=f(ue,"_9"),w["¼"]=f(ue,"\\frac14"),w["½"]=f(ue,"\\frac12"),w["¾"]=f(ue,"\\frac34");var de=h(V,(function(e){e.init=Y.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[g]?t[g]instanceof V||/^[,;:\(\[]$/.test(t[g].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}}));w["+"]=f(de,"+","+"),w["–"]=w["-"]=f(de,"-","&minus;"),w["±"]=w.pm=w.plusmn=w.plusminus=f(de,"\\pm ","&plusmn;"),w.mp=w.mnplus=w.minusplus=f(de,"\\mp ","&#8723;"),A["*"]=w.sdot=w.cdot=f(V,"\\cdot ","&middot;","*");var fe=h(V,(function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===g&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}})),pe={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},he={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};w["<"]=w.lt=f(fe,pe,!0),w[">"]=w.gt=f(fe,he,!0),w["≤"]=w.le=w.leq=f(fe,pe,!1),w["≥"]=w.ge=w.geq=f(fe,he,!1);var ge=h(V,(function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[g]instanceof fe&&e[g].strict)return e[g].swap(!1),void e[g].bubble("reflow");t.createLeftOf.apply(this,arguments)}}));w["="]=ge,w["×"]=w.times=f(V,"\\times ","&times;","[x]"),w["÷"]=w.div=w.divide=w.divides=f(V,"\\div ","&divide;","[/]"),A["~"]=w.sim=f(V,"\\sim ","~","~"),w.notin=w.cong=w.equiv=w.oplus=w.otimes=h(V,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),w["≠"]=w.ne=w.neq=f(V,"\\ne ","&ne;"),w["∗"]=w.ast=w.star=w.loast=w.lowast=f(V,"\\ast ","&lowast;"),w.therefor=w.therefore=f(V,"\\therefore ","&there4;"),w.cuz=w.because=f(V,"\\because ","&#8757;"),w.prop=w.propto=f(V,"\\propto ","&prop;"),w["≈"]=w.asymp=w.approx=f(V,"\\approx ","&asymp;"),w["≢"]=w.notequiv=w.nequiv=f(V,"\\not\\equiv ","&#8802;"),w.isin=w.in=f(V,"\\in ","&isin;"),w.ni=w.contains=f(V,"\\ni ","&ni;"),w.notni=w.niton=w.notcontains=w.doesnotcontain=f(V,"\\not\\ni ","&#8716;"),w.sub=w.subset=f(V,"\\subset ","&sub;"),w.sup=w.supset=w.superset=f(V,"\\supset ","&sup;"),w.nsub=w.notsub=w.nsubset=w.notsubset=f(V,"\\not\\subset ","&#8836;"),w.nsup=w.notsup=w.nsupset=w.notsupset=w.nsuperset=w.notsuperset=f(V,"\\not\\supset ","&#8837;"),w.sube=w.subeq=w.subsete=w.subseteq=f(V,"\\subseteq ","&sube;"),w.supe=w.supeq=w.supsete=w.supseteq=w.supersete=w.superseteq=f(V,"\\supseteq ","&supe;"),w.nsube=w.nsubeq=w.notsube=w.notsubeq=w.nsubsete=w.nsubseteq=w.notsubsete=w.notsubseteq=f(V,"\\not\\subseteq ","&#8840;"),w.nsupe=w.nsupeq=w.notsupe=w.notsupeq=w.nsupsete=w.nsupseteq=w.notsupsete=w.notsupseteq=w.nsupersete=w.nsuperseteq=w.notsupersete=w.notsuperseteq=f(V,"\\not\\supseteq ","&#8841;"),w.mathbb=h(H,(function(e){e.createLeftOf=s,e.numBlocks=function(){return 1},e.parser=function(){var e=_.string,t=_.regex,n=_.optWhitespace;return n.then(e("{")).then(n).then(t(/^[NPZQRCH]/)).skip(n).skip(e("}")).map((function(e){return w[e]()}))}})),w.N=w.naturals=w.Naturals=f(Y,"\\mathbb{N}","&#8469;"),w.P=w.primes=w.Primes=w.projective=w.Projective=w.probability=w.Probability=f(Y,"\\mathbb{P}","&#8473;"),w.Z=w.integers=w.Integers=f(Y,"\\mathbb{Z}","&#8484;"),w.Q=w.rationals=w.Rationals=f(Y,"\\mathbb{Q}","&#8474;"),w.R=w.reals=w.Reals=f(Y,"\\mathbb{R}","&#8477;"),w.C=w.complex=w.Complex=w.complexes=w.Complexes=w.complexplane=w.Complexplane=w.ComplexPlane=f(Y,"\\mathbb{C}","&#8450;"),w.H=w.Hamiltonian=w.quaternions=w.Quaternions=f(Y,"\\mathbb{H}","&#8461;"),w.quad=w.emsp=f(Y,"\\quad "," "),w.qquad=f(Y,"\\qquad "," "),w.diamond=f(Y,"\\diamond ","&#9671;"),w.bigtriangleup=f(Y,"\\bigtriangleup ","&#9651;"),w.ominus=f(Y,"\\ominus ","&#8854;"),w.uplus=f(Y,"\\uplus ","&#8846;"),w.bigtriangledown=f(Y,"\\bigtriangledown ","&#9661;"),w.sqcap=f(Y,"\\sqcap ","&#8851;"),w.triangleleft=f(Y,"\\triangleleft ","&#8882;"),w.sqcup=f(Y,"\\sqcup ","&#8852;"),w.triangleright=f(Y,"\\triangleright ","&#8883;"),w.odot=w.circledot=f(Y,"\\odot ","&#8857;"),w.bigcirc=f(Y,"\\bigcirc ","&#9711;"),w.dagger=f(Y,"\\dagger ","&#0134;"),w.ddagger=f(Y,"\\ddagger ","&#135;"),w.wr=f(Y,"\\wr ","&#8768;"),w.amalg=f(Y,"\\amalg ","&#8720;"),w.models=f(Y,"\\models ","&#8872;"),w.prec=f(Y,"\\prec ","&#8826;"),w.succ=f(Y,"\\succ ","&#8827;"),w.preceq=f(Y,"\\preceq ","&#8828;"),w.succeq=f(Y,"\\succeq ","&#8829;"),w.simeq=f(Y,"\\simeq ","&#8771;"),w.mid=f(Y,"\\mid ","&#8739;"),w.nmid=f(Y,"\\nmid","&#8740;"),w.ll=f(Y,"\\ll ","&#8810;"),w.gg=f(Y,"\\gg ","&#8811;"),w.parallel=f(Y,"\\parallel ","&#8741;"),w.nparallel=f(Y,"\\nparallel ","&#8742;"),w.bowtie=f(Y,"\\bowtie ","&#8904;"),w.sqsubset=f(Y,"\\sqsubset ","&#8847;"),w.sqsupset=f(Y,"\\sqsupset ","&#8848;"),w.smile=f(Y,"\\smile ","&#8995;"),w.sqsubseteq=f(Y,"\\sqsubseteq ","&#8849;"),w.sqsupseteq=f(Y,"\\sqsupseteq ","&#8850;"),w.doteq=f(Y,"\\doteq ","&#8784;"),w.frown=f(Y,"\\frown ","&#8994;"),w.vdash=f(Y,"\\vdash ","&#8870;"),w.dashv=f(Y,"\\dashv ","&#8867;"),w.nless=f(Y,"\\nless ","&#8814;"),w.ngtr=f(Y,"\\ngtr ","&#8815;"),w.longleftarrow=f(Y,"\\longleftarrow ","&#8592;"),w.longrightarrow=f(Y,"\\longrightarrow ","&#8594;"),w.Longleftarrow=f(Y,"\\Longleftarrow ","&#8656;"),w.Longrightarrow=f(Y,"\\Longrightarrow ","&#8658;"),w.longleftrightarrow=f(Y,"\\longleftrightarrow ","&#8596;"),w.updownarrow=f(Y,"\\updownarrow ","&#8597;"),w.Longleftrightarrow=f(Y,"\\Longleftrightarrow ","&#8660;"),w.Updownarrow=f(Y,"\\Updownarrow ","&#8661;"),w.mapsto=f(Y,"\\mapsto ","&#8614;"),w.nearrow=f(Y,"\\nearrow ","&#8599;"),w.hookleftarrow=f(Y,"\\hookleftarrow ","&#8617;"),w.hookrightarrow=f(Y,"\\hookrightarrow ","&#8618;"),w.searrow=f(Y,"\\searrow ","&#8600;"),w.leftharpoonup=f(Y,"\\leftharpoonup ","&#8636;"),w.rightharpoonup=f(Y,"\\rightharpoonup ","&#8640;"),w.swarrow=f(Y,"\\swarrow ","&#8601;"),w.leftharpoondown=f(Y,"\\leftharpoondown ","&#8637;"),w.rightharpoondown=f(Y,"\\rightharpoondown ","&#8641;"),w.nwarrow=f(Y,"\\nwarrow ","&#8598;"),w.ldots=f(Y,"\\ldots ","&#8230;"),w.cdots=f(Y,"\\cdots ","&#8943;"),w.vdots=f(Y,"\\vdots ","&#8942;"),w.ddots=f(Y,"\\ddots ","&#8945;"),w.surd=f(Y,"\\surd ","&#8730;"),w.triangle=f(Y,"\\triangle ","&#9651;"),w.ell=f(Y,"\\ell ","&#8467;"),w.top=f(Y,"\\top ","&#8868;"),w.flat=f(Y,"\\flat ","&#9837;"),w.natural=f(Y,"\\natural ","&#9838;"),w.sharp=f(Y,"\\sharp ","&#9839;"),w.wp=f(Y,"\\wp ","&#8472;"),w.bot=f(Y,"\\bot ","&#8869;"),w.clubsuit=f(Y,"\\clubsuit ","&#9827;"),w.diamondsuit=f(Y,"\\diamondsuit ","&#9826;"),w.heartsuit=f(Y,"\\heartsuit ","&#9825;"),w.spadesuit=f(Y,"\\spadesuit ","&#9824;"),w.parallelogram=f(Y,"\\parallelogram ","&#9649;"),w.square=f(Y,"\\square ","&#11036;"),w.oint=f(Y,"\\oint ","&#8750;"),w.bigcap=f(Y,"\\bigcap ","&#8745;"),w.bigcup=f(Y,"\\bigcup ","&#8746;"),w.bigsqcup=f(Y,"\\bigsqcup ","&#8852;"),w.bigvee=f(Y,"\\bigvee ","&#8744;"),w.bigwedge=f(Y,"\\bigwedge ","&#8743;"),w.bigodot=f(Y,"\\bigodot ","&#8857;"),w.bigotimes=f(Y,"\\bigotimes ","&#8855;"),w.bigoplus=f(Y,"\\bigoplus ","&#8853;"),w.biguplus=f(Y,"\\biguplus ","&#8846;"),w.lfloor=f(Y,"\\lfloor ","&#8970;"),w.rfloor=f(Y,"\\rfloor ","&#8971;"),w.lceil=f(Y,"\\lceil ","&#8968;"),w.rceil=f(Y,"\\rceil ","&#8969;"),w.opencurlybrace=w.lbrace=f(Y,"\\lbrace ","{"),w.closecurlybrace=w.rbrace=f(Y,"\\rbrace ","}"),w.lbrack=f(Y,"["),w.rbrack=f(Y,"]"),w.slash=f(Y,"/"),w.vert=f(Y,"|"),w.perp=w.perpendicular=f(Y,"\\perp ","&perp;"),w.nabla=w.del=f(Y,"\\nabla ","&nabla;"),w.hbar=f(Y,"\\hbar ","&#8463;"),w.AA=w.Angstrom=w.angstrom=f(Y,"\\text\\AA ","&#8491;"),w.ring=w.circ=w.circle=f(Y,"\\circ ","&#8728;"),w.bull=w.bullet=f(Y,"\\bullet ","&bull;"),w.setminus=w.smallsetminus=f(Y,"\\setminus ","&#8726;"),w["¬"]=w.neg=f(Y,"\\neg ","&not;"),w.not=h(Y,(function(e,t){e.suffixes={"\\equiv":"notequiv","\\ni":"notni","\\subset":"notsubset","\\subseteq":"notsubseteq","\\supset":"notsupset","\\supseteq":"notsupseteq"},e.init=function(){return t.init.call(this,"\\neg ","&not;")},e.parser=function(){var t=_.succeed,n=_.optWhitespace;return function e(t){var n=_.string(t.shift());return t.length?n.or(e(t)):n}(Object.keys(e.suffixes).sort((function(e,t){return t.length-e.length}))).then((function(r){return n.then(t(w[e.suffixes[r]]()))})).or(n.then(t(this)))}})),w["…"]=w.dots=w.ellip=w.hellip=w.ellipsis=w.hellipsis=f(Y,"\\dots ","&hellip;"),w.converges=w.darr=w.dnarr=w.dnarrow=w.downarrow=f(Y,"\\downarrow ","&darr;"),w.dArr=w.dnArr=w.dnArrow=w.Downarrow=f(Y,"\\Downarrow ","&dArr;"),w.diverges=w.uarr=w.uparrow=f(Y,"\\uparrow ","&uarr;"),w.uArr=w.Uparrow=f(Y,"\\Uparrow ","&uArr;"),w.to=f(V,"\\to ","&rarr;"),w.rarr=w.rightarrow=f(Y,"\\rightarrow ","&rarr;"),w.implies=f(V,"\\Rightarrow ","&rArr;"),w.rArr=w.Rightarrow=f(Y,"\\Rightarrow ","&rArr;"),w.gets=f(V,"\\gets ","&larr;"),w.larr=w.leftarrow=f(Y,"\\leftarrow ","&larr;"),w.impliedby=f(V,"\\Leftarrow ","&lArr;"),w.lArr=w.Leftarrow=f(Y,"\\Leftarrow ","&lArr;"),w.harr=w.lrarr=w.leftrightarrow=f(Y,"\\leftrightarrow ","&harr;"),w.iff=f(V,"\\Leftrightarrow ","&hArr;"),w.hArr=w.lrArr=w.Leftrightarrow=f(Y,"\\Leftrightarrow ","&hArr;"),w.Re=w.Real=w.real=f(Y,"\\Re ","&real;"),w.Im=w.imag=w.image=w.imagin=w.imaginary=w.Imaginary=f(Y,"\\Im ","&image;"),w.part=w.partial=f(Y,"\\partial ","&part;"),w.infty=w.infin=w.infinity=f(Y,"\\infty ","&infin;"),w.pounds=f(Y,"\\pounds ","&pound;"),w.alef=w.alefsym=w.aleph=w.alephsym=f(Y,"\\aleph ","&alefsym;"),w.xist=w.xists=w.exist=w.exists=f(Y,"\\exists ","&exist;"),w.nexists=w.nexist=f(Y,"\\nexists ","&#8708;"),w.and=w.land=w.wedge=f(V,"\\wedge ","&and;"),w.or=w.lor=w.vee=f(V,"\\vee ","&or;"),w.o=w.O=w.empty=w.emptyset=w.oslash=w.Oslash=w.nothing=w.varnothing=f(V,"\\varnothing ","&empty;"),w.cup=w.union=f(V,"\\cup ","&cup;"),w.cap=w.intersect=w.intersection=f(V,"\\cap ","&cap;"),w.deg=w.degree=f(Y,"°","&deg;"),w.ang=w.angle=f(Y,"\\angle ","&ang;"),w.measuredangle=f(Y,"\\measuredangle ","&#8737;"),w.sphericalangle=f(Y,"\\sphericalangle ","&#8738;");var me,ve,ye=s,be=document.createElement("div").style;for(var Ie in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(Ie in be){ve=Ie;break}ve?me=function(e,t,n){e.css(ve,"scale("+t+","+n+")")}:"filter"in be?(ye=function(e){e.className=e.className},me=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var o=setInterval(i);v(window).load((function(){clearTimeout(o),i()}))}):me=function(e,t,n){e.css("fontSize",n+"em")};var xe=h(H,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}})),we=h(ne,(function(e,t){e.symbols={C:"&#8450;",H:"&#8461;",N:"&#8469;",P:"&#8473;",Q:"&#8474;",R:"&#8477;",Z:"&#8484;"},e.init=function(e){var n=e;this.symbols[e]&&(n='<span class="mq-original">'+e+"</span>"+this.symbols[e]),t.init.call(this,e,n)}}));w.mathrm=f(xe,"\\mathrm","span",'class="mq-roman mq-font"'),w.mathit=f(xe,"\\mathit","i",'class="mq-font"'),w.mathbf=f(xe,"\\mathbf","b",'class="mq-font"'),w.mathsf=f(xe,"\\mathsf","span",'class="mq-sans-serif mq-font"'),w.mathtt=f(xe,"\\mathtt","span",'class="mq-monospace mq-font"'),w.mathbb=h(H,(function(e,t){e.init=function(){t.init.call(this,"\\mathbb",'<span class="mq-mathbb mq-font">&0</span>')},e.adopt=function(){return this.eachChild((function(e){if(!e.writeOverride){var t=e.write,n=e.deleteOutOf;e.write=e.writeOverride=function(n,r,i){var o;if(!we.prototype.symbols[r])return t.apply(e,arguments);o=we(r),i&&o.replaces(i),o.createLeftOf(n)},e.deleteOutOf=function(t,r){var i=[];return e.eachChild((function(t){var n=t.ctrlSeq;i.push(ne(n).adopt(e,e.ends[1],0)),t.remove()})),i.length&&(r[1]=i[0]),e.jQize().appendTo(e.jQ),n.apply(e,arguments)}}})),t.adopt.apply(this,arguments)},e.finalizeTree=function(){this.eachChild((function(e){e.eachChild((function(t){var n=t.ctrlSeq,r=ne;we.prototype.symbols[n]&&(r=we),r(n).adopt(e,e.ends[1],0),t.remove()})),e.jQize().appendTo(e.jQ)}))}})),w.underline=f(xe,"\\underline","span",'class="mq-non-leaf mq-underline"'),w.bar=f(xe,"\\bar","span",'class="mq-non-leaf mq-overline"'),w.overline=f(xe,"\\overline","span",'class="mq-non-leaf mq-overline"');var Ae=h(H,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span "+n+'><span class="mq-arrow-inner">&0</span></span>')}}));w.overrightarrow=f(Ae,"\\overrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),w.overleftarrow=f(Ae,"\\overleftarrow",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),w.overleftrightarrow=f(Ae,"\\overleftrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-leftright"'),w.underrightarrow=f(Ae,"\\underrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-right"'),w.underleftarrow=f(Ae,"\\underleftarrow",'class="mq-non-leaf mq-underarrow mq-arrow-left"'),w.underleftrightarrow=f(Ae,"\\underleftrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-leftright"');var Me=h(H,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&0</span><span class="mq-harpoons-harpoons">&#x21cc;</span></span>'})),Te=w.xrightleftharpoons=h(Me,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&1</span><span class="mq-harpoons-harpoons">&#x21cc;</span><span class="mq-harpoons-denominator">&0</span></span>',e.parser=function(){return G.optBlock.then((function(e){return G.block.map((function(t){var n=Te();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(G.block.map((function(e){var t=Me();return t.blocks=[e],e.adopt(t,0,0),t})))},e.latex=function(){return this.ctrlSeq+"["+this.ends[g].latex()+"]{"+this.ends[1].latex()+"}"}}));w.overarc=f(xe,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),w.dot=h(H,(function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}})),w.textcolor=h(H,(function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=_.optWhitespace,r=_.string,i=_.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then((function(n){return e.setColor(n),t.parser.call(e)}))},e.isStyleBlock=function(){return!0}})),w.class=h(H,(function(e,t){e.parser=function(){var e=this,n=_.string,r=_.regex;return _.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then((function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)}))},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}}));var Ee=h(H,(function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[g]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=g;t;t=t===g&&1)if(this[t]instanceof Ee){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())a=y(i,0,i.ends[g]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=y(i,o.ends[1],i.ends[g]);t===g?o.adopt(i,i.ends[1],0):o.adopt(i,0,i.ends[g])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[g]===this&&(1===t&&a?a[g]?e.insRightOf(a[g]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},N.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[g].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof q?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[g]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),W.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof q?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(g,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.text=function(){function e(e,t){var n=t&&t.text();return t?e+(1===n.length?n:"("+(n||" ")+")"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=v('<span class="mq-sup"/>').append(e.jQ.children()).attr(i,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=v('<span class="mq-sub"></span>').append(e.jQ.children()).attr(i,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,o){if(o.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var a=this.ends[i];this.children().disown().withDirAdopt(i,o.parent,o[i],o[-i]).jQ.insDirOf(-i,o.jQ),o[-i]=a}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=Ce,delete e[n].deleteOutOf,"sub"===t&&v(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(".mq-sup");if(n.length){var r=parseInt(n.css("font-size")),i=n.offset().top+n.height()-t.offset().top-.7*r,o=parseInt(n.css("margin-bottom"));n.css("margin-bottom",o+i)}}}}));function Ce(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}w.subscript=w._=h(Ee,(function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[g],this.sub.upOutOf=Ce,t.finalizeTree.call(this)}})),w.superscript=w.supscript=w["^"]=h(Ee,(function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^(",")"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=Ce,t.finalizeTree.call(this)}}));var Ne=h(H,(function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';q.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(re("n").createLeftOf(e),ge().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[g].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=_.string,t=_.optWhitespace,n=_.succeed,r=G.block,i=this,o=i.blocks=[W(),W()],a=0;a<o.length;a+=1)o[a].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then((function(e){var t=o["_"===e?0:1];return r.then((function(e){return e.children().adopt(t,t.ends[1],0),n(i)}))})).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[g],this.upInto=this.ends[1],this.ends[g].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[g]}}));w["∑"]=w.sum=w.summation=f(Ne,"\\sum ","&sum;"),w["∏"]=w.prod=w.product=f(Ne,"\\prod ","&prod;"),w.coprod=w.coproduct=f(Ne,"\\coprod ","&#8720;"),w["∫"]=w.int=w.integral=h(Ne,(function(e,t){e.init=function(){q.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=H.p.createLeftOf})),w.bigg=w.intsub=w.integralsubstitution=h(Ne,(function(e,t){e.init=function(){q.prototype.init.call(this,"\\bigg",'<span class="mq-intsub mq-non-leaf"><big>/</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=H.p.createLeftOf,e.parser=function(){var e=this,t=_.string,n=_.optWhitespace,r=_.succeed;e.blocks=[W(),W()];for(var i=0;i<e.blocks.length;i+=1)e.blocks[i].adopt(e,e.ends[1],0);return t("/_{").then(t("\\!").many()).then(G).then((function(t){return t.children().adopt(e.blocks[0],e.blocks[0].ends[1],0),r(e)})).then(n).then(t("}")).then(n).then(t("^")).then(G.block).then((function(t){return t.children().adopt(e.blocks[1],e.blocks[1].ends[1],0),r(e)}))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return"\\bigg/_{\\!\\!\\!\\!\\!"+e(this.blocks[0].latex())+"}^"+e(this.blocks[1].latex())}}));var Se=w.frac=w.dfrac=w.cfrac=w.fraction=h(H,(function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[g],this.downInto=this.ends[g].downOutOf=this.ends[1]}})),ke=w.over=A["/"]=h(Se,(function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[g];n&&!(n instanceof V||n instanceof(w.text||s)||n instanceof Ne||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[g];n instanceof Ne&&n[1]instanceof Ee&&(n=n[1])[1]instanceof Ee&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n===e[g]||e.isTooDeep(1)||(this.replaces(x(n[1]||e.parent.ends[g],e[g])),e[g]=n)}t.createLeftOf.call(this,e)}})),je=w.sqrt=w["√"]=h(H,(function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return G.optBlock.then((function(e){return G.block.map((function(t){var n=De();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;me(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}})),De=(w.hat=h(H,(function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]})),w.nthroot=h(je,(function(e,t){e.htmlTemplate='<span class="mq-nthroot mq-non-leaf">&0</span><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[g].latex()+"]{"+this.ends[1].latex()+"}"}}))),Le=h(H,(function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}}));function Oe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));me(this.delimjQs,o(1+.2*(e-1),1.2),1.2*e)}}w.vec=f(Le,"\\vec","&rarr;",["vec(",")"]),w.tilde=f(Le,"\\tilde","~",["tilde(",")"]);var Re=h(h(H,Oe),(function(e,t){e.init=function(e,n,r,i,o){t.init.call(this,"\\left"+i,void 0,[n,r]),this.side=e,this.sides={},this.sides[g]={ch:n,ctrlSeq:i},this.sides[1]={ch:r,ctrlSeq:o}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[g].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===g?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",t.html.call(this)},e.latex=function(){return"\\left"+this.sides[g].ctrlSeq+this.ends[g].latex()+"\\right"+this.sides[1].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof Re&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Pe[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[g].ch]===n.sides[1].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===g?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if("|"===this.sides[g].ch)var r=this.matchBrack(n,1,e[1])||this.matchBrack(n,g,e[g])||this.matchBrack(n,0,e.parent.parent);else r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&x(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(x(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===g?e.insAtLeftEnd(r.ends[g]):e.insRightOf(r)},e.placeCursor=s,e.unwrap=function(){this.ends[g].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],o=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var a=n.options,s=!this.side;if(this.side=-e,this.matchBrack(a,e,this.ends[g].ends[this.side])){this.closeOpposing(this.ends[g].ends[this.side]);var l=this.ends[g].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(a,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:Pe[this.sides[this.side].ch],ctrlSeq:Pe[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===g?0:1).addClass("mq-ghost").html(this.sides[e].ch)}i?(l=this.ends[g].ends[e],x(i,o,-e).disown().withDirAdopt(-e,this.ends[g],l,0).jQ.insAtDirEnd(e,this.ends[g].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)):t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[g])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[g].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===g?1:0).removeClass("mq-ghost"),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}})),Pe={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function ze(e,t){t=t||e;var n=Pe[e],r=Pe[t];A[e]=f(Re,g,e,n,t,r),A[n]=f(Re,1,e,n,t,r)}ze("("),ze("["),ze("{","\\{"),w.langle=f(Re,g,"&lang;","&rang;","\\langle ","\\rangle "),w.rangle=f(Re,1,"&lang;","&rang;","\\langle ","\\rangle "),A["|"]=f(Re,g,"|","|","|","|"),w.lVert=f(Re,g,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.rVert=f(Re,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.left=h(H,(function(e){e.parser=function(){var e=_.regex,t=_.string,n=(_.succeed,_.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then((function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),G.then((function(o){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map((function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=Re(0,i,t,r,e);return n.blocks=[o],o.adopt(n,0,0),n}))}))}))}})),w.right=h(H,(function(e){e.parser=function(){return _.fail("unmatched \\right")}}));var Ue=w.binom=w.binomial=h(h(H,Oe),(function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]}));w.choose=h(Ue,(function(e){e.createLeftOf=ke.prototype.createLeftOf})),w.editable=w.MathQuillMathField=h(H,(function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=_.string,r=_.regex,i=_.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map((function(t){e.name=t})).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=E(this.ends[g],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),U(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[g].controller))},e.latex=function(){return this.ends[g].latex()},e.text=function(){return this.ends[g].text()}}));var Be=w.embed=h(q,(function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=_.string,n=_.regex,r=_.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then((function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map((function(t){return e.setOptions(j[i](t))}))}))}})),_e={};w.begin=h(H,(function(e,t){e.parser=function(){var e=_.string,t=_.regex;return e("{").then(t(/^[a-z]+/i)).skip(e("}")).then((function(t){return(_e[t]?_e[t]().parser():_.fail("unknown environment type: "+t)).skip(e("\\end{"+t+"}"))}))}}));var Fe=h(H,(function(e,t){e.template=[["\\begin{","}"],["\\end{","}"]],e.wrappers=function(){return[e.template[0].join(this.environment),e.template[1].join(this.environment)]}})),Ge=_e.matrix=h(Fe,(function(e,t){var n="\\\\";e.parentheses={left:null,right:null},e.environment="matrix",e.reflow=function(){var e=this.jQ.children("table"),t=e.outerHeight()/+e.css("fontSize").slice(0,-2),n=this.jQ.children(".mq-paren");n.length&&me(n,o(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e,t=this.hline,n="";this.eachChild((function(r){void 0!==e&&(e!==r.row?(n+="\\\\\n",t&&(n+="\\hline\n",t=!1)):n+="&"),e=r.row,n+=r.latex()}));var r=this.options?"{"+this.options+"}":"";return this.wrappers().join(r+"\n"+n+"\n")},e.html=function(){var e,n=[],r="",i=0;function o(e){return e?'<span class="mq-scaled mq-paren">'+e+"</span>":""}return this.eachChild((function(t){e!==t.row&&(e=t.row,r+="<tr>$tds</tr>",n[e]=[]),n[e].push("<td>&"+i+++"</td>")})),this.htmlTemplate='<span class="mq-matrix mq-matrix-'+this.environment+' mq-non-leaf">'+o(this.parentheses.left)+'<table class="mq-non-leaf">'+r.replace(/\$tds/g,(function(){return n.shift().join("")}))+"</table>"+o(this.parentheses.right)+"</span>",t.html.call(this)},e.createBlocks=function(){this.blocks=[Ze(0,this),Ze(0,this),Ze(1,this),Ze(1,this)]},e.parser=function(){var e=this,t=_.optWhitespace,r=_.string;return(0,_.regex)(/^({[clr](\|?[clr])*})?/).then((function(t){return t&&!e.options&&(e.options=t.slice(1,-1)),_.succeed(e)})).then(t.then(r("&").or(r(n)).or(r("\\hline")).or(G.block)).many()).skip(t).then((function(t){var r=[],i=0;function o(){e.blocks.push(Ze(i,e,r)),r=[]}e.blocks=[];for(var a=0;a<t.length;a+=1)t[a]instanceof W?r.push(t[a]):"\\hline"===t[a]?e.hline=!0:(o(),t[a]===n&&(i+=1));return o(),e.autocorrect(),_.succeed(e)}))},e.finalizeTree=function(){var e=this.jQ.find("table");e.toggleClass("mq-rows-1",1===e.find("tr").length),this.relink()},e.relink=function(){for(var e,t,n,r=this.blocks,i=[],o=0;o<r.length;o+=1)e!==(n=r[o]).row&&(i[e=n.row]=[],t=0),i[e][t]=n,n[1]=r[o+1],n[g]=r[o-1],i[e-1]&&i[e-1][t]&&(n.upOutOf=i[e-1][t],i[e-1][t].downOutOf=n),t+=1;this.ends[g]=r[0],this.ends[1]=r[r.length-1]},e.autocorrect=function(e){var t,n,r,i,o,a=[],s=(e=[],this.blocks);for(o=0;o<s.length;o+=1)e[i=s[o].row]=e[i]||[],e[i].push(s[o]),a[i]=e[i].length;if((t=Math.max.apply(null,a))!==Math.min.apply(null,a)){for(o=0;o<e.length;o+=1)for(n=t-e[o].length;n;)r=t*o+e[o].length,s.splice(r,0,Ze(o,this)),n-=1;this.relink()}},e.deleteCell=function(e){var t,n,r=[],i=[],o=[],a=[],s=this.blocks;function l(e){for(var t=[],n=0;n<e.length;n+=1)e[n].isEmpty()&&t.push(e[n]);return t.length===e.length}function c(e){for(var t=0;t<e.length;t+=1)s.indexOf(e[t])>-1&&(e[t].remove(),s.splice(s.indexOf(e[t]),1))}this.eachChild((function(s){t!==s.row&&(t=s.row,r[t]=[],n=0),i[n]=i[n]||[],i[n].push(s),r[t].push(s),s===e&&(o=r[t],a=i[n]),n+=1})),l(o)&&a.length>1&&(t=r.indexOf(o),this.eachChild((function(e){e.row>t&&(e.row-=1)})),c(o),this.jQ.find("tr").eq(t).remove()),l(a)&&o.length>1&&c(a),this.finalizeTree()},e.addRow=function(e){var t,n=[],r=[],o=[],a=v("<tr></tr>"),s=e.row,l=0;this.eachChild((function(e){e.row<=s&&n.push(e),e.row===s&&(l+=1),e.row>s&&(e.row+=1,o.push(e))}));for(var c=0;c<l;c+=1)(t=Ze(s+1)).parent=this,r.push(t),t.jQ=v('<td class="mq-empty">').attr(i,t.id).appendTo(a);return this.jQ.find("tr").eq(s).after(a),this.blocks=n.concat(r,o),r[0]},e.addColumn=function(e){var t,n,r=[],o=[];this.eachChild((function(n){r[n.row]=r[n.row]||[],r[n.row].push(n),n===e&&(t=r[n.row].length)}));for(var a=0;a<r.length;a+=1)(n=Ze(a)).parent=this,o.push(n),r[a].splice(t,0,n),n.jQ=v('<td class="mq-empty">').attr(i,n.id);return this.jQ.find("tr").each((function(e){v(this).find("td").eq(t-1).after(r[e][t].jQ)})),this.blocks=[].concat.apply([],r),o[e.row]},e.insert=function(e,t){var n=this[e](t);this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble("reflow").cursor.insAtRightEnd(n)},e.backspace=function(e,t,n,r){var i=e[t];if(e.isEmpty()){for(this.deleteCell(e);i&&i[t]&&-1===this.blocks.indexOf(i);)i=i[t];i&&n.insAtDirEnd(-t,i),1===this.blocks.length&&this.blocks[0].isEmpty()&&(r(),this.finalizeTree()),this.bubble("edited")}}}));_e.pmatrix=h(Ge,(function(e,t){e.environment="pmatrix",e.parentheses={left:"(",right:")"}})),_e.bmatrix=h(Ge,(function(e,t){e.environment="bmatrix",e.parentheses={left:"[",right:"]"}})),_e.Bmatrix=h(Ge,(function(e,t){e.environment="Bmatrix",e.parentheses={left:"{",right:"}"}})),_e.vmatrix=h(Ge,(function(e,t){e.environment="vmatrix",e.parentheses={left:"|",right:"|"}})),_e.Vmatrix=h(Ge,(function(e,t){e.environment="Vmatrix",e.parentheses={left:"&#8214;",right:"&#8214;"}})),_e.cases=h(Ge,(function(e,t){e.environment="cases",e.parentheses={left:"{",right:null}})),_e.array=h(Ge,(function(e,t){e.environment="array",e.parentheses={left:null,right:null},e.hline=!0,e.options="l|l"}));var Ze=h(W,(function(e,t){e.init=function(e,n,r){if(t.init.call(this),this.row=e,n&&this.adopt(n,n.ends[1],0),r)for(var i=0;i<r.length;i++)r[i].children().adopt(this,this.ends[1],0)},e.keystroke=function(e,n,r){switch(e){case"Tab":var i,o=this,a=0;if(this.parent.eachChild((function(e){e.row===o.row&&(e===o&&(i=a),a+=1)})),i===a-1)return n.preventDefault(),this.parent.insert("addColumn",this);break;case"Enter":var s,l=this.row+1,c=!0;if(this.parent.eachChild((function(e){e.row===l&&(s||(s=e),e.isEmpty()||(c=!1))})),n.preventDefault(),s&&c){r.cursor.insAtDirEnd(g,s);break}return this.parent.insert("addRow",this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,(function(){return t.deleteOutOf.apply(r,i)}))}})),He=(A["\\"]=h(H,(function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[g].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[g].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[g].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Y(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[g].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",(function(e){return v(e.target=n).trigger(e),!1})).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[g].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[g].latex();t||(t=" ");var n=w[t]||_e[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=J()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}})),P(1));for(var qe in He)!function(e,t){"function"==typeof t?(L[e]=function(){return D(),t.apply(this,arguments)},L[e].prototype=t.prototype):L[e]=t}(qe,He[qe]);"object"==typeof e.exports&&(e.exports=L)}()},5970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"20px",height:"20px",viewBox:"0 0 20 20",enableBackground:"new 0 0 20 20",xmlSpace:"preserve",children:(0,r.jsx)("path",{fill:"#359BB7",d:"M10,20C4.48,20,0,15.52,0,10C0,4.48,4.48,0,10,0s10,4.48,10,10C20,15.52,15.52,20,10,20z M5.57,5.88\n\tc-0.14,0.21-0.09,0.5,0.11,0.66l1.4,1.06c0.21,0.16,0.51,0.12,0.67-0.09c0.72-0.91,1.21-1.44,2.31-1.44c0.82,0,1.84,0.53,1.84,1.33\n\tc0,0.6-0.5,0.91-1.31,1.37c-0.95,0.53-2.2,1.19-2.2,2.85v0.16c0,0.27,0.22,0.48,0.48,0.48h2.26c0.27,0,0.48-0.22,0.48-0.48v-0.05\n\tc0-1.15,3.35-1.2,3.35-4.3c0-2.34-2.43-4.11-4.7-4.11C8.07,3.31,6.67,4.23,5.57,5.88z M8.15,15.16c0,1.02,0.83,1.85,1.85,1.85\n\ts1.85-0.83,1.85-1.85s-0.83-1.85-1.85-1.85S8.15,14.14,8.15,15.16z"})})};const r=n(1085)},6003:e=>{"use strict";e.exports=t},6069:(e,t,n)=>{"use strict";let r=n(8952),i=n(3215);class o extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,o=e=>e,a=e=>e;if(e){let{bold:e,gray:t,red:s}=r.createColors(!0);o=t=>e(s(t)),n=e=>t(e),i&&(a=e=>i(e))}let s=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length;return s.slice(l,c).map(((e,t)=>{let r=l+1+t,i=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,s),c=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(i)+a(l)+"\n "+c+o("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+a(e)+"\n "+t+o("^")}return" "+n(i)+a(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},6075:(e,t,n)=>{"use strict";var r=n(4345),i=n(2327),o=n(5400),a=n(3201),s=n(4195),l=n(2830),c=n(7590),u=n(2729),d={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p,h={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(p=n(8427)),p),transformRequest:[function(e,t){i(t,"Accept"),i(t,"Content-Type");var n,o=t&&t["Content-Type"]||"",a=o.indexOf("application/json")>-1,c=r.isObject(e);if(c&&r.isHTMLForm(e)&&(e=new FormData(e)),r.isFormData(e))return a?JSON.stringify(u(e)):e;if(r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(c){if(-1!==o.indexOf("application/x-www-form-urlencoded"))return l(e,this.formSerializer).toString();if((n=r.isFileList(e))||o.indexOf("multipart/form-data")>-1){var d=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,d&&new d,this.formSerializer)}}return c||a?(f(t,"application/json"),function(e){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&r.isString(e)&&(n&&!this.responseType||i)){var a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.classes.FormData,Blob:c.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(d)})),e.exports=h},6135:(e,t,n)=>{"use strict";var r=n(4345),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.slice(0,o)).toLowerCase(),n=r.trim(e.slice(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},6178:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},6194:e=>{"use strict";e.exports=FormData},6403: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(8642),t),i(n(5517),t),i(n(6178),t),i(n(1467),t),i(n(8052),t),i(n(3698),t),i(n(1206),t);var o=n(1138);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},6435:(e,t,n)=>{"use strict";var r=n(5400);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},6439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var r,i,o,a=n(3379);function s(e){return e===r.Space||e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function l(e){return e===r.Slash||e===r.Gt||s(e)}function c(e){return e>=r.Zero&&e<=r.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(r||(r={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(o=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,r=void 0!==n&&n,o=e.decodeEntities,s=void 0===o||o;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===r.Gt||s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var n=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=n}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===u.TitleEnd?this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===r.Lt)},e.prototype.stateCDATASequence=function(e){e===u.Cdata[this.sequenceIndex]?++this.sequenceIndex===u.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=u.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!l(e):function(e){return e>=r.LowerA&&e<=r.LowerZ||e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===r.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===r.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===r.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(e===r.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===r.Gt||s(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===r.Slash?this.state=i.InSelfClosingTag:s(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):s(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===r.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===r.Eq?this.state=i.BeforeAttributeValue:e===r.Slash||e===r.Gt?(this.cbs.onattribend(o.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(o.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===r.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):s(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===r.DoubleQuote?o.Double:o.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||e===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(o.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===r.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===r.Dash?(this.state=i.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===r.Number?this.state=i.BeforeNumericEntity:e===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===r.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===r.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===i.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,a.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):function(e){return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:this.stateText(e);break;case i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case i.InSpecialTag:this.stateInSpecialTag(e);break;case i.CDATASequence:this.stateCDATASequence(e);break;case i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case i.InAttributeName:this.stateInAttributeName(e);break;case i.InCommentLike:this.stateInCommentLike(e);break;case i.InSpecialComment:this.stateInSpecialComment(e);break;case i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case i.InTagName:this.stateInTagName(e);break;case i.InClosingTagName:this.stateInClosingTagName(e);break;case i.BeforeTagName:this.stateBeforeTagName(e);break;case i.AfterAttributeName:this.stateAfterAttributeName(e);break;case i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case i.InDeclaration:this.stateInDeclaration(e);break;case i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case i.BeforeComment:this.stateBeforeComment(e);break;case i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case i.InNamedEntity:this.stateInNamedEntity(e);break;case i.BeforeEntity:this.stateBeforeEntity(e);break;case i.InHexEntity:this.stateInHexEntity(e);break;case i.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()||this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();t.default=d},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,t,n)=>{const r=o.current.at(a.current);if(e===(null==r?void 0:r.content))return;const i={content:e,caretPositionBeforeChange:t,caretPositionAfterChange:n},c=[...o.current.slice(0,a.current+1),i];s(c),l(c.length-1)},clear:()=>{s([{content:""}]),l(0)},undo:()=>{var e,t,n;const r=a.current-1;if(r<0)return;const i=null!==(t=null===(e=o.current.at(a.current))||void 0===e?void 0:e.caretPositionBeforeChange)&&void 0!==t?t:0,s=o.current.at(r);return l(r),{content:null!==(n=null==s?void 0:s.content)&&void 0!==n?n:"",newCaretPosition:i}},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),{content:null==t?void 0:t.content,newCaretPosition:null==t?void 0:t.caretPositionAfterChange}}}};const r=n(5442)},6552:(e,t,n)=>{"use strict";var r=n(9978).version,i=n(5400),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],c=void 0===l||s(l,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},6593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},6660:(e,t,n)=>{e.exports=n(8226)},6825:(e,t,n)=>{"use strict";let r=n(2780),i=n(2767);class o extends r{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=o,o.default=o,r.registerRule(o)},6848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"30",height:"30",viewBox:"0 0 30 30",children:[(0,r.jsxs)("defs",{children:[(0,r.jsx)("clipPath",{id:"clip-path",children:(0,r.jsx)("path",{d:"M141.57-89.324v-2.34H143.2v2.34A2.3,2.3,0,0,1,140.9-87.03H130.1a2.3,2.3,0,0,1-2.292-2.294v-17.029a2.294,2.294,0,0,1,2.292-2.292h10.8a2.3,2.3,0,0,1,2.295,2.292v2.342H141.57v-2.342a.669.669,0,0,0-.67-.667H130.1a.667.667,0,0,0-.667.667v17.029a.668.668,0,0,0,.667.669h10.8A.67.67,0,0,0,141.57-89.324Zm3.271-13.579a1.069,1.069,0,0,1,1.825-.755l5.065,5.065a1.065,1.065,0,0,1,0,1.511l-5.065,5.067a1.07,1.07,0,0,1-1.825-.757v-2.412h-6.633a2.3,2.3,0,0,1-2.3-2.3v-.7a2.3,2.3,0,0,1,2.3-2.3h6.633V-102.9",fill:"none","clip-rule":"evenodd"})}),(0,r.jsx)("clipPath",{id:"clip-path-2",children:(0,r.jsx)("ellipse",{cx:"10",cy:"-29.606",rx:"15",ry:"14.933",fill:"none"})})]}),(0,r.jsx)("title",{children:"closeButton"}),(0,r.jsx)("rect",{width:"30",height:"30",fill:"#fff",opacity:"0"}),(0,r.jsx)("line",{x1:"25",y1:"5",x2:"5",y2:"25",fill:"none",stroke:"#6d6d6d","stroke-miterlimit":"10","stroke-width":"3"}),(0,r.jsx)("line",{x1:"5",y1:"5",x2:"25",y2:"25",fill:"none",stroke:"#6d6d6d","stroke-miterlimit":"10","stroke-width":"3"})]})};const r=n(1085)},6923:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6945:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},6999:(e,t,n)=>{"use strict";var r=n(6848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},7078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function r(e){for(var r,i="",o=0;null!==(r=t.xmlReplacer.exec(e));){var a=r.index,s=e.charCodeAt(a),l=n.get(s);void 0!==l?(i+=e.substring(o,a)+l,o=a+1):(i+="".concat(e.substring(o,a),"&#x").concat((0,t.getCodePoint)(e,a).toString(16),";"),o=t.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+e.substr(o)}function i(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))},7107:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},7120:(e,t)=>{"use strict";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.module.reference")},7204: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=n(6003),s=r(n(3864)),l=r(n(1198)),c=r(n(2373)),u=r(n(1372)),d=n(4141),f=n(7772),p=n(2127),h=n(2959),g=(0,o.forwardRef)(((e,t)=>{const{toolbarRoot:n,ariaInvalid:r,ariaLabelledBy:s,questionId:g,editorStyle:v,className:y,id:b,lang:I}=e,x=(0,c.default)(),w=(0,o.useRef)(0);(0,o.useImperativeHandle)(t,(()=>({setValue:e=>{x.ref.current&&(x.ref.current.innerHTML=e),setTimeout((()=>{x.initMathImages(),setTimeout((()=>{x.onAnswerChange(w.current)}),0)}),0)}})));const A=e=>()=>{var t;if(x.ref.current!==document.activeElement)return;const n=null===(t=x.ref.current)||void 0===t?void 0:t.innerHTML,r=e();if(void 0===r)return;const{content:i,newCaretPosition:o}=r;x.ref.current&&i!==n&&(x.ref.current.innerHTML=null!=i?i:"",setTimeout((()=>{x.initMathImages(),setTimeout((()=>{x.ref.current&&o&&(0,p.setCaretPosition)(x.ref.current,o),x.onAnswerChange(o,!1)}),0)}),0))};return(0,h.useKeyboardEventListener)("z",!1,(e=>{(null==e?void 0:e.metaKey)&&(e.preventDefault(),e.stopPropagation())}),!1),(0,h.useKeyboardEventListener)("z",!0,A(x.undoEditor)),(0,h.useKeyboardEventListener)("y",!0,A(x.redoEditor)),(0,h.useKeyboardEventListener)("e",!0,(e=>{x.ref.current===document.activeElement&&(null==e||e.preventDefault(),x.spawnMathEditorAtCursor())})),(0,o.useEffect)((()=>{const e=x.ref.current;if(!e)return;const t=e=>{"insertFromDrop"!==e.inputType&&"deleteByDrag"!==e.inputType||(e.preventDefault(),e.stopPropagation())};return e.addEventListener("beforeinput",t),()=>{e.removeEventListener("beforeinput",t)}}),[]),(0,i.jsxs)(i.Fragment,{children:[n&&x.isToolbarOpen&&(0,a.createPortal)((0,i.jsx)(u.default,{}),n),x.isHelpDialogOpen&&(0,i.jsx)(d.HelpDialog,{}),(0,i.jsx)(m,{ref:x.ref,id:b,"aria-invalid":r,"aria-labelledby":s,"aria-multiline":!0,className:(0,l.default)("rich-text-editor answer",y),contentEditable:!0,"data-question-id":g,"data-testid":"rich-text-editor",lang:I,onBlur:function(e){(null==n?void 0:n.contains(e.relatedTarget))||x.hideToolbar()},onFocus:x.showToolbar,onInput:e=>{const t=e.nativeEvent.inputType;"historyUndo"===t?(A(x.undoEditor)(),e.preventDefault(),e.stopPropagation()):"historyRedo"===t&&(A(x.redoEditor)(),e.preventDefault(),e.stopPropagation()),x.onAnswerChange(w.current)},onKeyDown:e=>{w.current=(0,p.getCaretPosition)(x.ref.current),"e"===e.key.toLowerCase()&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),x.spawnMathEditorAtCursor())},onMouseDown:e=>{w.current=(0,p.getCaretPosition)(x.ref.current)},onPaste:async function(e){var t;e.preventDefault(),e.stopPropagation();const n=e.nativeEvent.clipboardData;if(!n)return;const r=null===(t=Array.from(n.items).at(-1))||void 0===t?void 0:t.getAsFile(),i=n.getData("text/html"),o=n.getData("text/plain"),a=r?"file":i?"html":"text";if(r&&x.allowedFileTypes.includes(r.type))try{const e=await x.handlePastedImage(r),t=document.createElement("img");t.src=e,document.execCommand("insertHTML",!1,(0,f.sanitize)(t.outerHTML))}catch(e){return void console.error("Error while pasting a file",e)}else i?document.execCommand("insertHTML",!1,(0,f.sanitize)(i)):o&&document.execCommand("insertHTML",!1,o);setTimeout((()=>{x.initMathImages(),"html"===a&&x.persistValidImages(),setTimeout((()=>{x.onAnswerChange(w.current)}),0)}),0)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{e.preventDefault(),e.stopPropagation()},spellCheck:!1,style:v,role:"textbox"}),null!==x.mathEditorPortal?(0,i.jsx)(o.Fragment,{children:x.mathEditorPortal[1]}):null]})})),m=s.default.div`
220
+ `},4195:(e,t,n)=>{"use strict";var r=n(4345),i=n(5400),o=n(285);function a(e){return r.isPlainObject(e)||r.isArray(e)}function s(e){return r.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,n){return e?e.concat(t).map((function(e,t){return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var c=r.toFlatObject(r,{},null,(function(e){return/^is[A-Z]/.test(e)}));e.exports=function(e,t,n){if(!r.isObject(e))throw new TypeError("target must be an object");t=t||new(o||FormData);var u,d=(n=r.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!r.isUndefined(t[e])}))).metaTokens,f=n.visitor||v,p=n.dots,h=n.indexes,g=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(u=t)&&r.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator];if(!r.isFunction(f))throw new TypeError("visitor must be a function");function m(e){if(null===e)return"";if(r.isDate(e))return e.toISOString();if(!g&&r.isBlob(e))throw new i("Blob is not supported. Use a Buffer instead.");return r.isArrayBuffer(e)||r.isTypedArray(e)?g&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function v(e,n,i){var o=e;if(e&&!i&&"object"==typeof e)if(r.endsWith(n,"{}"))n=d?n:n.slice(0,-2),e=JSON.stringify(e);else if(r.isArray(e)&&function(e){return r.isArray(e)&&!e.some(a)}(e)||r.isFileList(e)||r.endsWith(n,"[]")&&(o=r.toArray(e)))return n=s(n),o.forEach((function(e,i){!r.isUndefined(e)&&null!==e&&t.append(!0===h?l([n],i,p):null===h?n:n+"[]",m(e))})),!1;return!!a(e)||(t.append(l(i,n,p),m(e)),!1)}var y=[],b=Object.assign(c,{defaultVisitor:v,convertValue:m,isVisitable:a});if(!r.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!r.isUndefined(n)){if(-1!==y.indexOf(n))throw Error("Circular reference detected in "+i.join("."));y.push(n),r.forEach(n,(function(n,o){!0===(!(r.isUndefined(n)||null===n)&&f.call(t,n,r.isString(o)?o.trim():o,i,b))&&e(n,i?i.concat(o):[o])})),y.pop()}}(e),t}},4291: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};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var a=o(n(6439)),s=n(3379),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),f=new Set(["rt","rp"]),p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",f],["rp",f],["tbody",u],["tfoot",u]]),h=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),g=new Set(["math","svg"]),m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),v=/\s|\//,y=function(){function e(e,t){var n,r,i,o,s;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:a.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,s.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&h.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&p.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),g.has(e)?this.foreignContext.push(!0):m.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,s;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(g.has(l)||m.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,s.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===a.QuoteType.Double?'"':e===a.QuoteType.Single?"'":e===a.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(v),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,s,l,c,u,d,f;this.endIndex=t;var p=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,p),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(p,"]]")),null===(f=(d=this.cbs).oncommentend)||void 0===f||f.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=y},4345:(e,t,n)=>{"use strict";var r,i=n(5063),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return"number"==typeof e}function f(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),g=s("File"),m=s("Blob"),v=s("FileList");function y(e){return"[object Function]"===o.call(e)}var b=s("URLSearchParams");function I(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var x,w,A=(x="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return x&&e instanceof x}),M=s("HTMLFormElement"),T=(w=Object.prototype.hasOwnProperty,function(e,t){return w.call(e,t)});e.exports={isArray:l,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:d,isObject:f,isPlainObject:p,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:c,isDate:h,isFile:g,isBlob:m,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:I,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):l(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)I(arguments[r],n);return t},extend:function(e,t,n){return I(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,a,s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!d(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:A,isFileList:v,forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:T}},4651:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,g=h.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,I={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in I)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var A="3.7.1",M=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:A,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,a[t]=T.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(A+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e)||(t=a(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||h.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=T.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?T.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!M.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var N=o.pop,S=o.sort,k=o.splice,j="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(L,O)};var R=b,P=c;!function(){var e,t,n,i,a,l,c,d,f,h,g=P,v=T.expando,y=0,b=0,I=ee(),x=ee(),w=ee(),A=ee(),M=function(e,t){return e===t&&(a=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+j+"*("+L+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+j+"*\\]",z=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",U=new RegExp(j+"+","g"),B=new RegExp("^"+j+"*,"+j+"*"),_=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),F=new RegExp(j+"|>"),G=new RegExp(z),Z=new RegExp("^"+L+"$"),H={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,W=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},K=fe((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(R.childNodes),R.childNodes),o[R.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,s.call(t))},call:function(e){P.apply(e,s.call(arguments,1))}}}function $(e,t,n,r){var i,o,a,s,c,u,p,h=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,d)){if(11!==y&&(c=V.exec(e)))if(i=c[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(h&&(a=h.getElementById(i))&&$.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(A[e+" "]||f&&f.test(e))){if(p=e,h=t,1===y&&(F.test(e)||_.test(e))){for((h=W.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=T.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);p=u.join(",")}try{return g.apply(n,h.querySelectorAll(p)),n}catch(t){A(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(D,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return C(t,"input")&&t.type===e}}function ie(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:R;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,d=!T.isXMLDoc(l),h=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",X),m.getById=ne((function(e){return c.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),m.disconnectedMatch=ne((function(e){return h.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(Q,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Q,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},f=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+j+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")})),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),M=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==R&&$.contains(R,e)?-1:t===l||t.ownerDocument==R&&$.contains(R,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),d&&!A[t+" "]&&(!f||!f.test(t)))try{var n=h.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),S.call(e,M),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)k.call(e,n[r],1)}return i=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,J),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return H.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&I(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=$.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,I=!1;if(g){if(o){for(;h;){for(d=t;d=d[h];)if(s?C(d,m):1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&b){for(I=(f=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[h]||(I=f=0)||p.pop();)if(1===d.nodeType&&++I&&d===t){u[e]=[y,f,I];break}}else if(b&&(I=f=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===I)for(;(d=++f&&d&&d[h]||(I=f=0)||p.pop())&&(!(s?C(d,m):1===d.nodeType)||!++I||(b&&((u=d[v]||(d[v]={}))[e]=[y,I]),d!==t)););return(I-=i)===r||I%r==0&&I/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=u.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(D,"$1"));return r[v]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return $(e,t).length>0}})),contains:te((function(e){return e=e.replace(Q,J),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return Z.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(Q,J).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return q.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function ue(e,n){var r,i,o,a,s,l,c,u=x[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in r&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=_.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(D," ")}),s=s.slice(r.length)),t.filter)!(i=H[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?$.error(e):x(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function fe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),i&&C(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,o)),te((function(o,a,s,l){var c,d,f,p,h=[],m=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)$(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:he(y,h,e,s,l);if(n?n(b,p=i||(o?e:v||r)?[]:a,s,l):p=b,r)for(c=he(p,m),r(c,[],s,l),d=c.length;d--;)(f=c[d])&&(p[m[d]]=!(b[m[d]]=f));if(o){if(i||e){if(i){for(c=[],d=p.length;d--;)(f=p[d])&&c.push(b[d]=f);i(null,p=[],c,l)}for(d=p.length;d--;)(f=p[d])&&(c=i?u.call(o,f):h[d])>-1&&(o[c]=!(a[c]=f))}}else p=he(p===a?p.splice(v,p.length):p),i?i(null,a,p,l):g.apply(a,p)}))}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=fe((function(e){return e===r}),l,!0),f=fe((function(e){return u.call(r,e)>-1}),l,!0),p=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):f(e,t,i));return r=null,o}];c<a;c++)if(i=t.relative[e[c].type])p=[fe(pe(p),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&pe(p),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(D,"$1"),i,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}p.push(i)}return pe(p)}function ve(e,r){var i,o=[],a=[],s=w[e+" "];if(!s){for(r||(r=ue(e)),i=r.length;i--;)(s=me(r[i]))[v]?o.push(s):a.push(s);s=w(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,c,u,f){var p,h,m,v=0,b="0",I=a&&[],x=[],w=n,A=a||o&&t.find.TAG("*",f),M=y+=null==w?1:Math.random()||.1,E=A.length;for(f&&(n=s==l||s||f);b!==E&&null!=(p=A[b]);b++){if(o&&p){for(h=0,s||p.ownerDocument==l||(le(p),c=!d);m=e[h++];)if(m(p,s||l,c)){g.call(u,p);break}f&&(y=M)}i&&((p=!m&&p)&&v--,a&&I.push(p))}if(v+=b,i&&b!==v){for(h=0;m=r[h++];)m(I,x,s,c);if(a){if(v>0)for(;b--;)I[b]||x[b]||(x[b]=N.call(u));x=he(x)}g.apply(u,x),f&&!a&&x.length>0&&v+r.length>1&&T.uniqueSort(u)}return f&&(y=M,n=w),I};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,c,u="function"==typeof e&&e,f=!i&&ue(e=u.selector||e);if(r=r||[],1===f.length){if((a=f[0]=f[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Q,J),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=H.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(i=c(s.matches[0].replace(Q,J),W.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(u||ve(e,f))(i,n,!d,r,!n||W.test(e)&&se(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(M).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=$,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,$.compile=ve,$.select=ye,$.setDocument=le,$.tokenize=ue,$.escape=T.escapeSelector,$.getText=T.text,$.isXML=T.isXMLDoc,$.selectors=T.expr,$.support=T.support,$.uniqueSort=T.uniqueSort}();var z=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},U=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},B=T.expr.match.needsContext,_=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&B.test(e)?T(e):e||[],!1).length}});var G,Z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||G,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Z.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),_.test(r[1])&&T.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,G=T(b);var H=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function Y(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&T(e);if(!B.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return z(e,"parentNode")},parentsUntil:function(e,t,n){return z(e,"parentNode",n)},next:function(e){return Y(e,"nextSibling")},prev:function(e){return Y(e,"previousSibling")},nextAll:function(e){return z(e,"nextSibling")},prevAll:function(e){return z(e,"previousSibling")},nextUntil:function(e,t,n){return z(e,"nextSibling",n)},prevUntil:function(e,t,n){return z(e,"previousSibling",n)},siblings:function(e){return U((e.parentNode||{}).firstChild,e)},children:function(e){return U(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&(q[e]||T.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}}));var V=/[^\x20\t\r\n\f]+/g;function W(e){return e}function Q(e){throw e}function J(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(V)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){T.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==w(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?i?c.call(r,a(o,t,W,i),a(o,t,Q,i)):(o++,c.call(r,a(o,t,W,i),a(o,t,Q,i),a(o,t,W,t.notifyWith))):(n!==W&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,u.error),e+1>=o&&(n!==Q&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),r.setTimeout(u))}}return T.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:W,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:W)),t[2][3].add(a(0,r,v(n)?n:Q))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},o={};return T.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=T.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(J(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)J(i[n],a(n),o.reject);return o.promise()}});var X=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&X.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){r.setTimeout((function(){throw e}))};var K=T.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),r.removeEventListener("load",$),T.ready()}T.fn.ready=function(e){return K.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",$),r.addEventListener("load",$));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===w(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(V)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){T.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:T.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+fe+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return T.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===T.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&pe.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var Ie={};function xe(e){var t,n=e.ownerDocument,r=e.nodeName,i=Ie[r];return i||(t=n.body.appendChild(n.createElement(r)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Ie[r]=i,i)}function we(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=xe(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}T.fn.extend({show:function(){return we(this,!0)},hide:function(){return we(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var Ae,Me,Te=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;Ae=b.createDocumentFragment().appendChild(b.createElement("div")),(Me=b.createElement("input")).setAttribute("type","radio"),Me.setAttribute("checked","checked"),Me.setAttribute("name","t"),Ae.appendChild(Me),m.checkClone=Ae.cloneNode(!0).cloneNode(!0).lastChild.checked,Ae.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ae.cloneNode(!0).lastChild.defaultValue,Ae.innerHTML="<option></option>",m.option=!!Ae.lastChild;var Ne={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?T.merge([e],n):n}function ke(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Ne.tbody=Ne.tfoot=Ne.colgroup=Ne.caption=Ne.thead,Ne.th=Ne.td,m.option||(Ne.optgroup=Ne.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function De(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===w(o))T.merge(f,o.nodeType?[o]:o);else if(je.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Ee.exec(o)||["",""])[1].toLowerCase(),l=Ne[s]||Ne._default,a.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(c=me(o),a=Se(d.appendChild(o),"script"),c&&ke(a),n)for(u=0;o=a[u++];)Ce.test(o.type||"")&&n.push(o);return d}var Le=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Re(){return!1}function Pe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Pe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Re;else if(!i)return e;return 1===o&&(a=i,i=function(e){return T().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function ze(e,t,n){n?(se.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===se.get(e,t)&&T.event.add(e,t,Oe)}T.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(ge,i),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(V)||[""]).length;c--;)p=g=(s=Le.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),T.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(V)||[""]).length;c--;)if(p=g=(s=Le.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,r,!0);T.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=T.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?T(i,this).index(c)>-1:T.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&ze(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&C(t,"input")&&ze(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&C(t,"input")&&se.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Re,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Re,isPropagationStopped:Re,isImmediatePropagationStopped:Re,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(ze(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return ze(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return Pe(this,e,t,n,r)},one:function(e,t,n,r){return Pe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Re),this.each((function(){T.event.remove(this,e,n,t)}))}});var Ue=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)T.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=T.extend({},o),le.set(t,a))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ye(e,t,n,r){t=l(t);var i,o,a,s,c,u,d=0,f=e.length,p=f-1,h=t[0],g=v(h);if(g||f>1&&"string"==typeof h&&!m.checkClone&&Be.test(h))return e.each((function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),Ye(o,t,n,r)}));if(f&&(o=(i=De(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=T.map(Se(i,"script"),Ge)).length;d<f;d++)c=i,d!==p&&(c=T.clone(c,!0,!0),s&&T.merge(a,Se(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Ze),d=0;d<s;d++)c=a[d],Ce.test(c.type||"")&&!se.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(_e,""),c,u))}return e}function Ve(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(Se(r)),r.parentNode&&(n&&me(r)&&ke(Se(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Se(s),r=0,i=(o=Se(e)).length;r<i;r++)qe(o[r],a[r]);if(t)if(n)for(o=o||Se(e),a=a||Se(s),r=0,i=o.length;r<i;r++)He(o[r],a[r]);else He(e,s);return(a=Se(s,"script")).length>0&&ke(a,!l&&Se(e,"script")),s},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ye(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Ye(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ye(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ue.test(e)&&!Ne[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ye(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Se(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),T(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var We=new RegExp("^("+fe+")(?!px)[a-z%]+$","i"),Qe=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Xe=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ke=new RegExp(he.join("|"),"i");function $e(e,t,n){var r,i,o,a,s=Qe.test(t),l=e.style;return(n=n||Je(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(D,"$1")||void 0),""!==a||me(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&We.test(a)&&Ke.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){return T.cssProps[e]||rt[e]||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=pe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(e,n+he[a],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+he[a],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+he[a]+"Width",!0,i))):(l+=T.css(e,"padding"+he[a],!0,i),"padding"!==n?l+=T.css(e,"border"+he[a]+"Width",!0,i):s+=T.css(e,"border"+he[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var r=Je(e),i=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,a=$e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&C(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Qe.test(t),c=e.style;if(l||(t=it(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=pe.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Qe.test(t)||(t=it(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=$e(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Xe(e,at,(function(){return ut(e,t,r)}))},set:function(e,n,r){var i,o=Je(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,o),l=r?ct(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(i=pe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),lt(0,n,l)}}})),T.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-Xe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+he[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Je(e),i=t.length;a<i;a++)o[t[a]]=T.css(e,t[a],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=dt.prototype.init,T.fx.step={};var ft,pt,ht=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){pt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,T.fx.interval),T.fx.tick())}function vt(){return r.setTimeout((function(){ft=void 0})),ft=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=he[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(It.tweeners[t]||[]).concat(It.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function It(e,t,n){var r,i,o=0,a=It.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ft||vt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:ft||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=T.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<a;o++)if(r=It.prefilters[o].call(c,e,u,c.opts))return v(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(It,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(V);for(var n,r=0,i=e.length;r<i;r++)n=e[r],It.tweeners[n]=It.tweeners[n]||[],It.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ht.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(we([e],!0),c=e.style.display||c,u=T.css(e,"display"),we([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(f.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&we([e],!0),f.done((function(){for(r in g||we([e]),se.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=bt(g?m[r]:0,r,f),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?It.prefilters.unshift(e):It.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),o=T.speed(t,n,r),a=function(){var t=It(this,T.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=T.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&gt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=T.timers,a=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}})),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(ft=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),ft=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pt||(pt=!0,mt())},T.fx.stop=function(){pt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var xt,wt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(V);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||T.find.attr;wt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=wt[a],wt[a]=i,i=null!=n(e,t,r)?a:null,wt[a]=o),i}}));var At=/^(?:input|select|textarea|button)$/i,Mt=/^(?:a|area)$/i;function Tt(e){return(e.match(V)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,Et(this)))})):(t=Ct(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){T(this).removeClass(e.call(this,t,Et(this)))})):arguments.length?(t=Ct(e)).length?this.each((function(){if(r=Et(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=Tt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,Et(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each((function(){if(s)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=Et(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Tt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var Nt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Nt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),a=i.length;a--;)((r=i[a]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var St=r.location,kt={guid:Date.now()},jt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,i){var o,a,s,l,c,u,d,f,h=[n||b],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Dt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||b)&&h.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Lt),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,Lt),T.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,Rt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Ut(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||Ot.test(e)?r(e,i):Ut(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)Ut(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ut(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&zt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Bt=/%20/g,_t=/#.*$/,Ft=/([?&])_=[^&]*/,Gt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Zt=/^(?:GET|HEAD)$/,Ht=/^\/\//,qt={},Yt={},Vt="*/".concat("*"),Wt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(V)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jt(e,t,n,r){var i={},o=e===Yt;function a(s){var l;return i[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Xt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Wt.href=St.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Xt(Xt(e,T.ajaxSettings),t):Xt(T.ajaxSettings,e)},ajaxPrefilter:Qt(qt),ajaxTransport:Qt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,c,u,d,f,p=T.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},I={},x={},w="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Gt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,I[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),M(0,t),this}};if(m.promise(A),p.url=((e||p.url||St.href)+"").replace(Ht,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Jt(qt,p,t,A),c)return A;for(d in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Zt.test(p.type),i=p.url.replace(_t,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Bt,"+")):(f=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(jt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Ft,"$1"),f=(jt.test(i)?"&":"?")+"_="+kt.guid+++f),p.url=i+f),p.ifModified&&(T.lastModified[i]&&A.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&A.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vt+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,A,p)||c))return A.abort();if(w="abort",v.add(p.complete),A.done(p.success),A.fail(p.error),n=Jt(Yt,p,t,A)){if(A.readyState=1,u&&g.trigger("ajaxSend",[A,p]),c)return A;p.async&&p.timeout>0&&(s=r.setTimeout((function(){A.abort("timeout")}),p.timeout));try{c=!1,n.send(I,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,a,l){var d,f,b,I,x,w=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",A.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(I=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,A,a)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),I=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,I,A,d),d?(p.ifModified&&((x=A.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=x),(x=A.getResponseHeader("etag"))&&(T.etag[i]=x)),204===e||"HEAD"===p.type?w="nocontent":304===e?w="notmodified":(w=I.state,f=I.data,d=!(b=I.error))):(b=w,!e&&w||(w="error",e<0&&(e=0))),A.status=e,A.statusText=(t||w)+"",d?m.resolveWith(h,[f,w,A]):m.rejectWith(h,[A,w,b]),A.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[A,p,d?f:b]),v.fireWith(h,[A,w]),u&&(g.trigger("ajaxComplete",[A,p]),--T.active||T.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},$t=T.ajaxSettings.xhr();m.cors=!!$t&&"withCredentials"in $t,m.ajax=$t=!!$t,T.ajaxTransport((function(e){var t,n;if(m.cors||$t&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+kt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(jt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||T.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=_.exec(e))?[t.createElement(i[1])]:(i=De([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=T.css(e,"position"),u=T(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ge}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=$e(e,t),We.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?T.css(t,n,s):T.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=y,T.camelCase=ie,T.type=w,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return T.noConflict=function(e){return r.$===T&&(r.$=an),e&&r.jQuery===T&&(r.jQuery=on),T},void 0===i&&(r.jQuery=r.$=T),T}))},4816:(e,t,n)=>{"use strict";var r=n(4345);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isEmptyObject(t)?r.merge({},e):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},4828:(e,t,n)=>{"use strict";n(7120)},4833:(e,t,n)=>{"use strict";var r=n(7741);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:r},4860:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5063:e=>{"use strict";e.exports=function(e,t){return function(){return e.apply(t,arguments)}}},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSI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YWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cbWF0aHJte1R9PC90aXRsZT4KPGRlZnMgYXJpYS1oaWRkZW49InRydWUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjEiIGlkPSJFMS1MQVRJTk1PREVSTk1BSU4tNTQiIGQ9Ik02ODUgNDUyaC0yNWMtMTQgMTYxIC0yOSAxOTQgLTE4MCAxOTRjLTE5IDAgLTQ2IDAgLTU3IC0yYy0xOCAtNCAtMTggLTE4IC0xOCAtMzh2LTUyN2MwIC0zNCAwIC00OCAxMDUgLTQ4aDQwdi0zMWMtNDEgMyAtMTQ0IDMgLTE5MCAzcy0xNDggMCAtMTg5IC0zdjMxaDQwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}]},5193:function(e,t,n){"use strict";var r=this&&this.__assign||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)},i=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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=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)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var s=a(n(3338)),l=n(2305),c=n(6593),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,"&quot;")}var f=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function p(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=h(n[i],t);return r}function h(e,t){switch(e.type){case s.Root:return p(e.children,t);case s.Doctype:case s.Directive:return"<".concat(e.data,">");case s.Comment:return"\x3c!--".concat(e.data,"--\x3e");case s.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&g.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<".concat(e.name),o=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=c.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);return o&&(i+=" ".concat(o)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&f.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),!t.xmlMode&&f.has(e.name)||(i+="</".concat(e.name,">"))),i}(e,t);case s.Text:return function(e,t){var n,r=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(r):(0,l.escapeText)(r)),r}(e,t)}}t.render=p,t.default=p;var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},5220:(e,t,n)=>{"use strict";var r=n(5400);function i(e,t,n){r.call(this,null==e?"canceled":e,r.ERR_CANCELED,t,n),this.name="CanceledError"}n(4345).inherits(i,r,{__CANCEL__:!0}),e.exports=i},5324:()=>{},5400:(e,t,n)=>{"use strict";var r=n(4345);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,l){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},e.exports=i},5442:t=>{"use strict";t.exports=e},5482: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.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=n(4291),l=n(4291);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(1138),u=n(1138);function d(e,t){var n=new c.DomHandler(void 0,t);return new s.Parser(n,t).end(e),n.root}function f(e,t){return d(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=d,t.parseDOM=f,t.createDomStream=function(e,t,n){var r=new c.DomHandler(e,t,n);return new s.Parser(r,t)};var p=n(6439);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}}),t.ElementType=o(n(3338));var h=n(6403),g=n(6403);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var m={xmlMode:!0};t.parseFeed=function(e,t){return void 0===t&&(t=m),(0,h.getFeed)(f(e,t))},t.DomUtils=o(n(6403))},5517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(1138);function i(e){return(0,r.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}t.getChildren=i,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!=t)return i(t);for(var n=[e],r=e.prev,a=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=a;)n.push(a),a=a.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},5905:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},5912:(e,t,n)=>{"use strict";var r=n(5220);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,i,o){n.reason||(n.reason=new r(e,i,o),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},5919:(e,t,n)=>{"use strict";e.exports=n(4047)},5930:(e,t,n)=>{"use strict";let r=n(9845);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},5968:(e,t,n)=>{!function(){var t=n(4651),r="mathquill-command-id",i="mathquill-block-id",o=Math.min,a=Math.max;if(!t)throw"MathQuill requires jQuery 1.5.2+ to be loaded first";function s(){}var l=[].slice;function c(e){var t=e.length-1;return function(){var n=l.call(arguments,0,t),r=l.call(arguments,t);return e.apply(this,n.concat([r]))}}var u=c((function(e,t){return c((function(n,r){if(e in n)return n[e].apply(n,t.concat(r))}))}));function d(e){return c((function(t,n){return"function"!=typeof t&&(t=u(t)),e.call(this,(function(e){return t.apply(e,[e].concat(n))}))}))}function f(e){var t=l.call(arguments,1);return function(){return e.apply(this,t)}}function p(e,t){if(!t)throw new Error("prayer failed: "+e)}var h=function(e,t){function n(e){return"object"==typeof e}function r(e){return"function"==typeof e}function i(){}return function o(a,s){function l(){var e=new c;return r(e.init)&&e.init.apply(e,arguments),e}function c(){}void 0===s&&(s=a,a=Object),l.Bare=c;var u,d=i[e]=a[e],f=c[e]=l[e]=l.p=new i;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(u={},r(e)?u=e.call(l,f,d,l,a):n(e)&&(u=e),n(u))for(var i in u)t.call(u,i)&&(f[i]=u[i]);return r(f.init)||(f.init=a),l})(s)}}("prototype",{}.hasOwnProperty),g=-1;function m(e){p("a direction was passed",e===g||1===e)}var v=h(t,(function(e){e.insDirOf=function(e,t){return e===g?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===g?this.prependTo(t):this.appendTo(t)}})),y=h((function(e){e.parent=0,e[g]=0,e[1]=0,e.init=function(e,t,n){this.parent=e,this[g]=t,this[1]=n},this.copy=function(e){return y(e.parent,e[g],e[1])}})),b=h((function(e){e[g]=0,e[1]=0,e.parent=0;var t=0;this.byId={},e.init=function(){this.id=t+=1,b.byId[this.id]=this,this.ends={},this.ends[g]=0,this.ends[1]=0},e.dispose=function(){delete b.byId[this.id]},e.toString=function(){return"{{ MathQuill Node #"+this.id+" }}"},e.jQ=v(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){if(e.getAttribute){var n=e.getAttribute("mathquill-command-id"),r=e.getAttribute("mathquill-block-id");n&&b.byId[n].jQadd(e),r&&b.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}e=v(e||this.html());for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){m(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[g],t[1]),n},e.createLeftOf=function(e){return this.createDir(g,e)},e.selectChildren=function(e,t){return T(e,t)},e.bubble=d((function(e){for(var t=this;t&&!1!==e(t);t=t.parent);return this})),e.postOrder=d((function(e){return function t(n){n.eachChild(t),e(n)}(this),this})),e.isEmpty=function(){return 0===this.ends[g]&&0===this.ends[1]},e.isStyleBlock=function(){return!1},e.children=function(){return x(this.ends[g],this.ends[1])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return x(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return x(this,this).adopt(e,t,n),this},e.disown=function(){return x(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder("dispose"),this.disown()}}));function I(e,t,n){p("a parent is always present",e),p("leftward is properly set up",t?t[1]===n&&t.parent===e:e.ends[g]===n),p("rightward is properly set up",n?n[g]===t&&n.parent===e:e.ends[1]===t)}var x=h((function(e){e.init=function(e,t,n){if(void 0===n&&(n=g),m(n),p("no half-empty fragments",!e==!t),this.ends={},e){p("withDir is passed to Fragment",e instanceof b),p("oppDir is passed to Fragment",t instanceof b),p("withDir and oppDir have the same parent",e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],(function(e,t){return e.push.apply(e,t.jQ.get()),e}));this.jQ=this.jQ.add(r)}},e.jQ=v(),e.withDirAdopt=function(e,t,n,r){return e===g?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){I(e,t,n);var r=this;r.disowned=!1;var i=r.ends[g];if(!i)return this;var o=r.ends[1];return t||(e.ends[g]=i),n?n[g]=o:e.ends[1]=o,r.ends[1][1]=n,r.each((function(n){n[g]=t,n.parent=e,t&&(t[1]=n),t=n})),r},e.disown=function(){var e=this,t=e.ends[g];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[1],r=t.parent;return I(r,t[g],t),I(r,n,n[1]),t[g]?t[g][1]=n[1]:r.ends[g]=n[1],n[1]?n[1][g]=t[g]:r.ends[1]=t[g],e},e.remove=function(){return this.jQ.remove(),this.each("postOrder","dispose"),this.disown()},e.each=d((function(e){var t=this,n=t.ends[g];if(!n)return t;for(;n!==t.ends[1][1]&&!1!==e(n);n=n[1]);return t})),e.fold=function(e,t){return this.each((function(n){e=t.call(this,e,n)})),e}})),w={},A={},M=h(y,(function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=v('<span class="mq-cursor">&#8203;</span>');this.blink=function(){n.toggleClass("mq-blink")},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass("mq-blink"),"intervalId"in this?clearInterval(this.intervalId):(this[1]?this.selection&&this.selection.ends[g][g]===this[g]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[1].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return"intervalId"in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=v(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return m(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass("mq-hasCursor"),this},e.insLeftOf=function(e){return this.insDirOf(g,e)},e.insRightOf=function(e){return this.insDirOf(1,e)},e.insAtDirEnd=function(e,t){return m(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(g,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(1,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=y.copy(n);var r=n.upDownCache[t.id];if(r)r[1]?n.insLeftOf(r[1]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this.jQ.removeClass("mq-cursor").offset();return this.jQ.addClass("mq-cursor"),e},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[1],r=e[g];if(e.disown().eachChild((function(i){i.isEmpty()||(i.children().adopt(t,r,n).each((function(t){t.jQ.insertBefore(e.jQ.first())})),r=i.ends[1])})),!this[1])if(this[g])this[1]=this[g][1];else for(;!this[1];){if(this.parent=this.parent[1],!this.parent){this[1]=e[1],this.parent=t;break}this[1]=this.parent.ends[g]}this[1]?this.insLeftOf(this[1]):this.insAtRightEnd(t),e.jQ.remove(),e[g].siblingDeleted&&e[g].siblingDeleted(this.options,1),e[1].siblingDeleted&&e[1].siblingDeleted(this.options,g)},e.startSelection=function(){for(var e=this.anticursor=y.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(this[g]===e[g]&&this.parent===e.parent)return!1;for(var t=this;t.parent;t=t.parent)if(t.parent.id in e.ancestors){var n=t.parent;break}p("cursor and anticursor in the same tree",n);var r,i,o=e.ancestors[n.id],a=1;if(t[g]!==o)for(var s=t;s;s=s[1])if(s[1]===o[1]){a=g,r=t,i=o;break}return 1===a&&(r=o,i=t),r instanceof y&&(r=r[1]),i instanceof y&&(i=i[g]),this.hide().selection=n.selectChildren(r,i),this.insDirOf(a,this.selection.ends[a]),this.selectionChanged(),!0},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[g]=this.selection.ends[g][g],this[1]=this.selection.ends[1][1],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[g]=e.ends[g][g],this[1]=e.ends[1][1],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=e instanceof W?1:0;return t},e.isTooDeep=function(e){if(void 0!==this.options.maxDepth)return this.depth()+(e||0)>this.options.maxDepth}})),T=h(x,(function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll('<span class="mq-selection"></span>').parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold("",(function(t,n){return t+n[e]()}))}})),E=h((function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=M(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===g||1===t?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}})),C={},N=h(),S={},k=h(),j={};function D(){window.console&&console.warn('You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')}function L(e){return D(),He(e)}L.prototype=k.p,L.VERSION="v0.10.11",L.interfaceVersion=function(e){if(1!==e)throw"Only interface version 1 supported. You specified: "+e;return(D=function(){window.console&&console.warn('You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:\n\n MathQuill = MathQuill.getInterface(1);\n // now MathQuill.MathField() works like it used to\n\nSee also the "`dev` branch (2014–2015) → v0.10.0 Migration Guide" at\n https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide')})(),L},L.getInterface=P;var O=P.MIN=1,R=P.MAX=2;function P(e){if(!(O<=e&&e<=R))throw"Only interface versions between "+O+" and "+R+" supported. You specified: "+e;function n(e){if(!e||!e.nodeType)return null;var t=v(e).children(".mq-root-block").attr(i),n=t&&b.byId[t].controller;return n?r[n.KIND_OF_MQ](n):null}var r={};function o(e,t){for(var n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:r}),t)if(t.hasOwnProperty(n)){var i=t[n],o=S[n];e[n]=o?o(i):i}}n.L=g,n.R=1,n.saneKeyboardEvents=F,n.config=function(e){return o(N.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw"Embed name must start with letter and be only letters and digits";j[e]=t};var a=r.AbstractMathQuill=h(k,(function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.__mathquillify=function(e){var t=this.__controller,n=t.root,r=t.container;t.createTextarea();var o=r.addClass(e).contents().detach();n.jQ=v('<span class="mq-root-block"/>').attr(i,n.id).appendTo(r),this.latex(o.text()),this.revert=function(){return r.empty().unbind(".mathquill").removeClass("mq-editable-field mq-math-mode mq-text-mode").append(o)}},e.config=function(e){return o(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,"").replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,"").replace(/ mq-hasCursor|mq-hasCursor ?/,"").replace(/ class=(""|(?= |>))/g,"")},e.reflow=function(){return this.__controller.root.postOrder("reflow"),this}}));for(var l in n.prototype=a.prototype,r.EditableField=h(a,(function(e,n){e.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild("postOrder","dispose"),e.ends[g]=e.ends[1]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=w[e]||_e[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify("move").cursor.insAtRightEnd(e.root);e.cursor[g];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify("move").cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(g)},e.moveToRightEnd=function(){return this.moveToDirEnd(1)},e.keystroke=function(e){e=e.replace(/^\s+|\s+$/g,"").split(/\s+/);for(var t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:s});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-v(window).scrollLeft(),i=t-v(window).scrollTop(),o=document.elementFromPoint(r,i);this.__controller.seek(v(o),e,t),Be().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,n,r){r=r||document.elementFromPoint(e,n);var i=this.__controller,o=i.root;return t.contains(o.jQ[0],r)||(r=o.jQ[0]),i.seek(v(r),e+pageXOffset,n+pageYOffset),i.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}})),n.EditableField=function(){throw"wtf don't call me, I'm 'abstract'"},n.EditableField.prototype=r.EditableField.prototype,C)!function(t,i){var o=r[t]=i(r);n[t]=function(r,i){var a=n(r);if(a instanceof o||!r||!r.nodeType)return a;var s=E(o.RootBlock(),v(r),N());return s.KIND_OF_MQ=t,o(s).__mathquillify(i,e)},n[t].prototype=o.prototype}(l,C[l]);return n}L.noConflict=function(){return window.MathQuill=z,L};var z=window.MathQuill;function U(e){for(var t="moveOutOf deleteOutOf selectOutOf upOutOf downOutOf".split(" "),n=0;n<t.length;n+=1)!function(t){e[t]=function(e){this.controller.handle(t,e)}}(t[n]);e.reflow=function(){this.controller.handle("reflow"),this.controller.handle("edited"),this.controller.handle("edit")}}window.MathQuill=L;var B,_=h((function(e,t,n){function r(e,t){throw"Parse Error: "+t+" at "+(e?"'"+e+"'":"EOF")}e.init=function(e){this._=e},e.parse=function(e){return this.skip(a)._(""+e,(function(e,t){return t}),r)},e.or=function(e){p("or is passed a parser",e instanceof n);var t=this;return n((function(n,r,i){return t._(n,r,(function(t){return e._(n,r,i)}))}))},e.then=function(e){var t=this;return n((function(r,i,o){return t._(r,(function(t,r){var a=e instanceof n?e:e(r);return p("a parser is returned",a instanceof n),a._(t,i,o)}),o)}))},e.many=function(){var e=this;return n((function(t,n,r){for(var i=[];e._(t,o,a););return n(t,i);function o(e,n){return t=e,i.push(n),!0}function a(){return!1}}))},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n((function(n,i,o){for(var a,s=[],l=!0,c=0;c<e;c+=1)if(!(l=r._(n,u,d)))return o(n,a);for(;c<t&&l;c+=1)l=r._(n,u,f);return i(n,s);function u(e,t){return s.push(t),n=e,!0}function d(e,t){return a=t,n=e,!1}function f(e,t){return!1}}))},e.result=function(e){return this.then(o(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then((function(e){return t.many().map((function(t){return e.concat(t)}))}))},e.map=function(e){return this.then((function(t){return o(e(t))}))},e.skip=function(e){return this.then((function(t){return e.result(t)}))},this.string=function(e){var t=e.length,r="expected '"+e+"'";return n((function(n,i,o){var a=n.slice(0,t);return a===e?i(n.slice(t),a):o(n,r)}))};var i=this.regex=function(e){p("regexp parser is anchored","^"===e.toString().charAt(1));var t="expected "+e;return n((function(n,r,i){var o=e.exec(n);if(o){var a=o[0];return r(n.slice(a.length),a)}return i(n,t)}))},o=n.succeed=function(e){return n((function(t,n){return n(t,e)}))},a=(n.fail=function(e){return n((function(t,n,r){return r(t,e)}))},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n((function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,"expected any character")})),n.all=n((function(e,t,n){return t("",e)})),n.eof=n((function(e,t,n){return e?n(e,"expected EOF"):t(e,e)})))})),F=(B={8:"Backspace",9:"Tab",10:"Enter",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Esc",32:"Spacebar",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",45:"Insert",46:"Del",144:"NumLock"},function(e,n){var r,i=null,o=null,a=t(e),l=t(n.container||a),c=s;function u(e){c=e,clearTimeout(r),r=setTimeout(e)}function d(e){u((function(t){c=s,clearTimeout(r),e(t)}))}l.bind("keydown keypress input keyup focusout paste",(function(e){c(e)}));var f=!1;function p(){n.keystroke(function(e){var t,n=e.which||e.keyCode,r=B[n],i=[];return e.ctrlKey&&i.push("Ctrl"),e.originalEvent&&e.originalEvent.metaKey&&i.push("Meta"),e.altKey&&i.push("Alt"),e.shiftKey&&i.push("Shift"),t=r||String.fromCharCode(n),i.length||r?(i.push(t),i.join("-")):t}(i),i)}function h(){if(!("selectionStart"in(e=a[0]))||e.selectionStart===e.selectionEnd){var e,t=a.val();1===t.length?(a.val(""),n.typedText(t)):t&&a[0].select&&a[0].select()}}function g(){var e=a.val();a.val(""),e&&n.paste(e)}return l.bind({keydown:function(e){e.target===a[0]&&(i=e,o=null,f&&d((function(e){e&&"focusout"===e.type||!a[0].select||a[0].select()})),p())},keypress:function(e){e.target===a[0]&&(i&&o&&p(),o=e,u(h))},keyup:function(e){e.target===a[0]&&i&&!o&&u(h)},focusout:function(){i=o=null},cut:function(){d((function(){n.cut()}))},copy:function(){d((function(){n.copy()}))},paste:function(e){e.target===a[0]&&(document.activeElement!==a[0]&&a.focus(),u(g))}}),{select:function(e){c(),c=s,clearTimeout(r),a.val(e),e&&a[0].select&&a[0].select(),f=!!e}}});E.open((function(e,t){e.exportText=function(){return this.root.foldChildren("",(function(e,t){return e+t.text()}))}})),E.open((function(e){e.focusBlurEvents=function(){var e,t=this,n=t.root,r=t.cursor;function i(){clearTimeout(e),r.selection&&r.selection.jQ.addClass("mq-blur"),o()}function o(){r.hide().parent.blur(),t.container.removeClass("mq-focused"),v(window).unbind("blur",i)}t.textarea.focus((function(){t.blurred=!1,clearTimeout(e),t.container.addClass("mq-focused"),r.parent||r.insAtRightEnd(n),r.selection?(r.selection.jQ.removeClass("mq-blur"),t.selectionChanged()):r.show()})).blur((function(){t.blurred=!0,e=setTimeout((function(){n.postOrder("intentionalBlur"),r.clearSelection().endSelection(),o()})),v(window).bind("blur",i)})),t.blurred=!0,r.hide().parent.blur()},e.unbindFocusBlurEvents=function(){this.textarea.unbind("focus blur")}})),E.open((function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}})),b.open((function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case"Ctrl-Shift-Backspace":case"Ctrl-Backspace":n.ctrlDeleteDir(g);break;case"Shift-Backspace":case"Backspace":n.backspace();break;case"Esc":case"Tab":return void n.escapeDir(1,e,t);case"Shift-Tab":case"Shift-Esc":return void n.escapeDir(g,e,t);case"End":n.notify("move").cursor.insAtRightEnd(r.parent);break;case"Ctrl-End":n.notify("move").cursor.insAtRightEnd(n.root);break;case"Shift-End":for(;r[1];)n.selectRight();break;case"Ctrl-Shift-End":for(;r[1]||r.parent!==n.root;)n.selectRight();break;case"Home":n.notify("move").cursor.insAtLeftEnd(r.parent);break;case"Ctrl-Home":n.notify("move").cursor.insAtLeftEnd(n.root);break;case"Shift-Home":for(;r[g];)n.selectLeft();break;case"Ctrl-Shift-Home":for(;r[g]||r.parent!==n.root;)n.selectLeft();break;case"Left":n.moveLeft();break;case"Shift-Left":n.selectLeft();break;case"Ctrl-Left":break;case"Right":n.moveRight();break;case"Shift-Right":n.selectRight();break;case"Ctrl-Right":break;case"Up":n.moveUp();break;case"Down":n.moveDown();break;case"Shift-Up":if(r[g])for(;r[g];)n.selectLeft();else n.selectLeft();case"Shift-Down":if(r[1])for(;r[1];)n.selectRight();else n.selectRight();case"Ctrl-Up":case"Ctrl-Down":break;case"Ctrl-Shift-Del":case"Ctrl-Del":n.ctrlDeleteDir(1);break;case"Shift-Del":case"Del":n.deleteForward();break;case"Meta-A":case"Ctrl-A":for(n.notify("move").cursor.insAtRightEnd(n.root);r[g];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){p("overridden or never called on this node")}})),E.open((function(e){function t(e,t){var n=e.notify("upDown").cursor,r=t+"Into",i=t+"OutOf";return n[1][r]?n.insAtLeftEnd(n[1][r]):n[g][r]?n.insAtRightEnd(n[g][r]):n.parent.bubble((function(e){var t=e[i];if(t&&("function"==typeof t&&(t=e[i](n)),t instanceof b&&n.jumpUpDown(e,t),!0!==t))return!1})),e}this.onNotify((function(e){"move"!==e&&"upDown"!==e||this.show().clearSelection()})),e.escapeDir=function(e,t,n){m(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify("move")},S.leftRightIntoCmdGoes=function(e){if(e&&"up"!==e&&"down"!==e)throw'"up" or "down" required for leftRightIntoCmdGoes option, got "'+e+'"';return e},e.moveDir=function(e){m(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify("move")},e.moveLeft=function(){return this.moveDir(g)},e.moveRight=function(){return this.moveDir(1)},e.moveUp=function(){return t(this,"up")},e.moveDown=function(){return t(this,"down")},this.onNotify((function(e){"upDown"!==e&&(this.upDownCache={})})),this.onNotify((function(e){"edit"===e&&this.show().deleteSelection()})),e.deleteDir=function(e){m(e);var t=this.cursor,n=t.selection;return this.notify("edit"),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[g].siblingDeleted&&t[g].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,g),t.parent.bubble("reflow"),this},e.ctrlDeleteDir=function(e){m(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify("edit"),e===g?x(t.parent.ends[g],t[g]).remove():x(t[1],t.parent.ends[1]).remove(),t.insAtDirEnd(e,t.parent),t[g].siblingDeleted&&t[g].siblingDeleted(t.options,1),t[1].siblingDeleted&&t[1].siblingDeleted(t.options,g),t.parent.bubble("reflow"),this)},e.backspace=function(){return this.deleteDir(g)},e.deleteForward=function(){return this.deleteDir(1)},this.onNotify((function(e){"select"!==e&&this.endSelection()})),e.selectDir=function(e){var t=this.notify("select").cursor,n=t.selection;m(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(g)},e.selectRight=function(){return this.selectDir(1)}}));var G=function(){function e(e){for(var t=e[0]||W(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[1],0);return t}var t=_.string,n=_.regex,r=_.letter,i=_.any,o=_.optWhitespace,a=_.succeed,s=_.fail,l=r.map((function(e){return re(e)})),c=n(/^[^${}\\_^]/).map((function(e){return Y(e)})),u=n(/^[^\\a-eg-zA-Z]/).or(t("\\").then(n(/^[a-z]+/i).or(n(/^\s+/).result(" ")).or(i))).then((function(e){var t=w[e];return t?t(e).parser():s("unknown command: \\"+e)})).or(l).or(c),d=t("{").then((function(){return p})).skip(t("}")),f=o.then(d.or(u.map((function(e){var t=W();return e.adopt(t,0,0),t})))),p=f.many().map(e).skip(o),h=t("[").then(f.then((function(e){return"]"!==e.join("latex")?a(e):s()})).many().map(e).skip(o)).skip(t("]")),g=p;return g.block=f,g.optBlock=h,g}();E.open((function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,"$1")},S.maxDepth=function(e){return"number"==typeof e?e:void 0},e.writeLatex=function(e){var t=this.notify("edit").cursor;return t.parent.writeLatex(t,e),this},e.renderLatexMath=function(e){var t=this.root,n=this.cursor,r=(n.options,t.jQ),i=_.all,o=_.eof,a=G.skip(o).or(i.result(!1)).parse(e);if(t.eachChild("postOrder","dispose"),t.ends[g]=t.ends[1]=0,a&&a.prepareInsertionAt(n)){a.children().adopt(t,0,0);var s=a.join("html");r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild("postOrder","dispose"),t.ends[g]=t.ends[1]=0,delete n.selection,n.show().insAtRightEnd(t);var r=_.regex,i=_.string,o=_.eof,a=_.all,s=i("$").then(G).skip(i("$").or(o)).map((function(e){var t=$(n);t.createBlocks();var r=t.ends[g];return e.children().adopt(r,0,0),t})),l=i("\\$").result("$").or(r(/^[^$]/)).map(Y),c=s.or(l).many().skip(o).or(a.result(!1)).parse(e);if(c){for(var u=0;u<c.length;u+=1)c[u].adopt(t,t.ends[1],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}})),E.open((function(e){N.p.ignoreNextMousedown=s,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind("mousedown.mathquill",(function(t){var n,r=v(t.target).closest(".mq-root-block"),o=b.byId[r.attr(i)||e.attr(i)].controller,a=o.cursor,l=a.blink,c=o.textareaSpan,u=o.textarea;function d(e){n=v(e.target)}function f(e){a.anticursor||a.startSelection(),o.seek(n,e.pageX,e.pageY).cursor.select(),n=void 0}t.preventDefault(),t.target.unselectable=!0,a.options.ignoreNextMousedown(t)||(a.options.ignoreNextMousedown=s,o.blurred&&(o.editable||r.prepend(c),u.focus()),a.blink=s,o.seek(v(t.target),t.pageX,t.pageY).cursor.startSelection(),r.mousemove(d),v(t.target.ownerDocument).mousemove(f).mouseup((function e(t){a.blink=l,a.selection||(o.editable?a.show():c.detach()),r.unbind("mousemove",d),v(t.target.ownerDocument).unbind("mousemove",f).unbind("mouseup",e)})))}))}})),E.open((function(e){e.seek=function(e,t,n){var o=this.notify("select").cursor;if(e){var a=e.attr(i)||e.attr(r);if(!a){var s=e.parent();a=s.attr(i)||s.attr(r)}}var l=a?b.byId[a]:this.root;return p("nodeId is the id of some Node that exists",l),o.clearSelection().show(),l.seek(t,o),this.scrollHoriz(),this}})),E.open((function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=e.offset();if(n){var r=e.jQ.closest(".mq-editable-field"),i=Number(n.top-r.offset().top+2*e.jQ.height());r.find(".mq-textarea textarea").css("top",i+"px")}var o=this.root.jQ[0].getBoundingClientRect();if(t){var a=t.jQ[0].getBoundingClientRect(),s=a.left-(o.left+20),l=a.right-(o.right-20);if(t.ends[g]===e[1])if(s<0)u=s;else{if(!(l>0))return;u=a.left-l<o.left+20?s:l}else if(l>0)u=l;else{if(!(s<0))return;u=a.right-s>o.right-20?l:s}}else{var c=e.jQ[0].getBoundingClientRect().left;if(c>o.right-20)var u=c-(o.right-20);else{if(!(c<o.left+20))return;u=c-(o.left+20)}}this.root.jQ.stop().animate({scrollLeft:"+="+u},100)}})),E.open((function(e){N.p.substituteTextarea=function(){return v("<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />")[0]},e.createTextarea=function(){var e=this.textareaSpan=v('<span class="mq-textarea"></span>'),t=this.options.substituteTextarea();if(!t.nodeType)throw"substituteTextarea() must return a DOM element, got "+t;t=this.textarea=v(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;ye(e.container[0]),void 0===e.textareaSelectionTimeout&&(e.textareaSelectionTimeout=setTimeout((function(){e.setTextareaSelection()})))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=void 0;var e="";this.cursor.selection&&(e=this.cursor.selection.join("latex"),this.options.statelessClipboard&&(e="$"+e+"$")),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this,n=(e.root,e.cursor),r=e.textarea,i=e.textareaSpan;function o(){i.detach(),e.blurred=!0}this.container.prepend(t('<span class="mq-selectable">').text("$"+e.exportLatex()+"$")),e.blurred=!0,r.bind("cut paste",!1).bind("copy",(function(){e.setTextareaSelection()})).focus((function(){e.blurred=!1})).blur((function(){n.selection&&n.selection.clear(),setTimeout(o)})),e.selectFn=function(e){r.val(e),e&&r.select()}},N.p.substituteKeyboardEvents=F,e.editablesTextareaEvents=function(){var e=this.textarea,t=this.textareaSpan,n=this.options.substituteKeyboardEvents(e,this);this.selectFn=function(e){n.select(e)},this.container.prepend(t),this.focusBlurEvents()},e.unbindEditablesEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan;this.selectFn=function(e){t.val(e),e&&t.select()},n.remove(),this.unbindFocusBlurEvents(),e.blurred=!0,t.bind("cut paste",!1)},e.typedText=function(e){if("\n"===e)return this.handle("enter");var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout((function(){e.notify("edit"),t.parent.bubble("reflow")}))},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e="$"===e.slice(0,1)&&"$"===e.slice(-1)?e.slice(1,-1):"\\text{"+e+"}"),this.writeLatex(e).cursor.show()}}));var Z=h(b,(function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder("finalizeTree",e),n.postOrder("contactWeld",t),n.postOrder("blur"),n.postOrder("reflow"),n[1].siblingCreated&&n[1].siblingCreated(e,g),n[g].siblingCreated&&n[g].siblingCreated(e,1),n.bubble("reflow")},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(void 0!==t){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t,n=0,r=[[this,n]];r.length;)(t=r.shift())[0].children().each((function(i){var o=i instanceof W?1:0;(n=t[1]+o)<=e?r.push([i,n]):(o?i.children():i).remove()}))}})),H=h(Z,(function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||(i.ctrlSeq=e),n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,(function(e,t){return e&&t.isEmpty()}))},e.parser=function(){var e=G.block,t=this;return e.times(t.numBlocks()).map((function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[1],0);return t}))},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[g],0,0),r.jQ.appendTo(n.ends[g].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=W()).adopt(e,e.ends[1],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[g],(function(e,t){return e.isEmpty()?e:t})))},e.moveTowards=function(e,t,n){var r=n&&this[n+"Into"];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return T(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[g]=e.jQ.offset().left,t[1]=t[g]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[g])return t.insLeftOf(r);if(e>i[1])return t.insRightOf(r);var o=i[g];r.eachChild((function(a){var s=n(a);return e<s[g]?(e-o<s[g]-e?a[g]?t.insAtRightEnd(a[g]):t.insLeftOf(r):t.insAtLeftEnd(a),!1):e>s[1]?void(a[1]?o=s[1]:i[1]-e<e-s[1]?t.insRightOf(r):t.insAtRightEnd(a)):(a.seek(e,t),!1)}))},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=" mathquill-command-id="+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);p("no unmatched angle brackets",r.join("")===this.htmlTemplate);for(var i=0,o=r[0];o;o=r[i+=1])if("/>"===o.slice(-2))r[i]=o.slice(0,-2)+n+"/>";else if("<"===o.charAt(0)){p("not an unmatched top-level close tag","/"!==o.charAt(1)),r[i]=o.slice(0,-1)+n+">";var a=1;do{p("no missing close tags",o=r[i+=1]),"</"===o.slice(0,2)?a-=1:"<"===o.charAt(0)&&"/>"!==o.slice(-2)&&(a+=1)}while(a>0)}return r.join("").replace(/>&(\d+)/g,(function(e,n){return" mathquill-block-id="+t[n].id+">"+t[n].join("html")}))},e.latex=function(){return this.foldChildren(this.ctrlSeq,(function(e,t){return e+"{"+(t.latex()||" ")+"}"}))},e.textTemplate=[""],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],(function(n,r){t+=1;var i=r.text();return n&&"("===e.textTemplate[t]&&"("===i[0]&&")"===i.slice(-1)?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||"")}))}})),q=h(H,(function(e,t){e.init=function(e,n,r){r||(r=e&&e.length>1?e.slice(1):e),t.init.call(this,e,n,[r])},e.parser=function(){return _.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=s,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=s,e.isEmpty=function(){return!0}})),Y=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span>"+(n||e)+"</span>")}})),V=h(q,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,'<span class="mq-binary-operator">'+n+"</span>",r)}})),W=h(Z,(function(e,t){e.join=function(e){return this.foldChildren("",(function(t,n){return t+n[e]()}))},e.html=function(){return this.join("html")},e.latex=function(){return this.join("latex")},e.text=function(){return this.ends[g]===this.ends[1]&&0!==this.ends[g]?this.ends[g].text():this.join("text")},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||"Spacebar"!==e&&"Shift-Spacebar"!==e?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir("Shift-Spacebar"===e?g:1,e,n))},e.moveOutOf=function(e,t,n){n&&this.parent[n+"Into"]||!this[e]?t.insDirOf(e,this.parent):t.insAtDirEnd(-e,this[e])},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[1];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[g].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[g];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?re(e):/^\d$/.test(e)?te(e):t&&t.typingSlashWritesDivisionSymbol&&"/"===e?w["÷"](e):t&&t.typingAsteriskWritesTimesSymbol&&"*"===e?w["×"](e):(n=A[e]||w[e])?n(e):Y(e)},e.write=function(e,t){var n=this.chToCmd(t,e.options);e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.writeLatex=function(e,t){var n=_.all,r=_.eof,i=G.skip(r).or(n.result(!1)).parse(t);i&&!i.isEmpty()&&i.prepareInsertionAt(e)&&(i.children().adopt(e.parent,e[g],e[1]),i.jQize().insertBefore(e.jQ),e[g]=i.ends[1],i.finalizeInsert(e.options,e),i.ends[1][1].siblingCreated&&i.ends[1][1].siblingCreated(e.options,g),i.ends[g][g].siblingCreated&&i.ends[g][g].siblingCreated(e.options,1),e.parent.bubble("reflow"))},e.focus=function(){return this.jQ.addClass("mq-hasCursor"),this.jQ.removeClass("mq-empty"),this},e.blur=function(){return this.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.jQ.addClass("mq-empty"),this}}));N.p.mouseEvents=!0,C.StaticMath=function(e){return h(e.AbstractMathQuill,(function(t,n){this.RootBlock=W,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,"mq-math-mode"),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.InnerMathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder("registerInnerField",this.innerFields=[],e.InnerMathField),t}}))};var Q=h(W,U);C.MathField=function(e){return h(e.EditableField,(function(e,t){this.RootBlock=Q,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=s),t.__mathquillify.call(this,"mq-editable-field mq-math-mode"),delete this.__controller.root.reflow,this}}))},C.InnerMathField=function(e){return h(e.MathField,(function(e,t){e.makeStatic=function(){this.__controller.editable=!1,this.__controller.root.blur(),this.__controller.unbindEditablesEvents(),this.__controller.container.removeClass("mq-editable-field")},e.makeEditable=function(){this.__controller.editable=!0,this.__controller.editablesTextareaEvents(),this.__controller.cursor.insAtRightEnd(this.__controller.root),this.__controller.container.addClass("mq-editable-field")}}))};var J=h(b,(function(e,t){function n(e){e.jQ[0].normalize();var t=e.jQ[0].firstChild;if(t){p("only node in TextBlock span is Text node",3===t.nodeType);var n=X(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}}e.ctrlSeq="\\text",e.replaces=function(e){e instanceof x?this.replacedText=e.remove().jQ.text():"string"==typeof e&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[g]&&this.ends[g].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r));n[1].siblingCreated&&n[1].siblingCreated(e.options,g),n[g].siblingCreated&&n[g].siblingCreated(e.options,1),n.bubble("reflow")},e.parser=function(){var e=this,t=_.string,n=_.regex;return _.optWhitespace.then(t("{")).then(n(/^[^}]*/)).skip(t("}")).map((function(t){return 0===t.length?x():(X(t).adopt(e,0,0),e)}))},e.textContents=function(){return this.foldChildren("",(function(e,t){return e+t.text}))},e.text=function(){return'"'+this.textContents()+'"'},e.latex=function(){var e=this.textContents();return 0===e.length?"":"\\text{"+e.replace(/\\/g,"\\backslash ").replace(/[{}]/g,"\\$&")+"}"},e.html=function(){return'<span class="mq-text-mode" mathquill-command-id='+this.id+">"+this.textContents()+"</span>"},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=H.prototype.selectTowards,e.deleteTowards=H.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),"$"!==n)e[g]?e[g].appendText(n):X(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Y("\\$","$").createLeftOf(e);else if(e[1])if(e[g]){var r=J(),i=this.ends[g];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}else e.insLeftOf(this);else e.insRightOf(this);this.bubble("reflow")},e.writeLatex=function(e,t){e[g]?e[g].appendText(t):X(t).createLeftOf(e),this.bubble("reflow")},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,o=Math.round((e-this.jQ.offset().left)/i);o<=0?t.insAtLeftEnd(this):o>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(o));for(var a=e-t.show().offset().left,s=a&&a<0?g:1,l=s;t[s]&&a*l>0;)t[s].moveTowards(s,t),l=a,a=e-t.offset().left;if(s*a<-s*l&&t[-s].moveTowards(-s,t),t.anticursor){if(t.anticursor.parent===this){var c=t[g]&&t[g].text.length;if(this.anticursorPosition===c)t.anticursor=y.copy(t);else{if(this.anticursorPosition<c){var u=t[g].splitRight(this.anticursorPosition);t[g]=u}else u=t[1].splitRight(this.anticursorPosition-c);t.anticursor=y(this,u[g],u)}}}else this.anticursorPosition=t[g]&&t[g].text.length},e.blur=function(e){W.prototype.blur.call(this),e&&(""===this.textContents()?(this.remove(),e[g]===this?e[g]=this[g]:e[1]===this&&(e[1]=this[1])):n(this))},e.focus=W.prototype.focus})),X=h(b,(function(e,t){function n(e,t){return t.charAt(e===g?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=v(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){m(t),1===t?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=X(this.text.slice(e)).adopt(this.parent,this,this[1]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){m(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):X(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?1===e?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){m(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var o=X(i).createDir(e,t);r[e]=o,t.insDirOf(e,o)}else{var a=this[-e];a?a.insTextAtDirEnd(i,e):(o=X(i).createDir(-e,t)).jQ.insDirOf(-e,t.selection.jQ),1===this.text.length&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}}));function K(e,t,n){return h(J,{ctrlSeq:e,htmlTemplate:"<"+t+" "+n+">&0</"+t+">"})}w.text=w.textnormal=w.textrm=w.textup=w.textmd=J,w.em=w.italic=w.italics=w.emph=w.textit=w.textsl=K("\\textit","i",'class="mq-text-mode"'),w.strong=w.bold=w.textbf=K("\\textbf","b",'class="mq-text-mode"'),w.sf=w.textsf=K("\\textsf","span",'class="mq-sans-serif mq-text-mode"'),w.tt=w.texttt=K("\\texttt","span",'class="mq-monospace mq-text-mode"'),w.textsc=K("\\textsc","span",'style="font-variant:small-caps" class="mq-text-mode"'),w.uppercase=K("\\uppercase","span",'style="text-transform:uppercase" class="mq-text-mode"'),w.lowercase=K("\\lowercase","span",'style="text-transform:lowercase" class="mq-text-mode"');var $=h(H,(function(e,t){e.init=function(e){t.init.call(this,"$"),this.cursor=e},e.htmlTemplate='<span class="mq-math-mode">&0</span>',e.createBlocks=function(){t.createBlocks.call(this),this.ends[g].cursor=this.cursor,this.ends[g].write=function(e,t){"$"!==t?W.prototype.write.call(this,e,t):this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Y("\\$","$").createLeftOf(e.show())):e[1]?e[g]?W.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent)}},e.latex=function(){return"$"+this.ends[g].latex()+"$"}})),ee=h(Q,(function(e,t){e.keystroke=function(e){if("Spacebar"!==e&&"Shift-Spacebar"!==e)return t.keystroke.apply(this,arguments)},e.write=function(e,t){var n;e.show().deleteSelection(),"$"===t?$(e).createLeftOf(e):("<"===t?n="&lt;":">"===t&&(n="&gt;"),Y(t,n).createLeftOf(e))}}));C.TextField=function(e){return h(e.EditableField,(function(e,t){this.RootBlock=ee,e.__mathquillify=function(){return t.__mathquillify.call(this,"mq-editable-field mq-text-mode")},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}}))};var te=h(Y,(function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[g]instanceof ne&&!1!==e[g].isItalic||e[g]instanceof Ee&&e[g][g]instanceof ne&&!1!==e[g][g].isItalic)?(w._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}})),ne=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<var>"+(n||e)+"</var>")},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?"\\"==e[0]?e=e.slice(1,e.length):" "==e[e.length-1]&&(e=e.slice(0,-1)):(!this[g]||this[g]instanceof ne||this[g]instanceof V||"\\ "===this[g].ctrlSeq||(e="*"+e),!this[1]||this[1]instanceof V||this[1]instanceof Ee||(e+="*")),e}}));N.p.autoCommands={_maxLength:0},S.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'autocommand "'+o+'" not minimum length of 2';if(w[o]===se)throw'"'+o+'" is a built-in operator name';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var re=h(ne,(function(e,t){function n(e){return!e||e instanceof V||e instanceof Ne}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i="",o=this,a=0;o instanceof re&&o.ctrlSeq===o.letter&&a<r;)i=o.letter+i,o=o[g],a+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(a=1,o=this;a<i.length;a+=1,o=o[g]);return x(o,this).remove(),e[g]=o[g],w[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass("mq-operator-name",!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==g&&this[1]instanceof re||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(0!==t._maxLength){for(var r=this.letter,i=this[g];i instanceof re;i=i[g])r=i.letter+r;for(var a=this[1];a instanceof re;a=a[1])r+=a.letter;x(i[1]||this.parent.ends[g],a[g]||this.parent.ends[1]).each((function(e){e.italicize(!0).jQ.removeClass("mq-first mq-last mq-followed-by-supsub"),e.ctrlSeq=e.letter}));e:for(var s=0,l=i[1]||this.parent.ends[g];s<r.length;s+=1,l=l[1])for(var c=o(t._maxLength,r.length-s);c>0;c-=1){var u=r.slice(s,s+c);if(t.hasOwnProperty(u)){for(var d=0,f=l;d<c;d+=1,f=f[1]){f.italicize(!1);var p=f}var h=ie.hasOwnProperty(u);if(l.ctrlSeq=(h?"\\":"\\operatorname{")+l.ctrlSeq,p.ctrlSeq+=h?" ":"}",ae.hasOwnProperty(u)&&p[g][g][g].jQ.addClass("mq-last"),n(l[g])||l.jQ.addClass("mq-first"),!n(p[1]))if(p[1]instanceof Ee){var m=p[1];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass("mq-after-operator-name",!(m[1]instanceof Re))})()}else p.jQ.toggleClass("mq-last",!(p[1]instanceof Re));s+=c-1,l=p;continue e}}}}})),ie={},oe=N.p.autoOperatorNames={_maxLength:9},ae={limsup:1,liminf:1,projlim:1,injlim:1};!function(){for(var e="arg deg det dim exp gcd hom inf ker lg lim ln log max min sup limsup liminf injlim projlim Pr".split(" "),t=0;t<e.length;t+=1)ie[e[t]]=oe[e[t]]=1;var n="sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth".split(" ");for(t=0;t<n.length;t+=1)ie[n[t]]=1;var r="sin cos tan sec cosec csc cotan cot ctg".split(" ");for(t=0;t<r.length;t+=1)oe[r[t]]=oe["arc"+r[t]]=oe[r[t]+"h"]=oe["ar"+r[t]+"h"]=oe["arc"+r[t]+"h"]=1;var i="gcf hcf lcm proj span".split(" ");for(t=0;t<i.length;t+=1)oe[i[t]]=1}(),S.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw'"'+e+'" not a space-delimited list of only letters';for(var t=e.split(" "),n={},r=0,i=0;i<t.length;i+=1){var o=t[i];if(o.length<2)throw'"'+o+'" not minimum length of 2';n[o]=1,r=a(r,o.length)}return n._maxLength=r,n};var se=h(q,(function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)re(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=W(),n=0;n<e.length;n+=1)re(e.charAt(n)).adopt(t,t.ends[1],0);return _.succeed(t.children())}}));for(var le in oe)oe.hasOwnProperty(le)&&(w[le]=se);w.operatorname=h(H,(function(e){e.createLeftOf=s,e.numBlocks=function(){return 1},e.parser=function(){return G.block.map((function(e){return e.children()}))}})),w.f=h(re,(function(e,t){e.init=function(){q.p.init.call(this,this.letter="f",'<var class="mq-f">f</var>')},e.italicize=function(e){return this.jQ.html("f").toggleClass("mq-f",e),t.italicize.apply(this,arguments)}})),w[" "]=w.space=f(Y,"\\ ","&nbsp;"),w[","]=f(Y,"{,}",","),w["'"]=w.prime=f(Y,"'","&prime;"),w["″"]=w.dprime=f(Y,"″","&Prime;"),w.backslash=f(Y,"\\backslash ","\\"),A["\\"]||(A["\\"]=w.backslash),w.$=f(Y,"\\$","$");var ce=h(q,(function(e,t){e.init=function(e,n){t.init.call(this,e,'<span class="mq-nonSymbola">'+(n||e)+"</span>")}}));w["@"]=ce,w["#"]=f(ce,"\\#","#"),w["&"]=f(ce,"\\&","&amp;"),w["%"]=f(ce,"\\%","%"),w.alpha=w.beta=w.gamma=w.delta=w.zeta=w.eta=w.theta=w.iota=w.kappa=w.mu=w.nu=w.xi=w.rho=w.sigma=w.tau=w.chi=w.psi=w.omega=h(ne,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),w.phi=f(ne,"\\phi ","&#981;"),w.phiv=w.varphi=f(ne,"\\varphi ","&phi;"),w.epsilon=f(ne,"\\epsilon ","&#1013;"),w.epsiv=w.varepsilon=f(ne,"\\varepsilon ","&epsilon;"),w.piv=w.varpi=f(ne,"\\varpi ","&piv;"),w.sigmaf=w.sigmav=w.varsigma=f(ne,"\\varsigma ","&sigmaf;"),w.thetav=w.vartheta=w.thetasym=f(ne,"\\vartheta ","&thetasym;"),w.upsilon=w.upsi=f(ne,"\\upsilon ","&upsilon;"),w.gammad=w.Gammad=w.digamma=f(ne,"\\digamma ","&#989;"),w.kappav=w.varkappa=f(ne,"\\varkappa ","&#1008;"),w.rhov=w.varrho=f(ne,"\\varrho ","&#1009;"),w.pi=w["π"]=f(ce,"\\pi ","&pi;"),w.lambda=f(ce,"\\lambda ","&lambda;"),w.Upsilon=w.Upsi=w.upsih=w.Upsih=f(q,"\\Upsilon ",'<var style="font-family: serif">&upsih;</var>'),w.Gamma=w.Delta=w.Theta=w.Lambda=w.Xi=w.Pi=w.Sigma=w.Phi=w.Psi=w.Omega=w.forall=h(Y,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}}));var ue=h(H,(function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=G.parse(this.latex);t.children().adopt(e.parent,e[g],e[1]),e[g]=t.ends[1],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[1][1].siblingCreated&&t.ends[1][1].siblingCreated(e.options,g),t.ends[g][g].siblingCreated&&t.ends[g][g].siblingCreated(e.options,1),e.parent.bubble("reflow")},e.parser=function(){var e=G.parse(this.latex).children();return _.succeed(e)}}));w["⁰"]=f(ue,"^0"),w["¹"]=f(ue,"^1"),w["²"]=f(ue,"^2"),w["³"]=f(ue,"^3"),w["⁴"]=f(ue,"^4"),w["⁵"]=f(ue,"^5"),w["⁶"]=f(ue,"^6"),w["⁷"]=f(ue,"^7"),w["⁸"]=f(ue,"^8"),w["⁹"]=f(ue,"^9"),w["₀"]=f(ue,"_0"),w["₁"]=f(ue,"_1"),w["₂"]=f(ue,"_2"),w["₃"]=f(ue,"_3"),w["₄"]=f(ue,"_4"),w["₅"]=f(ue,"_5"),w["₆"]=f(ue,"_6"),w["₇"]=f(ue,"_7"),w["₈"]=f(ue,"_8"),w["₉"]=f(ue,"_9"),w["¼"]=f(ue,"\\frac14"),w["½"]=f(ue,"\\frac12"),w["¾"]=f(ue,"\\frac34");var de=h(V,(function(e){e.init=Y.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){if(1!==t)return this.jQ[0].className=function e(t){return t[g]?t[g]instanceof V||/^[,;:\(\[]$/.test(t[g].ctrlSeq)?"":"mq-binary-operator":t.parent&&t.parent.parent&&t.parent.parent.isStyleBlock()?e(t.parent.parent):""}(this),this}}));w["+"]=f(de,"+","+"),w["–"]=w["-"]=f(de,"-","&minus;"),w["±"]=w.pm=w.plusmn=w.plusminus=f(de,"\\pm ","&plusmn;"),w.mp=w.mnplus=w.minusplus=f(de,"\\mp ","&#8723;"),A["*"]=w.sdot=w.cdot=f(V,"\\cdot ","&middot;","*");var fe=h(V,(function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?"Strict":"";t.init.call(this,e["ctrlSeq"+r],e["html"+r],e["text"+r])},e.swap=function(e){this.strict=e;var t=e?"Strict":"";this.ctrlSeq=this.data["ctrlSeq"+t],this.jQ.html(this.data["html"+t]),this.textTemplate=[this.data["text"+t]]},e.deleteTowards=function(e,n){if(e===g&&!this.strict)return this.swap(!0),void this.bubble("reflow");t.deleteTowards.apply(this,arguments)}})),pe={ctrlSeq:"\\le ",html:"&le;",text:"≤",ctrlSeqStrict:"<",htmlStrict:"&lt;",textStrict:"<"},he={ctrlSeq:"\\ge ",html:"&ge;",text:"≥",ctrlSeqStrict:">",htmlStrict:"&gt;",textStrict:">"};w["<"]=w.lt=f(fe,pe,!0),w[">"]=w.gt=f(fe,he,!0),w["≤"]=w.le=w.leq=f(fe,pe,!1),w["≥"]=w.ge=w.geq=f(fe,he,!1);var ge=h(V,(function(e,t){e.init=function(){t.init.call(this,"=","=")},e.createLeftOf=function(e){if(e[g]instanceof fe&&e[g].strict)return e[g].swap(!1),void e[g].bubble("reflow");t.createLeftOf.apply(this,arguments)}}));w["="]=ge,w["×"]=w.times=f(V,"\\times ","&times;","[x]"),w["÷"]=w.div=w.divide=w.divides=f(V,"\\div ","&divide;","[/]"),A["~"]=w.sim=f(V,"\\sim ","~","~"),w.notin=w.cong=w.equiv=w.oplus=w.otimes=h(V,(function(e,t){e.init=function(e){t.init.call(this,"\\"+e+" ","&"+e+";")}})),w["≠"]=w.ne=w.neq=f(V,"\\ne ","&ne;"),w["∗"]=w.ast=w.star=w.loast=w.lowast=f(V,"\\ast ","&lowast;"),w.therefor=w.therefore=f(V,"\\therefore ","&there4;"),w.cuz=w.because=f(V,"\\because ","&#8757;"),w.prop=w.propto=f(V,"\\propto ","&prop;"),w["≈"]=w.asymp=w.approx=f(V,"\\approx ","&asymp;"),w["≢"]=w.notequiv=w.nequiv=f(V,"\\not\\equiv ","&#8802;"),w.isin=w.in=f(V,"\\in ","&isin;"),w.ni=w.contains=f(V,"\\ni ","&ni;"),w.notni=w.niton=w.notcontains=w.doesnotcontain=f(V,"\\not\\ni ","&#8716;"),w.sub=w.subset=f(V,"\\subset ","&sub;"),w.sup=w.supset=w.superset=f(V,"\\supset ","&sup;"),w.nsub=w.notsub=w.nsubset=w.notsubset=f(V,"\\not\\subset ","&#8836;"),w.nsup=w.notsup=w.nsupset=w.notsupset=w.nsuperset=w.notsuperset=f(V,"\\not\\supset ","&#8837;"),w.sube=w.subeq=w.subsete=w.subseteq=f(V,"\\subseteq ","&sube;"),w.supe=w.supeq=w.supsete=w.supseteq=w.supersete=w.superseteq=f(V,"\\supseteq ","&supe;"),w.nsube=w.nsubeq=w.notsube=w.notsubeq=w.nsubsete=w.nsubseteq=w.notsubsete=w.notsubseteq=f(V,"\\not\\subseteq ","&#8840;"),w.nsupe=w.nsupeq=w.notsupe=w.notsupeq=w.nsupsete=w.nsupseteq=w.notsupsete=w.notsupseteq=w.nsupersete=w.nsuperseteq=w.notsupersete=w.notsuperseteq=f(V,"\\not\\supseteq ","&#8841;"),w.mathbb=h(H,(function(e){e.createLeftOf=s,e.numBlocks=function(){return 1},e.parser=function(){var e=_.string,t=_.regex,n=_.optWhitespace;return n.then(e("{")).then(n).then(t(/^[NPZQRCH]/)).skip(n).skip(e("}")).map((function(e){return w[e]()}))}})),w.N=w.naturals=w.Naturals=f(Y,"\\mathbb{N}","&#8469;"),w.P=w.primes=w.Primes=w.projective=w.Projective=w.probability=w.Probability=f(Y,"\\mathbb{P}","&#8473;"),w.Z=w.integers=w.Integers=f(Y,"\\mathbb{Z}","&#8484;"),w.Q=w.rationals=w.Rationals=f(Y,"\\mathbb{Q}","&#8474;"),w.R=w.reals=w.Reals=f(Y,"\\mathbb{R}","&#8477;"),w.C=w.complex=w.Complex=w.complexes=w.Complexes=w.complexplane=w.Complexplane=w.ComplexPlane=f(Y,"\\mathbb{C}","&#8450;"),w.H=w.Hamiltonian=w.quaternions=w.Quaternions=f(Y,"\\mathbb{H}","&#8461;"),w.quad=w.emsp=f(Y,"\\quad "," "),w.qquad=f(Y,"\\qquad "," "),w.diamond=f(Y,"\\diamond ","&#9671;"),w.bigtriangleup=f(Y,"\\bigtriangleup ","&#9651;"),w.ominus=f(Y,"\\ominus ","&#8854;"),w.uplus=f(Y,"\\uplus ","&#8846;"),w.bigtriangledown=f(Y,"\\bigtriangledown ","&#9661;"),w.sqcap=f(Y,"\\sqcap ","&#8851;"),w.triangleleft=f(Y,"\\triangleleft ","&#8882;"),w.sqcup=f(Y,"\\sqcup ","&#8852;"),w.triangleright=f(Y,"\\triangleright ","&#8883;"),w.odot=w.circledot=f(Y,"\\odot ","&#8857;"),w.bigcirc=f(Y,"\\bigcirc ","&#9711;"),w.dagger=f(Y,"\\dagger ","&#0134;"),w.ddagger=f(Y,"\\ddagger ","&#135;"),w.wr=f(Y,"\\wr ","&#8768;"),w.amalg=f(Y,"\\amalg ","&#8720;"),w.models=f(Y,"\\models ","&#8872;"),w.prec=f(Y,"\\prec ","&#8826;"),w.succ=f(Y,"\\succ ","&#8827;"),w.preceq=f(Y,"\\preceq ","&#8828;"),w.succeq=f(Y,"\\succeq ","&#8829;"),w.simeq=f(Y,"\\simeq ","&#8771;"),w.mid=f(Y,"\\mid ","&#8739;"),w.nmid=f(Y,"\\nmid","&#8740;"),w.ll=f(Y,"\\ll ","&#8810;"),w.gg=f(Y,"\\gg ","&#8811;"),w.parallel=f(Y,"\\parallel ","&#8741;"),w.nparallel=f(Y,"\\nparallel ","&#8742;"),w.bowtie=f(Y,"\\bowtie ","&#8904;"),w.sqsubset=f(Y,"\\sqsubset ","&#8847;"),w.sqsupset=f(Y,"\\sqsupset ","&#8848;"),w.smile=f(Y,"\\smile ","&#8995;"),w.sqsubseteq=f(Y,"\\sqsubseteq ","&#8849;"),w.sqsupseteq=f(Y,"\\sqsupseteq ","&#8850;"),w.doteq=f(Y,"\\doteq ","&#8784;"),w.frown=f(Y,"\\frown ","&#8994;"),w.vdash=f(Y,"\\vdash ","&#8870;"),w.dashv=f(Y,"\\dashv ","&#8867;"),w.nless=f(Y,"\\nless ","&#8814;"),w.ngtr=f(Y,"\\ngtr ","&#8815;"),w.longleftarrow=f(Y,"\\longleftarrow ","&#8592;"),w.longrightarrow=f(Y,"\\longrightarrow ","&#8594;"),w.Longleftarrow=f(Y,"\\Longleftarrow ","&#8656;"),w.Longrightarrow=f(Y,"\\Longrightarrow ","&#8658;"),w.longleftrightarrow=f(Y,"\\longleftrightarrow ","&#8596;"),w.updownarrow=f(Y,"\\updownarrow ","&#8597;"),w.Longleftrightarrow=f(Y,"\\Longleftrightarrow ","&#8660;"),w.Updownarrow=f(Y,"\\Updownarrow ","&#8661;"),w.mapsto=f(Y,"\\mapsto ","&#8614;"),w.nearrow=f(Y,"\\nearrow ","&#8599;"),w.hookleftarrow=f(Y,"\\hookleftarrow ","&#8617;"),w.hookrightarrow=f(Y,"\\hookrightarrow ","&#8618;"),w.searrow=f(Y,"\\searrow ","&#8600;"),w.leftharpoonup=f(Y,"\\leftharpoonup ","&#8636;"),w.rightharpoonup=f(Y,"\\rightharpoonup ","&#8640;"),w.swarrow=f(Y,"\\swarrow ","&#8601;"),w.leftharpoondown=f(Y,"\\leftharpoondown ","&#8637;"),w.rightharpoondown=f(Y,"\\rightharpoondown ","&#8641;"),w.nwarrow=f(Y,"\\nwarrow ","&#8598;"),w.ldots=f(Y,"\\ldots ","&#8230;"),w.cdots=f(Y,"\\cdots ","&#8943;"),w.vdots=f(Y,"\\vdots ","&#8942;"),w.ddots=f(Y,"\\ddots ","&#8945;"),w.surd=f(Y,"\\surd ","&#8730;"),w.triangle=f(Y,"\\triangle ","&#9651;"),w.ell=f(Y,"\\ell ","&#8467;"),w.top=f(Y,"\\top ","&#8868;"),w.flat=f(Y,"\\flat ","&#9837;"),w.natural=f(Y,"\\natural ","&#9838;"),w.sharp=f(Y,"\\sharp ","&#9839;"),w.wp=f(Y,"\\wp ","&#8472;"),w.bot=f(Y,"\\bot ","&#8869;"),w.clubsuit=f(Y,"\\clubsuit ","&#9827;"),w.diamondsuit=f(Y,"\\diamondsuit ","&#9826;"),w.heartsuit=f(Y,"\\heartsuit ","&#9825;"),w.spadesuit=f(Y,"\\spadesuit ","&#9824;"),w.parallelogram=f(Y,"\\parallelogram ","&#9649;"),w.square=f(Y,"\\square ","&#11036;"),w.oint=f(Y,"\\oint ","&#8750;"),w.bigcap=f(Y,"\\bigcap ","&#8745;"),w.bigcup=f(Y,"\\bigcup ","&#8746;"),w.bigsqcup=f(Y,"\\bigsqcup ","&#8852;"),w.bigvee=f(Y,"\\bigvee ","&#8744;"),w.bigwedge=f(Y,"\\bigwedge ","&#8743;"),w.bigodot=f(Y,"\\bigodot ","&#8857;"),w.bigotimes=f(Y,"\\bigotimes ","&#8855;"),w.bigoplus=f(Y,"\\bigoplus ","&#8853;"),w.biguplus=f(Y,"\\biguplus ","&#8846;"),w.lfloor=f(Y,"\\lfloor ","&#8970;"),w.rfloor=f(Y,"\\rfloor ","&#8971;"),w.lceil=f(Y,"\\lceil ","&#8968;"),w.rceil=f(Y,"\\rceil ","&#8969;"),w.opencurlybrace=w.lbrace=f(Y,"\\lbrace ","{"),w.closecurlybrace=w.rbrace=f(Y,"\\rbrace ","}"),w.lbrack=f(Y,"["),w.rbrack=f(Y,"]"),w.slash=f(Y,"/"),w.vert=f(Y,"|"),w.perp=w.perpendicular=f(Y,"\\perp ","&perp;"),w.nabla=w.del=f(Y,"\\nabla ","&nabla;"),w.hbar=f(Y,"\\hbar ","&#8463;"),w.AA=w.Angstrom=w.angstrom=f(Y,"\\text\\AA ","&#8491;"),w.ring=w.circ=w.circle=f(Y,"\\circ ","&#8728;"),w.bull=w.bullet=f(Y,"\\bullet ","&bull;"),w.setminus=w.smallsetminus=f(Y,"\\setminus ","&#8726;"),w["¬"]=w.neg=f(Y,"\\neg ","&not;"),w.not=h(Y,(function(e,t){e.suffixes={"\\equiv":"notequiv","\\ni":"notni","\\subset":"notsubset","\\subseteq":"notsubseteq","\\supset":"notsupset","\\supseteq":"notsupseteq"},e.init=function(){return t.init.call(this,"\\neg ","&not;")},e.parser=function(){var t=_.succeed,n=_.optWhitespace;return function e(t){var n=_.string(t.shift());return t.length?n.or(e(t)):n}(Object.keys(e.suffixes).sort((function(e,t){return t.length-e.length}))).then((function(r){return n.then(t(w[e.suffixes[r]]()))})).or(n.then(t(this)))}})),w["…"]=w.dots=w.ellip=w.hellip=w.ellipsis=w.hellipsis=f(Y,"\\dots ","&hellip;"),w.converges=w.darr=w.dnarr=w.dnarrow=w.downarrow=f(Y,"\\downarrow ","&darr;"),w.dArr=w.dnArr=w.dnArrow=w.Downarrow=f(Y,"\\Downarrow ","&dArr;"),w.diverges=w.uarr=w.uparrow=f(Y,"\\uparrow ","&uarr;"),w.uArr=w.Uparrow=f(Y,"\\Uparrow ","&uArr;"),w.to=f(V,"\\to ","&rarr;"),w.rarr=w.rightarrow=f(Y,"\\rightarrow ","&rarr;"),w.implies=f(V,"\\Rightarrow ","&rArr;"),w.rArr=w.Rightarrow=f(Y,"\\Rightarrow ","&rArr;"),w.gets=f(V,"\\gets ","&larr;"),w.larr=w.leftarrow=f(Y,"\\leftarrow ","&larr;"),w.impliedby=f(V,"\\Leftarrow ","&lArr;"),w.lArr=w.Leftarrow=f(Y,"\\Leftarrow ","&lArr;"),w.harr=w.lrarr=w.leftrightarrow=f(Y,"\\leftrightarrow ","&harr;"),w.iff=f(V,"\\Leftrightarrow ","&hArr;"),w.hArr=w.lrArr=w.Leftrightarrow=f(Y,"\\Leftrightarrow ","&hArr;"),w.Re=w.Real=w.real=f(Y,"\\Re ","&real;"),w.Im=w.imag=w.image=w.imagin=w.imaginary=w.Imaginary=f(Y,"\\Im ","&image;"),w.part=w.partial=f(Y,"\\partial ","&part;"),w.infty=w.infin=w.infinity=f(Y,"\\infty ","&infin;"),w.pounds=f(Y,"\\pounds ","&pound;"),w.alef=w.alefsym=w.aleph=w.alephsym=f(Y,"\\aleph ","&alefsym;"),w.xist=w.xists=w.exist=w.exists=f(Y,"\\exists ","&exist;"),w.nexists=w.nexist=f(Y,"\\nexists ","&#8708;"),w.and=w.land=w.wedge=f(V,"\\wedge ","&and;"),w.or=w.lor=w.vee=f(V,"\\vee ","&or;"),w.o=w.O=w.empty=w.emptyset=w.oslash=w.Oslash=w.nothing=w.varnothing=f(V,"\\varnothing ","&empty;"),w.cup=w.union=f(V,"\\cup ","&cup;"),w.cap=w.intersect=w.intersection=f(V,"\\cap ","&cap;"),w.deg=w.degree=f(Y,"°","&deg;"),w.ang=w.angle=f(Y,"\\angle ","&ang;"),w.measuredangle=f(Y,"\\measuredangle ","&#8737;"),w.sphericalangle=f(Y,"\\sphericalangle ","&#8738;");var me,ve,ye=s,be=document.createElement("div").style;for(var Ie in{transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1})if(Ie in be){ve=Ie;break}ve?me=function(e,t,n){e.css(ve,"scale("+t+","+n+")")}:"filter"in be?(ye=function(e){e.className=e.className},me=function(e,t,n){t/=1+(n-1)/2,e.css("fontSize",n+"em"),e.hasClass("mq-matrixed-container")||e.addClass("mq-matrixed-container").wrapInner('<span class="mq-matrixed"></span>');var r=e.children().css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+t+",SizingMethod='auto expand')");function i(){e.css("marginRight",(r.width()-1)*(t-1)/t+"px")}i();var o=setInterval(i);v(window).load((function(){clearTimeout(o),i()}))}):me=function(e,t,n){e.css("fontSize",n+"em")};var xe=h(H,(function(e,t){e.init=function(e,n,r){t.init.call(this,e,"<"+n+" "+r+">&0</"+n+">")}})),we=h(ne,(function(e,t){e.symbols={C:"&#8450;",H:"&#8461;",N:"&#8469;",P:"&#8473;",Q:"&#8474;",R:"&#8477;",Z:"&#8484;"},e.init=function(e){var n=e;this.symbols[e]&&(n='<span class="mq-original">'+e+"</span>"+this.symbols[e]),t.init.call(this,e,n)}}));w.mathrm=f(xe,"\\mathrm","span",'class="mq-roman mq-font"'),w.mathit=f(xe,"\\mathit","i",'class="mq-font"'),w.mathbf=f(xe,"\\mathbf","b",'class="mq-font"'),w.mathsf=f(xe,"\\mathsf","span",'class="mq-sans-serif mq-font"'),w.mathtt=f(xe,"\\mathtt","span",'class="mq-monospace mq-font"'),w.mathbb=h(H,(function(e,t){e.init=function(){t.init.call(this,"\\mathbb",'<span class="mq-mathbb mq-font">&0</span>')},e.adopt=function(){return this.eachChild((function(e){if(!e.writeOverride){var t=e.write,n=e.deleteOutOf;e.write=e.writeOverride=function(n,r,i){var o;if(!we.prototype.symbols[r])return t.apply(e,arguments);o=we(r),i&&o.replaces(i),o.createLeftOf(n)},e.deleteOutOf=function(t,r){var i=[];return e.eachChild((function(t){var n=t.ctrlSeq;i.push(ne(n).adopt(e,e.ends[1],0)),t.remove()})),i.length&&(r[1]=i[0]),e.jQize().appendTo(e.jQ),n.apply(e,arguments)}}})),t.adopt.apply(this,arguments)},e.finalizeTree=function(){this.eachChild((function(e){e.eachChild((function(t){var n=t.ctrlSeq,r=ne;we.prototype.symbols[n]&&(r=we),r(n).adopt(e,e.ends[1],0),t.remove()})),e.jQize().appendTo(e.jQ)}))}})),w.underline=f(xe,"\\underline","span",'class="mq-non-leaf mq-underline"'),w.bar=f(xe,"\\bar","span",'class="mq-non-leaf mq-overline"'),w.overline=f(xe,"\\overline","span",'class="mq-non-leaf mq-overline"');var Ae=h(H,(function(e,t){e.init=function(e,n){t.init.call(this,e,"<span "+n+'><span class="mq-arrow-inner">&0</span></span>')}}));w.overrightarrow=f(Ae,"\\overrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-right"'),w.overleftarrow=f(Ae,"\\overleftarrow",'class="mq-non-leaf mq-overarrow mq-arrow-left"'),w.overleftrightarrow=f(Ae,"\\overleftrightarrow",'class="mq-non-leaf mq-overarrow mq-arrow-leftright"'),w.underrightarrow=f(Ae,"\\underrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-right"'),w.underleftarrow=f(Ae,"\\underleftarrow",'class="mq-non-leaf mq-underarrow mq-arrow-left"'),w.underleftrightarrow=f(Ae,"\\underleftrightarrow",'class="mq-non-leaf mq-underarrow mq-arrow-leftright"');var Me=h(H,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&0</span><span class="mq-harpoons-harpoons">&#x21cc;</span></span>'})),Te=w.xrightleftharpoons=h(Me,(function(e,t){e.ctrlSeq="\\xrightleftharpoons",e.htmlTemplate='<span class="mq-harpoons mq-harpoons-rightleft mq-non-leaf"><span class="mq-harpoons-numerator">&1</span><span class="mq-harpoons-harpoons">&#x21cc;</span><span class="mq-harpoons-denominator">&0</span></span>',e.parser=function(){return G.optBlock.then((function(e){return G.block.map((function(t){var n=Te();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(G.block.map((function(e){var t=Me();return t.blocks=[e],e.adopt(t,0,0),t})))},e.latex=function(){return this.ctrlSeq+"["+this.ends[g].latex()+"]{"+this.ends[1].latex()+"}"}}));w.overarc=f(xe,"\\overarc","span",'class="mq-non-leaf mq-overarc"'),w.dot=h(H,(function(e,t){e.init=function(){t.init.call(this,"\\dot",'<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>')}})),w.textcolor=h(H,(function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate='<span class="mq-textcolor" style="color:'+e+'">&0</span>'},e.latex=function(){return"\\textcolor{"+this.color+"}{"+this.blocks[0].latex()+"}"},e.parser=function(){var e=this,n=_.optWhitespace,r=_.string,i=_.regex;return n.then(r("{")).then(i(/^[#\w\s.,()%-]*/)).skip(r("}")).then((function(n){return e.setColor(n),t.parser.call(e)}))},e.isStyleBlock=function(){return!0}})),w.class=h(H,(function(e,t){e.parser=function(){var e=this,n=_.string,r=_.regex;return _.optWhitespace.then(n("{")).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n("}")).then((function(n){return e.cls=n||"",e.htmlTemplate='<span class="mq-class '+n+'">&0</span>',t.parser.call(e)}))},e.latex=function(){return"\\class{"+this.cls+"}{"+this.blocks[0].latex()+"}"},e.isStyleBlock=function(){return!0}}));var Ee=h(H,(function(e,t){e.ctrlSeq="_{...}^{...}",e.createLeftOf=function(e){if(this.replacedFragment||e[g]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=g;t;t=t===g&&1)if(this[t]instanceof Ee){for(var n="sub";n;n="sub"===n&&"sup"){var r=this[n],i=this[t][n];if(r){if(i)if(r.isEmpty())a=y(i,0,i.ends[g]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=y(i,o.ends[1],i.ends[g]);t===g?o.adopt(i,i.ends[1],0):o.adopt(i,0,i.ends[g])}else this[t].addBlock(r.disown());this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[g]===this&&(1===t&&a?a[g]?e.insRightOf(a[g]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},N.p.charsThatBreakOutOfSupSub="",e.finalizeTree=function(){this.ends[g].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if("_"===t)return;var n=this.chToCmd(t,e.options);return n instanceof q?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[g]&&!e[1]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),W.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof q?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(g,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(1===n.length?n:"{"+(n||" ")+"}"):""}return e("_",this.sub)+e("^",this.sup)},e.text=function(){function e(e,t){var n=t&&t.text();return t?e+(1===n.length?n:"("+(n||" ")+")"):""}return e("_",this.sub)+e("^",this.sup)},e.addBlock=function(e){"sub"===this.supsub?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=v('<span class="mq-sup"/>').append(e.jQ.children()).attr(i,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=v('<span class="mq-sub"></span>').append(e.jQ.children()).attr(i,e.id).appendTo(this.jQ.removeClass("mq-sup-only")),this.jQ.append('<span style="display:inline-block;width:0">&#8203;</span>'));for(var t=0;t<2;t+=1)!function(e,t,n,r){e[t].deleteOutOf=function(i,o){if(o.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var a=this.ends[i];this.children().disown().withDirAdopt(i,o.parent,o[i],o[-i]).jQ.insDirOf(-i,o.jQ),o[-i]=a}e.supsub=n,delete e[t],delete e[r+"Into"],e[n][r+"OutOf"]=Ce,delete e[n].deleteOutOf,"sub"===t&&v(e.jQ.addClass("mq-sup-only")[0].lastChild).remove(),this.remove()}}(this,"sub sup".split(" ")[t],"sup sub".split(" ")[t],"down up".split(" ")[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(".mq-sup");if(n.length){var r=parseInt(n.css("font-size")),i=n.offset().top+n.height()-t.offset().top-.7*r,o=parseInt(n.css("margin-bottom"));n.css("margin-bottom",o+i)}}}}));function Ce(e){var t=this.parent,n=e;do{if(n[1])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}w.subscript=w._=h(Ee,(function(e,t){e.supsub="sub",e.htmlTemplate='<span class="mq-supsub mq-non-leaf"><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["_"],e.finalizeTree=function(){this.downInto=this.sub=this.ends[g],this.sub.upOutOf=Ce,t.finalizeTree.call(this)}})),w.superscript=w.supscript=w["^"]=h(Ee,(function(e,t){e.supsub="sup",e.htmlTemplate='<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup">&0</span></span>',e.textTemplate=["^(",")"],e.finalizeTree=function(){this.upInto=this.sup=this.ends[1],this.sup.downOutOf=Ce,t.finalizeTree.call(this)}}));var Ne=h(H,(function(e,t){e.init=function(e,t){var n='<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>'+t+'</big><span class="mq-from"><span>&0</span></span></span>';q.prototype.init.call(this,e,n)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(re("n").createLeftOf(e),ge().createLeftOf(e))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return this.ctrlSeq+"_"+e(this.ends[g].latex())+"^"+e(this.ends[1].latex())},e.parser=function(){for(var e=_.string,t=_.optWhitespace,n=_.succeed,r=G.block,i=this,o=i.blocks=[W(),W()],a=0;a<o.length;a+=1)o[a].adopt(i,i.ends[1],0);return t.then(e("_").or(e("^"))).then((function(e){var t=o["_"===e?0:1];return r.then((function(e){return e.children().adopt(t,t.ends[1],0),n(i)}))})).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[g],this.upInto=this.ends[1],this.ends[g].upOutOf=this.ends[1],this.ends[1].downOutOf=this.ends[g]}}));w["∑"]=w.sum=w.summation=f(Ne,"\\sum ","&sum;"),w["∏"]=w.prod=w.product=f(Ne,"\\prod ","&prod;"),w.coprod=w.coproduct=f(Ne,"\\coprod ","&#8720;"),w["∫"]=w.int=w.integral=h(Ne,(function(e,t){e.init=function(){q.prototype.init.call(this,"\\int ",'<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=H.p.createLeftOf})),w.bigg=w.intsub=w.integralsubstitution=h(Ne,(function(e,t){e.init=function(){q.prototype.init.call(this,"\\bigg",'<span class="mq-intsub mq-non-leaf"><big>/</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>')},e.createLeftOf=H.p.createLeftOf,e.parser=function(){var e=this,t=_.string,n=_.optWhitespace,r=_.succeed;e.blocks=[W(),W()];for(var i=0;i<e.blocks.length;i+=1)e.blocks[i].adopt(e,e.ends[1],0);return t("/_{").then(t("\\!").many()).then(G).then((function(t){return t.children().adopt(e.blocks[0],e.blocks[0].ends[1],0),r(e)})).then(n).then(t("}")).then(n).then(t("^")).then(G.block).then((function(t){return t.children().adopt(e.blocks[1],e.blocks[1].ends[1],0),r(e)}))},e.latex=function(){function e(e){return 1===e.length?e:"{"+(e||" ")+"}"}return"\\bigg/_{\\!\\!\\!\\!\\!"+e(this.blocks[0].latex())+"}^"+e(this.blocks[1].latex())}}));var Se=w.frac=w.dfrac=w.cfrac=w.fraction=h(H,(function(e,t){e.ctrlSeq="\\frac",e.htmlTemplate='<span class="mq-fraction mq-non-leaf"><span class="mq-numerator">&0</span><span class="mq-denominator">&1</span><span style="display:inline-block;width:0">&#8203;</span></span>',e.textTemplate=["(",")/(",")"],e.finalizeTree=function(){this.upInto=this.ends[1].upOutOf=this.ends[g],this.downInto=this.ends[g].downOutOf=this.ends[1]}})),ke=w.over=A["/"]=h(Se,(function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[g];n&&!(n instanceof V||n instanceof(w.text||s)||n instanceof Ne||"\\ "===n.ctrlSeq||/^[,;:]$/.test(n.ctrlSeq));)n=n[g];n instanceof Ne&&n[1]instanceof Ee&&(n=n[1])[1]instanceof Ee&&n[1].ctrlSeq!=n.ctrlSeq&&(n=n[1]),n===e[g]||e.isTooDeep(1)||(this.replaces(x(n[1]||e.parent.ends[g],e[g])),e[g]=n)}t.createLeftOf.call(this,e)}})),je=w.sqrt=w["√"]=h(H,(function(e,t){e.ctrlSeq="\\sqrt",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem">&0</span></span>',e.textTemplate=["sqrt(",")"],e.parser=function(){return G.optBlock.then((function(e){return G.block.map((function(t){var n=De();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n}))})).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[1].jQ;me(e.prev(),1,e.innerHeight()/+e.css("fontSize").slice(0,-2)-.1)}})),De=(w.hat=h(H,(function(e,t){e.ctrlSeq="\\hat",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>',e.textTemplate=["hat(",")"]})),w.nthroot=h(je,(function(e,t){e.htmlTemplate='<span class="mq-nthroot mq-non-leaf">&0</span><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf">&1</span></span>',e.textTemplate=["sqrt[","](",")"],e.latex=function(){return"\\sqrt["+this.ends[g].latex()+"]{"+this.ends[1].latex()+"}"}}))),Le=h(H,(function(e,t){e.init=function(e,n,r){var i='<span class="mq-non-leaf"><span class="mq-diacritic-above">'+n+'</span><span class="mq-diacritic-stem">&0</span></span>';t.init.call(this,e,i,r)}}));function Oe(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(":first").add(this.jQ.children(":last")),this.contentjQ=this.jQ.children(":eq(1)")},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css("fontSize"));me(this.delimjQs,o(1+.2*(e-1),1.2),1.2*e)}}w.vec=f(Le,"\\vec","&rarr;",["vec(",")"]),w.tilde=f(Le,"\\tilde","~",["tilde(",")"]);var Re=h(h(H,Oe),(function(e,t){e.init=function(e,n,r,i,o){t.init.call(this,"\\left"+i,void 0,[n,r]),this.side=e,this.sides={},this.sides[g]={ch:n,ctrlSeq:i},this.sides[1]={ch:r,ctrlSeq:o}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate='<span class="mq-non-leaf"><span class="mq-scaled mq-paren'+(1===this.side?" mq-ghost":"")+'">'+this.sides[g].ch+'</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren'+(this.side===g?" mq-ghost":"")+'">'+this.sides[1].ch+"</span></span>",t.html.call(this)},e.latex=function(){return"\\left"+this.sides[g].ctrlSeq+this.ends[g].latex()+"\\right"+this.sides[1].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof Re&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Pe[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":"]","[":")"}[this.sides[g].ch]===n.sides[1].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===g?0:1).removeClass("mq-ghost").html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if("|"===this.sides[g].ch)var r=this.matchBrack(n,1,e[1])||this.matchBrack(n,g,e[g])||this.matchBrack(n,0,e.parent.parent);else r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&x(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble("reflow")}else i=(r=this).side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(x(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===g?e.insAtLeftEnd(r.ends[g]):e.insRightOf(r)},e.placeCursor=s,e.unwrap=function(){this.ends[g].children().disown().adopt(this.parent,this,this[1]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],o=r.ends[e];if(e===this.side)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));var a=n.options,s=!this.side;if(this.side=-e,this.matchBrack(a,e,this.ends[g].ends[this.side])){this.closeOpposing(this.ends[g].ends[this.side]);var l=this.ends[g].ends[e];this.unwrap(),l.siblingCreated&&l.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(a,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&s)return this.unwrap(),void(i?n.insDirOf(-e,i):n.insAtDirEnd(e,r));this.sides[e]={ch:Pe[this.sides[this.side].ch],ctrlSeq:Pe[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass("mq-ghost").eq(e===g?0:1).addClass("mq-ghost").html(this.sides[e].ch)}i?(l=this.ends[g].ends[e],x(i,o,-e).disown().withDirAdopt(-e,this.ends[g],l,0).jQ.insAtDirEnd(e,this.ends[g].jQ.removeClass("mq-empty")),l.siblingCreated&&l.siblingCreated(n.options,e),n.insDirOf(-e,i)):t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[g])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[g].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===g?1:0).removeClass("mq-ghost"),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}})),Pe={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","\\{":"\\}","\\}":"\\{","&lang;":"&rang;","&rang;":"&lang;","\\langle ":"\\rangle ","\\rangle ":"\\langle ","|":"|","\\lVert ":"\\rVert ","\\rVert ":"\\lVert "};function ze(e,t){t=t||e;var n=Pe[e],r=Pe[t];A[e]=f(Re,g,e,n,t,r),A[n]=f(Re,1,e,n,t,r)}ze("("),ze("["),ze("{","\\{"),w.langle=f(Re,g,"&lang;","&rang;","\\langle ","\\rangle "),w.rangle=f(Re,1,"&lang;","&rang;","\\langle ","\\rangle "),A["|"]=f(Re,g,"|","|","|","|"),w.lVert=f(Re,g,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.rVert=f(Re,1,"&#8741;","&#8741;","\\lVert ","\\rVert "),w.left=h(H,(function(e){e.parser=function(){var e=_.regex,t=_.string,n=(_.succeed,_.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then((function(r){var i="\\"===r.charAt(0)?r.slice(1):r;return"\\langle"==r&&(i="&lang;",r+=" "),"\\lVert"==r&&(i="&#8741;",r+=" "),G.then((function(o){return t("\\right").skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map((function(e){var t="\\"===e.charAt(0)?e.slice(1):e;"\\rangle"==e&&(t="&rang;",e+=" "),"\\rVert"==e&&(t="&#8741;",e+=" ");var n=Re(0,i,t,r,e);return n.blocks=[o],o.adopt(n,0,0),n}))}))}))}})),w.right=h(H,(function(e){e.parser=function(){return _.fail("unmatched \\right")}}));var Ue=w.binom=w.binomial=h(h(H,Oe),(function(e,t){e.ctrlSeq="\\binom",e.htmlTemplate='<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>',e.textTemplate=["choose(",",",")"]}));w.choose=h(Ue,(function(e){e.createLeftOf=ke.prototype.createLeftOf})),w.editable=w.MathQuillMathField=h(H,(function(e,t){e.ctrlSeq="\\MathQuillMathField",e.htmlTemplate='<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>',e.parser=function(){var e=this,n=_.string,r=_.regex,i=_.succeed;return n("[").then(r(/^[a-z][a-z0-9]*/i)).skip(n("]")).map((function(t){e.name=t})).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=E(this.ends[g],this.jQ,e);t.KIND_OF_MQ="MathField",t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),U(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[g].controller))},e.latex=function(){return this.ends[g].latex()},e.text=function(){return this.ends[g].text()}}));var Be=w.embed=h(q,(function(e,t){e.setOptions=function(e){function t(){return""}return this.text=e.text||t,this.htmlTemplate=e.htmlString||"",this.latex=e.latex||t,this},e.parser=function(){var e=this,t=_.string,n=_.regex,r=_.succeed;return t("{").then(n(/^[a-z][a-z0-9]*/i)).skip(t("}")).then((function(i){return t("[").then(n(/^[-\w\s]*/)).skip(t("]")).or(r()).map((function(t){return e.setOptions(j[i](t))}))}))}})),_e={};w.begin=h(H,(function(e,t){e.parser=function(){var e=_.string,t=_.regex;return e("{").then(t(/^[a-z]+/i)).skip(e("}")).then((function(t){return(_e[t]?_e[t]().parser():_.fail("unknown environment type: "+t)).skip(e("\\end{"+t+"}"))}))}}));var Fe=h(H,(function(e,t){e.template=[["\\begin{","}"],["\\end{","}"]],e.wrappers=function(){return[e.template[0].join(this.environment),e.template[1].join(this.environment)]}})),Ge=_e.matrix=h(Fe,(function(e,t){var n="\\\\";e.parentheses={left:null,right:null},e.environment="matrix",e.reflow=function(){var e=this.jQ.children("table"),t=e.outerHeight()/+e.css("fontSize").slice(0,-2),n=this.jQ.children(".mq-paren");n.length&&me(n,o(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e,t=this.hline,n="";this.eachChild((function(r){void 0!==e&&(e!==r.row?(n+="\\\\\n",t&&(n+="\\hline\n",t=!1)):n+="&"),e=r.row,n+=r.latex()}));var r=this.options?"{"+this.options+"}":"";return this.wrappers().join(r+"\n"+n+"\n")},e.html=function(){var e,n=[],r="",i=0;function o(e){return e?'<span class="mq-scaled mq-paren">'+e+"</span>":""}return this.eachChild((function(t){e!==t.row&&(e=t.row,r+="<tr>$tds</tr>",n[e]=[]),n[e].push("<td>&"+i+++"</td>")})),this.htmlTemplate='<span class="mq-matrix mq-matrix-'+this.environment+' mq-non-leaf">'+o(this.parentheses.left)+'<table class="mq-non-leaf">'+r.replace(/\$tds/g,(function(){return n.shift().join("")}))+"</table>"+o(this.parentheses.right)+"</span>",t.html.call(this)},e.createBlocks=function(){this.blocks=[Ze(0,this),Ze(0,this),Ze(1,this),Ze(1,this)]},e.parser=function(){var e=this,t=_.optWhitespace,r=_.string;return(0,_.regex)(/^({[clr](\|?[clr])*})?/).then((function(t){return t&&!e.options&&(e.options=t.slice(1,-1)),_.succeed(e)})).then(t.then(r("&").or(r(n)).or(r("\\hline")).or(G.block)).many()).skip(t).then((function(t){var r=[],i=0;function o(){e.blocks.push(Ze(i,e,r)),r=[]}e.blocks=[];for(var a=0;a<t.length;a+=1)t[a]instanceof W?r.push(t[a]):"\\hline"===t[a]?e.hline=!0:(o(),t[a]===n&&(i+=1));return o(),e.autocorrect(),_.succeed(e)}))},e.finalizeTree=function(){var e=this.jQ.find("table");e.toggleClass("mq-rows-1",1===e.find("tr").length),this.relink()},e.relink=function(){for(var e,t,n,r=this.blocks,i=[],o=0;o<r.length;o+=1)e!==(n=r[o]).row&&(i[e=n.row]=[],t=0),i[e][t]=n,n[1]=r[o+1],n[g]=r[o-1],i[e-1]&&i[e-1][t]&&(n.upOutOf=i[e-1][t],i[e-1][t].downOutOf=n),t+=1;this.ends[g]=r[0],this.ends[1]=r[r.length-1]},e.autocorrect=function(e){var t,n,r,i,o,a=[],s=(e=[],this.blocks);for(o=0;o<s.length;o+=1)e[i=s[o].row]=e[i]||[],e[i].push(s[o]),a[i]=e[i].length;if((t=Math.max.apply(null,a))!==Math.min.apply(null,a)){for(o=0;o<e.length;o+=1)for(n=t-e[o].length;n;)r=t*o+e[o].length,s.splice(r,0,Ze(o,this)),n-=1;this.relink()}},e.deleteCell=function(e){var t,n,r=[],i=[],o=[],a=[],s=this.blocks;function l(e){for(var t=[],n=0;n<e.length;n+=1)e[n].isEmpty()&&t.push(e[n]);return t.length===e.length}function c(e){for(var t=0;t<e.length;t+=1)s.indexOf(e[t])>-1&&(e[t].remove(),s.splice(s.indexOf(e[t]),1))}this.eachChild((function(s){t!==s.row&&(t=s.row,r[t]=[],n=0),i[n]=i[n]||[],i[n].push(s),r[t].push(s),s===e&&(o=r[t],a=i[n]),n+=1})),l(o)&&a.length>1&&(t=r.indexOf(o),this.eachChild((function(e){e.row>t&&(e.row-=1)})),c(o),this.jQ.find("tr").eq(t).remove()),l(a)&&o.length>1&&c(a),this.finalizeTree()},e.addRow=function(e){var t,n=[],r=[],o=[],a=v("<tr></tr>"),s=e.row,l=0;this.eachChild((function(e){e.row<=s&&n.push(e),e.row===s&&(l+=1),e.row>s&&(e.row+=1,o.push(e))}));for(var c=0;c<l;c+=1)(t=Ze(s+1)).parent=this,r.push(t),t.jQ=v('<td class="mq-empty">').attr(i,t.id).appendTo(a);return this.jQ.find("tr").eq(s).after(a),this.blocks=n.concat(r,o),r[0]},e.addColumn=function(e){var t,n,r=[],o=[];this.eachChild((function(n){r[n.row]=r[n.row]||[],r[n.row].push(n),n===e&&(t=r[n.row].length)}));for(var a=0;a<r.length;a+=1)(n=Ze(a)).parent=this,o.push(n),r[a].splice(t,0,n),n.jQ=v('<td class="mq-empty">').attr(i,n.id);return this.jQ.find("tr").each((function(e){v(this).find("td").eq(t-1).after(r[e][t].jQ)})),this.blocks=[].concat.apply([],r),o[e.row]},e.insert=function(e,t){var n=this[e](t);this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble("reflow").cursor.insAtRightEnd(n)},e.backspace=function(e,t,n,r){var i=e[t];if(e.isEmpty()){for(this.deleteCell(e);i&&i[t]&&-1===this.blocks.indexOf(i);)i=i[t];i&&n.insAtDirEnd(-t,i),1===this.blocks.length&&this.blocks[0].isEmpty()&&(r(),this.finalizeTree()),this.bubble("edited")}}}));_e.pmatrix=h(Ge,(function(e,t){e.environment="pmatrix",e.parentheses={left:"(",right:")"}})),_e.bmatrix=h(Ge,(function(e,t){e.environment="bmatrix",e.parentheses={left:"[",right:"]"}})),_e.Bmatrix=h(Ge,(function(e,t){e.environment="Bmatrix",e.parentheses={left:"{",right:"}"}})),_e.vmatrix=h(Ge,(function(e,t){e.environment="vmatrix",e.parentheses={left:"|",right:"|"}})),_e.Vmatrix=h(Ge,(function(e,t){e.environment="Vmatrix",e.parentheses={left:"&#8214;",right:"&#8214;"}})),_e.cases=h(Ge,(function(e,t){e.environment="cases",e.parentheses={left:"{",right:null}})),_e.array=h(Ge,(function(e,t){e.environment="array",e.parentheses={left:null,right:null},e.hline=!0,e.options="l|l"}));var Ze=h(W,(function(e,t){e.init=function(e,n,r){if(t.init.call(this),this.row=e,n&&this.adopt(n,n.ends[1],0),r)for(var i=0;i<r.length;i++)r[i].children().adopt(this,this.ends[1],0)},e.keystroke=function(e,n,r){switch(e){case"Tab":var i,o=this,a=0;if(this.parent.eachChild((function(e){e.row===o.row&&(e===o&&(i=a),a+=1)})),i===a-1)return n.preventDefault(),this.parent.insert("addColumn",this);break;case"Enter":var s,l=this.row+1,c=!0;if(this.parent.eachChild((function(e){e.row===l&&(s||(s=e),e.isEmpty()||(c=!1))})),n.preventDefault(),s&&c){r.cursor.insAtDirEnd(g,s);break}return this.parent.insert("addRow",this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,(function(){return t.deleteOutOf.apply(r,i)}))}})),He=(A["\\"]=h(H,(function(e,t){e.ctrlSeq="\\",e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate='<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>',e.textTemplate=["\\"],e.createBlocks=function(){t.createBlocks.call(this),this.ends[g].focus=function(){return this.parent.jQ.addClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.removeClass("mq-empty"),this},this.ends[g].blur=function(){return this.parent.jQ.removeClass("mq-hasCursor"),this.isEmpty()&&this.parent.jQ.addClass("mq-empty"),this},this.ends[g].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Y(t).createLeftOf(e):(this.parent.renderCommand(e),"\\"===t&&this.isEmpty()||e.parent.write(e,t))},this.ends[g].keystroke=function(e,n,r){return"Tab"===e||"Enter"===e||"Spacebar"===e?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass("mq-blur").bind("mousedown mousemove",(function(e){return v(e.target=n).trigger(e),!1})).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return"\\"+this.ends[g].latex()+" "},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[1]?e.insLeftOf(this[1]):e.insAtRightEnd(this.parent);var t=this.ends[g].latex();t||(t=" ");var n=w[t]||_e[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):((n=J()).replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}})),P(1));for(var qe in He)!function(e,t){"function"==typeof t?(L[e]=function(){return D(),t.apply(this,arguments)},L[e].prototype=t.prototype):L[e]=t}(qe,He[qe]);"object"==typeof e.exports&&(e.exports=L)}()},5970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"20px",height:"20px",viewBox:"0 0 20 20",enableBackground:"new 0 0 20 20",xmlSpace:"preserve",children:(0,r.jsx)("path",{fill:"#359BB7",d:"M10,20C4.48,20,0,15.52,0,10C0,4.48,4.48,0,10,0s10,4.48,10,10C20,15.52,15.52,20,10,20z M5.57,5.88\n\tc-0.14,0.21-0.09,0.5,0.11,0.66l1.4,1.06c0.21,0.16,0.51,0.12,0.67-0.09c0.72-0.91,1.21-1.44,2.31-1.44c0.82,0,1.84,0.53,1.84,1.33\n\tc0,0.6-0.5,0.91-1.31,1.37c-0.95,0.53-2.2,1.19-2.2,2.85v0.16c0,0.27,0.22,0.48,0.48,0.48h2.26c0.27,0,0.48-0.22,0.48-0.48v-0.05\n\tc0-1.15,3.35-1.2,3.35-4.3c0-2.34-2.43-4.11-4.7-4.11C8.07,3.31,6.67,4.23,5.57,5.88z M8.15,15.16c0,1.02,0.83,1.85,1.85,1.85\n\ts1.85-0.83,1.85-1.85s-0.83-1.85-1.85-1.85S8.15,14.14,8.15,15.16z"})})};const r=n(1085)},6003:e=>{"use strict";e.exports=t},6069:(e,t,n)=>{"use strict";let r=n(8952),i=n(3215);class o extends Error{constructor(e,t,n,r,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),a&&(this.plugin=a),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,o=e=>e,a=e=>e;if(e){let{bold:e,gray:t,red:s}=r.createColors(!0);o=t=>e(s(t)),n=e=>t(e),i&&(a=e=>i(e))}let s=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),u=String(c).length;return s.slice(l,c).map(((e,t)=>{let r=l+1+t,i=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),s=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,s),c=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(i)+a(l)+"\n "+c+o("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+a(e)+"\n "+t+o("^")}return" "+n(i)+a(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},6075:(e,t,n)=>{"use strict";var r=n(4345),i=n(2327),o=n(5400),a=n(3201),s=n(4195),l=n(2830),c=n(7590),u=n(2729),d={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p,h={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(p=n(8427)),p),transformRequest:[function(e,t){i(t,"Accept"),i(t,"Content-Type");var n,o=t&&t["Content-Type"]||"",a=o.indexOf("application/json")>-1,c=r.isObject(e);if(c&&r.isHTMLForm(e)&&(e=new FormData(e)),r.isFormData(e))return a?JSON.stringify(u(e)):e;if(r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(c){if(-1!==o.indexOf("application/x-www-form-urlencoded"))return l(e,this.formSerializer).toString();if((n=r.isFileList(e))||o.indexOf("multipart/form-data")>-1){var d=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,d&&new d,this.formSerializer)}}return c||a?(f(t,"application/json"),function(e){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&r.isString(e)&&(n&&!this.responseType||i)){var a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.classes.FormData,Blob:c.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(d)})),e.exports=h},6135:(e,t,n)=>{"use strict";var r=n(4345),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.slice(0,o)).toLowerCase(),n=r.trim(e.slice(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},6178:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var o=r.children;o.splice(o.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},6194:e=>{"use strict";e.exports=FormData},6403: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(8642),t),i(n(5517),t),i(n(6178),t),i(n(1467),t),i(n(8052),t),i(n(3698),t),i(n(1206),t);var o=n(1138);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},6435:(e,t,n)=>{"use strict";var r=n(5400);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},6439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var r,i,o,a=n(3379);function s(e){return e===r.Space||e===r.NewLine||e===r.Tab||e===r.FormFeed||e===r.CarriageReturn}function l(e){return e===r.Slash||e===r.Gt||s(e)}function c(e){return e>=r.Zero&&e<=r.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(r||(r={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(o=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,r=void 0!==n&&n,o=e.decodeEntities,s=void 0===o||o;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=s,this.entityTrie=r?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===r.Gt||s(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var n=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=n}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===u.TitleEnd?this.decodeEntities&&e===r.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===r.Lt)},e.prototype.stateCDATASequence=function(e){e===u.Cdata[this.sequenceIndex]?++this.sequenceIndex===u.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=u.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!l(e):function(e){return e>=r.LowerA&&e<=r.LowerZ||e>=r.UpperA&&e<=r.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===r.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===r.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===r.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(e===r.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===r.Gt||s(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===r.Slash?this.state=i.InSelfClosingTag:s(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):s(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===r.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===r.Eq?this.state=i.BeforeAttributeValue:e===r.Slash||e===r.Gt?(this.cbs.onattribend(o.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(o.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===r.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===r.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):s(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===r.DoubleQuote?o.Double:o.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,r.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,r.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||e===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(o.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===r.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===r.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===r.Dash?i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===r.Dash?(this.state=i.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===r.Number?this.state=i.BeforeNumericEntity:e===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===r.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===r.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===i.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,a.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===r.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-r.Zero),this.entityExcess++):function(e){return e>=r.UpperA&&e<=r.UpperF||e>=r.LowerA&&e<=r.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:this.stateText(e);break;case i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case i.InSpecialTag:this.stateInSpecialTag(e);break;case i.CDATASequence:this.stateCDATASequence(e);break;case i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case i.InAttributeName:this.stateInAttributeName(e);break;case i.InCommentLike:this.stateInCommentLike(e);break;case i.InSpecialComment:this.stateInSpecialComment(e);break;case i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case i.InTagName:this.stateInTagName(e);break;case i.InClosingTagName:this.stateInClosingTagName(e);break;case i.BeforeTagName:this.stateBeforeTagName(e);break;case i.AfterAttributeName:this.stateAfterAttributeName(e);break;case i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case i.InDeclaration:this.stateInDeclaration(e);break;case i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case i.BeforeComment:this.stateBeforeComment(e);break;case i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case i.InNamedEntity:this.stateInNamedEntity(e);break;case i.BeforeEntity:this.stateBeforeEntity(e);break;case i.InHexEntity:this.stateInHexEntity(e);break;case i.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()||this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();t.default=d},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,t,n)=>{const r=o.current.at(a.current);if(e===(null==r?void 0:r.content))return;const i={content:e,caretPositionBeforeChange:t,caretPositionAfterChange:n},c=[...o.current.slice(0,a.current+1),i];s(c),l(c.length-1)},clear:()=>{s([{content:""}]),l(0)},undo:()=>{var e,t,n;const r=a.current-1;if(r<0)return;const i=null!==(t=null===(e=o.current.at(a.current))||void 0===e?void 0:e.caretPositionBeforeChange)&&void 0!==t?t:0,s=o.current.at(r);return l(r),{content:null!==(n=null==s?void 0:s.content)&&void 0!==n?n:"",newCaretPosition:i}},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),{content:null==t?void 0:t.content,newCaretPosition:null==t?void 0:t.caretPositionAfterChange}}}};const r=n(5442)},6552:(e,t,n)=>{"use strict";var r=n(9978).version,i=n(5400),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],c=void 0===l||s(l,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},6593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},6660:(e,t,n)=>{e.exports=n(8226)},6825:(e,t,n)=>{"use strict";let r=n(2780),i=n(2767);class o extends r{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=o,o.default=o,r.registerRule(o)},6848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,r.jsxs)("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"30",height:"30",viewBox:"0 0 30 30",children:[(0,r.jsxs)("defs",{children:[(0,r.jsx)("clipPath",{id:"clip-path",children:(0,r.jsx)("path",{d:"M141.57-89.324v-2.34H143.2v2.34A2.3,2.3,0,0,1,140.9-87.03H130.1a2.3,2.3,0,0,1-2.292-2.294v-17.029a2.294,2.294,0,0,1,2.292-2.292h10.8a2.3,2.3,0,0,1,2.295,2.292v2.342H141.57v-2.342a.669.669,0,0,0-.67-.667H130.1a.667.667,0,0,0-.667.667v17.029a.668.668,0,0,0,.667.669h10.8A.67.67,0,0,0,141.57-89.324Zm3.271-13.579a1.069,1.069,0,0,1,1.825-.755l5.065,5.065a1.065,1.065,0,0,1,0,1.511l-5.065,5.067a1.07,1.07,0,0,1-1.825-.757v-2.412h-6.633a2.3,2.3,0,0,1-2.3-2.3v-.7a2.3,2.3,0,0,1,2.3-2.3h6.633V-102.9",fill:"none","clip-rule":"evenodd"})}),(0,r.jsx)("clipPath",{id:"clip-path-2",children:(0,r.jsx)("ellipse",{cx:"10",cy:"-29.606",rx:"15",ry:"14.933",fill:"none"})})]}),(0,r.jsx)("title",{children:"closeButton"}),(0,r.jsx)("rect",{width:"30",height:"30",fill:"#fff",opacity:"0"}),(0,r.jsx)("line",{x1:"25",y1:"5",x2:"5",y2:"25",fill:"none",stroke:"#6d6d6d","stroke-miterlimit":"10","stroke-width":"3"}),(0,r.jsx)("line",{x1:"5",y1:"5",x2:"25",y2:"25",fill:"none",stroke:"#6d6d6d","stroke-miterlimit":"10","stroke-width":"3"})]})};const r=n(1085)},6923:(e,t,n)=>{"use strict";var r=n(4345);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6945:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},6999:(e,t,n)=>{"use strict";var r=n(6848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},7078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function r(e){for(var r,i="",o=0;null!==(r=t.xmlReplacer.exec(e));){var a=r.index,s=e.charCodeAt(a),l=n.get(s);void 0!==l?(i+=e.substring(o,a)+l,o=a+1):(i+="".concat(e.substring(o,a),"&#x").concat((0,t.getCodePoint)(e,a).toString(16),";"),o=t.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+e.substr(o)}function i(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))},7107:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},7120:(e,t)=>{"use strict";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.module.reference")},7204: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=n(6003),s=r(n(3864)),l=r(n(1198)),c=r(n(2373)),u=r(n(1372)),d=n(4141),f=n(7772),p=n(2127),h=n(2959),g=(0,o.forwardRef)(((e,t)=>{const{toolbarRoot:n,ariaInvalid:r,ariaLabelledBy:s,questionId:g,editorStyle:v,className:y,id:b,lang:I}=e,x=(0,c.default)(),w=(0,o.useRef)(0);(0,o.useImperativeHandle)(t,(()=>({setValue:e=>{x.ref.current&&(x.ref.current.innerHTML=e),setTimeout((()=>{x.initMathImages(),setTimeout((()=>{x.onAnswerChange(w.current)}),0)}),0)}})));const A=e=>()=>{var t;if(x.ref.current!==document.activeElement)return;const n=null===(t=x.ref.current)||void 0===t?void 0:t.innerHTML,r=e();if(void 0===r)return;const{content:i,newCaretPosition:o}=r;x.ref.current&&i!==n&&(x.ref.current.innerHTML=null!=i?i:"",setTimeout((()=>{x.initMathImages(),setTimeout((()=>{x.ref.current&&o&&(0,p.setCaretPosition)(x.ref.current,o),x.onAnswerChange(o,!1)}),0)}),0))};return(0,h.useKeyboardEventListener)("z",!1,(e=>{(null==e?void 0:e.metaKey)&&(e.preventDefault(),e.stopPropagation())}),!1),(0,h.useKeyboardEventListener)("z",!0,A(x.undoEditor)),(0,h.useKeyboardEventListener)("y",!0,A(x.redoEditor)),(0,h.useKeyboardEventListener)("e",!0,(e=>{x.ref.current===document.activeElement&&(null==e||e.preventDefault(),x.spawnMathEditorAtCursor())})),(0,i.jsxs)(i.Fragment,{children:[n&&x.isToolbarOpen&&(0,a.createPortal)((0,i.jsx)(u.default,{}),n),x.isHelpDialogOpen&&(0,i.jsx)(d.HelpDialog,{}),(0,i.jsx)(m,{ref:x.ref,id:b,"aria-invalid":r,"aria-labelledby":s,"aria-multiline":!0,className:(0,l.default)("rich-text-editor answer",y),contentEditable:!0,"data-question-id":g,"data-testid":"rich-text-editor",lang:I,onBlur:function(e){(null==n?void 0:n.contains(e.relatedTarget))||x.hideToolbar()},onFocus:x.showToolbar,onInput:e=>{const t=e.nativeEvent.inputType;"historyUndo"===t?(A(x.undoEditor)(),e.preventDefault(),e.stopPropagation()):"historyRedo"===t&&(A(x.redoEditor)(),e.preventDefault(),e.stopPropagation()),x.onAnswerChange(w.current)},onKeyDown:e=>{w.current=(0,p.getCaretPosition)(x.ref.current),"e"===e.key.toLowerCase()&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),x.spawnMathEditorAtCursor())},onMouseDown:e=>{w.current=(0,p.getCaretPosition)(x.ref.current)},onPaste:async function(e){var t;e.preventDefault(),e.stopPropagation();const n=e.nativeEvent.clipboardData;if(!n)return;const r=null===(t=Array.from(n.items).at(-1))||void 0===t?void 0:t.getAsFile(),i=n.getData("text/html"),o=n.getData("text/plain"),a=r?"file":i?"html":"text";if(r&&x.allowedFileTypes.includes(r.type))try{const e=await x.handlePastedImage(r),t=document.createElement("img");t.src=e,document.execCommand("insertHTML",!1,(0,f.sanitize)(t.outerHTML))}catch(e){return void console.error("Error while pasting a file",e)}else i?document.execCommand("insertHTML",!1,(0,f.sanitize)(i)):o&&document.execCommand("insertHTML",!1,o);setTimeout((()=>{x.initMathImages(),"html"===a&&x.persistValidImages(),setTimeout((()=>{x.onAnswerChange(w.current)}),0)}),0)},onDragOver:e=>{e.preventDefault(),e.stopPropagation()},onDrop:e=>{e.preventDefault(),e.stopPropagation()},spellCheck:!1,style:v,role:"textbox"}),null!==x.mathEditorPortal?(0,i.jsx)(o.Fragment,{children:x.mathEditorPortal[1]}):null]})})),m=s.default.div`
221
221
  box-sizing: border-box;
222
222
  border: 1px solid #aaa;
223
223
  min-height: 100px;
@@ -363,4 +363,4 @@
363
363
  position: absolute;
364
364
  right: 0;
365
365
  }
366
- `},9560:(e,t,n)=>{"use strict";var r=n(4345),i=n(3025),o=n(546),a=n(1617),s=n(4816),l=n(3916),c=n(6552),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var i=t.paramsSerializer;null!=i&&(r.isFunction(i)?t.paramsSerializer={serialize:i}:c.assertOptions(i,{encode:u.function,serialize:u.function},!0));var o=[],l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var d,f=[];if(this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)})),!l){var p=[a,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(f),d=Promise.resolve(t);p.length;)d=d.then(p.shift(),p.shift());return d}for(var h=t;o.length;){var g=o.shift(),m=o.shift();try{h=g(h)}catch(e){m(e);break}}try{d=a(h)}catch(e){return Promise.reject(e)}for(;f.length;)d=d.then(f.shift(),f.shift());return d},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url,e.allowAbsoluteUrls);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},9845:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],void 0!==i))return i;let o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[r];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[r])return a.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[t]?i=this[t](a,e):a.walk((e=>{if(i=e.raws[n],void 0!==i)return!1}))}var s;return void 0===i&&(i=t[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},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)},9978:e=>{e.exports={version:"0.30.0"}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};return(()=>{"use strict";i.r(o),i.d(o,{Attachments:()=>Fc,Exam:()=>db,GradingAnswer:()=>px,GradingInstructions:()=>Nb,Results:()=>cI,parseExam:()=>PI});var e=i(5442),t=i.n(e);i(9002),Object.create(null);const n={},r=(e,t,r,i)=>{c(r)&&n[r]||(c(r)&&(n[r]=new Date),((e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);c(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,i))},a=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},s=(e,t,n)=>{e.loadNamespaces(t,a(e,n))},l=(e,t,n,r)=>{if(c(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return s(e,n,r);n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,a(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={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},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]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),v=(t,n={})=>{const{i18n:i}=n,{i18n:o,defaultNS:a}=(0,e.useContext)(h)||{},u=i||o||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r(u,"NO_I18NEXT_INSTANCE","useTranslation: 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(u,"DEPRECATED_OPTION","useTranslation: 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:v}=d;let y=t||a||u.options?.defaultNS;y=c(y)?[y]:y||["translation"],u.reportNamespaces.addUsedNamespaces?.(y);const b=(u.isInitialized||u.initializedStoreOnce)&&y.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(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages: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?y:y[0],v),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),[A,M]=(0,e.useState)(x);let T=y.join();n.lng&&(T=`${n.lng}${T}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(T),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,y,(()=>{C.current&&M(w)})):s(u,y,(()=>{C.current&&M(w)}))),b&&E&&E!==T&&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,T]),(0,e.useEffect)((()=>{C.current&&b&&M(x)}),[u,v,b]);const N=[A,u,b];if(N.t=A,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,y,(()=>e())):s(u,y,(()=>e()))}))};function y({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},A="object"==typeof global&&global&&global.Object===Object&&global;var M="object"==typeof self&&self&&self.Object===Object&&self;const T=A||M||Function("return this")(),E=T.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 L=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)},O=function(e){return null!=e&&"object"==typeof e},R=function(e){return O(e)&&"[object Arguments]"==L(e)};var P=Object.prototype,z=P.hasOwnProperty,U=P.propertyIsEnumerable;const B=R(function(){return arguments}())?R:function(e){return O(e)&&z.call(e,"callee")&&!U.call(e,"callee")},_=Array.isArray;var F="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=F&&"object"==typeof module&&module&&!module.nodeType&&module,Z=G&&G.exports===F?T.Buffer:void 0;const H=(Z?Z.isBuffer:void 0)||function(){return!1};var q=/^(?:0|[1-9]\d*)$/;const Y=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},V=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,K=X&&X.exports===J&&A.process;const $=function(){try{return X&&X.require&&X.require("util").types||K&&K.binding&&K.binding("util")}catch(e){}}();var ee=$&&$.isTypedArray;const te=ee?Q(ee):function(e){return O(e)&&V(e.length)&&!!W[L(e)]};var ne=Object.prototype.hasOwnProperty;const re=function(e,t){var n=_(e),r=!n&&B(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)||Y(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=L(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=function(e){return null!=e&&V(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},ve=function(e,t){return(_(e)?b:he)(e,me(t))},ye=(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===ze&&e(t):Array.isArray(e)?t=>t.namespaceURI===ze&&e.includes(t.localName):t=>t.namespaceURI===ze&&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 Ae(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 Te(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 Ae(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer","dnd-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){ve(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 Le(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ye),[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 Oe(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=(e,t)=>{const n=Ae(e,"dnd-answer"),r=Ae(e,"dnd-answer-option"),i=n.reduce(((e,n)=>{var r;const i=n.getAttribute("question-id"),o=null===(r=t[Number(i)])||void 0===r?void 0:r.value;return{...e,[i]:o?[Number(o)]:[],root:e.root.filter((e=>e!==Number(o)))}}),{root:r.map((e=>Number(e.getAttribute("option-id"))))});return i},Pe=e=>Ae(e,"dnd-answer-option").reduce(((e,t)=>{const n=t.getAttribute("option-id");return{...e,[n]:t}}),{}),ze="http://ylioppilastutkinto.fi/exam.xsd";function Ue(e){return(n={})=>{function r(i,o=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}(i,((i,a)=>function(i,o,a){switch(i.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===a?function(e){const i=n.text;return i?t().createElement(i,{key:Oe(e),element:e,renderChildNodes:r,renderComponentOverrides:n}):e.textContent}(i):null;case Node.ELEMENT_NODE:return function(i,o,a){switch(i.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,n,i){const o=e.hasChildNodes()?r(e,i):null;if(0===i){const r=e.localName,i=function(e,t){const n={key:Be(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,n);return t().createElement(r,{...i},o)}return o}(i,o,a);case ze:return function(i,o,a){var s;if(!(i.localName in e))return null;const l=e[i.localName],c="wrapper"in l?l.wrapper:void 0,u=null!==(s=n[i.localName])&&void 0!==s?s:"component"in l?l.component:l,d=i.getAttribute("class")||void 0,f=t().createElement(u,{element:i,className:d,renderChildNodes:r,renderComponentOverrides:n,key:c?void 0:Be(i,o),options:a});return c?t().createElement(c,{key:Be(i,o),element:i},f):f}(i,o,a);default:throw new Error(`Unrecognized element: ${i.localName}`)}}(i,o,a);default:return null}}(i,a,o)))}return r}}function Be(e,t){return`${e.localName}-${t}`}const _e=e=>"string"==typeof e,Fe=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},Ge=e=>null==e?"":""+e,Ze=/###/g,He=e=>e&&e.indexOf("###")>-1?e.replace(Ze,"."):e,qe=e=>!e||_e(e),Ye=(e,t,n)=>{const r=_e(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(qe(e))return{};const t=He(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return qe(e)?{}:{obj:e,k:He(r[i])}},Ve=(e,t,n)=>{const{obj:r,k:i}=Ye(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=Ye(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Ye(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},We=(e,t)=>{const{obj:n,k:r}=Ye(e,t);if(n)return n[r]},Qe=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?_e(e[r])||e[r]instanceof String||_e(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Qe(e[r],t[r],n):e[r]=t[r]);return e},Je=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ke=e=>_e(e)?e.replace(/[&<>"'\/]/g,(e=>Xe[e])):e,$e=[" ",",","?","!",";"],et=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),tt=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},nt=e=>e&&e.replace("_","-"),rt={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 it{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||rt,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:(_e(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new it(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new it(this.logger,e)}}var ot=new it;class at{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])}))}}class st extends at{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):_e(n)&&i?a.push(...n.split(i)):a.push(n)));const s=We(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&_e(n)?tt(this.data&&this.data[e]&&this.data[e][t],n,i):s}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),Ve(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)(_e(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=We(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Qe(s,n,i):s={...s,...n},Ve(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 lt={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 ct={};class ut extends at{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=ot.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=$e.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=et.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:_e(i)?[i]: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{key:e,namespaces:_e(i)?[i]: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,v=!_e(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||_e(g)&&Array.isArray(d))if(m&&_e(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&&!_e(t.count),f=ut.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 v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?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:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,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))}else{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}}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=_e(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&&!_e(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=_e(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=lt.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 _e(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&&!_e(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(_e(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,!ct[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ct[`${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&&!_e(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 dt=e=>e.charAt(0).toUpperCase()+e.slice(1);class ft{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.create("languageUtils")}getScriptPartFromCode(e){if(!(e=nt(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=nt(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(_e(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}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]=dt(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]=dt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=dt(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)),_e(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 _e(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))):_e(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let pt=[{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}],ht={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 gt=["v1","v2","v3"],mt=["v4"],vt={zero:0,one:1,two:2,few:3,many:4,other:5};class yt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ot.create("pluralResolver"),this.options.compatibilityJSON&&!mt.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 pt.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:ht[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()){const n=nt("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];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}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)=>vt[e]-vt[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!gt.includes(this.options.compatibilityJSON)}}const bt=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=We(e,n);return void 0!==r?r:We(t,n)})(e,t,n);return!o&&i&&_e(n)&&(o=tt(e,n,r),void 0===o&&(o=tt(t,n,r))),o},It=e=>e.replace(/\$/g,"$$$$");class xt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ot.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:v}=e.interpolation;this.escape=void 0!==t?t:Ke,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Je(i):o||"{{",this.suffix=a?Je(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Je(d):f||Je("$t("),this.nestingSuffix=p?Je(p):h||Je(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,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=bt(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(bt(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=>It(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?It(this.escape(e)):It(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=_e(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 _e(o)||this.useRawValueToEscape||(o=Ge(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&&!_e(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&&!_e(r))return r;_e(r)||(r=Ge(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 wt=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(nt(r),i),t[a]=s),s(n)}};class At{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ot.create("formatter"),this.options=e,this.formats={number:wt(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:wt(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:wt(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:wt(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:wt(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=wt(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 Mt extends at{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=ot.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)=>{const{obj:r,k:i}=Ye(e,t,Object);r[i]=r[i]||[],r[i].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();_e(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_e(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 Tt=()=>({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]),_e(e[1])&&(t.defaultValue=e[1]),_e(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}}),Et=e=>(_e(e.ns)&&(e.ns=[e.ns]),_e(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),_e(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ct=()=>{};class Nt extends at{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=Et(e),this.services={},this.logger=ot,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&&(_e(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Tt();this.options={...r,...this.options,...Et(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?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=At);const n=new ft(this.options);this.store=new st(this.options.resources,this.options);const o=this.services;o.logger=ot,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new yt(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 xt(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Mt(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 ut(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=Ct),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=Fe(),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]:Ct;const n=_e(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=Fe();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=Ct),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&&lt.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=Fe();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=_e(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 _e(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=Fe();return this.options.ns?(_e(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=Fe();_e(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 ft(Tt());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 Nt(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]:Ct;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Nt(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 st(this.store.data,r),i.services.resourceStore=i.store),i.translator=new ut(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 St=Nt.createInstance();St.createInstance=Nt.createInstance,St.createInstance,St.dir,St.init,St.loadResources,St.reloadResources,St.use,St.changeLanguage,St.getFixedT,St.t,St.exists,St.setDefaultNamespace,St.hasLoadedNamespace,St.loadNamespaces,St.loadLanguages;const kt=function(e){return e&&e.length?e[0]:void 0},jt=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Dt=function(){},Lt=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==L(e)};var Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/;const Pt=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Lt(e))||Rt.test(e)||!Ot.test(e)||null!=t&&e in Object(t)},zt=T["__core-js_shared__"];var Ut,Bt=(Ut=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ut:"";var _t=Function.prototype.toString;const Ft=function(e){if(null!=e){try{return _t.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Gt=/^\[object .+?Constructor\]$/,Zt=Function.prototype,Ht=Object.prototype,qt=Zt.toString,Yt=Ht.hasOwnProperty,Vt=RegExp("^"+qt.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Wt=function(e){return!(!ce(e)||(t=e,Bt&&Bt in t))&&(ue(e)?Vt:Gt).test(Ft(e));var t},Qt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Wt(n)?n:void 0},Jt=Qt(Object,"create");var Xt=Object.prototype.hasOwnProperty;var Kt=Object.prototype.hasOwnProperty;function $t(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])}}$t.prototype.clear=function(){this.__data__=Jt?Jt(null):{},this.size=0},$t.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$t.prototype.get=function(e){var t=this.__data__;if(Jt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Xt.call(t,e)?t[e]:void 0},$t.prototype.has=function(e){var t=this.__data__;return Jt?void 0!==t[e]:Kt.call(t,e)},$t.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jt&&void 0===t?"__lodash_hash_undefined__":t,this};const en=$t,tn=function(e,t){return e===t||e!=e&&t!=t},nn=function(e,t){for(var n=e.length;n--;)if(tn(e[n][0],t))return n;return-1};var rn=Array.prototype.splice;function on(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])}}on.prototype.clear=function(){this.__data__=[],this.size=0},on.prototype.delete=function(e){var t=this.__data__,n=nn(t,e);return!(n<0||(n==t.length-1?t.pop():rn.call(t,n,1),--this.size,0))},on.prototype.get=function(e){var t=this.__data__,n=nn(t,e);return n<0?void 0:t[n][1]},on.prototype.has=function(e){return nn(this.__data__,e)>-1},on.prototype.set=function(e,t){var n=this.__data__,r=nn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const an=on,sn=Qt(T,"Map"),ln=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 cn(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])}}cn.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(sn||an),string:new en}},cn.prototype.delete=function(e){var t=ln(this,e).delete(e);return this.size-=t?1:0,t},cn.prototype.get=function(e){return ln(this,e).get(e)},cn.prototype.has=function(e){return ln(this,e).has(e)},cn.prototype.set=function(e,t){var n=ln(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const un=cn;function dn(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(dn.Cache||un),n}dn.Cache=un;var fn,pn,hn,gn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mn=/\\(\\)?/g,vn=(fn=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gn,(function(e,n,r,i){t.push(r?i.replace(mn,"$1"):n||e)})),t},pn=dn(fn,(function(e){return 500===hn.size&&hn.clear(),e})),hn=pn.cache,pn);const yn=vn,bn=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 In=E?E.prototype:void 0,xn=In?In.toString:void 0;const wn=function e(t){if("string"==typeof t)return t;if(_(t))return bn(t,e)+"";if(Lt(t))return xn?xn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},An=function(e){return null==e?"":wn(e)},Mn=function(e,t){return _(e)?e:Pt(e,t)?[e]:yn(An(e))},Tn=function(e){if("string"==typeof e||Lt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},En=function(e,t){for(var n=0,r=(t=Mn(t,e)).length;null!=e&&n<r;)e=e[Tn(t[n++])];return n&&n==r?e:void 0},Cn=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=function(e,t,n){"__proto__"==t&&Cn?Cn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Sn=Object.prototype.hasOwnProperty;const kn=function(e,t,n){var r=e[t];Sn.call(e,t)&&tn(r,n)&&(void 0!==n||t in e)||Nn(e,t,n)},jn=function(e,t,n,r){if(!ce(e))return e;for(var i=-1,o=(t=Mn(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:Y(t[i+1])?[]:{})}kn(s,l,c),s=s[l]}return e},Dn=function(e,t){return null!=e&&t in Object(e)},Ln=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=Mn(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)&&V(i)&&Y(a,i)&&(_(e)||B(e))}(e,t,Dn)},On=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=En(e,a);n(s,a)&&jn(o,Mn(a,e),s)}return o}(e,t,(function(t,n){return Ln(e,n)}))},Rn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var Pn=E?E.isConcatSpreadable:void 0;const zn=function(e){return _(e)||B(e)||!!(Pn&&e&&e[Pn])},Un=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=zn),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Rn(o,l):i||(o[o.length]=l)}return o},Bn=function(e){return null!=e&&e.length?Un(e,1):[]};var _n=Math.max;const Fn=function(e,t,n){return t=_n(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=_n(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)}},Gn=Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Zn=Date.now;const Hn=function(e){var t=0,n=0;return function(){var r=Zn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Gn),qn=function(e){return Hn(Fn(e,void 0,Bn),e+"")},Yn=qn((function(e,t){return null==e?{}:On(e,t)})),Vn={"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...","some-images-failed":"Laddning av vissa bilder misslyckades. Var god uppdatera sidan."},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."},"dnd-answers":{"all-answer-options":"Svarsalternativ:","correct-answers":"Rätta svar","question-missing":"Här fattas en item...","answer-missing":"Här fattas svaret...","drop-here":"Släpp här","no-answer":"(Inget svar)"},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","no-attachments":"Detta prov innehåller inget material.","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]"}},Wn=Yn(Vn,["exam-total","material","external-material-title","section","references","toc-heading"]),Qn={"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...","some-images-failed":"Joidenkin kuvien lataaminen epäonnistui. Päivitä sivu."},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."},"dnd-answers":{"all-answer-options":"Vastausvaihtoehdot:","correct-answers":"Oikeat vastaukset","question-missing":"Tästä puuttuu osio...","answer-missing":"Tästä puuttuu vastaus...","drop-here":"Pudota tänne","no-answer":"(Ei vastausta)"},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","no-attachments":"Tämä koe ei sisällä aineistoja.","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]"}},Jn=Yn(Qn,["exam-total","material","external-material-title","section","references","toc-heading"]),Xn={"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"},Kn={"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"},$n={section:""},er={"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"},tr={"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"},nr={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},rr={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:Wn,BB:Wn,CA:Jn,CB:Jn,EA:Xn,EC:Xn,FA:Kn,FC:Kn,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:$n,N:$n,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:tr,SC:tr,PA:er,PC:er,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:nr,VC:nr,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"}},ir={"fi-FI":{translation:Qn,...rr},"sv-FI":{translation:Vn,...rr}};function or(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return St.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:ir,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 kt(n);case"last":return jt(n);default:return e}}}},Dt)}function ar(){const{i18n:e,t:n}=v(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in rr,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 sr=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(Dt).catch(Dt)},lr=new WeakMap;let cr=0;const ur=e=>t=>`${e}-${(e=>{const t=lr.get(e);if(null!=t)return t;const n=++cr;return lr.set(e,n),n})(t)}`,dr=e=>t=>`${e}-${t}`,fr="title",pr="references-title",hr=dr("section-title"),gr=dr("question-title"),mr=ur("question-instruction"),vr=ur("answer-length-info"),yr=ur("external-material-list-title"),br=dr("toc-section-title"),Ir=ur("answer-score"),xr=ur("image-caption"),wr=ur("video-caption"),Ar=ur("audio-label"),Mr="toc-title";function Tr(){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",Tr),()=>window.removeEventListener("hashchange",Tr)}function Er(t){return(0,e.useState)(t)[0]}const Cr=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})})),Nr=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},Sr=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))}));var kr=i(3373),jr=i.n(kr);const Dr=e=>{const n=jr()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)},Lr=t().createContext(!1),Or=t().memo((function({children:e,annotationsEnabled:n}){return t().createElement(Lr.Provider,{value:null!=n&&n},e)})),Rr=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};var o;return i.displayName=`WithContext(${o=r,o.displayName||o.name||"Component"})`,i},Pr=t().createContext({});function zr(e){return Rr(Pr,(({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:Ae(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const Ur=t().createContext({}),Br=Rr(Ur,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),_r=t().createContext({}),Fr=Rr(_r,(({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 Gr(e,t){const n=new URL(e,"http://example.com");ve(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const Zr=({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),Hr=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(Pr),{attachmentsURL:a}=(0,e.useContext)(Pr),{t:s}=ar(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=Gr(a,{hash:l});return c?t().createElement(Zr,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(Zr,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),qr=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(Pr),{t:a}=ar(),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=Gr(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(Zr,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(Zr,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),Yr=t().createContext({}),Vr=Rr(Yr,(({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}})),Wr=t().memo(Vr((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(Yr);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),Qr=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(Yr);return t().createElement("h3",null,i,be,r(n))}));var Jr=i(5919);var Xr={notify(){},get:()=>[]};var Kr=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),$r=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),ei=(()=>Kr||$r?e.useLayoutEffect:e.useEffect)();function ti(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ni(e,t){if(ti(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])||!ti(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var ri=Symbol.for("react-redux-context"),ii="undefined"!=typeof globalThis?globalThis:{};function oi(){if(!e.createContext)return{};const t=ii[ri]??=new Map;let n=t.get(e.createContext);return n||(n=e.createContext(null),t.set(e.createContext,n)),n}var ai=oi(),si=function(t){const{children:n,context:r,serverState:i,store:o}=t,a=e.useMemo((()=>{const e=function(e,t){let n,r=Xr,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=Xr)}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}(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=e.useMemo((()=>o.getState()),[o]);ei((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=r||ai;return e.createElement(l.Provider,{value:a},n)};function li(t=ai){return function(){return e.useContext(t)}}var ci=li();function ui(e=ai){const t=e===ai?ci:li(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var di=ui();function fi(e=ai){const t=e===ai?di:ui(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var pi=fi(),hi=(e,t)=>e===t;function gi(t=ai){const n=t===ai?ci:li(t),r=(t,r={})=>{const{equalityFn:i=hi}="function"==typeof r?{equalityFn:r}:r,o=n(),{store:a,subscription:s,getServerState:l}=o,c=(e.useRef(!0),e.useCallback({[t.name]:e=>t(e)}[t.name],[t])),u=(0,Jr.useSyncExternalStoreWithSelector)(s.addNestedSub,a.getState,l||a.getState,c,i);return e.useDebugValue(u),u};return Object.assign(r,{withTypes:()=>r}),r}var mi=gi();const vi=function(e,t,n){var r=null==e?void 0:En(e,t);return void 0===r?n:r},yi=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},bi=(e,t)=>n=>n.audio.errors[null!=t?t:e],Ii=e=>t=>vi(t.audio.playbackTimes,e,0),xi=(e,t)=>n=>t-Ii(e)(n),wi=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"},Ai={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"]},Mi={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"]},Ti={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"]},Ei={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"]},Ci={prefix:"fas",iconName:"up-down-left-right",icon:[512,512,["arrows-alt"],"f0b2","M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 96-96 0 0-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 96 0 0 96-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-96 96 0 0 32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 32-96 0 0-96 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z"]},Ni={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"]},Si={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"]},ki={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"]},ji={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"]},Di={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"]},Li={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"]},Oi={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 Ri(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(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 zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ui=()=>{};let Bi={},_i={},Fi=null,Gi={mark:Ui,measure:Ui};try{"undefined"!=typeof window&&(Bi=window),"undefined"!=typeof document&&(_i=document),"undefined"!=typeof MutationObserver&&(Fi=MutationObserver),"undefined"!=typeof performance&&(Gi=performance)}catch(hv){}const{userAgent:Zi=""}=Bi.navigator||{},Hi=Bi,qi=_i,Yi=Fi,Vi=Gi,Wi=(Hi.document,!!qi.documentElement&&!!qi.head&&"function"==typeof qi.addEventListener&&"function"==typeof qi.createElement),Qi=~Zi.indexOf("MSIE")||~Zi.indexOf("Trident/");var Ji={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},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",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Xi=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Ki="classic",$i="duotone",eo=[Ki,$i,"sharp","sharp-duotone"],to=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),no=["fak","fa-kit","fakd","fa-kit-duotone"],ro=["fak","fakd"],io={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oo=["fak","fa-kit","fakd","fa-kit-duotone"],ao={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},so=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],lo=[1,2,3,4,5,6,7,8,9,10],co=lo.concat([11,12,13,14,15,16,17,18,19,20]),uo=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"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",io.GROUP,io.SWAP_OPACITY,io.PRIMARY,io.SECONDARY].concat(lo.map((e=>"".concat(e,"x")))).concat(co.map((e=>"w-".concat(e))));const fo="___FONT_AWESOME___",po=16,ho="svg-inline--fa",go="data-fa-i2svg",mo="data-fa-pseudo-element",vo="data-prefix",yo="data-icon",bo="fontawesome-i2svg",Io=["HTML","HEAD","STYLE","SCRIPT"],xo=(()=>{try{return!0}catch(e){return!1}})();function wo(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Ki]})}const Ao=zi({},Ji);Ao[Ki]=zi(zi(zi(zi({},{"fa-duotone":"duotone"}),Ji[Ki]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const Mo=wo(Ao),To=zi({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});To[Ki]=zi(zi(zi(zi({},{duotone:"fad"}),To[Ki]),{kit:"fak"}),{"kit-duotone":"fakd"});const Eo=wo(To),Co=zi({},ao);Co[Ki]=zi(zi({},Co[Ki]),{fak:"fa-kit"});const No=wo(Co),So=zi({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});So[Ki]=zi(zi({},So[Ki]),{"fa-kit":"fak"}),wo(So);const ko=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,jo="fa-layers-text",Do=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Lo=(wo(zi({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Oo="duotone-group",Ro="primary",Po="secondary",zo=["kit",...uo],Uo=Hi.FontAwesomeConfig||{};qi&&"function"==typeof qi.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=qi.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Uo[n]=r)}));const Bo={styleDefault:"solid",familyDefault:Ki,cssPrefix:"fa",replacementClass:ho,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Uo.familyPrefix&&(Uo.cssPrefix=Uo.familyPrefix);const _o=zi(zi({},Bo),Uo);_o.autoReplaceSvg||(_o.observeMutations=!1);const Fo={};Object.keys(Bo).forEach((e=>{Object.defineProperty(Fo,e,{enumerable:!0,set:function(t){_o[e]=t,Go.forEach((e=>e(Fo)))},get:function(){return _o[e]}})})),Object.defineProperty(Fo,"familyPrefix",{enumerable:!0,set:function(e){_o.cssPrefix=e,Go.forEach((e=>e(Fo)))},get:function(){return _o.cssPrefix}}),Hi.FontAwesomeConfig=Fo;const Go=[],Zo=po,Ho={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function qo(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Yo(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Vo(e){return e.classList?Yo(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Wo(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qo(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Jo(e){return e.size!==Ho.size||e.x!==Ho.x||e.y!==Ho.y||e.rotate!==Ho.rotate||e.flipX||e.flipY}function Xo(){const e="fa",t=ho,n=Fo.cssPrefix,r=Fo.replacementClass;let i=':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-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 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 --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 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}';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 Ko=!1;function $o(){Fo.autoAddCss&&!Ko&&(function(e){if(!e||!Wi)return;const t=qi.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=qi.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)}qi.head.insertBefore(t,r)}(Xo()),Ko=!0)}var ea={mixout:()=>({dom:{css:Xo,insertCss:$o}}),hooks:()=>({beforeDOMElementCreation(){$o()},beforeI2svg(){$o()}})};const ta=Hi||{};ta[fo]||(ta[fo]={}),ta[fo].styles||(ta[fo].styles={}),ta[fo].hooks||(ta[fo].hooks={}),ta[fo].shims||(ta[fo].shims=[]);var na=ta[fo];const ra=[],ia=function(){qi.removeEventListener("DOMContentLoaded",ia),oa=1,ra.map((e=>e()))};let oa=!1;function aa(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Wo(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Wo(e[n]),'" ')),"").trim()}(n),">").concat(r.map(aa).join(""),"</").concat(t,">")}function sa(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Wi&&(oa=(qi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(qi.readyState),oa||qi.addEventListener("DOMContentLoaded",ia));var la=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 ca(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 ua(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 da(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=ua(t);"function"!=typeof na.hooks.addPack||r?na.styles[e]=zi(zi({},na.styles[e]||{}),i):na.hooks.addPack(e,ua(t)),"fas"===e&&da("fa",t)}const{styles:fa,shims:pa}=na,ha=Object.keys(No),ga=ha.reduce(((e,t)=>(e[t]=Object.keys(No[t]),e)),{});let ma=null,va={},ya={},ba={},Ia={},xa={};const wa=()=>{const e=e=>la(fa,((t,n,r)=>(t[r]=la(n,e,{}),t)),{});va=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))),ya=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),xa=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in fa||Fo.autoFetchSvg,n=la(pa,((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:{}});ba=n.names,Ia=n.unicodes,ma=Na(Fo.styleDefault,{family:Fo.familyDefault})};var Aa;function Ma(e,t){return(va[e]||{})[t]}function Ta(e,t){return(xa[e]||{})[t]}function Ea(e){return ba[e]||{prefix:null,iconName:null}}function Ca(){return ma}function Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Ki}=t,r=Mo[n][e];if(n===$i&&!e)return"fad";const i=Eo[n][e]||Eo[n][r],o=e in na.styles?e:null;return i||o||null}function Sa(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function ka(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=so.concat(oo),o=Sa(e.filter((e=>i.includes(e)))),a=Sa(e.filter((e=>!so.includes(e)))),s=o.filter((e=>(r=e,!Xi.includes(e)))),[l=null]=s,c=function(e){let t=Ki;const n=ha.reduce(((e,t)=>(e[t]="".concat(Fo.cssPrefix,"-").concat(t),e)),{});return eo.forEach((r=>{(e.includes(n[r])||e.some((e=>ga[r].includes(e))))&&(t=r)})),t}(o),u=zi(zi({},function(e){let t=[],n=null;return e.forEach((e=>{const r=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~zo.indexOf(o))?null:i;var o}(Fo.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:Na(l,{family:c})});return zi(zi(zi({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,s=n===$i,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===a.familyDefault,u="fad"===r.prefix||"fa-duotone"===r.prefix;if(!s&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&ja.includes(n)){const e=Object.keys(o).find((e=>Da.includes(e)));if(e||a.autoFetchSvg){const e=to.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Ta(r.prefix,r.iconName)||r.iconName}}return"fa"!==r.prefix&&"fa"!==i||(r.prefix=Ca()||"fas"),r}({values:e,family:c,styles:fa,config:Fo,canonical:u,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o="fa"===t?Ea(i):{},a=Ta(r,i);return i=o.iconName||a||i,r=o.prefix||r,"far"!==r||fa.far||!fa.fas||Fo.autoFetchSvg||(r="fas"),{prefix:r,iconName:i}}(n,r,u))}Aa=e=>{ma=Na(e.styleDefault,{family:Fo.familyDefault})},Go.push(Aa),wa();const ja=eo.filter((e=>e!==Ki||e!==$i)),Da=Object.keys(ao).filter((e=>e!==Ki)).map((e=>Object.keys(ao[e]))).flat();let La=[],Oa={};const Ra={},Pa=Object.keys(Ra);function za(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(Oa[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Ua(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Oa[e]||[]).forEach((e=>{e.apply(null,n)}))}function Ba(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ra[e]?Ra[e].apply(null,t):void 0}function _a(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ca();if(t)return t=Ta(n,t)||t,sa(Fa.definitions,n,t)||sa(na.styles,n,t)}const Fa=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]=zi(zi({},this.definitions[e]||{}),r[e]),da(e,r[e]);const t=No[Ki][e];t&&da(t,r[e]),wa()}))}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}},Ga={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Wi?(Ua("beforeI2svg",e),Ba("pseudoElements2svg",e),Ba("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===Fo.autoReplaceSvg&&(Fo.autoReplaceSvg=!0),Fo.observeMutations=!0,n=()=>{qa({autoReplaceSvgRoot:t}),Ua("watch",e)},Wi&&(oa?setTimeout(n,0):ra.push(n))}},Za={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ta(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=Na(e[0]);return{prefix:n,iconName:Ta(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Fo.cssPrefix,"-"))>-1||e.match(ko))){const t=ka(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ca(),iconName:Ta(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Ca();return{prefix:t,iconName:Ta(t,e)||e}}}},Ha={noAuto:()=>{Fo.autoReplaceSvg=!1,Fo.observeMutations=!1,Ua("noAuto")},config:Fo,dom:Ga,parse:Za,library:Fa,findIconDefinition:_a,toHtml:aa},qa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=qi}=e;(Object.keys(na.styles).length>0||Fo.autoFetchSvg)&&Wi&&Fo.autoReplaceSvg&&Ha.dom.i2svg({node:t})};function Ya(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>aa(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Wi)return;const t=qi.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Va(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=ro.includes(r),g=[Fo.replacementClass,i?"".concat(Fo.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:zi(zi({},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 v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[go]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||qo())},children:[s]}),delete m.attributes.title);const y=zi(zi({},m),{},{prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:zi(zi({},v),u.styles)}),{children:b,attributes:I}=n.found&&t.found?Ba("generateAbstractMask",y)||{children:[],attributes:{}}:Ba("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=I,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=!0===o?"".concat(t,"-").concat(Fo.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:zi(zi({},i),{},{id:a}),children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Jo(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=Qo(zi(zi({},o),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(y)}function Wa(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l=zi(zi(zi({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(l[go]="");const c=zi({},a.styles);Jo(i)&&(c.transform=function(e){let{transform:t,width:n=po,height:r=po,startCentered:i=!1}=e,o="";return o+=i&&Qi?"translate(".concat(t.x/Zo-n/2,"em, ").concat(t.y/Zo-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Zo,"em), calc(-50% + ").concat(t.y/Zo,"em)) "):"translate(".concat(t.x/Zo,"em, ").concat(t.y/Zo,"em) "),o+="scale(".concat(t.size/Zo*(t.flipX?-1:1),", ").concat(t.size/Zo*(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=Qo(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:Qa}=na;function Ja(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(Fo.cssPrefix,"-").concat(Oo)},children:[{tag:"path",attributes:{class:"".concat(Fo.cssPrefix,"-").concat(Po),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Fo.cssPrefix,"-").concat(Ro),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const Xa={found:!1,width:512,height:512};function Ka(e,t){let n=t;return"fa"===t&&null!==Fo.styleDefault&&(t=Ca()),new Promise(((r,i)=>{if("fa"===n){const n=Ea(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Qa[t]&&Qa[t][e])return r(Ja(Qa[t][e]));!function(e,t){xo||Fo.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(zi(zi({},Xa),{},{icon:Fo.showMissingIcons&&e&&Ba("missingIconAbstract")||{}}))}))}const $a=()=>{},es=Fo.measurePerformance&&Vi&&Vi.mark&&Vi.measure?Vi:{mark:$a,measure:$a},ts='FA "6.7.2"';var ns=e=>(es.mark("".concat(ts," ").concat(e," begins")),()=>(e=>{es.mark("".concat(ts," ").concat(e," ends")),es.measure("".concat(ts," ").concat(e),"".concat(ts," ").concat(e," begins"),"".concat(ts," ").concat(e," ends"))})(e));const rs=()=>{};function is(e){return"string"==typeof(e.getAttribute?e.getAttribute(go):null)}function os(e){return qi.createElementNS("http://www.w3.org/2000/svg",e)}function as(e){return qi.createElement(e)}function ss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?os:as)}=t;if("string"==typeof e)return qi.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(ss(e,{ceFn:n}))})),r}const ls={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ss(e),t)})),null===t.getAttribute(go)&&Fo.keepOriginalSource){let e=qi.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(~Vo(t).indexOf(Fo.replacementClass))return ls.replace(e);const r=new RegExp("".concat(Fo.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Fo.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=>aa(e))).join("\n");t.setAttribute(go,""),t.innerHTML=i}};function cs(e){e()}function us(e,t){const n="function"==typeof t?t:rs;if(0===e.length)n();else{let t=cs;"async"===Fo.mutateApproach&&(t=Hi.requestAnimationFrame||cs),t((()=>{const t=!0===Fo.autoReplaceSvg?ls.replace:ls[Fo.autoReplaceSvg]||ls.replace,r=ns("mutate");e.map(t),r(),n()}))}}let ds=!1;function fs(){ds=!0}function ps(){ds=!1}let hs=null;function gs(e){if(!Yi)return;if(!Fo.observeMutations)return;const{treeCallback:t=rs,nodeCallback:n=rs,pseudoElementsCallback:r=rs,observeMutationsRoot:i=qi}=e;hs=new Yi((e=>{if(ds)return;const i=Ca();Yo(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!is(e.addedNodes[0])&&(Fo.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Fo.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&is(e.target)&&~Lo.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(vo):null,n=e.getAttribute?e.getAttribute(yo):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=ka(Vo(e.target));e.target.setAttribute(vo,t||i),n&&e.target.setAttribute(yo,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(Fo.replacementClass)&&n(e.target);var o}))})),Wi&&hs.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ms(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=ka(Vo(e));return i.prefix||(i.prefix=Ca()),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,(ya[o]||{})[a]||Ma(i.prefix,ca(e.innerText)))),!i.iconName&&Fo.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=Yo(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 Fo.autoA11y&&(n?t["aria-labelledby"]="".concat(Fo.replacementClass,"-title-").concat(r||qo()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=za("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 zi({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ho,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:vs}=na;function ys(e){const t="nest"===Fo.autoReplaceSvg?ms(e,{styleParser:!1}):ms(e);return~t.extra.classes.indexOf(jo)?Ba("generateLayersText",e,t):Ba("generateSvgReplacementMutation",e,t)}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Wi)return Promise.resolve();const n=qi.documentElement.classList,r=e=>n.add("".concat(bo,"-").concat(e)),i=e=>n.remove("".concat(bo,"-").concat(e)),o=Fo.autoFetchSvg?[...no,...so]:Xi.concat(Object.keys(vs));o.includes("fa")||o.push("fa");const a=[".".concat(jo,":not([").concat(go,"])")].concat(o.map((e=>".".concat(e,":not([").concat(go,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Yo(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=ns("onTree"),c=s.reduce(((e,t)=>{try{const n=ys(t);n&&e.push(n)}catch(e){xo||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{us(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ys(e).then((e=>{e&&us([e],t)}))}const xs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ho,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 Ya(zi({type:"icon"},e),(()=>(Ua("beforeDOMElementCreation",{iconDefinition:e,params:t}),Fo.autoA11y&&(a?c["aria-labelledby"]="".concat(Fo.replacementClass,"-title-").concat(s||qo()):(c["aria-hidden"]="true",c.focusable="false")),Va({icons:{main:Ja(p),mask:i?Ja(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:zi(zi({},Ho),n),symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var ws={mixout(){return{icon:(e=xs,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:_a(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:_a(i||{})),e(r,zi(zi({},n),{},{mask:i}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=bs,e.nodeCallback=Is,e)}),provides(e){e.i2svg=function(e){const{node:t=qi,callback:n=()=>{}}=e;return bs(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([Ka(n,o),l.iconName?Ka(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Va({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=Qo(o);let s;return a.length>0&&(n.style=a),Jo(i)&&(s=Ba("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},As={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Ya({type:"layer"},(()=>{Ua("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(Fo.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Ms={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 Ya({type:"counter",content:e},(()=>(Ua("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i=zi(zi(zi({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Qo(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(Fo.cssPrefix,"-layers-counter"),...r]}}))))}})},Ts={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ho,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Ya({type:"text",content:e},(()=>(Ua("beforeDOMElementCreation",{content:e,params:t}),Wa({content:e,transform:zi(zi({},Ho),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(Fo.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(Qi){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return Fo.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Wa({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const Es=new RegExp('"',"ug"),Cs=[1105920,1112319],Ns=zi(zi(zi(zi({},{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",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"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"}}),Ss=Object.keys(Ns).reduce(((e,t)=>(e[t.toLowerCase()]=Ns[t],e)),{}),ks=Object.keys(Ss).reduce(((e,t)=>{const n=Ss[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function js(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Yo(e.children).filter((e=>e.getAttribute(mo)===t))[0],a=Hi.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Do),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(Ss[n]||{})[i]||ks[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Es,""),n=function(e){const t=e.length;let n,r=e.charCodeAt(0);return r>=55296&&r<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}(t),r=n>=Cs[0]&&n<=Cs[1],i=2===t.length&&t[0]===t[1];return{value:ca(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=Ma(d,f),m=g;if(h){const e=function(e){const t=Ia[e],n=Ma("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(vo)===d&&o.getAttribute(yo)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Ho,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[mo]=t,Ka(g,d).then((i=>{const o=Va(zi(zi({},a),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:m,extra:s,watchable:!0})),l=qi.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>aa(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ds(e){return Promise.all([js(e,"::before"),js(e,"::after")])}function Ls(e){return!(e.parentNode===document.head||~Io.indexOf(e.tagName.toUpperCase())||e.getAttribute(mo)||e.parentNode&&"svg"===e.parentNode.tagName)}function Os(e){if(Wi)return new Promise(((t,n)=>{const r=Yo(e.querySelectorAll("*")).filter(Ls).map(Ds),i=ns("searchPseudoElements");fs(),Promise.all(r).then((()=>{i(),ps(),t()})).catch((()=>{i(),ps(),n()}))}))}var Rs={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Os,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=qi}=e;Fo.searchPseudoElements&&Os(t)}}};let Ps=!1;var zs={mixout:()=>({dom:{unwatch(){fs(),Ps=!0}}}),hooks:()=>({bootstrap(){gs(za("mutationObserverCallbacks",{}))},noAuto(){hs&&hs.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Ps?ps():gs(za("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Us=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 Bs={mixout:()=>({parse:{transform:e=>Us(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Us(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={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:zi({},c.outer),children:[{tag:"g",attributes:zi({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:zi(zi({},t.icon.attributes),c.path)}]}]}}}};const _s={x:0,y:0,width:"100%",height:"100%"};function Fs(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 Gs={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?ka(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Ca()),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:zi(zi({},_s),{},{fill:"white"})},p=l.children?{children:l.children.map(Fs)}:{},h={tag:"g",attributes:zi({},d.inner),children:[Fs(zi({tag:l.tag,attributes:zi(zi({},l.attributes),d.path)},p))]},g={tag:"g",attributes:zi({},d.outer),children:[h]},m="mask-".concat(o||qo()),v="clip-".concat(o||qo()),y={tag:"mask",attributes:zi(zi({},_s),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(I=u,"g"===I.tag?I.children:[I])},y]};var I;return t.push(b,{tag:"rect",attributes:zi({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(m,")")},_s)}),{children:t,attributes:n}}}},Zs={provides(e){let t=!1;Hi.matchMedia&&(t=Hi.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:zi(zi({},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=zi(zi({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:zi(zi({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:zi(zi({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:zi(zi({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:zi(zi({},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:zi(zi({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:zi(zi({},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:zi(zi({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;La=e,Oa={},Object.keys(Ra).forEach((e=>{-1===Pa.indexOf(e)&&delete Ra[e]})),La.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=>{Oa[e]||(Oa[e]=[]),Oa[e].push(t[e])}))}e.provides&&e.provides(Ra)}))}([ea,ws,As,Ms,Ts,Rs,zs,Bs,Gs,Zs,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Ha});const Hs=Ha.parse,qs=Ha.icon;var Ys=i(9067),Vs=i.n(Ys);function Ws(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 Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){Xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Js(e){return Js="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},Js(e)}function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ks(e){return function(e){if(Array.isArray(e))return $s(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 $s(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)?$s(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 $s(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 el(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 tl=["style"],nl=!1;try{nl=!0}catch(hv){}function rl(e){return e&&"object"===Js(e)&&e.prefix&&e.iconName&&e.icon?e:Hs.icon?Hs.icon(e):null===e?null:e&&"object"===Js(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 il(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Xs({},e,t):{}}var ol={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},al=t().forwardRef((function(e,t){var n=Qs(Qs({},ol),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=rl(r),d=il("classes",[].concat(Ks(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,v=e.size,y=e.rotation,b=e.pull,I=(Xs(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(v),null!=v),Xs(t,"fa-rotate-".concat(y),null!=y&&0!==y),Xs(t,"fa-pull-".concat(b),null!=b),Xs(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)),Ks((a||"").split(" ")))),f=il("transform","string"==typeof n.transform?Hs.transform(n.transform):n.transform),p=il("mask",rl(i)),h=qs(u,Qs(Qs(Qs(Qs({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!nl&&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){ol.hasOwnProperty(e)||(m[e]=n[e])})),sl(g[0],m)}));al.displayName="FontAwesomeIcon",al.propTypes={beat:Vs().bool,border:Vs().bool,beatFade:Vs().bool,bounce:Vs().bool,className:Vs().string,fade:Vs().bool,flash:Vs().bool,mask:Vs().oneOfType([Vs().object,Vs().array,Vs().string]),maskId:Vs().string,fixedWidth:Vs().bool,inverse:Vs().bool,flip:Vs().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Vs().oneOfType([Vs().object,Vs().array,Vs().string]),listItem:Vs().bool,pull:Vs().oneOf(["right","left"]),pulse:Vs().bool,rotation:Vs().oneOf([0,90,180,270]),shake:Vs().bool,size:Vs().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Vs().bool,spinPulse:Vs().bool,spinReverse:Vs().bool,symbol:Vs().oneOfType([Vs().bool,Vs().string]),title:Vs().string,titleId:Vs().string,transform:Vs().oneOfType([Vs().string,Vs().object]),swapOpacity:Vs().bool};var sl=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=el(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[el(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,tl);return o.attrs.style=Qs(Qs({},o.attrs.style),s),t.apply(void 0,[n.tag,Qs(Qs({},o.attrs),l)].concat(Ks(i)))}.bind(null,t().createElement);const ll=!("undefined"==typeof window||!window.document||!window.document.createElement);var cl=(new Date).getTime(),ul=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-cl)),r=setTimeout(e,n);return cl=t,r},dl=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};ll&&["","webkit","moz","o","ms"].some((function(e){var t=dl(e,"request");return t in window&&(dl(e,"cancel"),ul=function(e){return window[t](e)}),!!ul}));var fl=ul;function pl(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 hl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gl(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=hl(e.className,t):e.setAttribute("class",hl(e.className&&e.className.baseVal||"",t))}var ml=/([A-Z])/g,vl=/^ms-/;function yl(e){return function(e){return e.replace(ml,"-$1").toLowerCase()}(e).replace(vl,"-ms-")}var bl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Il=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(yl(t))||function(e){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(yl(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!bl.test(e))}(i)?r+=i+"("+o+") ":n+=yl(i)+": "+o+";":e.style.removeProperty(yl(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var xl=!1,wl=!1;try{var Al={get passive(){return xl=!0},get once(){return wl=xl=!0}};ll&&(window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,!0))}catch(hv){}const Ml=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!wl){var i=r.once,o=r.capture,a=n;!wl&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,xl?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 Tl(e,t,n,r){var i,o;null==n&&(o=-1===(i=Il(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=Ml(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=Ml(e,"transitionend",t);return function(){a(),s()}}function El(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 Cl=Vs().oneOfType([Vs().string,Vs().shape({enter:Vs().string,leave:Vs().string,active:Vs().string,height:Vs().string}),Vs().shape({enter:Vs().string,enterActive:Vs().string,leave:Vs().string,leaveActive:Vs().string,appear:Vs().string,appearActive:Vs().string,height:Vs().string,heightActive:Vs().string})]);function Nl(e){return Nl="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},Nl(e)}function Sl(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 kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){Rl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jl(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 Dl(e,t){return Dl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dl(e,t)}function Ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ol(e){return Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ol(e)}function Rl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pl=[];Tl&&Pl.push(Tl);var zl={children:Vs().node,name:Cl.isRequired,appear:Vs().bool,enter:Vs().bool,leave:Vs().bool,appearTimeout:Vs().number,enterTimeout:Vs().number,leaveTimeout:Vs().number},Ul=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&&Dl(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=Ol(i);if(o){var n=Ol(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Nl(t)&&"function"!=typeof t?Ll(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),Rl(Ll(n=a.call(this,e)),"refNode",t().createRef()),Rl(Ll(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Rl(Ll(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Rl(Ll(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;pl(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(gl(r,o),gl(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):Tl&&(i=function(e,t){return Pl.length?Pl.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){Pl.length&&Pl.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=fl((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=fl((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,pl(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=kl(kl({},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&&jl(n.prototype,r),s}(t().Component);Rl(Ul,"displayName","CSSTransitionGroupChild"),Ul.propTypes=zl;const Bl=Ul;function _l(e){return _l="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},_l(e)}function Fl(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 Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zl(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 Hl(e,t){return Hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hl(e,t)}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yl(e){return Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yl(e)}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wl=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&&Hl(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=Yl(i);if(o){var n=Yl(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==_l(t)&&"function"!=typeof t?ql(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),Vl(ql(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Vl(ql(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(ql(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Vl(ql(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ql(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})),Vl(ql(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=Gl(Gl({},a),{},Vl({},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:Gl({},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=fl(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===_l(r)&&null!==r&&delete(r=Gl({},r)).height,t().createElement(Bl,Gl({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=Gl({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var v="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(v),g.style.height=a}null!==s&&(g.style.width=s);var y={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:y},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]?y:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}],r&&Zl(n.prototype,r),s}(t().Component);Vl(Wl,"displayName","ReactCSSTransitionReplace"),Vl(Wl,"propTypes",{transitionName:Cl.isRequired,transitionAppear:Vs().bool,transitionEnter:Vs().bool,transitionLeave:Vs().bool,transitionAppearTimeout:El("Appear"),transitionEnterTimeout:El("Enter"),transitionLeaveTimeout:El("Leave"),overflowHidden:Vs().bool,changeWidth:Vs().bool,notifyLeaving:Vs().bool}),Vl(Wl,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ql=({error:e,children:n})=>{const{t:r}=ar();return t().createElement(Wl,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(al,{icon:Oi,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Jl=i(758);const Xl=e=>(0,Jl.action)("PLAY_AUDIO",e),Kl=e=>(0,Jl.action)("UPDATE_REMAINING",e),$l=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=mi(yi(n,r)),l=mi(((e,t)=>n=>"playing"===yi(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=mi(xi(r,o)),{i18n:u}=ar(),d=pi(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:v}=(0,e.useContext)(Pr),y=(0,e.useRef)(null);return t().createElement("div",{className:jr()("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},v&&t().createElement("audio",{ref:y,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:jr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(Xl({src:n,restrictedAudioId:r,duration:i,audioRef:y})),"aria-labelledby":m.join(" ")},!f&&t().createElement(al,{icon:ji,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},ec(null!=l?l:i)))}));function ec(e){const t=e%60;return`${tc(Math.floor(e/60))}:${tc(t)}`}function tc(e){return e.toString().padStart(2,"0")}const nc=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}=ar(),u=null!=s&&null!=a?mi(bi(o,a)):void 0,d=null!=s&&null!=a?mi(xi(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(Pr),p=Ar(n);return t().createElement("div",{className:jr()("audio e-columns e-columns--center-v e-pad-b-2 e-cursor-default",r),onClick:e=>e.preventDefault()},null!=a&&null!=s?t().createElement($l,{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(Ql,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),rc=Ue({attachment:Vr((function({element:n}){const{displayNumber:r}=(0,e.useContext)(Yr);return t().createElement("li",{"data-list-number":r,"aria-label":r},rc(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(Pr),{displayNumber:i}=(0,e.useContext)(Yr);return t().createElement("a",{href:Gr(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},rc(n))}})(),ic=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=ar(),o=yr(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},rc(e)))})),oc=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(Pr);return t().createElement("a",{className:jr()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),ac=t().memo((function({element:e,className:n}){var r,i;const o=Ee(e,"svg"),a=null===(r=e.textContent)||void 0===r?void 0:r.trim(),s=null!==(i=Ee(e,"assistive-title")||a)&&void 0!==i?i:"",l="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:jr()("e-formula",{"e-block e-text-center":l},n),dangerouslySetInnerHTML:{__html:o},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},s))})),sc=({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:jr()("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 lc(e){return"string"==typeof e&&0===e.trim().length}const cc=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(Pr),{t:a}=ar(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Te(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every(lc),p=f?d:void 0,h=f?xr(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(sc,{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 uc({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function dc({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function fc({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement("span",null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(Pr);return t().createElement("span",null,i.format(n))}}const pc=t().memo((function({element:e,renderChildNodes:n,renderComponentOverrides:r}){const{t:i}=ar();function o(i,o){const a=Te(e,i);if(a){const e=a.localName,i=t().createElement(o,{element:a,renderChildNodes:n,renderComponentOverrides:r,key:e});if(i)return Ne(a,"hidden")?t().createElement("del",{key:e},i):i}}function a(o,a,s){const l=Te(e,o);return l&&t().createElement(t().Fragment,{key:l.localName},t().createElement("span",null,i(a)," "),t().createElement(s,{element:l,renderChildNodes:n,renderComponentOverrides:r,key:l.localName}))}return t().createElement("span",{className:jr()("e-break-word",{"e-line-through":Ne(e,"hidden")})},t().createElement("span",null,i("references.source"),be),(s=[o("author",Nr),o("title",uc),o("publisher",Nr),o("publication",Nr),o("howpublished",Nr),o("url",dc),a("publication-date","references.date",fc),a("reference-date","references.reference-date",fc),a("translator","references.translator",Nr),a("modified-by","references.modified-by",Nr),o("note",Nr)]).filter(Boolean).reduce(((e,n,r)=>(e.push(n),r!==s.length-1&&e.push(t().createElement("span",{key:r},". ")),e)),[]));var s})),hc=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(Pr),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Te(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every(lc),f=d?u:void 0,p=d?wr(n):void 0;return t().createElement(sc,{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)})))}));var gc=/\s/;const mc=function(e){for(var t=e.length;t--&&gc.test(e.charAt(t)););return t};var vc=/^\s+/;var yc=/^[-+]0x[0-9a-f]+$/i,bc=/^0b[01]+$/i,Ic=/^0o[0-7]+$/i,xc=parseInt;const wc=function(e){if("number"==typeof e)return e;if(Lt(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,mc(n)+1).replace(vc,""):n;var r=bc.test(e);return r||Ic.test(e)?xc(e.slice(2),r?2:8):yc.test(e)?NaN:+e};var Ac=1/0;const Mc=function(e){var t=function(e){return e?(e=wc(e))===Ac||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 Tc=4294967295,Ec=Math.min;function Cc({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Te(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(al,{icon:Mi,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(al,{icon:Ni,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function Nc({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(Pr).resolveAttachment(o);return t().createElement("div",{className:jr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(sc,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const Sc=t().memo((function({element:n,renderChildNodes:r,renderComponentOverrides:i}){const[o,a]=(0,e.useState)((()=>function(e,t){if((e=Mc(e))<1||e>9007199254740991)return[];var n=Tc,r=Ec(e,Tc);t=me(t),e-=Tc;for(var i=w(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),s=e=>t=>{const n=[...o];n[e]=t,a(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(Cc,{key:n,opacity:o[n],element:e,setOpacity:s(n),renderChildNodes:r,renderComponentOverrides:i}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(Nc,{key:n,element:e,renderChildNodes:r,renderComponentOverrides:i,opacity:o[n],absolute:n>0}))))))})),kc=t().createContext({}),jc=Rr(kc,(({element:e})=>{const t=Ae(e,"question",!1),n=t.length?[]:Ae(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer","dnd-answer"],!1),r=Ae(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(mr).join(" "):gr(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Te(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function Dc({element:n,options:r}){const i=n.getAttribute("suffix"),{displayNumber:o}=(0,e.useContext)(kc);return 1===r?null:t().createElement(t().Fragment,null,kt(o.split(".")),".",i)}const Lc=t().memo((function({element:e}){const{t:n}=ar(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),Oc=Ue({"attachment-link":Hr("link"),"attachment-links":qr("link"),"attachment-title":Qr,attachment:Wr,audio:nc,"audio-title":Nr,file:oc,image:cc,video:hc,formula:ac,"question-number":Dc,translation:Lc,reference:{component:pc,wrapper:({children:e})=>t().createElement("div",{className:"e-mrg-y-2 e-font-size-s"},e)},"image-overlay":Sc}),Rc=t().memo((function({element:n,renderComponentOverrides:r,forceRender:i=!1}){const o=(0,e.useMemo)((()=>Oc(r)),[r]);if(null==Me(n,"question")&&!i)return null;const a=n.children.length;return t().createElement(t().Fragment,null,a>1&&t().createElement(ic,{element:n,renderChildNodes:o,renderComponentOverrides:r,showTitle:!1,forceRender:i}),o(n))})),Pc=t().memo(jc((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(kc);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Te(e,"external-material"))))}(n,o,a)?t().createElement(Dr,{id:i,"aria-labelledby":gr(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function zc(e){return e.includes(".")?e:`${e}.`}const Uc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(kc);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:gr(i)},zc(i)," ",r(n))):null})),Bc=Ue({"audio-group":Sr,"external-material":Rc,"question-title":Uc,question:Pc,section:Fr(Nr)}),_c=()=>{const{t:e}=ar();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Fc=t().memo(Br(zr((({annotationsEnabled:n,renderComponentOverrides:r={}})=>{const{root:i,language:o,date:a,dateTimeFormatter:s,dayCode:l,examCode:c,resolveAttachment:u,subjectLanguage:d}=(0,e.useContext)(Pr),f=(0,e.useMemo)((()=>Bc(r)),[r]),p=Te(i,"exam-title"),h=i.getAttribute("exam-stylesheet"),g=Te(i,"external-material"),m=Er((()=>or(o,c,l)));return(0,e.useEffect)(sr(m,o)),(0,e.useEffect)(Tr,[]),t().createElement(Or,{annotationsEnabled:n},t().createElement(y,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:d,"aria-labelledby":fr},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:u(h)}),t().createElement(Dr,{"aria-labelledby":fr},p&&t().createElement(Cr,{id:fr},t().createElement(_c,null),be,f(p)),a&&t().createElement("div",{className:"e-semibold e-mrg-b-6"},s.format(a)),g&&t().createElement(Rc,{element:g,renderChildNodes:f,renderComponentOverrides:r,forceRender:!0})),f(i))))}))));function Gc(e){const t=e.documentElement;return Yc(t,Ae(t,"section",!1).map(Zc),{maxAnswers:Ce(t,"max-answers")})}function Zc(e){return Yc(e,Ae(e,"question",!1).map(Hc),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Hc(e){const t=Ae(e,"question",!1);return Yc(e,t.length?t.map(Hc):Ae(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer","dnd-answer"],!1).map(qc),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function qc(e){return Yc(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Yc(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}function Vc(e){var t=this.__data__=new an(e);this.size=t.size}Vc.prototype.clear=function(){this.__data__=new an,this.size=0},Vc.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vc.prototype.get=function(e){return this.__data__.get(e)},Vc.prototype.has=function(e){return this.__data__.has(e)},Vc.prototype.set=function(e,t){var n=this.__data__;if(n instanceof an){var r=n.__data__;if(!sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new un(r)}return n.set(e,t),this.size=n.size,this};const Wc=Vc;function Qc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new un;++t<n;)this.add(e[t])}Qc.prototype.add=Qc.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Qc.prototype.has=function(e){return this.__data__.has(e)};const Jc=Qc,Xc=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},Kc=function(e,t){return e.has(t)},$c=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 Jc: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(!Xc(t,(function(e,t){if(!Kc(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},eu=T.Uint8Array,tu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},nu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var ru=E?E.prototype:void 0,iu=ru?ru.valueOf:void 0;const ou=function(e,t,n){var r=t(e);return _(e)?r:Rn(r,n(e))},au=function(){return[]};var su=Object.prototype.propertyIsEnumerable,lu=Object.getOwnPropertySymbols,cu=lu?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}(lu(e),(function(t){return su.call(e,t)})))}:au;const uu=cu,du=function(e){return ou(e,fe,uu)};var fu=Object.prototype.hasOwnProperty;const pu=Qt(T,"DataView"),hu=Qt(T,"Promise"),gu=Qt(T,"Set"),mu=Qt(T,"WeakMap");var vu="[object Map]",yu="[object Promise]",bu="[object Set]",Iu="[object WeakMap]",xu="[object DataView]",wu=Ft(pu),Au=Ft(sn),Mu=Ft(hu),Tu=Ft(gu),Eu=Ft(mu),Cu=L;(pu&&Cu(new pu(new ArrayBuffer(1)))!=xu||sn&&Cu(new sn)!=vu||hu&&Cu(hu.resolve())!=yu||gu&&Cu(new gu)!=bu||mu&&Cu(new mu)!=Iu)&&(Cu=function(e){var t=L(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ft(n):"";if(r)switch(r){case wu:return xu;case Au:return vu;case Mu:return yu;case Tu:return bu;case Eu:return Iu}return t});const Nu=Cu;var Su="[object Arguments]",ku="[object Array]",ju="[object Object]",Du=Object.prototype.hasOwnProperty;const Lu=function(e,t,n,r,i,o){var a=_(e),s=_(t),l=a?ku:Nu(e),c=s?ku:Nu(t),u=(l=l==Su?ju:l)==ju,d=(c=c==Su?ju:c)==ju,f=l==c;if(f&&H(e)){if(!H(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Wc),a||te(e)?$c(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 eu(e),new eu(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tn(+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=tu;case"[object Set]":var l=1&r;if(s||(s=nu),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=$c(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(iu)return iu.call(e)==iu.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Du.call(e,"__wrapped__"),h=d&&Du.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new Wc),i(g,m,n,r,o)}}return!!f&&(o||(o=new Wc),function(e,t,n,r,i,o){var a=1&n,s=du(e),l=s.length;if(l!=du(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:fu.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 v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},Ou=function e(t,n,r,i,o){return t===n||(null==t||null==n||!O(t)&&!O(n)?t!=t&&n!=n:Lu(t,n,r,i,e,o))},Ru=function(e){return e==e&&!ce(e)},Pu=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},zu=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,Ru(i)]}return t}(e);return 1==t.length&&t[0][2]?Pu(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 Wc;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?Ou(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},Uu=function(e){return Pt(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Tn(e)):function(e){return function(t){return En(t,e)}}(e)},Bu=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?_(e)?(t=e[0],n=e[1],Pt(t)&&Ru(n)?Pu(Tn(t),n):function(e){var r=vi(e,t);return void 0===r&&r===n?Ln(e,t):Ou(n,r,3)}):zu(e):Uu(e);var t,n},_u=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},Fu=function(e,t){return(_(e)?bn:_u)(e,Bu(t))},Gu=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},Zu=function(e,t,n,r){return he(e,(function(e,i,o){t(r,e,n(e),o)})),r},Hu=function(e,t){return function(n,r){var i=_(n)?Gu:Zu,o=t?t():{};return i(n,e,Bu(r),o)}};var qu=Hu((function(e,t,n){Nn(e,n,t)}));const Yu=qu;function Vu(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 Wu=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Qu=()=>Math.random().toString(36).substring(7).split("").join("."),Ju={INIT:`@@redux/INIT${Qu()}`,REPLACE:`@@redux/REPLACE${Qu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qu()}`};function Xu(e,t,n){if("function"!=typeof e)throw new Error(Vu(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Vu(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Vu(1));return n(Xu)(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(Vu(3));return i}function d(e){if("function"!=typeof e)throw new Error(Vu(4));if(l)throw new Error(Vu(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Vu(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(Vu(7));if(void 0===e.type)throw new Error(Vu(8));if("string"!=typeof e.type)throw new Error(Vu(17));if(l)throw new Error(Vu(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:Ju.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Vu(10));r=e,f({type:Ju.REPLACE})},[Wu]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Vu(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wu](){return this}}}}}function Ku(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var $u=function(e){return"@@redux-saga/"+e},ed=$u("CANCEL_PROMISE"),td=$u("CHANNEL_END"),nd=$u("IO"),rd=$u("MATCH"),id=$u("MULTICAST"),od=$u("SAGA_ACTION"),ad=$u("SELF_CANCELLATION"),sd=$u("TASK"),ld=$u("TASK_CANCEL"),cd=$u("TERMINATE"),ud=$u("LOCATION");function dd(){return dd=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},dd.apply(null,arguments)}function fd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var pd=function(e){return null==e},hd=function(e){return null!=e},gd=function(e){return"function"==typeof e},md=function(e){return"string"==typeof e},vd=Array.isArray,yd=function(e){return e&&gd(e.then)},bd=function(e){return e&&gd(e.next)&&gd(e.throw)},Id=function e(t){return t&&(md(t)||Ad(t)||gd(t)||vd(t)&&t.every(e))},xd=function(e){return e&&gd(e.take)&&gd(e.close)},wd=function(e){return gd(e)&&e.hasOwnProperty("toString")},Ad=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};const Md=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[ed]=function(){clearTimeout(n)},r};var Td=function(){return function(){return true}}(),Ed=function(){},Cd=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Nd=function(e,t){dd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function Sd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function kd(e){var t=!1;return function(){t||(t=!0,e())}}var jd=function(e){throw e},Dd=function(e){return{value:e,done:!0}};function Ld(e,t,n){void 0===t&&(t=jd),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Dd,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Od(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Rd=function(e){return Array.apply(null,new Array(e))},Pd=function(e){return function(t){return e(Object.defineProperty(t,od,{value:!0}))}},zd=function(e){return e===cd},Ud=function(e){return e===ld},Bd=function(e){return zd(e)||Ud(e)};function _d(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=vd(e)?Rd(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||Bd(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=Ed,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Fd(e){return{name:e.name||"anonymous",location:Gd(e)}}function Gd(e){return e[ud]}function Zd(){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 Hd={isEmpty:Td,put:Ed,take:Ed};var qd=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)},Yd="TAKE",Vd="RACE",Wd="CALL",Qd="FORK",Jd="CANCEL",Xd="SELECT",Kd="CANCELLED",$d=function(e,t){var n;return(n={})[nd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function ef(e,t){return void 0===e&&(e="*"),Id(e)?(hd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),$d(Yd,{pattern:e})):xd(n=e)&&n[id]&&hd(t)&&Id(t)?$d(Yd,{channel:e,pattern:t}):xd(e)?(hd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),$d(Yd,{channel:e})):void 0;var n}function tf(e,t){return pd(t)&&(t=e,e=void 0),$d("PUT",{channel:e,action:t})}function nf(e,t){var n,r=null;return gd(e)?n=e:(vd(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&md(n)&&gd(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function rf(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 $d(Wd,nf(e,n))}function of(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 $d(Qd,nf(e,n))}function af(e){return void 0===e&&(e=ad),$d(Jd,e)}var sf=rf.bind(null,Md);const lf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var cf=[],uf=0;function df(e){try{hf(),e()}finally{gf()}}function ff(e){cf.push(e),uf||(hf(),mf())}function pf(e){try{return hf(),e()}finally{mf()}}function hf(){uf++}function gf(){uf--}function mf(){var e;for(gf();!uf&&void 0!==(e=cf.shift());)df(e)}var vf=function(e){return function(t){return e.some((function(e){return wf(e)(t)}))}},yf=function(e){return function(t){return e(t)}},bf=function(e){return function(t){return t.type===String(e)}},If=function(e){return function(t){return t.type===e}},xf=function(){return Td};function wf(e){var t="*"===e?xf:md(e)?bf:vd(e)?vf:wd(e)?bf:gd(e)?yf:Ad(e)?If:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Af={type:td},Mf=function(e){return e&&e.type===td};function Tf(e){void 0===e&&(e=qd());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Af):e.isEmpty()?(n.push(r),r.cancel=function(){Sd(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(Af):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])(Af)}}}}function Ef(){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(Af)}))},(e={})[id]=!0,e.put=function(e){if(!t)if(Mf(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[rd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=xf),t?e(Af):(e[rd]=n,i(),r.push(e),e.cancel=kd((function(){i(),Sd(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[od]?s(e):ff((function(){s(e)}))},a}function Cf(e,t){var n=e[ed];gd(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Nf,Sf=0,kf=function(){return++Sf};function jf(e){e.isRunning()&&e.cancel()}var Df=((Nf={})[Yd]=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):!Mf(e)||a?n(e):n(cd)};try{i.take(s,hd(o)?wf(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Nf.PUT=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;ff((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&yd(t)?Cf(t,n):n(t)}))},Nf.ALL=function(e,t,n,r){var i=r.digestEffect,o=Sf,a=Object.keys(t);if(0!==a.length){var s=_d(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(vd(t)?[]:{})},Nf[Vd]=function(e,t,n,r){var i=r.digestEffect,o=Sf,a=Object.keys(t),s=vd(t)?Rd(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||Bd(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=Ed,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)}))},Nf[Wd]=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(yd(l))return void Cf(l,n);if(bd(l))return void Zf(e,l,s.context,Sf,Fd(o),!1,n);n(l)}catch(e){n(e,!0)}},Nf.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){pd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Nf[Qd]=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(bd(i))return i;var o=!1;return Ld((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!yd(i)})}))}catch(e){return Ld((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Fd(t)}(c,o);pf((function(){var t=Zf(e,c,l.context,Sf,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Nf.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()&&Sd(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(vd(t)){if(0===t.length)return void n([]);var a=_d(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},Nf[Jd]=function(e,t,n,r){var i=r.task;t===ad?jf(i):vd(t)?t.forEach(jf):jf(t),n()},Nf[Xd]=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)}},Nf.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=Tf(t.buffer),o=wf(r),a=function t(n){Mf(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)},Nf[Kd]=function(e,t,n,r){n(r.task.isCancelled())},Nf.FLUSH=function(e,t,n){t.flush(n)},Nf.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Nf.SET_CONTEXT=function(e,t,n,r){var i=r.task;Nd(i.context,t),n()},Nf);function Lf(e,t){return e+"?"+t}function Of(e){var t=e.name,n=e.location;return n?t+" "+Lf(n.fileName,n.lineNumber):t}function Rf(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 Pf=null,zf=[],Uf=function(e){e.crashedEffect=Pf,zf.push(e)},Bf=function(){Pf=null,zf.length=0},_f=function(e){Pf=e},Ff=function(){var e,t,n=zf[0],r=zf.slice(1),i=n.crashedEffect?(e=n.crashedEffect,(t=Gd(e))?t.code+" "+Lf(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Of(n.meta)+(i?" \n when executing effect "+i:"")].concat(r.map((function(e){return" created by "+Of(e.meta)})),[Rf(zf)]).join("\n")};function Gf(e,t,n,r,i,o,a){var s;void 0===a&&(a=Ed);var l,c,u=0,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name}))),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(Sd(i,t),t.cont=Ed,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=Ed,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,0,g);function g(t,n){if(n){if(u=2,Uf({meta:i,cancelledTasks:f}),m.isRoot){var r=Ff();Bf(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===ld?u=1:1!==u&&(u=3),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={})[sd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),g(ld,!1))},s.cont=a,s.end=g,s.setContext=function(e){Nd(p,e)},s.toPromise=function(){return d||(d=lf(),2===u?d.reject(c):0!==u&&d.resolve(l)),d.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return m}function Zf(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){yd(t)?Cf(t,r):bd(t)?Zf(e,t,c.context,n,i,!1,r):t&&t[nd]?(0,Df[t.type])(e,t.payload,r,u):r(t)}));d.cancel=Ed;var l={meta:i,cancel:function(){0===l.status&&(l.status=1,d(ld))},status:0},c=Gf(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),Bf()):Ud(e)?(l.status=1,d.cancel(),i=gd(t.return)?t.return(ld):{done:!0,value:ld}):i=zd(e)?gd(t.return)?t.return():{done:!0}:t.next(e),i.done?(1!==l.status&&(l.status=3),l.cont(i.value)):f(i.value,r,d)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=kf();function l(n,i){o||(o=!0,r.cancel=Ed,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&_f(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=Ed,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=Ed,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Hf(e,t){for(var n=e.channel,r=void 0===n?Ef():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?Od: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),v=kf();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Ed,l.effectTriggered=l.effectTriggered||Ed,l.effectResolved=l.effectResolved||Ed,l.effectRejected=l.effectRejected||Ed,l.effectCancelled=l.effectCancelled||Ed,l.actionDispatched=l.actionDispatched||Ed,l.rootSagaStarted({effectId:v,saga:t,args:p})),c){var y=Zd.apply(void 0,c);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=Cd;var b={channel:r,dispatch:Pd(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return pf((function(){var e=Zf(b,m,s,v,Fd(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const qf=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?Ef():o,s=n.sagaMonitor,l=fd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Hf.bind(null,dd({},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){Nd(i,e)},c};var Yf=function(e){return{done:!0,value:e}},Vf={};function Wf(e){return xd(e)?"channel":wd(e)?String(e):gd(e)?e.name:String(e)}function Qf(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Vf)return Yf(t);if(n&&!i)throw a=Vf,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===Vf?Yf(t):o}return Ld(s,(function(e){return s(null,e)}),n)}function Jf(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:ef(e)},s=function(e){return o=e};return Qf({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:of.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Wf(e)+", "+t.name+")")}function Xf(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:ef(e)},l=function(e){return{done:!1,value:of.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:af(e)}},u=function(e){return o=e},d=function(e){return a=e};return Qf({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("+Wf(e)+", "+t.name+")")}const Kf=function(e,t){return Un(Fu(e,t),1)};function $f(e,t){return function(e){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 ep(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=Kf(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"dnd-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 tp(e,t){return Kf([$f,ep],(n=>n(e,t)))}const np={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function rp(e,t){const n=new Set(e);return n.add(t),n}const ip=e=>(0,Jl.action)("SAVE_ANSWER",e),op=new Map;function*ap(e,t){const n=e.payload;try{yield sf(1e3),yield rf(t.saveAnswer,n),yield tf((e=>(0,Jl.action)("SAVE_ANSWER_SUCCEEDED",e))(n))}catch(e){yield tf(((e,t)=>(0,Jl.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0))(n,e))}op.delete(n.questionId)}function*sp(e){for(;;){const t=yield ef("SAVE_ANSWER"),n=op.get(t.payload.questionId);n&&(yield af(n));const r=yield of(ap,t,e);op.set(t.payload.questionId,r)}}function*lp(e){for(;e.selectAnswerVersion;){const t=yield ef("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield rf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield rf(e.selectAnswerVersion,n,r);t&&(yield tf(ip(t)),e.logActivity&&(yield rf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*cp(e){yield of(sp,e),yield of(lp,e)}const up=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?Nn(n,s,l):kn(n,s,l)}return n};var dp=Object.prototype.hasOwnProperty;const fp=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&&dp.call(e,r))&&n.push(r);return n},pp=function(e){return de(e)?re(e,!0):fp(e)};var hp="object"==typeof exports&&exports&&!exports.nodeType&&exports,gp=hp&&"object"==typeof module&&module&&!module.nodeType&&module,mp=gp&&gp.exports===hp?T.Buffer:void 0,vp=mp?mp.allocUnsafe:void 0;const yp=ae(Object.getPrototypeOf,Object),bp=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rn(t,uu(e)),e=yp(e);return t}:au,Ip=function(e){return ou(e,pp,bp)};var xp=Object.prototype.hasOwnProperty;const wp=function(e){var t=new e.constructor(e.byteLength);return new eu(t).set(new eu(e)),t};var Ap=/\w*$/;var Mp=E?E.prototype:void 0,Tp=Mp?Mp.valueOf:void 0;const Ep=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return wp(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?wp(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?wp(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,Ap.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return Tp?Object(Tp.call(e)):{}}(e)}};var Cp=Object.create;const Np=function(){function e(){}return function(t){if(!ce(t))return{};if(Cp)return Cp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Sp=$&&$.isMap;const kp=Sp?Q(Sp):function(e){return O(e)&&"[object Map]"==Nu(e)};var jp=$&&$.isSet;const Dp=jp?Q(jp):function(e){return O(e)&&"[object Set]"==Nu(e)};var Lp="[object Arguments]",Op="[object Function]",Rp="[object Object]",Pp={};Pp[Lp]=Pp["[object Array]"]=Pp["[object ArrayBuffer]"]=Pp["[object DataView]"]=Pp["[object Boolean]"]=Pp["[object Date]"]=Pp["[object Float32Array]"]=Pp["[object Float64Array]"]=Pp["[object Int8Array]"]=Pp["[object Int16Array]"]=Pp["[object Int32Array]"]=Pp["[object Map]"]=Pp["[object Number]"]=Pp[Rp]=Pp["[object RegExp]"]=Pp["[object Set]"]=Pp["[object String]"]=Pp["[object Symbol]"]=Pp["[object Uint8Array]"]=Pp["[object Uint8ClampedArray]"]=Pp["[object Uint16Array]"]=Pp["[object Uint32Array]"]=!0,Pp["[object Error]"]=Pp[Op]=Pp["[object WeakMap]"]=!1;const zp=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=_(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&xp.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=Nu(t),p=f==Op||"[object GeneratorFunction]"==f;if(H(t))return function(e,t){if(t)return e.slice();var n=e.length,r=vp?vp(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==Rp||f==Lp||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||oe(e)?{}:Np(yp(e))}(t),!l)return c?function(e,t){return up(e,bp(e),t)}(t,function(e,t){return e&&up(t,pp(t),e)}(s,t)):function(e,t){return up(e,uu(e),t)}(t,function(e,t){return e&&up(t,fe(t),e)}(s,t))}else{if(!Pp[f])return o?t:{};s=Ep(t,f,l)}}a||(a=new Wc);var h=a.get(t);if(h)return h;a.set(t,s),Dp(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):kp(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?Ip:du:c?pp:fe)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),kn(s,o,e(i,n,r,o,t,a))})),s},Up=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},Bp=function(e,t){return null==(e=function(e,t){return t.length<2?e:En(e,Up(t,0,-1))}(e,t=Mn(t,e)))||delete e[Tn(jt(t))]};var _p=Function.prototype,Fp=Object.prototype,Gp=_p.toString,Zp=Fp.hasOwnProperty,Hp=Gp.call(Object);const qp=function(e){return function(e){if(!O(e)||"[object Object]"!=L(e))return!1;var t=yp(e);if(null===t)return!0;var n=Zp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Gp.call(n)==Hp}(e)?void 0:e},Yp=qn((function(e,t){var n={};if(null==e)return n;var r=!1;t=bn(t,(function(t){return t=Mn(t,e),r||(r=t.length>1),t})),up(e,Ip(e),n),r&&(n=zp(n,7,qp));for(var i=t.length;i--;)Bp(n,t[i]);return n})),Vp={errors:{},nowPlaying:null,playbackTimes:{}},Wp=e=>function(t,n){void 0===n&&(n=Hd);var r,i=!1,o=Tf(n),a=function(){i||(i=!0,gd(r)&&r(),o.close())};return r=kd(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(Af),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){Mf(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Qp(e,t){const n=yield rf(Wp,e);try{for(;;){const e=yield ef(n);yield tf(t(e))}}finally{(yield $d(Kd,{}))&&n.close()}}function*Jp(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=Cd);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $d(Xd,{selector:e,args:n})}(Ii(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 rf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield rf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield tf((e=>(0,Jl.action)("PLAY_AUDIO_STARTED",e))(n)),yield rf(Qp,n.duration,Kl),yield tf((0,Jl.action)("PLAY_AUDIO_FINISHED"))):(yield tf(((e,t)=>(0,Jl.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}))(n,r.response)),yield sf(5e3),yield tf((e=>(0,Jl.action)("HIDE_AUDIO_ERROR",e))(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Xp(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 of.apply(void 0,[Jf,e,t].concat(r))}("PLAY_AUDIO",Jp,e)}const Kp={casStatus:"forbidden"},{createAction:$p}=Jl.deprecated,eh=$p("ALLOW_CAS_SUCCEEDED"),th=$p("ALLOW_CAS_CANCELLED"),nh=e=>(0,Jl.action)("UPDATE_CAS_REMAINING",e);function*rh(e,{payload:t}){try{if("allowed"===(yield rf(e.setCasStatus,"allowing")))return void(yield tf(eh()));yield tf((i=t,(0,Jl.action)("ALLOW_CAS_COUNTDOWN",i)));const{cancelled:o}=yield(n={finished:rf(Qp,t,nh),cancelled:ef("ALLOW_CAS_CANCELLED")},r=$d(Vd,n),r.combinator=!0,r);"allowed"===(yield rf(e.setCasStatus,o?"forbidden":"allowed"))?yield tf(eh()):o||(yield tf(th()))}catch(e){console.error(e)}var n,r,i}function*ih(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 of.apply(void 0,[Xf,e,t].concat(r))}("ALLOW_CAS",rh,e)}const oh=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:Ju.INIT}))throw new Error(Vu(12));if(void 0===n(void 0,{type:Ju.PROBE_UNKNOWN_ACTION()}))throw new Error(Vu(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(Vu(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=np,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=rp(e.savedQuestionIds,n),i=rp(e.serverQuestionIds,n),o=tp(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=Vp,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=Yp(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=vi(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=vi(n,"restrictedAudioId",n.src),i=Yp(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=Kp,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*ah(e){yield of(cp,e),yield of(Xp,e),yield of(ih,e)}function sh(e,t,n,r,i){const o=new Set(Fu(n,"questionId")),a=function(e,t){var n={};return t=Bu(t),pe(e,(function(e,r,i){Nn(n,r,t(e,r,i))})),n}(Yu(r,"restrictedAudioId"),"times"),s=Yu(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:tp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=qf(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ku)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Vu(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Ku(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Xu(oh,l,u);return c.run(ah,i),d}const lh=()=>t().createElement(al,{size:"lg",icon:ki,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),ch=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:jr()("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))})),uh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=ar(),a=mi(yi(r)),s=mi(bi(r)),l=pi(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(Pr),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(Xl({src:r,duration:i,audioRef:d}))},t().createElement(al,{className:"e-mrg-r-1",icon:ji,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ql,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),dh=({children:e})=>t().createElement("footer",{className:"e-footer"},e),fh=Ue({}),ph=t().memo((function({renderComponentOverrides:n}){const{root:r}=(0,e.useContext)(Pr),{t:i}=ar(),o=(0,e.useMemo)((()=>fh(n)),[n]),a=Ae(r,"reference").filter((e=>null==Me(e,"external-material")));return a.length>0?t().createElement(Dr,{"aria-labelledby":pr},t().createElement("h2",{id:pr},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":pr},a.map(((e,r)=>{const i=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":zc(i),key:`${i}${r}`},t().createElement(pc,{element:e,renderChildNodes:o,renderComponentOverrides:n}))})))):null})),hh=(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:jr()("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(al,{icon:Ei,size:"lg"})))))})),gh=(0,e.createContext)({}),mh=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&O(t)&&"[object String]"==L(t)?e:e.getAttribute("display-number");var t})),{t:a}=ar(),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=[kt(o),jt(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),vh=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(Pr),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(_r),{t:c}=ar(),{isInSidebar:u}=(0,e.useContext)(gh),d=u&&!!mi((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=Le("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:br(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:jr()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(mh,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},yh=Ue({section:Fr((({element:n,answers:r,renderChildNodes:i,renderComponentOverrides:o})=>{const{displayNumber:a}=(0,e.useContext)(_r),s=Te(n,"section-title");return t().createElement("li",{"data-section-id":a},s&&t().createElement(vh,{element:s,renderChildNodes:i,renderComponentOverrides:o,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":s&&br(a)},i(n,1)))})),question:jc((({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(Pr),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(kc),{t:c}=ar(),{isInSidebar:u}=(0,e.useContext)(gh),d=Te(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=mi((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)),v=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,y=Number(n.getAttribute("max-answers"))||p.length,b=Le("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:jr()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:Gr("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:jr()("numeric-answer-indicator",{error:m,ok:v===y})},v,"/",y),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:Gr(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(al,{size:"sm",icon:Si,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(hh,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))}))})(),bh=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n;return t().memo((()=>{const{root:n,maxScore:o}=(0,e.useContext)(Pr),{t:a}=ar(),s=Ce(n,"max-answers"),l=i&&!!mi((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),c=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==c?void 0:c.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==c?void 0:c.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":Mr,ref:c},!i&&t().createElement("h2",{id:Mr},t().createElement("span",{className:"e-toc-heading"},a("toc-heading"))),r&&s&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:jr()("answer-instructions",{error:l})},l&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},a("max-answers-warning",{count:s})))),t().createElement(gh.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},yh(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},a("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},a("points",{count:o})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},Ih=()=>{const e=vi(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||"23.13.0")},xh=t().memo(Vr((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(Yr);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),wh=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:jr()("e-choice-answer-option e-column e-pointer",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:jr()("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))},Ah=t().memo((({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const o=Ce(n,"question-id"),a=n.getAttribute("display-number"),s=n.getAttribute("direction")||"vertical",l=n.getAttribute("class"),{questionLabelIds:c}=(0,e.useContext)(kc),u=mi((e=>e.answers.answersById[o])),d=pi(),f=(0,e.useCallback)((e=>{d(ip({type:"choice",questionId:o,value:e.currentTarget.value,displayNumber:a}))}),[o,a]);return t().createElement("div",{className:jr()("e-choice-answer e-mrg-b-4",l,{"e-columns":"horizontal"===s}),"data-question-id":o,role:"radiogroup","aria-labelledby":c},t().createElement("span",{className:"anchor",id:`question-nr-${a}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),a="no-answer"===e.getAttribute("type")?"":n,l=null!=u&&u.value===a;return t().createElement(wh,{element:e,onSelect:f,renderChildNodes:r,renderComponentOverrides:i,questionId:o,key:n,direction:s,selected:l,value:a})})))}));var Mh=i(6003);const Th="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Eh(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Ch(e){return"nodeType"in e}function Nh(e){var t,n;return e?Eh(e)?e:Ch(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Sh(e){const{Document:t}=Nh(e);return e instanceof t}function kh(e){return!Eh(e)&&e instanceof Nh(e).HTMLElement}function jh(e){return e instanceof Nh(e).SVGElement}function Dh(e){return e?Eh(e)?e.document:Ch(e)?Sh(e)?e:kh(e)||jh(e)?e.ownerDocument:document:document:document}const Lh=Th?e.useLayoutEffect:e.useEffect;function Oh(t){const n=(0,e.useRef)(t);return Lh((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Rh(t,n){void 0===n&&(n=[t]);const r=(0,e.useRef)(t);return Lh((()=>{r.current!==t&&(r.current=t)}),n),r}function Ph(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function zh(t){const n=Oh(t),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,i]}function Uh(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let Bh={};function _h(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==Bh[t]?0:Bh[t]+1;return Bh[t]=e,t+"-"+e}),[t,n])}function Fh(e){return 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];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Gh=Fh(1),Zh=Fh(-1);function Hh(e){if(!e)return!1;const{KeyboardEvent:t}=Nh(e.target);return t&&e instanceof t}function qh(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Nh(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Yh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Yh.Translate.toString(e),Yh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Vh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Wh(e){return e.matches(Vh)?e:e.querySelector(Vh)}const Qh={display:"none"};function Jh(e){let{id:n,value:r}=e;return t().createElement("div",{id:n,style:Qh},r)}function Xh(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t().createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const Kh=(0,e.createContext)(null),$h={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},eg={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function tg(n){let{announcements:r=eg,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=$h}=n;const{announce:s,announcement:l}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),c=_h("DndLiveRegion"),[u,d]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{d(!0)}),[]),function(t){const n=(0,e.useContext)(Kh);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!u)return null;const f=t().createElement(t().Fragment,null,t().createElement(Jh,{id:o,value:a.draggable}),t().createElement(Xh,{id:c,announcement:l}));return i?(0,Mh.createPortal)(f,i):f}var ng;function rg(){}function ig(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(ng||(ng={}));const og=Object.freeze({x:0,y:0});function ag(e,t){const n=qh(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function sg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function lg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function cg(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function ug(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function dg(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const fg=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=dg(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(lg)};function pg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:og}function hg(e){return 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];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const gg=hg(1);function mg(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const vg={ignoreTransform:!1};function yg(e,t){void 0===t&&(t=vg);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Nh(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=mg(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function bg(e){return yg(e,{ignoreTransform:!0})}function Ig(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(Sh(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!kh(i)||jh(i))return n;if(n.includes(i))return n;const o=Nh(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=Nh(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=Nh(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function xg(e){const[t]=Ig(e,1);return null!=t?t:null}function wg(e){return Th&&e?Eh(e)?e:Ch(e)?Sh(e)||e===Dh(e).scrollingElement?window:kh(e)?e:null:null:null}function Ag(e){return Eh(e)?e.scrollX:e.scrollLeft}function Mg(e){return Eh(e)?e.scrollY:e.scrollTop}function Tg(e){return{x:Ag(e),y:Mg(e)}}var Eg;function Cg(e){return!(!Th||!e)&&e===document.scrollingElement}function Ng(e){const t={x:0,y:0},n=Cg(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Eg||(Eg={}));const Sg={x:.2,y:.2};function kg(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Sg);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=Ng(e),p={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!c&&o<=t.top+g?(p.y=Eg.Backward,h.y=r*Math.abs((t.top+g-o)/g)):!u&&l>=t.bottom-g&&(p.y=Eg.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-m?(p.x=Eg.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(p.x=Eg.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function jg(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Dg(e){return e.reduce(((e,t)=>Gh(e,Tg(t))),og)}function Lg(e,t){if(void 0===t&&(t=yg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);xg(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Og=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Ag(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Mg(t)),0)}]];class Rg{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Ig(t),r=Dg(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Og)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Pg{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function zg(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Ug,Bg,_g;function Fg(e){e.preventDefault()}function Gg(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Ug||(Ug={})),(_g=Bg||(Bg={})).Space="Space",_g.Down="ArrowDown",_g.Right="ArrowRight",_g.Left="ArrowLeft",_g.Up="ArrowUp",_g.Esc="Escape",_g.Enter="Enter";const Zg={start:[Bg.Space,Bg.Enter],cancel:[Bg.Esc],end:[Bg.Space,Bg.Enter]},Hg=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Bg.Right:return{...n,x:n.x+25};case Bg.Left:return{...n,x:n.x-25};case Bg.Down:return{...n,y:n.y+25};case Bg.Up:return{...n,y:n.y-25}}};class qg{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Pg(Dh(t)),this.windowListeners=new Pg(Nh(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ug.Resize,this.handleCancel),this.windowListeners.add(Ug.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Ug.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Lg(n),t(og)}handleKeyDown(e){if(Hh(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Zg,coordinateGetter:o=Hg,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:og;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=Zh(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=Ng(n),p=jg(n),h={x:Math.min(i===Bg.Right?p.right-p.width/2:p.right,Math.max(i===Bg.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===Bg.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Bg.Down?p.top:p.top+p.height/2,u.y))},g=i===Bg.Right&&!s||i===Bg.Left&&!l,m=i===Bg.Down&&!c||i===Bg.Up&&!o;if(g&&h.x!==u.x){const e=n.scrollLeft+t.x,o=i===Bg.Right&&e<=d.x||i===Bg.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===Bg.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,o=i===Bg.Down&&e<=d.y||i===Bg.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===Bg.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Gh(Zh(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Yg(e){return Boolean(e&&"distance"in e)}function Vg(e){return Boolean(e&&"delay"in e)}qg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Zg,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class Wg{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Nh(e);return e instanceof t?e:Dh(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Dh(o),this.documentListeners=new Pg(this.document),this.listeners=new Pg(n),this.windowListeners=new Pg(Nh(o)),this.initialCoordinates=null!=(r=qh(i))?r:og,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Ug.Resize,this.handleCancel),this.windowListeners.add(Ug.DragStart,Fg),this.windowListeners.add(Ug.VisibilityChange,this.handleCancel),this.windowListeners.add(Ug.ContextMenu,Fg),this.documentListeners.add(Ug.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Vg(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(Yg(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Ug.Click,Gg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ug.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=qh(e))?t:og,l=Zh(r,s);if(!n&&a){if(Yg(a)){if(null!=a.tolerance&&zg(l,a.tolerance))return this.handleCancel();if(zg(l,a.distance))return this.handleStart()}return Vg(a)&&zg(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Bg.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Qg={move:{name:"pointermove"},end:{name:"pointerup"}};class Jg extends Wg{constructor(e){const{event:t}=e,n=Dh(t.target);super(e,Qg,n)}}Jg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Xg={move:{name:"mousemove"},end:{name:"mouseup"}};var Kg;!function(e){e[e.RightClick=2]="RightClick"}(Kg||(Kg={})),class extends Wg{constructor(e){super(e,Xg,Dh(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Kg.RightClick&&(null==r||r({event:n}),!0)}}];const $g={move:{name:"touchmove"},end:{name:"touchend"}};var em,tm;(class extends Wg{constructor(e){super(e,$g)}static setup(){return window.addEventListener($g.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener($g.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(em||(em={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(tm||(tm={}));const nm={x:{[Eg.Backward]:!1,[Eg.Forward]:!1},y:{[Eg.Backward]:!1,[Eg.Forward]:!1}};var rm,im;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(rm||(rm={})),function(e){e.Optimized="optimized"}(im||(im={}));const om=new Map;function am(e,t){return Ph((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function sm(t){let{callback:n,disabled:r}=t;const i=Oh(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function lm(e){return new Rg(yg(e),e)}function cm(t,n,r){void 0===n&&(n=lm);const[i,o]=(0,e.useReducer)((function(e){if(!t)return null;var i;if(!1===t.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=n(t);return JSON.stringify(e)===JSON.stringify(o)?e:o}),null),a=function(t){let{callback:n,disabled:r}=t;const i=Oh(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=sm({callback:o});return Lh((()=>{o(),t?(null==s||s.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())}),[t]),i}const um=[];function dm(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==og;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?Zh(t,r.current):og}function fm(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const pm=[];function hm(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return kh(t)?t:e}const gm=[{sensor:Jg,options:{}},{sensor:qg,options:{}}],mm={current:{}},vm={draggable:{measure:bg},droppable:{measure:bg,strategy:rm.WhileDragging,frequency:im.Optimized},dragOverlay:{measure:yg}};class ym extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const bm={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ym,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:rg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:vm,measureDroppableContainers:rg,windowRect:null,measuringScheduled:!1},Im={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:rg,draggableNodes:new Map,over:null,measureDroppableContainers:rg},xm=(0,e.createContext)(Im),wm=(0,e.createContext)(bm);function Am(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ym}}}function Mm(e,t){switch(t.type){case ng.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ng.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ng.DragEnd:case ng.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ng.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new ym(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ng.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new ym(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case ng.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new ym(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Tm(t){let{disabled:n}=t;const{active:r,activatorEvent:i,draggableNodes:o}=(0,e.useContext)(xm),a=Uh(i),s=Uh(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!i&&a&&null!=s){if(!Hh(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Wh(e);if(t){t.focus();break}}}))}}),[i,n,o,s,a]),null}function Em(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Cm=(0,e.createContext)({...og,scaleX:1,scaleY:1});var Nm;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Nm||(Nm={}));const Sm=(0,e.memo)((function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=gm,collisionDetection:f=fg,measuring:p,modifiers:h,...g}=n;const m=(0,e.useReducer)(Mm,void 0,Am),[v,y]=m,[b,I]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]),r=(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]);return[r,n]}(),[x,w]=(0,e.useState)(Nm.Uninitialized),A=x===Nm.Initialized,{draggable:{active:M,nodes:T,translate:E},droppable:{containers:C}}=v,N=M?T.get(M):null,S=(0,e.useRef)({initial:null,translated:null}),k=(0,e.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==N?void 0:N.data)?e:mm,rect:S}:null}),[M,N]),j=(0,e.useRef)(null),[D,L]=(0,e.useState)(null),[O,R]=(0,e.useState)(null),P=Rh(g,Object.values(g)),z=_h("DndDescribedBy",s),U=(0,e.useMemo)((()=>C.getEnabled()),[C]),B=function(t){return(0,e.useMemo)((()=>({draggable:{...vm.draggable,...null==t?void 0:t.draggable},droppable:{...vm.droppable,...null==t?void 0:t.droppable},dragOverlay:{...vm.dragOverlay,...null==t?void 0:t.dragOverlay}})),[null==t?void 0:t.draggable,null==t?void 0:t.droppable,null==t?void 0:t.dragOverlay])}(p),{droppableRects:_,measureDroppableContainers:F,measuringScheduled:G}=function(t,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=(0,e.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,e.useRef)(t),f=function(){switch(u){case rm.Always:return!1;case rm.BeforeDragging:return r;default:return!r}}(),p=Rh(f),h=(0,e.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,e.useRef)(null),m=Ph((e=>{if(f&&!r)return om;if(!e||e===om||d.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Rg(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,f,c]);return(0,e.useEffect)((()=>{d.current=t}),[t]),(0,e.useEffect)((()=>{f||h()}),[r,f]),(0,e.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout((()=>{h(),g.current=null}),l))}),[l,f,h,...i]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(U,{dragging:A,dependencies:[E.x,E.y],config:B.droppable}),Z=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Ph((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(T,M),H=(0,e.useMemo)((()=>O?qh(O):null),[O]),q=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=A&&!e&&!t;return"object"==typeof c?{...c,enabled:n}:{enabled:n}}(),Y=function(e,t){return am(e,t)}(Z,B.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=t;const a=(0,e.useRef)(!1),{x:s,y:l}="boolean"==typeof o?{x:o,y:o}:o;Lh((()=>{if(!s&&!l||!n)return void(a.current=!1);if(a.current||!i)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=pg(r(e),i);if(s||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=xg(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,s,l,i,r])}({activeNode:M?T.get(M):null,config:q.layoutShiftCompensation,initialRect:Y,measure:B.draggable.measure});const V=cm(Z,B.draggable.measure,Y),W=cm(Z?Z.parentElement:null),Q=(0,e.useRef)({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:_,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=C.getNodeFor(null==(r=Q.current.over)?void 0:r.id),X=function(t){let{measure:n}=t;const[r,i]=(0,e.useState)(null),o=sm({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(kh(t)){i((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=hm(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),i(t?n(t):null)}),[n,o]),[s,l]=zh(a);return(0,e.useMemo)((()=>({nodeRef:s,rect:r,setRef:l})),[r,s,l])}({measure:B.dragOverlay.measure}),K=null!=(i=X.nodeRef.current)?i:Z,$=A?null!=(o=X.rect)?o:V:null,ee=Boolean(X.nodeRef.current&&X.rect),te=pg(ne=ee?null:V,am(ne));var ne;const re=fm(K?Nh(K):null),ie=function(t){const n=(0,e.useRef)(t),r=Ph((e=>t?e&&e!==um&&t&&n.current&&t.parentNode===n.current.parentNode?e:Ig(t):um),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(A?null!=J?J:Z:null),oe=function(t,n){void 0===n&&(n=yg);const[r]=t,i=fm(r?Nh(r):null),[o,a]=(0,e.useReducer)((function(){return t.length?t.map((e=>Cg(e)?i:new Rg(n(e),e))):pm}),pm),s=sm({callback:a});return t.length>0&&o===pm&&a(),Lh((()=>{t.length?t.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),a())}),[t]),o}(ie),ae=Em(h,{transform:{x:E.x-te.x,y:E.y-te.y,scaleX:1,scaleY:1},activatorEvent:O,active:k,activeNodeRect:V,containerNodeRect:W,draggingNodeRect:$,over:Q.current.over,overlayNodeRect:X.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:re}),se=H?Gh(H,E):null,le=function(t){const[n,r]=(0,e.useState)(null),i=(0,e.useRef)(t),o=(0,e.useCallback)((e=>{const t=wg(e.target);t&&r((e=>e?(e.set(t,Tg(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=i.current;if(t!==e){n(e);const a=t.map((e=>{const t=wg(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Tg(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),i.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=wg(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>Gh(e,t)),og):Dg(t):og),[t,n])}(ie),ce=dm(le),ue=dm(le,[V]),de=Gh(ae,ce),fe=$?gg($,ae):null,pe=k&&fe?f({active:k,collisionRect:fe,droppableRects:_,droppableContainers:U,pointerCoordinates:se}):null,he=ug(pe,"id"),[ge,me]=(0,e.useState)(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:Gh(ae,ue),null!=(a=null==ge?void 0:ge.rect)?a:null,V),ye=(0,e.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==j.current)return;const i=T.get(j.current);if(!i)return;const o=e.nativeEvent,a=new n({active:j.current,activeNode:i,event:o,options:r,context:Q,onStart(e){const t=j.current;if(null==t)return;const n=T.get(t);if(!n)return;const{onDragStart:r}=P.current,i={active:{id:t,data:n.data,rect:S}};(0,Mh.unstable_batchedUpdates)((()=>{null==r||r(i),w(Nm.Initializing),y({type:ng.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){y({type:ng.DragMove,coordinates:e})},onEnd:s(ng.DragEnd),onCancel:s(ng.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Q.current;let a=null;if(t&&i){const{cancelDrop:s}=P.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===ng.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=ng.DragCancel)}j.current=null,(0,Mh.unstable_batchedUpdates)((()=>{y({type:e}),w(Nm.Uninitialized),me(null),L(null),R(null);const t=e===ng.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=P.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,Mh.unstable_batchedUpdates)((()=>{L(a),R(e.nativeEvent)}))}),[T]),be=(0,e.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=T.get(r);if(null!==j.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},j.current=r,ye(n,t))}),[T,ye]),Ie=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(d,be);!function(t){(0,e.useEffect)((()=>{if(!Th)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(d),Lh((()=>{V&&x===Nm.Initializing&&w(Nm.Initialized)}),[V,x]),(0,e.useEffect)((()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:n,collisions:r,over:i}=Q.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:i};(0,Mh.unstable_batchedUpdates)((()=>{null==e||e(o),b({type:"onDragMove",event:o})}))}),[de.x,de.y]),(0,e.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Q.current;if(!e||null==j.current||!t||!i)return;const{onDragOver:o}=P.current,a=r.get(he),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,Mh.unstable_batchedUpdates)((()=>{me(s),null==o||o(l),b({type:"onDragOver",event:l})}))}),[he]),Lh((()=>{Q.current={activatorEvent:O,active:k,activeNode:Z,collisionRect:fe,collisions:pe,droppableRects:_,draggableNodes:T,draggingNode:K,draggingNodeRect:$,droppableContainers:C,over:ge,scrollableAncestors:ie,scrollAdjustedTranslate:de},S.current={initial:$,translated:fe}}),[k,Z,pe,fe,T,K,$,_,C,ge,ie,de]),function(t){let{acceleration:n,activator:r=em.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=tm.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=t;const h=function(e){let{delta:t,disabled:n}=e;const r=Uh(t);return Ph((e=>{if(n||!r||!e)return nm;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[Eg.Backward]:e.x[Eg.Backward]||-1===i,[Eg.Forward]:e.x[Eg.Forward]||1===i},y:{[Eg.Backward]:e.y[Eg.Backward]||-1===o,[Eg.Forward]:e.y[Eg.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!a}),[g,m]=function(){const t=(0,e.useRef)(null),n=(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]);return[n,(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),v=(0,e.useRef)({x:0,y:0}),y=(0,e.useRef)({x:0,y:0}),b=(0,e.useMemo)((()=>{switch(r){case em.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case em.DraggableRect:return o}}),[r,o,c]),I=(0,e.useRef)(null),x=(0,e.useCallback)((()=>{const e=I.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),w=(0,e.useMemo)((()=>l===tm.TreeOrder?[...u].reverse():u),[l,u]);(0,e.useEffect)((()=>{if(a&&u.length&&b){for(const e of w){if(!1===(null==i?void 0:i(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:o,speed:a}=kg(e,r,b,n,p);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),I.current=e,g(x,s),v.current=a,void(y.current=o)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[n,x,i,m,a,s,JSON.stringify(b),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}({...q,delta:E,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const xe=(0,e.useMemo)((()=>({active:k,activeNode:Z,activeNodeRect:V,activatorEvent:O,collisions:pe,containerNodeRect:W,dragOverlay:X,draggableNodes:T,droppableContainers:C,droppableRects:_,over:ge,measureDroppableContainers:F,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:B,measuringScheduled:G,windowRect:re})),[k,Z,V,O,pe,W,X,T,C,_,ge,F,ie,oe,B,G,re]),we=(0,e.useMemo)((()=>({activatorEvent:O,activators:Ie,active:k,activeNodeRect:V,ariaDescribedById:{draggable:z},dispatch:y,draggableNodes:T,over:ge,measureDroppableContainers:F})),[O,Ie,k,V,y,z,T,ge,F]);return t().createElement(Kh.Provider,{value:I},t().createElement(xm.Provider,{value:we},t().createElement(wm.Provider,{value:xe},t().createElement(Cm.Provider,{value:ve},u)),t().createElement(Tm,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t().createElement(tg,{...l,hiddenTextDescribedById:z}))})),km=(0,e.createContext)(null),jm="button";function Dm(){return(0,e.useContext)(wm)}const Lm={timeout:25};function Om(t){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=t;const a=_h("Droppable"),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=(0,e.useContext)(xm),d=(0,e.useRef)({disabled:r}),f=(0,e.useRef)(!1),p=(0,e.useRef)(null),h=(0,e.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Lm,...o},y=Rh(null!=m?m:i),b=sm({callback:(0,e.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null}),v)):f.current=!0}),[v]),disabled:g||!s}),I=(0,e.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))}),[b]),[x,w]=zh(I),A=Rh(n);return(0,e.useEffect)((()=>{b&&x.current&&(b.disconnect(),f.current=!1,b.observe(x.current))}),[x,b]),Lh((()=>(l({type:ng.RegisterDroppable,element:{id:i,key:a,disabled:r,node:x,rect:p,data:A}}),()=>l({type:ng.UnregisterDroppable,key:a,id:i}))),[i]),(0,e.useEffect)((()=>{r!==d.current.disabled&&(l({type:ng.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)}),[i,a,r,l]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===i,node:x,over:c,setNodeRef:w}}function Rm(n){let{animation:r,children:i}=n;const[o,a]=(0,e.useState)(null),[s,l]=(0,e.useState)(null),c=Uh(i);return i||o||!c||a(c),Lh((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(r(t,s)).then((()=>{a(null)})):a(null)}),[r,o,s]),t().createElement(t().Fragment,null,i,o?(0,e.cloneElement)(o,{ref:l}):null)}const Pm={x:0,y:0,scaleX:1,scaleY:1};function zm(e){let{children:n}=e;return t().createElement(xm.Provider,{value:Im},t().createElement(Cm.Provider,{value:Pm},n))}const Um={position:"fixed",touchAction:"none"},Bm=e=>Hh(e)?"transform 250ms ease":void 0,_m=(0,e.forwardRef)(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Bm}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...Um,width:l.width,height:l.height,top:l.top,left:l.left,transform:Yh.Transform.toString(f),transformOrigin:o&&i?ag(i,l):void 0,transition:"function"==typeof d?d(i):d,...c};return t().createElement(r,{className:s,style:p,ref:n},a)})),Fm=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Gm={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Yh.Transform.toString(t)},{transform:Yh.Transform.toString(n)}]},sideEffects:Fm({styles:{active:{opacity:"0"}}})};let Zm=0;const Hm=t().memo((n=>{let{adjustScale:r=!1,children:i,dropAnimation:o,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=n;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:I,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:A}=Dm(),M=(0,e.useContext)(Cm),T=function(t){return(0,e.useMemo)((()=>{if(null!=t)return Zm++,Zm}),[t])}(null==p?void 0:p.id),E=Em(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:M,windowRect:A}),C=am(h),N=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Oh(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=hm(o);if(!l)return;const{transform:c}=Nh(o).getComputedStyle(o),u=mg(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...Gm,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c=a.rect.left-o.rect.left,u=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c,y:s.y-u,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return Lg(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:u})}))}({config:o,draggableNodes:m,droppableContainers:v,measuringConfiguration:I}),S=C?y.setRef:void 0;return t().createElement(zm,null,t().createElement(Rm,{animation:N},p&&T?t().createElement(_m,{key:T,id:p.id,ref:S,as:c,activatorEvent:f,adjustScale:r,className:u,transition:s,rect:C,style:{zIndex:d,...a},transform:E},i):null))}));function qm(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}const Ym=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=function(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Vm="Sortable",Wm=t().createContext({activeIndex:-1,containerId:Vm,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ym,disabled:{draggable:!1,droppable:!1}});function Qm(n){let{children:r,id:i,items:o,strategy:a=Ym,disabled:s=!1}=n;const{active:l,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f}=Dm(),p=_h(Vm,i),h=Boolean(null!==c.rect),g=(0,e.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),m=null!=l,v=l?g.indexOf(l.id):-1,y=d?g.indexOf(d.id):-1,b=(0,e.useRef)(g),I=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,b.current),x=-1!==y&&-1===v||I,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);Lh((()=>{I&&m&&f(g)}),[I,g,m,f]),(0,e.useEffect)((()=>{b.current=g}),[g]);const A=(0,e.useMemo)((()=>({activeIndex:v,containerId:p,disabled:w,disableTransforms:x,items:g,overIndex:y,useDragOverlay:h,sortedRects:qm(g,u),strategy:a})),[v,p,w.draggable,w.droppable,x,g,y,u,h,a]);return t().createElement(Wm.Provider,{value:A},r)}function Jm(e){return`${jt(e.split("."))}.`}Bg.Down,Bg.Right,Bg.Up,Bg.Left;const Xm=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},Km=t().createContext({}),$m=Rr(Km,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Yu(i,"questionId"),s=function(e,t,n,r){return Xm(e.map((e=>function(e,t,n,r){const i=Xm(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=ev(t,e),o=null==i?void 0:i.options.find((t=>t.id===Number(n.value)&&i.id===e));return null!==(r=null==o?void 0:o.score)&&void 0!==r?r:0})(i,o):(e=>{var t,r;const i=tv(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))))}(Ae(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function ev(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 tv(e,t){return e.find((e=>e.questionId===t))}const nv=()=>{const{gradingStructure:t}=(0,e.useContext)(Km);return void 0===t},rv=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(kc),c=nv(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Km),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=ar();if(c)return null;const h=n.length>1&&r;return t().createElement("span",{className:jr()("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"},h&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),iv=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(kc),{t:s}=ar(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(rv,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))})),ov=({element:e,renderChildNodes:n,style:r,className:i})=>{const o=n(e).length>0,{t:a}=ar();return t().createElement("div",{className:i,style:r},t().createElement("div",{className:"option-content"},o?n(e):t().createElement("i",{style:{color:"grey"}},a("dnd-answers.answer-missing"))))},av=({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const o=Ce(n,"option-id"),{attributes:a,listeners:s,setNodeRef:l,isDragging:c,setActivatorNodeRef:u}=function(t){let{id:n,data:r,disabled:i=!1,attributes:o}=t;const a=_h("Droppable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,e.useContext)(xm),{role:h=jm,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==c?void 0:c.id)===n,y=(0,e.useContext)(v?Cm:km),[b,I]=zh(),[x,w]=zh(),A=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e}),{})),[t,n])}(s,n),M=Rh(r);return Lh((()=>(f.set(n,{id:n,key:a,node:b,activatorNode:x,data:M}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]),{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,e.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!v||h!==jm)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[i,h,m,v,g,d.draggable]),isDragging:v,listeners:i?void 0:A,node:b,over:p,setNodeRef:I,setActivatorNodeRef:w,transform:y}}({id:o}),d={opacity:c?.3:1};return t().createElement("div",{ref:l,className:"e-dnd-answer-option","data-testid":"dnd-answer-option"},t().createElement(ov,{element:n,renderChildNodes:r,renderComponentOverrides:i,style:d}),t().createElement("div",{...s,...a,ref:u,className:"drag-handle"},t().createElement(al,{size:"1x",icon:Ci})))},sv=({renderChildNodes:e,renderComponentOverrides:n,correctIds:r,classes:i=[],questionId:o,page:a,answerOptionElements:s=[]})=>{const l=s.some((e=>we(e,"image"))),c=s.some((e=>we(e,"audio"))),{active:u,isOver:d}=Om({id:o}),{t:f}=ar();return t().createElement("div",{className:jr()(["e-dnd-answer-droppable",...i],{"has-images":l,"has-audio":c,hovered:d}),"data-testid":"dnd-droppable"},null==s?void 0:s.map((i=>{const o=Number(i.getAttribute("option-id")),s=null==r?void 0:r.includes(o);return t().createElement(t().Fragment,{key:i.getAttribute("option-id")},"exam"===a?t().createElement(av,{element:i,renderChildNodes:e,renderComponentOverrides:n,key:o}):t().createElement("div",{className:"e-dnd-answer-option"},t().createElement(ov,{element:i,renderChildNodes:e,renderComponentOverrides:n,key:o,className:r?s?"correct-answer":"wrong-answer":void 0})))})),!s.length&&(u?t().createElement("i",{className:"droppable-drop-here"},f("dnd-answers.drop-here")):t().createElement("i",{className:"droppable-no-answer"},f("dnd-answers.no-answer"))))},lv=({id:e,size:n="small",score:r})=>{const{t:i}=ar(),o="inline"===n?"sup":"span";return t().createElement(o,{className:jr()("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}))},cv=({element:n,renderChildNodes:r,renderComponentOverrides:i,itemIds:o,page:a,answerOptionElements:s})=>{var l,c,u,d;const{t:f}=ar(),p=n.getAttribute("question-id"),h=Number(p),g=n.getAttribute("display-number"),m=Ce(n,"max-score"),v=!!we(n,"image"),y=we(n,"dnd-answer-title"),b=y&&r(y).length>0,{gradingStructure:I,answersByQuestionId:x}=(0,e.useContext)(Km),w=!I,A=ev(I,h),M=null===(l=null==A?void 0:A.options)||void 0===l?void 0:l.filter((e=>e.correct)).map((e=>e.id)),T=null!==(c=null==x?void 0:x[h])&&void 0!==c?c:void 0,E=T&&(null===(d=null===(u=null==A?void 0:A.options)||void 0===u?void 0:u.find((e=>e.id===Number(null==T?void 0:T.value)&&e.correct)))||void 0===d?void 0:d.score)||0,C=Jm(g),{setNodeRef:N,isOver:S}=Om({id:p});return t().createElement(Qm,{id:p,items:o},t().createElement("span",{ref:N},t().createElement("div",{className:jr()("e-dnd-answer",{"no-answer":"results"===a&&!(null==T?void 0:T.value)}),"data-question-id":p,key:p},t().createElement("div",{className:"anchor",id:`question-nr-${g}`}),y&&(b?t().createElement("span",{className:jr()("e-dnd-answer-title",{"has-images":v,hovered:S})},r(y)):t().createElement("i",{style:{color:"grey"}},f("dnd-answers.question-missing"))),t().createElement("div",{className:"connection-line"}),t().createElement(sv,{page:a,answerOptionElements:s,questionId:p,renderChildNodes:r,renderComponentOverrides:i,correctIds:M}),w?m&&t().createElement(lv,{score:m,size:"small"}):t().createElement(iv,{score:(null==T?void 0:T.value)?E:void 0,maxScore:m,displayNumber:C,questionId:h}))))},uv=({items:e,renderChildNodes:n,renderComponentOverrides:r,answerOptionElements:i})=>{const{setNodeRef:o}=Om({id:"root"}),{t:a}=ar();return t().createElement(Qm,{items:e},t().createElement("span",{className:"droppable-title"},a("dnd-answers.all-answer-options")),t().createElement("span",{ref:o},t().createElement(sv,{renderChildNodes:n,renderComponentOverrides:r,questionId:"root",page:"exam",classes:["root"],answerOptionElements:i})))},dv=[Bg.Down,Bg.Right,Bg.Up,Bg.Left],fv=(e,{context:{active:t,droppableRects:n,droppableContainers:r,collisionRect:i}})=>{var o;if(dv.includes(e.code)){if(e.preventDefault(),!t||!i)return;const a=[];r.getEnabled().forEach((r=>{var o;if(!r||(null==r?void 0:r.disabled))return;const s=n.get(r.id);if(!s)return;const l=r.data.current;if(l){const{type:e,children:n}=l;if("container"===e&&Array.isArray(n)&&n.length>0&&"container"!==(null===(o=t.data.current)||void 0===o?void 0:o.type))return}switch(e.code){case Bg.Down:i.top<s.top&&a.push(r);break;case Bg.Up:i.top>s.top&&a.push(r);break;case Bg.Left:if(i.left>=s.left+s.width)return;break;case Bg.Right:i.left+i.width<=s.left&&a.push(r)}}));const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=cg(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=cg(r),a=i.reduce(((e,t,r)=>{return e+(i=n[r],o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)));var i,o}),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(sg)})({active:t,collisionRect:i,droppableRects:n,droppableContainers:a,pointerCoordinates:null}),l=ug(s,"id");if(null!=l){const e=r.get(l),t=null==e?void 0:e.node.current,n=null==e?void 0:e.rect.current;if(t&&n)return"placeholder"===e.id?{x:n.left+(n.width-i.width)/2,y:n.top+(n.height-i.height)/2}:"container"===(null===(o=e.data.current)||void 0===o?void 0:o.type)?{x:n.left+20,y:n.top+74}:{x:n.left,y:n.top}}}};i(4828);const pv=e=>"object"==typeof e&&null!=e&&1===e.nodeType,hv=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gv=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hv(n.overflowY,t)||hv(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},mv=(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,vv=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var yv=function(){return yv=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},yv.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var bv=0;function Iv(){}function xv(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function wv(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 Av(){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 Mv(){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 Tv(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 Ev(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=Cv(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Cv(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?Cv(t?o-1:0,t,n,r):-1}function Nv(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(xv(t,e,n)||r&&xv(t,n.document.activeElement,n))}))}var Sv=wv((function(e){kv(e).textContent=""}),500);function kv(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 jv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Dv=wv((function(e,t){!function(e,t){e&&t&&(kv(t).textContent=e,Sv(t))}(e,t)}),200),Lv="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Ov="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(bv++):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 Rv(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Pv(t){var n=(0,e.useRef)(t);return n.current=t,n}function zv(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=Tv(e,n.props);var r=t(e,n);return n.props.stateReducer(e,dd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Pv(n),f=(0,e.useCallback)((function(e){return u(dd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=Tv(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"+Rv(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](dd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(dd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Uv={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(!pv(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;pv(h)&&d(h);){if(h=vv(h),h===f){p.push(h);break}null!=h&&h===document.body&&gv(h)&&!gv(document.documentElement)||null!=h&&gv(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:v,scrollY:y}=window,{height:b,width:I,top:x,right:w,bottom:A,left:M}=e.getBoundingClientRect(),{top:T,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-T:"end"===s?A+C:x+b/2-T+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&&A<=m&&w<=g&&x>=i&&A<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),T=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,O="offsetHeight"in t?t.offsetHeight-t.clientHeight-T-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?mv(y,y+m,m,T,C,y+S,y+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:mv(v,v+g,g,h,E,v+k,v+k+I,I),N=Math.max(0,N+y),D=Math.max(0,D+v);else{N="start"===s?S-i-T:"end"===s?S-c+C+O:"nearest"===s?mv(i,c,n,T,C+O,S,S+b,b):S-(i+n/2)+O/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+L/2:"end"===l?k-o+E+L:mv(u,o,r,h,E+L,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+O)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+L)),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 Bv(e,t,n){void 0===n&&(n=jv);var r=e["default"+Rv(t)];return void 0!==r?r:n[t]}function _v(e,t,n){void 0===n&&(n=jv);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Rv(t)];return void 0!==i?i:Bv(e,t,n)}function Fv(e){var t=_v(e,"selectedItem"),n=_v(e,"isOpen"),r=function(e){var t=_v(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=_v(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 Gv(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 Zv(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);Dv(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Dv.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Hv=Iv;function qv(e,t,n){var r;return void 0===n&&(n=!0),dd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&dd({selectedItem:e.items[t],isOpen:Bv(e,"isOpen"),highlightedIndex:Bv(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Yv(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Vv(e){var t=Bv(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Wv=dd({},{environment:Vs().shape({addEventListener:Vs().func.isRequired,removeEventListener:Vs().func.isRequired,document:Vs().shape({createElement:Vs().func.isRequired,getElementById:Vs().func.isRequired,activeElement:Vs().any.isRequired,body:Vs().any.isRequired}).isRequired,Node:Vs().func.isRequired}),itemToString:Vs().func,itemToKey:Vs().func,stateReducer:Vs().func},{getA11yStatusMessage:Vs().func,highlightedIndex:Vs().number,defaultHighlightedIndex:Vs().number,initialHighlightedIndex:Vs().number,isOpen:Vs().bool,defaultIsOpen:Vs().bool,initialIsOpen:Vs().bool,selectedItem:Vs().any,initialSelectedItem:Vs().any,defaultSelectedItem:Vs().any,id:Vs().string,labelId:Vs().string,menuId:Vs().string,getItemId:Vs().func,toggleButtonId:Vs().string,onSelectedItemChange:Vs().func,onHighlightedIndexChange:Vs().func,onStateChange:Vs().func,onIsOpenChange:Vs().func,scrollIntoView:Vs().func});yv(yv({},Wv),{items:Vs().array.isRequired,isItemDisabled:Vs().func});var Qv=yv(yv({},Uv),{isItemDisabled:function(){return!1}}),Jv=Iv,Xv=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:14,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:11,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDownHome:5,ToggleButtonKeyDownPageDown:10,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownSpaceButton:8});function Kv(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case 14:r={isOpen:Bv(o,"isOpen"),highlightedIndex:Vv(o),selectedItem:o.items[t.index]};break;case 3: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 1:r={highlightedIndex:e.isOpen?Ev(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Gv(o,e,1),isOpen:!0};break;case 2:r=e.isOpen&&a?qv(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Ev(e.highlightedIndex,-1,o.items,o.isItemDisabled):Gv(o,e,-1),isOpen:!0};break;case 7:case 8:r=qv(o,e.highlightedIndex,!1);break;case 5:r={highlightedIndex:Cv(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case 6:r={highlightedIndex:Cv(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case 9:r={highlightedIndex:Ev(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case 10:r={highlightedIndex:Ev(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case 4:r={isOpen:!1,highlightedIndex:-1};break;case 11:r=dd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case 19: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:Gv(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Gv(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:Vv(o),isOpen:Bv(o,"isOpen"),selectedItem:Bv(o,"selectedItem"),inputValue:Bv(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return dd({},e,r)}(e,t,Xv)}return dd({},e,r)}var $v=["onClick"],ey=["onMouseLeave","refKey","ref"],ty=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],ny=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function ry(t){void 0===t&&(t={}),Jv(t,ry);var n=dd({},Qv,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=zv(e,t,n,r),o=i[0],a=i[1];return[Tv(o,t),a]}(Kv,n,Fv,Yv),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),v=Ov(n),y=Pv({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[v.getItemId(e)]}),[v]);Zv(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 Lv((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=wv((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Hv({props:n,state:s}),(0,e.useEffect)((function(){_v(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 Iv;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,Nv(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||Nv(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(){y.current.state.isOpen&&l({type:11})}),[l,y]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=Iv;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var A=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:1,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:2,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:5})},End:function(e){e.preventDefault(),l({type:6})},Escape:function(){y.current.state.isOpen&&l({type:4})},Enter:function(e){e.preventDefault(),l({type:y.current.state.isOpen?7:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:9}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:10}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?l({type:3,key:" "}):l({type:8}):l({type:0})}}}),[l,y]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),T=(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:19,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=fd(t,$v);return dd({id:v.labelId,htmlFor:v.toggleButtonId,onClick:Av(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[v]),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=fd(r,ey),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),dd(((n={})[a]=Mv(s,(function(e){h.current=e})),n.id=v.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+v.labelId,n.onMouseLeave=Av(i,(function(){l({type:12})})),n),c)}),[l,w,v]),L=(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=fd(r,ty),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=y.current.state,m=dd(((n={})[c]=Mv(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?v.getItemId(g.highlightedIndex):"",n["aria-controls"]=v.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+v.labelId,n.id=v.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=Av(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:11})})),n),d);return d.disabled||(m.onClick=Av(o,(function(){l({type:0})})),m.onKeyDown=Av(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&&A[t]?A[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:3,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,v,y,x,w,A]),O=(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=fd(n,ny);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=y.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!"),A=w[0],M=w[1],T=b.isItemDisabled(A,M),E=dd(((t={})[u]=Mv(f,(function(e){e&&(g.current[v.getItemId(M)]=e)})),t["aria-disabled"]=T,t["aria-selected"]=A===m.selectedItem,t.id=v.getItemId(M),t.role="option",t),p);return T||(E.onClick=Av(a,(function(){l({type:14,index:M})}))),E.onMouseMove=Av(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:T}))})),E.onMouseDown=Av(s,(function(e){return e.preventDefault()})),E}),[y,v,x,I,l]);return{getToggleButtonProps:L,getLabelProps:j,getMenuProps:D,getItemProps:O,toggleMenu:M,openMenu:E,closeMenu:T,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}ry.stateChangeTypes=Xv,dd({},Wv,{items:Vs().array.isRequired,isItemDisabled:Vs().func,inputValue:Vs().string,defaultInputValue:Vs().string,initialInputValue:Vs().string,inputId:Vs().string,onInputValueChange:Vs().func}),dd({},Uv,{isItemDisabled:function(){return!1}}),Vs().array,Vs().array,Vs().array,Vs().func,Vs().number,Vs().number,Vs().number,Vs().func,Vs().func,Vs().string,Vs().string;const iy=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&&!Lt(a):n(a,s)))var s=a,l=o}return l},oy=function(e,t){return e>t};var ay=i(7767),sy=i.n(ay);const ly=Promise.all([new(sy())("Noto Sans",{weight:300}).load(),new(sy())("Noto Sans",{weight:400}).load(),new(sy())("Noto Sans",{weight:600}).load()]).then((()=>{cy=!0})).catch(Dt);let cy=!1;const uy=!navigator.userAgent.includes("jsdom/"),dy=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=mi((e=>e.answers.answersById[i])),s=pi(),l=n.getAttribute("display-number"),c=a&&a.value&&Te(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)(cy);uy&&(ly.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?iy(e,ge,oy):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:v,questionLabelIds:y}=(0,e.useContext)(kc),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:A,selectedItem:M}=ry({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(ip({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:T}=ar(),E=Ir(n),C=(0,e.useContext)(Lr),N={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:jr()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:jr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":A}),...x({"aria-describedby":E,"aria-labelledby":y},{suppressRefError:!uy})},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":T.raw("dropdown-answer.label")},be))),t().createElement("span",{className:jr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(al,{icon:A?Ti:Di}))),t().createElement("span",{...I({className:jr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":A}),"aria-labelledby":void 0,ref:d},{suppressRefError:!uy})},m.map(((e,n)=>t().createElement("span",{className:jr()("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}),...C?N:{}},t().createElement("span",{className:jr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":T.raw("dropdown-answer.clear")},be))))))),v.length>1&&t().createElement(lv,{score:o,size:"inline",id:E}))})),fy=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),py=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))})),hy=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(Ur),{examineExam:r}=n,{t:i}=ar();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 gy({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Te(e,"hint"),s=je(e);return t().createElement("p",{className:jr()("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&&Jm(o)," ",r(a))}const my=({element:e,renderChildNodes:n})=>{const r=mi((e=>e.answers.focusedQuestionId)),i=Ae(e,["text-answer","scored-text-answer"]).filter((e=>null!=Te(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(gy,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},vy=(0,e.memo)((function({onClose:n,className:r,children:i}){const o=(0,e.useRef)(null);return(0,e.useEffect)((()=>(o.current&&(o.current.showModal(),document.body.style.overflow="hidden",o.current.addEventListener("close",n)),()=>{var e;null===(e=o.current)||void 0===e||e.close(),document.body.style.overflow=""})),[]),t().createElement("dialog",{ref:o,className:r},i)})),yy=e=>{const{t:n}=ar(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(xy,{...e}):""," ",t().createElement(mh,{...e}))},by=({displayNumber:e,characterCount:n})=>{const{t:r}=ar();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function Iy({validationErrors:e,inExam:n}){return e.length>0?t().createElement("dialog",{open:!0,className:jr()({"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(al,{size:"lg",icon:Oi,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(yy,{...e,key:n}):t().createElement(by,{...e,key:n})})))):null}const xy=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(Pr),i=Te(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Te(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},wy=t().memo((()=>{const e=mi((e=>e.answers.validationErrors));return t().createElement(Iy,{validationErrors:e,inExam:!0})})),Ay=t().memo((function(){const e=mi(wi),{t:n}=ar();return"initial"===e?null:t().createElement("dialog",{open:!0,className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:jr()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),My=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Ty=t().memo(jc((function({element:n,renderChildNodes:r}){const i=mi((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(_r),{displayNumber:a,level:s}=(0,e.useContext)(kc),{examServerApi:l}=(0,e.useContext)(Ur),[c,u]=(0,e.useState)(!1),{t:d}=ar(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`),e||setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10)},p=we(n,"text-answer"),h=p?Ce(p,"question-id"):null;(0,e.useEffect)((()=>{if(c){const e=h?document.querySelector(`[data-question-id="${h}"]`):void 0;null==e||e.focus()}}),[c]);const g=t().createRef(),{addRef:m}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==g?void 0:g.current)&&0===s&&m&&m(g.current)}),[]),o&&"forbidden"!==i?null:t().createElement(My.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:jr()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:g},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement(vy,{className:"full-screen",onClose:()=>f(!1)},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(al,{icon:Ai}),d("close-writing-mode")),r(n),t().createElement(wy,null),t().createElement(Ay,null)):r(n)))}))),Ey=t().memo((function({element:e,renderChildNodes:n}){const r=mr(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Cy=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(kc),c=`h${Math.min(3+a,6)}`,u=gr(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:jr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${zc(i)} `),r(n)," ",t().createElement(lv,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),Ny=({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:jr()("e-progress-bar",i),ref:o},t().createElement("div",{className:jr()("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 Sy(){const{t:e}=ar();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function ky(n){const r=pi(),{t:i}=ar(),{casCountdownDuration:o}=(0,e.useContext)(Ur);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(hy,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,Jl.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(Ny,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(th()),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 jy=t().memo(Fr((function({element:n,renderChildNodes:r}){const i=mi((e=>e.cas),ni),{casForbidden:o,displayNumber:a}=(0,e.useContext)(_r),{sections:s}=(0,e.useContext)(Pr),l=n===jt(s);return t().createElement(Dr,{className:"exam-section","aria-labelledby":hr(a)},r(n),o&&t().createElement(ky,{...i}),l&&t().createElement(Sy,null))}))),Dy=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Ly=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(Pr),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(_r),{t:c}=ar(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ye);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:hr(o),"data-toc-id":`section-${o}`,ref:u,"data-annotation-anchor":`section-title-${o}`},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Oy=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Ry=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Py=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=ar(),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:jr()("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=Te(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));var zy=i(8115),Uy=i.n(zy);class By extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(vi(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(My.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Uy(),{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(Fy,null),t().createElement(al,{icon:Li})))))}}By.contextType=Pr;const _y=By,Fy=()=>{const{t:e}=ar();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Gy=t().memo((({maxLength:e,id:n})=>{const{t:r}=ar();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(lh,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Zy(e){return e.replace(/\s/g,"").length}const Hy=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)(Pr),{questionLabelIds:d,answers:f}=(0,e.useContext)(kc),{examServerApi:p}=(0,e.useContext)(Ur),[h,g]=(0,e.useState)(),m=mi((e=>e.answers.answersById[o])),v=mi((e=>e.answers.supportsAnswerHistory)),y=mi((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=mi((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=pi(),x=(0,e.useRef)(null),w=m&&m.value,A=Ir(n),M=null!=b,T=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${vr(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:Zy(t),displayNumber:a};I(ip(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:Zy(t),displayNumber:a};I(ip(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:Zy(t),displayNumber:a};I(ip(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),L=(0,e.useCallback)((()=>I((e=>(0,Jl.action)("ANSWER_FOCUSED",e))(o))),[o]),O=(0,e.useCallback)((()=>I((e=>(0,Jl.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Jl.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(Gy,{maxLength:c,id:vr(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(_y,{answer:m,className:jr()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:T,invalid:M,labelledBy:E}),t().createElement(Py,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:y,supportsAnswerHistory:v,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:jr()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:L,onBlur:O,ref:x,"data-question-id":o,lang:T,"aria-describedby":A,"aria-labelledby":E}),f.length>1&&t().createElement(lv,{score:s,size:"inline",id:A}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:jr()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:L,onBlur:O,ref:x,"data-question-id":o,lang:T,"aria-describedby":A,"aria-labelledby":E}),f.length>1&&t().createElement(lv,{score:s,size:"inline",id:A}))}})),qy=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Te(n,"hint"),a=t().createElement(Hy,{...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"},Jm(i)),t().createElement(Ry,null,r(o)),a):a)}));var Yy=i(6660),Vy=i.n(Yy);class Wy 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(Qy,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Qy=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=ar(),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,", "))))))},Jy=Vy().CancelToken;function Xy(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function Ky(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 $y(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(sb,null)))}function eb(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 tb(e,t=50){const n=eb(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 nb(e){return eb(e).replace(/\s/g,"").length}function rb(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 ib extends t().PureComponent{constructor(e){super(e),this.source=Jy.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()}},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 Vy().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(Xy);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Vy().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(vy,{onClose:this.close.bind(this)},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(ab,{close:this.close.bind(this)}),this.state.loading?t().createElement(ob,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(Wy,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:tb(e),minutesSinceAnswer:o,characterCount:nb(e),screenshotCount:rb(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(Ky,{selectedAnswer:e}),t().createElement($y,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const ob=()=>{const{t:e}=ar();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},ab=({close:e})=>{const{t:n}=ar();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")}))},sb=()=>{const{t:e}=ar();return t().createElement("div",null,e("undo.restoreAnswer"))},lb=Ue({attachment:xh,"attachment-link":Hr("link"),"attachment-links":qr("link"),audio:nc,"audio-title":Nr,"audio-group":ch,"audio-test":uh,"choice-answer":Ah,"dnd-answer-container":({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{var o;const a=pi(),[s,l]=(0,e.useState)(),[c,u]=(0,e.useState)({}),[d,f]=(0,e.useState)({}),[p,h]=(0,e.useState)({}),g=mi((e=>e.answers));(0,e.useEffect)((()=>{const e=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),t=Re(n,g.answersById),r=Pe(n),i=e.reduce(((e,t)=>{const n=t.getAttribute("question-id"),r=t.getAttribute("display-number");return{...e,[n]:r}}),{});u(t),f(r),h(i)}),[n]);const m=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(ig(Jg),ig(qg,{coordinateGetter:fv}));function v(e,t){const n=Number(e),r=(null==t?void 0:t.toString())||"",i=p[e];a(ip({type:"choice",questionId:n,value:r,displayNumber:i}))}const y=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),b=null===(o=c.root)||void 0===o?void 0:o.map((e=>d[e]||null)).filter(Boolean);return t().createElement("div",{className:"e-dnd-answer-container"},t().createElement(Sm,{sensors:m,onDragStart:function(e){l(e.active.id)},onDragEnd:function(e){const{optionId:t,questionIdFrom:n,questionIdTo:r}=function(e){const{active:t,over:n}=e,r=t.id,i=function(e){return e in c?e:Object.keys(c).find((t=>c[t].includes(e)))}(r);return{optionId:r,questionIdFrom:i,questionIdTo:null==n?void 0:n.id}}(e);n&&r&&n!==r&&(u((e=>function(e,t,n,r){const i={...e};if(i[t]=i[t].filter((e=>e!==r)),"root"===n)i.root=[r,...i.root];else{if(i[n].length>0){const e=i[n][0];i.root=[...i.root,e]}i[n]=[r]}return i}(e,n,r,t))),"root"!==n&&v(n,""),"root"!==r&&v(r,t),l(null))}},y.map((e=>{var n;const o=e.getAttribute("question-id"),a=null===(n=c[o]||[])||void 0===n?void 0:n.map((e=>(null==d?void 0:d[e])||null)).filter(Boolean),s=c[o]||[];return t().createElement(cv,{key:o,element:e,renderChildNodes:r,renderComponentOverrides:i,itemIds:s,answerOptionElements:a,page:"exam"})})),t().createElement(uv,{items:c.root||[],renderChildNodes:r,renderComponentOverrides:i,answerOptionElements:b}),t().createElement(Hm,{className:"e-dnd-answer-drag-overlay",dropAnimation:{duration:250,easing:"ease-in-out"}},s?t().createElement(av,{element:d[s],renderChildNodes:r,renderComponentOverrides:i}):null)))},"dropdown-answer":dy,"exam-footer":fy,"external-material":ic,file:oc,formula:ac,image:cc,question:Ty,"question-number":Dc,translation:Lc,"question-instruction":Ey,"question-title":Cy,hints:my,references:ph,"scored-text-answer":qy,"scored-text-answers":my,"section-instruction":Dy,section:jy,"section-title":Ly,"text-answer":qy,video:hc,"image-overlay":Sc}),cb=({root:e})=>{const{t:n}=ar();return we(e,"external-material")?null:t().createElement("span",{className:"notification notification--inline"},t().createElement(lh,null),n("no-attachments"))},ub=()=>{const{t:e}=ar();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},db=t().memo(Br(zr((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotationsEnabled:u,renderComponentOverrides:d={}})=>{const{date:f,dateTimeFormatter:p,dayCode:h,examCode:g,language:m,resolveAttachment:v,root:b,subjectLanguage:I}=(0,e.useContext)(Pr),x=(0,e.useMemo)((()=>lb(d)),[d]),w=Te(b,"exam-title"),A=Te(b,"exam-instruction"),M=Te(b,"table-of-contents"),T=Te(b,"external-material"),E=b.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=Er((()=>sh(Gc(n),r,i,o,a))),S=Er((()=>bh({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=Er((()=>bh({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=Er((()=>or(m,g,h)));(0,e.useEffect)(sr(j,m)),(0,e.useEffect)(Tr,[]);const[D,L]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(O),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const O=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(si,{store:N},t().createElement(Or,{annotationsEnabled:u},t().createElement(ye.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||L((t=>[...t,e]))}}},t().createElement(y,{i18n:j},t().createElement("main",{className:"e-exam",lang:I,"aria-labelledby":fr,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:v(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:x,renderComponentOverrides:d})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Oy,{studentName:s}),t().createElement(Dr,{"aria-labelledby":fr},w&&t().createElement(Cr,{id:fr},x(w)),f&&t().createElement("p",null,t().createElement("strong",null,p.format(f))),t().createElement(cb,{root:b}),A&&t().createElement(py,{element:A,renderChildNodes:x,renderComponentOverrides:d}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:x,renderComponentOverrides:d})),T&&t().createElement(ic,{element:T,renderChildNodes:x,renderComponentOverrides:d,forceRender:!0})),x(b),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(hy,null),t().createElement(ub,null))))),(U||z)&&t().createElement(dh,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(Ih,null))),t().createElement(wy,null),t().createElement(Ay,null),l&&z&&t().createElement(ib,{...c}))))))})))),fb=e=>t().memo((function({element:t,children:n}){return e(t)?n:null})),pb=t().createContext({}),hb=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(pb),{displayNumber:o}=(0,e.useContext)(kc);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))},gb=({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const{answers:o}=(0,e.useContext)(kc),a=Te(n,"answer-grading-instruction"),s=Ce(n,"max-length"),l=t().createElement(t().Fragment,null,null!=s&&t().createElement(Gy,{maxLength:s}),t().createElement("ul",null,r(n)),a&&t().createElement(hb,{element:a,renderChildNodes:r,renderComponentOverrides:i}));if(1===o.length)return l;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Te(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(lv,{score:i})),l)}},mb=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=ar();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},vb=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),yb=jc((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(kc);return t().createElement("div",{className:jr()("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))})),bb=({element:e,renderChildNodes:n})=>{const r=Te(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=ar(),o=Te(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 Me(e,"dnd-answer")?"[Audio]":null},Ib=Fr((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(_r);return t().createElement(Dr,{className:"e-grading-instruction-section","aria-labelledby":hr(i)},r(n))})),xb=({EditorComponent:e,children:n})=>t().createElement(pb.Provider,{value:{EditorComponent:e}},n),wb=({element:n,renderChildNodes:r,renderComponentOverrides:i,answerOptionsById:o})=>{var a;const s=Number(n.getAttribute("question-id")),{t:l}=ar(),{gradingStructure:c}=(0,e.useContext)(Km),u=ev(c,s),d=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.filter((e=>e.correct)).map((e=>e.id)),f=null==d?void 0:d.map((e=>(null==o?void 0:o[e])||null)).filter(Boolean);return t().createElement(t().Fragment,null,t().createElement("span",{className:"droppable-title align-right"},l("dnd-answers.correct-answers")),t().createElement(sv,{renderChildNodes:r,renderComponentOverrides:i,answerOptionElements:f,correctIds:d,questionId:s,page:"results",classes:["correct-answers"]}))},Ab=({element:n,renderChildNodes:r,renderComponentOverrides:i,page:o})=>{const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Km),l=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),c=Pe(n),u="results"===o?Re(n,a):(e=>{const t=Ae(e,"dnd-answer-option").reduce(((e,t)=>{const n=t.getAttribute("for-question-id"),r=t.getAttribute("option-id");if(!n)return e;const i=e[n]||[];return{...e,[n]:i.concat(r)}}),{});return t})(n);return t().createElement("div",{className:"e-dnd-answer-container"},l.map((e=>{var n;const a=e.getAttribute("question-id"),l=u[a]||[],d=null===(n=u[a]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean);return t().createElement(t().Fragment,{key:a},t().createElement(cv,{element:e,answerOptionElements:d,renderChildNodes:r,renderComponentOverrides:i,itemIds:l,page:o}),"results"===o&&s&&t().createElement(wb,{element:e,renderChildNodes:r,renderComponentOverrides:i,answerOptionsById:c}))})))},Mb=fb((e=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction","dnd-answer-title","dnd-answer-option"]))),Tb=fb((e=>null==Me(e,["external-material"]))),Eb=Ue({"accepted-answer":mb,attachment:Sr,"attachment-link":{component:Hr("plain"),wrapper:Tb},"attachment-links":{component:qr("plain"),wrapper:Tb},audio:bb,"audio-group":Sr,"choice-answer":gb,"choice-answer-option":mb,"dropdown-answer":gb,"dropdown-answer-option":mb,"dnd-answer-container":e=>t().createElement(Ab,{...e,page:"grading-instructions"}),"external-material":Sr,file:{component:oc,wrapper:Mb},formula:{component:ac,wrapper:Mb},hints:Sr,image:{component:cc,wrapper:Mb},question:yb,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(kc),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:jr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${zc(i)} `),r(n)," ",t().createElement(lv,{score:o,size:0===a?"large":"small"})))},"question-instruction":Ey,"question-grading-instruction":hb,"question-number":Dc,translation:Lc,"scored-text-answer":gb,"text-answer":gb,section:Ib,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(Pr),{displayNumber:o}=(0,e.useContext)(_r),{t:a}=ar();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:hr(o),"data-annotation-anchor":`section-title-${o}`},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:bb}),Cb=()=>{const{t:e}=ar();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Nb=t().memo(zr((({doc:n,EditorComponent:r,annotationsEnabled:i,renderComponentOverrides:o={}})=>{const a=n.documentElement,{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,subjectLanguage:f}=(0,e.useContext)(Pr),p=(0,e.useMemo)((()=>Eb(o)),[o]),h=Te(a,"exam-title"),g=Te(a,"exam-grading-instruction"),m=Te(a,"table-of-contents"),v=bh({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=Er((()=>or(d,u,c)));return(0,e.useEffect)(sr(b,d)),(0,e.useEffect)(Tr,[]),t().createElement(Or,{annotationsEnabled:i},t().createElement(xb,{EditorComponent:r},t().createElement(y,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:f},t().createElement(t().StrictMode,null),t().createElement(Dr,{"aria-labelledby":fr},t().createElement(Cr,{id:fr},t().createElement(Cb,null)," ",h&&p(h)),s&&t().createElement("p",null,t().createElement("strong",null,l.format(s))),g&&t().createElement(vb,{element:g,renderChildNodes:p,renderComponentOverrides:o}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(v,{element:m,renderChildNodes:p,renderComponentOverrides:o}))),p(a)))))})));function Sb({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=ar(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:jr()("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:jr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(Ry,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:jr()("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:jr()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const kb=t().memo((function({element:n,renderChildNodes:r,renderComponentOverrides:i}){var o,a;const{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Km),c=Ce(n,"question-id"),u=s[c],d=n.getAttribute("direction")||"vertical",f=n.getAttribute("class"),p=ev(l,c),h=u&&(null===(a=null===(o=null==p?void 0:p.options)||void 0===o?void 0:o.find((e=>e.id===Number(u.value))))||void 0===a?void 0:a.score),g=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement(iv,{score:h,maxScore:g,questionId:c}),t().createElement("div",{className:jr()("e-choice-answer",f,{"e-columns":"horizontal"===d})},Se(n,(e=>{var n;const o=Ce(e,"option-id"),a=null!=u&&Number(u.value)===o,s=null===(n=null==p?void 0:p.options)||void 0===n?void 0:n.find((e=>e.id===o));return t().createElement(Sb,{element:e,renderChildNodes:r,renderComponentOverrides:i,questionId:c,key:o,direction:d,selected:a,isCorrect:(null==s?void 0:s.correct)||!1})}))))})),jb=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=ar(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Km),{answers:c}=(0,e.useContext)(kc),u=Ce(n,"question-id"),d=s[u],f=Te(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=nv(),h=ev(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")))),v=f&&g.includes(Ce(f,"option-id")),y=Jm(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,y),t().createElement("span",{className:jr()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":v,"e-dropdown-answer__answered--wrong":!v}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Ry,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Ry,null,o("screen-reader.answer-end")),v&&t().createElement(Ry,null,o("screen-reader.correct-answer"))),!p&&!v&&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(iv,{score:b,maxScore:I,displayNumber:y,questionId:u}))}));function Db({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(Lb,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Lb,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Lb,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Lb=({i18nTitleKey:e,annotations:n})=>{const{t:r}=ar();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},Ob=t().memo((function(){const{answers:n}=(0,e.useContext)(kc),{scores:r,singleGrading:i}=(0,e.useContext)(Km),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=tv(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)=>Kf(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?Jm(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(Db,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Rb=t().memo(jc((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Km),{displayNumber:l,level:c}=(0,e.useContext)(kc),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}=ar(),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:jr()("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(Ob,null))}))),Pb=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(kc),c=`h${Math.min(3+o,6)}`,u=nv();return t().createElement(t().Fragment,null,t().createElement(c,{className:jr()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${zc(i)} `),r(n)," ",u&&t().createElement(lv,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),zb=t().memo(Fr((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(_r);return t().createElement(Dr,{"aria-labelledby":hr(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Ub=5;function Bb(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":Gb(e,a,i,l,s,r);break;default:Hb(e,a,i,l,s,r)}}}function _b(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 Fb(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 Gb(e,t,n,r,i,o){const{attachmentIndex:a}=t;return Zb(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function Zb(e,t,n,r,i,o){const a=Fb(e),s=function(){const e=De("mark",{className:jr()("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 _b(e,n),o&&e.appendChild(qb(o,"shape",n.message)),e}();return a.appendChild(s),s}function Hb(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(function(e){return"DIV"===e.nodeName}(f)||l(f)||function(e){return"SUP"===e.nodeName}(f)||function(e){return"BR"===e.nodeName}(f)||!(p>=a)){if(f instanceof HTMLDivElement&&f.childNodes.length>0)return e(f.childNodes[0],p,h);f instanceof Text&&p+u(f)>a&&f.splitText(a-p);const t=function(e){return l(e)?e.childNodes[0]:c(e)}(f);t&&e(t,p+u(f),h)}else{const a=De("mark",{className:jr()("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),u=c(a);l>0&&u?e(u,p+s-l,l):i&&(l>0&&console.error("Bug: the answer seems to be too short for the current set of annotations."),a.appendChild(qb(i,"text",t.message)))}}(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;return null===r||r===e?null: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 qb(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Ub?`${e})`:n,"data-message":n})}const Yb=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=ar(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&Bb(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:jr()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(Ry,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Ry,null,s("screen-reader.answer-end"))),a)})),Vb=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(kc),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Km),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Jm(n.getAttribute("display-number")),d=tv(o,a),f=null==d?void 0:d.autograding;return t().createElement(Yb,{answers:r,displayNumber:u,value:c,score:d},t().createElement(iv,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function Wb({maxScore:e}){const{t:n}=ar();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function Qb({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 Jb({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=ar();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(Xb,{className:jr()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(Xb,{className:"e-result-scorecount-shortcode"},n),t().createElement(Xb,{className:"e-mrg-r-0"},a(r)))}function Xb({className:e,children:n}){return t().createElement("span",{className:jr()("e-mrg-r-1 e-nowrap",e)},n)}function Kb({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function $b(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const eI=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)(kc),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(rv,{...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?$b(e.censoring):[],e.pregrading&&Kb(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(Jb,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(Qb,{shortCode:h})):t().createElement(Wb,{maxScore:r}))})),tI=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=ar(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&Bb(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:jr()("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(Ry,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(Ry,null,o("screen-reader.answer-end")))},nI=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(kc),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Km),{t:s}=ar(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Jm(n.getAttribute("display-number")):void 0,p=tv(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(Gy,{maxLength:m}),t().createElement(eI,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(tI,{type:g,value:d,score:p}),t().createElement(Py,{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(Yb,{answers:i,score:p,displayNumber:f,value:d},t().createElement(eI,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),rI=({onEndSession:e,sessionEnded:n})=>{const{t:r}=ar();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"))))},iI=({duration:e,labelId:n})=>t().createElement("div",{className:"audio e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-pad-1 restricted-audio-player restricted-audio-player--disabled e-columns e-columns--center-v"},t().createElement("button",{className:"restricted-audio-player__play e-column e-column--narrow",disabled:!0,onClick:()=>{}},t().createElement(al,{icon:ji,fixedWidth:!0})),t().createElement("span",{className:"e-column e-text-right e-column"},ec(e))),t().createElement("span",{className:"e-pad-l-2",id:n},t().createElement("em",null,"Ei kuunneltavissa"))),oI=Ue({attachment:Nr,"attachment-link":Hr("plain"),"attachment-links":qr("plain"),"audio-group":Nr,audio:{component:({element:e,renderChildNodes:n,renderComponentOverrides:r})=>{const i=!!Ce(e,"times"),o=Ce(e,"duration"),a=Ar(e);return i?t().createElement(iI,{duration:o,labelId:a}):t().createElement(nc,{element:e,renderChildNodes:n,renderComponentOverrides:r})},wrapper:fb((e=>null!=Me(e,"dnd-answer-container")))},"choice-answer":kb,"dnd-answer-container":e=>t().createElement(Ab,{...e,page:"results"}),"dropdown-answer":jb,formula:ac,question:Rb,hints:Nr,image:{component:cc,wrapper:fb((e=>null!=Me(e,["choice-answer","dnd-answer-container"])))},"question-instruction":Ey,"question-number":Dc,translation:Lc,"question-title":Pb,section:zb,"section-title":Ly,"text-answer":nI,"scored-text-answer":Vb,"scored-text-answers":Nr}),aI=()=>{const{t:e}=ar();return e("examineExam.returnToExam")},sI=()=>{const{t:e}=ar();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 lI(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Km),{t:i}=ar();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 cI=t().memo($m(zr((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a,renderComponentOverrides:s})=>{const{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,resolveAttachment:p,root:h,subjectLanguage:g}=(0,e.useContext)(Pr),{answersByQuestionId:m}=(0,e.useContext)(Km),v=(0,e.useMemo)((()=>oI(s)),[s]),b=Te(h,"exam-title"),I=h.getAttribute("exam-stylesheet"),x=Er((()=>or(f,d,u)));(0,e.useEffect)(sr(x,f)),(0,e.useEffect)(Tr,[]);const w=nv(),A=void 0!==i,M=!w&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(y,{i18n:x},t().createElement("main",{className:jr()("e-exam e-results",{"examine-exam-page":w,"session-ended":o}),lang:g},t().createElement(t().StrictMode,null),I&&t().createElement("link",{rel:"stylesheet",href:p(I)}),!M&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(aI,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},b&&t().createElement(Cr,{id:"title",className:"e-column e-mrg-b-0"},v(b),l&&`, ${c.format(l)}`),!w&&t().createElement(lI,null)),!M&&t().createElement(sI,null),t().createElement(Iy,{validationErrors:tp(Gc(n),m),inExam:!1}),v(h),(A||a)&&t().createElement(rI,{onEndSession:w?()=>{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(dh,null))})))),uI=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 dI=Math.max;const fI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Mc(n);return i<0&&(i=dI(r+i,0)),uI(e,Bu(t),i)};var pI=Math.max,hI=Math.min;const gI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Mc(n),i=n<0?pI(r+i,0):hI(i,r-1)),uI(e,Bu(t),i,!0)},mI=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Up(e,t,n)},vI=function(e){return e!=e},yI=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):uI(e,vI,n)};var bI=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var II="\\ud800-\\udfff",xI="["+II+"]",wI="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",AI="\\ud83c[\\udffb-\\udfff]",MI="[^"+II+"]",TI="(?:\\ud83c[\\udde6-\\uddff]){2}",EI="[\\ud800-\\udbff][\\udc00-\\udfff]",CI="(?:"+wI+"|"+AI+")?",NI="[\\ufe0e\\ufe0f]?",SI=NI+CI+"(?:\\u200d(?:"+[MI,TI,EI].join("|")+")"+NI+CI+")*",kI="(?:"+[MI+wI+"?",wI,TI,EI,xI].join("|")+")",jI=RegExp(AI+"(?="+AI+")|"+kI+SI,"g");const DI=function(e){return function(e){return bI.test(e)}(e)?function(e){return e.match(jI)||[]}(e):function(e){return e.split("")}(e)};var LI=/^\s+/;const OI=function(e,t,n){if((e=An(e))&&(n||void 0===t))return e.replace(LI,"");if(!e||!(t=wn(t)))return e;var r=DI(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&yI(t,e[n],0)>-1;);return n}(r,DI(t));return mI(r,i).join("")},RI=function(e,t,n){if((e=An(e))&&(n||void 0===t))return e.slice(0,mc(e)+1);if(!e||!(t=wn(t)))return e;var r=DI(e),i=function(e,t){for(var n=e.length;n--&&yI(t,e[n],0)>-1;);return n}(r,DI(t))+1;return mI(r,0,i).join("")};function PI(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Ae(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(zI),Ae(n.documentElement,"reference").forEach((e=>{Ae(e,(()=>!0),!1).forEach(UI)})),n}function zI(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Te(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function UI(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=fI(n,t),i=gI(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=OI(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=RI(n[i].textContent))}function BI({characterCount:e,maxLength:n}){const{t:r}=ar(),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})):"")}const _I=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?Up(e,r?0:o,r?o+1:i):Up(e,r?o+1:0,r?i:o)}(e,Bu(t)):[]},FI=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},GI=function(e,t){return e<t},ZI=function(e,t){return e&&e.length?iy(e,Bu(t),GI):void 0},HI=function(e,t){return e&&e.length?iy(e,Bu(t),oy):void 0},qI=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Lt(e),a=void 0!==t,s=null===t,l=t==t,c=Lt(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},YI=function(e,t,n){t=t.length?bn(t,(function(e){return _(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=bn(t,Q(Bu)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(_u(e,(function(e,n,i){return{criteria:bn(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=qI(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))},VI=function(e,t,n){if(!ce(n))return!1;var r=typeof t;return!!("number"==r?de(n)&&Y(t,n.length):"string"==r&&t in n)&&tn(n[t],e)},WI=function(e){return Hn(Fn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&VI(e,t[0],t[1])?t=[]:n>2&&VI(t[0],t[1],t[2])&&(t=[t[0]]),YI(e,Un(t,1),[])}));var QI=Hu((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));const JI=QI,XI=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=wc(n))==n?n:0),void 0!==t&&(t=(t=wc(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}(wc(e),t,n)};function KI(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=_I(n,(e=>e!==o));return a+Xm(s.map(ex))}}function $I(e,t,n){return function(e,t,n){const r=ix(e,{startIndex:t,length:n,message:""});return FI(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function ex(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 tx(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 nx(){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 rx(e,t,n){const r=ix(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=ZI(r.overlapping,(e=>e.startIndex)),n=HI(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 WI(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=KI(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 ix(e,t){const n=JI(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 ox(e){return XI(e,0,1)}function ax(e){e.preventDefault(),e.stopPropagation()}function sx(e,t){e.style.display=t?"initial":"none"}function lx(){return matchMedia("(pointer:fine)").matches}const cx=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(Db,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let ux;function dx(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];ux=t.length,t.forEach((e=>{e.complete?setTimeout((()=>fx(e)),0):e.addEventListener("load",(()=>fx(e)))}))}function fx(e){ux--;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 px(n){const r=Er((()=>or(n.language)));return(0,e.useEffect)(sr(r,n.language)),t().createElement(y,{i18n:r},t().createElement(hx,{...n}))}function hx({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,v;const y={start:void 0,element:void 0,img:void 0};let b,I,x,w,A,M=!1;const[T,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0),[S,k]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=Array.from(document.querySelectorAll(".e-grading-answer img[src]")).filter((e=>!e.src.endsWith("/math.svg?latex=")));function t(){E((e=>e+1))}function n(e){console.error("Image failed to load:",e.src),k((e=>e+1)),e.alt="Image failed to load",e.style.border="1px solid red"}return N((null==e?void 0:e.length)||0),E(0),k(0),null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.complete?e.naturalWidth&&e.naturalHeight?t():n(e):(e.addEventListener("load",t),e.addEventListener("error",(()=>n(e)))))})),()=>{null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.removeEventListener("load",t),e.removeEventListener("error",(()=>n(e))))}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(v=l,sx(g.current,!1),sx(p.current,!1),H(v),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>dx(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",_),window.removeEventListener("mousemove",Z)})));const{t:j}=ar(),D=C>0&&T!==C,L=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)y.element||P(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}"]`);P(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&O()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",T,"/",C,")"),L&&t().createElement("span",{className:"failed"},j("grading.some-images-failed"))),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",_);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",ax),y.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=ox((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:ox((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),y.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||nx()&&!a||y.element||P(t)}(e.target)}),t().createElement(BI,{characterCount:r,maxLength:u}),t().createElement(cx,{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?v[b.role][b.index].message=t:v[s]=rx(f.current,{...m,message:t},v[s]||[]),sx(p.current,!1),c(v)}(e)},t().createElement("input",{onFocus:()=>function(){if(!lx()&&f.current){const e={...v};e[s]=rx(f.current,m,v[s]),H(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"},j("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),B()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(x)},onMouseOut:O},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(sx(g.current,!1),U(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),O(),v[b.role].splice(b.index,1),b=void 0,c(v)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function O(){x=setTimeout((()=>{sx(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(x),O()),f.current.removeEventListener("mouseout",R)}function P(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(),tx(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",R)}function z(e,t){b=void 0,U(e,t)}function U(e,t){window.removeEventListener("keydown",q),tx(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",q)}function B(){m=void 0,y.element=void 0,y.img=void 0,M=!1,window.removeEventListener("keydown",q),sx(p.current,!1),H(v)}function _(){var e,t;if(null===(e=y.img)||void 0===e||e.removeEventListener("dragstart",ax),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",_),y.element)return void z(null===(t=y.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&nx()){const e=n.getRangeAt(0),t=KI(f.current,e);if(!t)return;const r=$I(v[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...v};i[s]=rx(f.current,m,v[s]),H(i)}}function F(){lx()||(clearTimeout(A),A=setTimeout(G,500))}function G(){const e=window.getSelection();if(e&&null!==f.current&&nx()){const t=e.getRangeAt(0),n=KI(f.current,t);if(!n)return;const r=$I(v[s],n.startIndex,n.length);M=!0,h.current.value=r,tx(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function Z(e){ax(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=ox((e.clientX-t.left)/t.width),l=ox((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,y.start),y.element?_b(y.element,m):y.element=Zb(y.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(Fb),dx(t)):t.textContent=i,Bb(t,e.pregrading,e.censoring,!1)}function q(e){"Escape"===e.key&&M&&(e.stopPropagation(),B())}}})(),o})()));
366
+ `},9560:(e,t,n)=>{"use strict";var r=n(4345),i=n(3025),o=n(546),a=n(1617),s=n(4816),l=n(3916),c=n(6552),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new o,response:new o}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var i=t.paramsSerializer;null!=i&&(r.isFunction(i)?t.paramsSerializer={serialize:i}:c.assertOptions(i,{encode:u.function,serialize:u.function},!0));var o=[],l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var d,f=[];if(this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)})),!l){var p=[a,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(f),d=Promise.resolve(t);p.length;)d=d.then(p.shift(),p.shift());return d}for(var h=t;o.length;){var g=o.shift(),m=o.shift();try{h=g(h)}catch(e){m(e);break}}try{d=a(h)}catch(e){return Promise.reject(e)}for(;f.length;)d=d.then(f.shift(),f.shift());return d},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url,e.allowAbsoluteUrls);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d},9845:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],void 0!==i))return i;let o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[r];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[r])return a.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((s=r)[0].toUpperCase()+s.slice(1));this[t]?i=this[t](a,e):a.walk((e=>{if(i=e.raws[n],void 0!==i)return!1}))}var s;return void 0===i&&(i=t[r]),a.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},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)},9978:e=>{e.exports={version:"0.30.0"}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o={};return(()=>{"use strict";i.r(o),i.d(o,{Attachments:()=>Fc,Exam:()=>db,GradingAnswer:()=>px,GradingInstructions:()=>Nb,Results:()=>cI,parseExam:()=>PI});var e=i(5442),t=i.n(e);i(9002),Object.create(null);const n={},r=(e,t,r,i)=>{c(r)&&n[r]||(c(r)&&(n[r]=new Date),((e,t,n,r)=>{const i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);c(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)})(e,t,r,i))},a=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},s=(e,t,n)=>{e.loadNamespaces(t,a(e,n))},l=(e,t,n,r)=>{if(c(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return s(e,n,r);n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,a(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={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},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]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),v=(t,n={})=>{const{i18n:i}=n,{i18n:o,defaultNS:a}=(0,e.useContext)(h)||{},u=i||o||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r(u,"NO_I18NEXT_INSTANCE","useTranslation: 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(u,"DEPRECATED_OPTION","useTranslation: 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:v}=d;let y=t||a||u.options?.defaultNS;y=c(y)?[y]:y||["translation"],u.reportNamespaces.addUsedNamespaces?.(y);const b=(u.isInitialized||u.initializedStoreOnce)&&y.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(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages: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?y:y[0],v),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),[A,M]=(0,e.useState)(x);let T=y.join();n.lng&&(T=`${n.lng}${T}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(T),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,y,(()=>{C.current&&M(w)})):s(u,y,(()=>{C.current&&M(w)}))),b&&E&&E!==T&&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,T]),(0,e.useEffect)((()=>{C.current&&b&&M(x)}),[u,v,b]);const N=[A,u,b];if(N.t=A,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,y,(()=>e())):s(u,y,(()=>e()))}))};function y({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},A="object"==typeof global&&global&&global.Object===Object&&global;var M="object"==typeof self&&self&&self.Object===Object&&self;const T=A||M||Function("return this")(),E=T.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 L=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)},O=function(e){return null!=e&&"object"==typeof e},R=function(e){return O(e)&&"[object Arguments]"==L(e)};var P=Object.prototype,z=P.hasOwnProperty,U=P.propertyIsEnumerable;const B=R(function(){return arguments}())?R:function(e){return O(e)&&z.call(e,"callee")&&!U.call(e,"callee")},_=Array.isArray;var F="object"==typeof exports&&exports&&!exports.nodeType&&exports,G=F&&"object"==typeof module&&module&&!module.nodeType&&module,Z=G&&G.exports===F?T.Buffer:void 0;const H=(Z?Z.isBuffer:void 0)||function(){return!1};var q=/^(?:0|[1-9]\d*)$/;const Y=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},V=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,K=X&&X.exports===J&&A.process;const $=function(){try{return X&&X.require&&X.require("util").types||K&&K.binding&&K.binding("util")}catch(e){}}();var ee=$&&$.isTypedArray;const te=ee?Q(ee):function(e){return O(e)&&V(e.length)&&!!W[L(e)]};var ne=Object.prototype.hasOwnProperty;const re=function(e,t){var n=_(e),r=!n&&B(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)||Y(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=L(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},de=function(e){return null!=e&&V(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},ve=function(e,t){return(_(e)?b:he)(e,me(t))},ye=(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===ze&&e(t):Array.isArray(e)?t=>t.namespaceURI===ze&&e.includes(t.localName):t=>t.namespaceURI===ze&&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 Ae(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 Te(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 Ae(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer","dnd-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){ve(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 Le(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ye),[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 Oe(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=(e,t)=>{const n=Ae(e,"dnd-answer"),r=Ae(e,"dnd-answer-option"),i=n.reduce(((e,n)=>{var r;const i=n.getAttribute("question-id"),o=null===(r=t[Number(i)])||void 0===r?void 0:r.value;return{...e,[i]:o?[Number(o)]:[],root:e.root.filter((e=>e!==Number(o)))}}),{root:r.map((e=>Number(e.getAttribute("option-id"))))});return i},Pe=e=>Ae(e,"dnd-answer-option").reduce(((e,t)=>{const n=t.getAttribute("option-id");return{...e,[n]:t}}),{}),ze="http://ylioppilastutkinto.fi/exam.xsd";function Ue(e){return(n={})=>{function r(i,o=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}(i,((i,a)=>function(i,o,a){switch(i.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===a?function(e){const i=n.text;return i?t().createElement(i,{key:Oe(e),element:e,renderChildNodes:r,renderComponentOverrides:n}):e.textContent}(i):null;case Node.ELEMENT_NODE:return function(i,o,a){switch(i.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,n,i){const o=e.hasChildNodes()?r(e,i):null;if(0===i){const r=e.localName,i=function(e,t){const n={key:Be(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,n);return t().createElement(r,{...i},o)}return o}(i,o,a);case ze:return function(i,o,a){var s;if(!(i.localName in e))return null;const l=e[i.localName],c="wrapper"in l?l.wrapper:void 0,u=null!==(s=n[i.localName])&&void 0!==s?s:"component"in l?l.component:l,d=i.getAttribute("class")||void 0,f=t().createElement(u,{element:i,className:d,renderChildNodes:r,renderComponentOverrides:n,key:c?void 0:Be(i,o),options:a});return c?t().createElement(c,{key:Be(i,o),element:i},f):f}(i,o,a);default:throw new Error(`Unrecognized element: ${i.localName}`)}}(i,o,a);default:return null}}(i,a,o)))}return r}}function Be(e,t){return`${e.localName}-${t}`}const _e=e=>"string"==typeof e,Fe=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},Ge=e=>null==e?"":""+e,Ze=/###/g,He=e=>e&&e.indexOf("###")>-1?e.replace(Ze,"."):e,qe=e=>!e||_e(e),Ye=(e,t,n)=>{const r=_e(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(qe(e))return{};const t=He(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return qe(e)?{}:{obj:e,k:He(r[i])}},Ve=(e,t,n)=>{const{obj:r,k:i}=Ye(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=Ye(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Ye(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},We=(e,t)=>{const{obj:n,k:r}=Ye(e,t);if(n)return n[r]},Qe=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?_e(e[r])||e[r]instanceof String||_e(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Qe(e[r],t[r],n):e[r]=t[r]);return e},Je=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ke=e=>_e(e)?e.replace(/[&<>"'\/]/g,(e=>Xe[e])):e,$e=[" ",",","?","!",";"],et=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),tt=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},nt=e=>e&&e.replace("_","-"),rt={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 it{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||rt,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:(_e(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new it(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new it(this.logger,e)}}var ot=new it;class at{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])}))}}class st extends at{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):_e(n)&&i?a.push(...n.split(i)):a.push(n)));const s=We(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&_e(n)?tt(this.data&&this.data[e]&&this.data[e][t],n,i):s}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),Ve(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)(_e(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=We(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Qe(s,n,i):s={...s,...n},Ve(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 lt={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 ct={};class ut extends at{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=ot.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=$e.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=et.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:_e(i)?[i]: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{key:e,namespaces:_e(i)?[i]: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,v=!_e(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||_e(g)&&Array.isArray(d))if(m&&_e(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&&!_e(t.count),f=ut.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 v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?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:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,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))}else{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}}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=_e(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&&!_e(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=_e(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=lt.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 _e(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&&!_e(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(_e(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,!ct[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ct[`${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&&!_e(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 dt=e=>e.charAt(0).toUpperCase()+e.slice(1);class ft{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.create("languageUtils")}getScriptPartFromCode(e){if(!(e=nt(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=nt(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(_e(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}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]=dt(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]=dt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=dt(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)),_e(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 _e(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))):_e(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let pt=[{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}],ht={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 gt=["v1","v2","v3"],mt=["v4"],vt={zero:0,one:1,two:2,few:3,many:4,other:5};class yt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=ot.create("pluralResolver"),this.options.compatibilityJSON&&!mt.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 pt.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:ht[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()){const n=nt("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];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}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)=>vt[e]-vt[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!gt.includes(this.options.compatibilityJSON)}}const bt=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=We(e,n);return void 0!==r?r:We(t,n)})(e,t,n);return!o&&i&&_e(n)&&(o=tt(e,n,r),void 0===o&&(o=tt(t,n,r))),o},It=e=>e.replace(/\$/g,"$$$$");class xt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ot.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:v}=e.interpolation;this.escape=void 0!==t?t:Ke,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Je(i):o||"{{",this.suffix=a?Je(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Je(d):f||Je("$t("),this.nestingSuffix=p?Je(p):h||Je(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,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=bt(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(bt(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=>It(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?It(this.escape(e)):It(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=_e(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 _e(o)||this.useRawValueToEscape||(o=Ge(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&&!_e(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&&!_e(r))return r;_e(r)||(r=Ge(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 wt=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(nt(r),i),t[a]=s),s(n)}};class At{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=ot.create("formatter"),this.options=e,this.formats={number:wt(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:wt(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:wt(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:wt(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:wt(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=wt(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 Mt extends at{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=ot.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)=>{const{obj:r,k:i}=Ye(e,t,Object);r[i]=r[i]||[],r[i].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();_e(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_e(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 Tt=()=>({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]),_e(e[1])&&(t.defaultValue=e[1]),_e(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}}),Et=e=>(_e(e.ns)&&(e.ns=[e.ns]),_e(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),_e(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ct=()=>{};class Nt extends at{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=Et(e),this.services={},this.logger=ot,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&&(_e(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Tt();this.options={...r,...this.options,...Et(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?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=At);const n=new ft(this.options);this.store=new st(this.options.resources,this.options);const o=this.services;o.logger=ot,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new yt(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 xt(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Mt(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 ut(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=Ct),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=Fe(),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]:Ct;const n=_e(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=Fe();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=Ct),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&&lt.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=Fe();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=_e(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 _e(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=Fe();return this.options.ns?(_e(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=Fe();_e(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 ft(Tt());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 Nt(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]:Ct;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Nt(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 st(this.store.data,r),i.services.resourceStore=i.store),i.translator=new ut(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 St=Nt.createInstance();St.createInstance=Nt.createInstance,St.createInstance,St.dir,St.init,St.loadResources,St.reloadResources,St.use,St.changeLanguage,St.getFixedT,St.t,St.exists,St.setDefaultNamespace,St.hasLoadedNamespace,St.loadNamespaces,St.loadLanguages;const kt=function(e){return e&&e.length?e[0]:void 0},jt=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Dt=function(){},Lt=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==L(e)};var Ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/;const Pt=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Lt(e))||Rt.test(e)||!Ot.test(e)||null!=t&&e in Object(t)},zt=T["__core-js_shared__"];var Ut,Bt=(Ut=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ut:"";var _t=Function.prototype.toString;const Ft=function(e){if(null!=e){try{return _t.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Gt=/^\[object .+?Constructor\]$/,Zt=Function.prototype,Ht=Object.prototype,qt=Zt.toString,Yt=Ht.hasOwnProperty,Vt=RegExp("^"+qt.call(Yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Wt=function(e){return!(!ce(e)||(t=e,Bt&&Bt in t))&&(ue(e)?Vt:Gt).test(Ft(e));var t},Qt=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Wt(n)?n:void 0},Jt=Qt(Object,"create");var Xt=Object.prototype.hasOwnProperty;var Kt=Object.prototype.hasOwnProperty;function $t(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])}}$t.prototype.clear=function(){this.__data__=Jt?Jt(null):{},this.size=0},$t.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$t.prototype.get=function(e){var t=this.__data__;if(Jt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Xt.call(t,e)?t[e]:void 0},$t.prototype.has=function(e){var t=this.__data__;return Jt?void 0!==t[e]:Kt.call(t,e)},$t.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jt&&void 0===t?"__lodash_hash_undefined__":t,this};const en=$t,tn=function(e,t){return e===t||e!=e&&t!=t},nn=function(e,t){for(var n=e.length;n--;)if(tn(e[n][0],t))return n;return-1};var rn=Array.prototype.splice;function on(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])}}on.prototype.clear=function(){this.__data__=[],this.size=0},on.prototype.delete=function(e){var t=this.__data__,n=nn(t,e);return!(n<0||(n==t.length-1?t.pop():rn.call(t,n,1),--this.size,0))},on.prototype.get=function(e){var t=this.__data__,n=nn(t,e);return n<0?void 0:t[n][1]},on.prototype.has=function(e){return nn(this.__data__,e)>-1},on.prototype.set=function(e,t){var n=this.__data__,r=nn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const an=on,sn=Qt(T,"Map"),ln=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 cn(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])}}cn.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(sn||an),string:new en}},cn.prototype.delete=function(e){var t=ln(this,e).delete(e);return this.size-=t?1:0,t},cn.prototype.get=function(e){return ln(this,e).get(e)},cn.prototype.has=function(e){return ln(this,e).has(e)},cn.prototype.set=function(e,t){var n=ln(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const un=cn;function dn(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(dn.Cache||un),n}dn.Cache=un;var fn,pn,hn,gn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mn=/\\(\\)?/g,vn=(fn=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gn,(function(e,n,r,i){t.push(r?i.replace(mn,"$1"):n||e)})),t},pn=dn(fn,(function(e){return 500===hn.size&&hn.clear(),e})),hn=pn.cache,pn);const yn=vn,bn=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 In=E?E.prototype:void 0,xn=In?In.toString:void 0;const wn=function e(t){if("string"==typeof t)return t;if(_(t))return bn(t,e)+"";if(Lt(t))return xn?xn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},An=function(e){return null==e?"":wn(e)},Mn=function(e,t){return _(e)?e:Pt(e,t)?[e]:yn(An(e))},Tn=function(e){if("string"==typeof e||Lt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},En=function(e,t){for(var n=0,r=(t=Mn(t,e)).length;null!=e&&n<r;)e=e[Tn(t[n++])];return n&&n==r?e:void 0},Cn=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=function(e,t,n){"__proto__"==t&&Cn?Cn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Sn=Object.prototype.hasOwnProperty;const kn=function(e,t,n){var r=e[t];Sn.call(e,t)&&tn(r,n)&&(void 0!==n||t in e)||Nn(e,t,n)},jn=function(e,t,n,r){if(!ce(e))return e;for(var i=-1,o=(t=Mn(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:Y(t[i+1])?[]:{})}kn(s,l,c),s=s[l]}return e},Dn=function(e,t){return null!=e&&t in Object(e)},Ln=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=Mn(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)&&V(i)&&Y(a,i)&&(_(e)||B(e))}(e,t,Dn)},On=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=En(e,a);n(s,a)&&jn(o,Mn(a,e),s)}return o}(e,t,(function(t,n){return Ln(e,n)}))},Rn=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var Pn=E?E.isConcatSpreadable:void 0;const zn=function(e){return _(e)||B(e)||!!(Pn&&e&&e[Pn])},Un=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=zn),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Rn(o,l):i||(o[o.length]=l)}return o},Bn=function(e){return null!=e&&e.length?Un(e,1):[]};var _n=Math.max;const Fn=function(e,t,n){return t=_n(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=_n(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)}},Gn=Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Zn=Date.now;const Hn=function(e){var t=0,n=0;return function(){var r=Zn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Gn),qn=function(e){return Hn(Fn(e,void 0,Bn),e+"")},Yn=qn((function(e,t){return null==e?{}:On(e,t)})),Vn={"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...","some-images-failed":"Laddning av vissa bilder misslyckades. Var god uppdatera sidan."},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."},"dnd-answers":{"all-answer-options":"Svarsalternativ:","correct-answers":"Rätta svar","question-missing":"Här fattas en item...","answer-missing":"Här fattas svaret...","drop-here":"Släpp här","no-answer":"(Inget svar)"},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","no-attachments":"Detta prov innehåller inget material.","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]"}},Wn=Yn(Vn,["exam-total","material","external-material-title","section","references","toc-heading"]),Qn={"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...","some-images-failed":"Joidenkin kuvien lataaminen epäonnistui. Päivitä sivu."},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."},"dnd-answers":{"all-answer-options":"Vastausvaihtoehdot:","correct-answers":"Oikeat vastaukset","question-missing":"Tästä puuttuu osio...","answer-missing":"Tästä puuttuu vastaus...","drop-here":"Pudota tänne","no-answer":"(Ei vastausta)"},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","no-attachments":"Tämä koe ei sisällä aineistoja.","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]"}},Jn=Yn(Qn,["exam-total","material","external-material-title","section","references","toc-heading"]),Xn={"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"},Kn={"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"},$n={section:""},er={"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"},tr={"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"},nr={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},rr={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:Wn,BB:Wn,CA:Jn,CB:Jn,EA:Xn,EC:Xn,FA:Kn,FC:Kn,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:$n,N:$n,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:tr,SC:tr,PA:er,PC:er,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:nr,VC:nr,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"}},ir={"fi-FI":{translation:Qn,...rr},"sv-FI":{translation:Vn,...rr}};function or(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return St.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:ir,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 kt(n);case"last":return jt(n);default:return e}}}},Dt)}function ar(){const{i18n:e,t:n}=v(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in rr,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 sr=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(Dt).catch(Dt)},lr=new WeakMap;let cr=0;const ur=e=>t=>`${e}-${(e=>{const t=lr.get(e);if(null!=t)return t;const n=++cr;return lr.set(e,n),n})(t)}`,dr=e=>t=>`${e}-${t}`,fr="title",pr="references-title",hr=dr("section-title"),gr=dr("question-title"),mr=ur("question-instruction"),vr=ur("answer-length-info"),yr=ur("external-material-list-title"),br=dr("toc-section-title"),Ir=ur("answer-score"),xr=ur("image-caption"),wr=ur("video-caption"),Ar=ur("audio-label"),Mr="toc-title";function Tr(){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",Tr),()=>window.removeEventListener("hashchange",Tr)}function Er(t){return(0,e.useState)(t)[0]}const Cr=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})})),Nr=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},Sr=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))}));var kr=i(3373),jr=i.n(kr);const Dr=e=>{const n=jr()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)},Lr=t().createContext(!1),Or=t().memo((function({children:e,annotationsEnabled:n}){return t().createElement(Lr.Provider,{value:null!=n&&n},e)})),Rr=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};var o;return i.displayName=`WithContext(${o=r,o.displayName||o.name||"Component"})`,i},Pr=t().createContext({});function zr(e){return Rr(Pr,(({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:Ae(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const Ur=t().createContext({}),Br=Rr(Ur,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),_r=t().createContext({}),Fr=Rr(_r,(({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 Gr(e,t){const n=new URL(e,"http://example.com");ve(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const Zr=({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),Hr=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(Pr),{attachmentsURL:a}=(0,e.useContext)(Pr),{t:s}=ar(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=Gr(a,{hash:l});return c?t().createElement(Zr,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(Zr,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),qr=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(Pr),{t:a}=ar(),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=Gr(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(Zr,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(Zr,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),Yr=t().createContext({}),Vr=Rr(Yr,(({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}})),Wr=t().memo(Vr((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(Yr);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),Qr=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(Yr);return t().createElement("h3",null,i,be,r(n))}));var Jr=i(5919);var Xr={notify(){},get:()=>[]};var Kr=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),$r=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),ei=(()=>Kr||$r?e.useLayoutEffect:e.useEffect)();function ti(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function ni(e,t){if(ti(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])||!ti(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var ri=Symbol.for("react-redux-context"),ii="undefined"!=typeof globalThis?globalThis:{};function oi(){if(!e.createContext)return{};const t=ii[ri]??=new Map;let n=t.get(e.createContext);return n||(n=e.createContext(null),t.set(e.createContext,n)),n}var ai=oi(),si=function(t){const{children:n,context:r,serverState:i,store:o}=t,a=e.useMemo((()=>{const e=function(e,t){let n,r=Xr,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=Xr)}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}(o);return{store:o,subscription:e,getServerState:i?()=>i:void 0}}),[o,i]),s=e.useMemo((()=>o.getState()),[o]);ei((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=r||ai;return e.createElement(l.Provider,{value:a},n)};function li(t=ai){return function(){return e.useContext(t)}}var ci=li();function ui(e=ai){const t=e===ai?ci:li(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var di=ui();function fi(e=ai){const t=e===ai?di:ui(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var pi=fi(),hi=(e,t)=>e===t;function gi(t=ai){const n=t===ai?ci:li(t),r=(t,r={})=>{const{equalityFn:i=hi}="function"==typeof r?{equalityFn:r}:r,o=n(),{store:a,subscription:s,getServerState:l}=o,c=(e.useRef(!0),e.useCallback({[t.name]:e=>t(e)}[t.name],[t])),u=(0,Jr.useSyncExternalStoreWithSelector)(s.addNestedSub,a.getState,l||a.getState,c,i);return e.useDebugValue(u),u};return Object.assign(r,{withTypes:()=>r}),r}var mi=gi();const vi=function(e,t,n){var r=null==e?void 0:En(e,t);return void 0===r?n:r},yi=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},bi=(e,t)=>n=>n.audio.errors[null!=t?t:e],Ii=e=>t=>vi(t.audio.playbackTimes,e,0),xi=(e,t)=>n=>t-Ii(e)(n),wi=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"},Ai={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"]},Mi={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"]},Ti={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"]},Ei={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"]},Ci={prefix:"fas",iconName:"up-down-left-right",icon:[512,512,["arrows-alt"],"f0b2","M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 96-96 0 0-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 96 0 0 96-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-96 96 0 0 32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 32-96 0 0-96 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z"]},Ni={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"]},Si={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"]},ki={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"]},ji={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"]},Di={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"]},Li={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"]},Oi={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 Ri(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(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 zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){Ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ui=()=>{};let Bi={},_i={},Fi=null,Gi={mark:Ui,measure:Ui};try{"undefined"!=typeof window&&(Bi=window),"undefined"!=typeof document&&(_i=document),"undefined"!=typeof MutationObserver&&(Fi=MutationObserver),"undefined"!=typeof performance&&(Gi=performance)}catch(hv){}const{userAgent:Zi=""}=Bi.navigator||{},Hi=Bi,qi=_i,Yi=Fi,Vi=Gi,Wi=(Hi.document,!!qi.documentElement&&!!qi.head&&"function"==typeof qi.addEventListener&&"function"==typeof qi.createElement),Qi=~Zi.indexOf("MSIE")||~Zi.indexOf("Trident/");var Ji={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},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",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Xi=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Ki="classic",$i="duotone",eo=[Ki,$i,"sharp","sharp-duotone"],to=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),no=["fak","fa-kit","fakd","fa-kit-duotone"],ro=["fak","fakd"],io={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oo=["fak","fa-kit","fakd","fa-kit-duotone"],ao={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},so=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],lo=[1,2,3,4,5,6,7,8,9,10],co=lo.concat([11,12,13,14,15,16,17,18,19,20]),uo=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"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",io.GROUP,io.SWAP_OPACITY,io.PRIMARY,io.SECONDARY].concat(lo.map((e=>"".concat(e,"x")))).concat(co.map((e=>"w-".concat(e))));const fo="___FONT_AWESOME___",po=16,ho="svg-inline--fa",go="data-fa-i2svg",mo="data-fa-pseudo-element",vo="data-prefix",yo="data-icon",bo="fontawesome-i2svg",Io=["HTML","HEAD","STYLE","SCRIPT"],xo=(()=>{try{return!0}catch(e){return!1}})();function wo(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Ki]})}const Ao=zi({},Ji);Ao[Ki]=zi(zi(zi(zi({},{"fa-duotone":"duotone"}),Ji[Ki]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const Mo=wo(Ao),To=zi({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});To[Ki]=zi(zi(zi(zi({},{duotone:"fad"}),To[Ki]),{kit:"fak"}),{"kit-duotone":"fakd"});const Eo=wo(To),Co=zi({},ao);Co[Ki]=zi(zi({},Co[Ki]),{fak:"fa-kit"});const No=wo(Co),So=zi({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});So[Ki]=zi(zi({},So[Ki]),{"fa-kit":"fak"}),wo(So);const ko=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,jo="fa-layers-text",Do=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Lo=(wo(zi({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Oo="duotone-group",Ro="primary",Po="secondary",zo=["kit",...uo],Uo=Hi.FontAwesomeConfig||{};qi&&"function"==typeof qi.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=qi.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Uo[n]=r)}));const Bo={styleDefault:"solid",familyDefault:Ki,cssPrefix:"fa",replacementClass:ho,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Uo.familyPrefix&&(Uo.cssPrefix=Uo.familyPrefix);const _o=zi(zi({},Bo),Uo);_o.autoReplaceSvg||(_o.observeMutations=!1);const Fo={};Object.keys(Bo).forEach((e=>{Object.defineProperty(Fo,e,{enumerable:!0,set:function(t){_o[e]=t,Go.forEach((e=>e(Fo)))},get:function(){return _o[e]}})})),Object.defineProperty(Fo,"familyPrefix",{enumerable:!0,set:function(e){_o.cssPrefix=e,Go.forEach((e=>e(Fo)))},get:function(){return _o.cssPrefix}}),Hi.FontAwesomeConfig=Fo;const Go=[],Zo=po,Ho={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function qo(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Yo(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Vo(e){return e.classList?Yo(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Wo(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qo(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Jo(e){return e.size!==Ho.size||e.x!==Ho.x||e.y!==Ho.y||e.rotate!==Ho.rotate||e.flipX||e.flipY}function Xo(){const e="fa",t=ho,n=Fo.cssPrefix,r=Fo.replacementClass;let i=':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-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 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 --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 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}';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 Ko=!1;function $o(){Fo.autoAddCss&&!Ko&&(function(e){if(!e||!Wi)return;const t=qi.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=qi.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)}qi.head.insertBefore(t,r)}(Xo()),Ko=!0)}var ea={mixout:()=>({dom:{css:Xo,insertCss:$o}}),hooks:()=>({beforeDOMElementCreation(){$o()},beforeI2svg(){$o()}})};const ta=Hi||{};ta[fo]||(ta[fo]={}),ta[fo].styles||(ta[fo].styles={}),ta[fo].hooks||(ta[fo].hooks={}),ta[fo].shims||(ta[fo].shims=[]);var na=ta[fo];const ra=[],ia=function(){qi.removeEventListener("DOMContentLoaded",ia),oa=1,ra.map((e=>e()))};let oa=!1;function aa(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Wo(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Wo(e[n]),'" ')),"").trim()}(n),">").concat(r.map(aa).join(""),"</").concat(t,">")}function sa(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Wi&&(oa=(qi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(qi.readyState),oa||qi.addEventListener("DOMContentLoaded",ia));var la=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 ca(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 ua(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 da(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=ua(t);"function"!=typeof na.hooks.addPack||r?na.styles[e]=zi(zi({},na.styles[e]||{}),i):na.hooks.addPack(e,ua(t)),"fas"===e&&da("fa",t)}const{styles:fa,shims:pa}=na,ha=Object.keys(No),ga=ha.reduce(((e,t)=>(e[t]=Object.keys(No[t]),e)),{});let ma=null,va={},ya={},ba={},Ia={},xa={};const wa=()=>{const e=e=>la(fa,((t,n,r)=>(t[r]=la(n,e,{}),t)),{});va=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))),ya=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),xa=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in fa||Fo.autoFetchSvg,n=la(pa,((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:{}});ba=n.names,Ia=n.unicodes,ma=Na(Fo.styleDefault,{family:Fo.familyDefault})};var Aa;function Ma(e,t){return(va[e]||{})[t]}function Ta(e,t){return(xa[e]||{})[t]}function Ea(e){return ba[e]||{prefix:null,iconName:null}}function Ca(){return ma}function Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Ki}=t,r=Mo[n][e];if(n===$i&&!e)return"fad";const i=Eo[n][e]||Eo[n][r],o=e in na.styles?e:null;return i||o||null}function Sa(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function ka(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=so.concat(oo),o=Sa(e.filter((e=>i.includes(e)))),a=Sa(e.filter((e=>!so.includes(e)))),s=o.filter((e=>(r=e,!Xi.includes(e)))),[l=null]=s,c=function(e){let t=Ki;const n=ha.reduce(((e,t)=>(e[t]="".concat(Fo.cssPrefix,"-").concat(t),e)),{});return eo.forEach((r=>{(e.includes(n[r])||e.some((e=>ga[r].includes(e))))&&(t=r)})),t}(o),u=zi(zi({},function(e){let t=[],n=null;return e.forEach((e=>{const r=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~zo.indexOf(o))?null:i;var o}(Fo.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:Na(l,{family:c})});return zi(zi(zi({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,s=n===$i,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===a.familyDefault,u="fad"===r.prefix||"fa-duotone"===r.prefix;if(!s&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&ja.includes(n)){const e=Object.keys(o).find((e=>Da.includes(e)));if(e||a.autoFetchSvg){const e=to.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Ta(r.prefix,r.iconName)||r.iconName}}return"fa"!==r.prefix&&"fa"!==i||(r.prefix=Ca()||"fas"),r}({values:e,family:c,styles:fa,config:Fo,canonical:u,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o="fa"===t?Ea(i):{},a=Ta(r,i);return i=o.iconName||a||i,r=o.prefix||r,"far"!==r||fa.far||!fa.fas||Fo.autoFetchSvg||(r="fas"),{prefix:r,iconName:i}}(n,r,u))}Aa=e=>{ma=Na(e.styleDefault,{family:Fo.familyDefault})},Go.push(Aa),wa();const ja=eo.filter((e=>e!==Ki||e!==$i)),Da=Object.keys(ao).filter((e=>e!==Ki)).map((e=>Object.keys(ao[e]))).flat();let La=[],Oa={};const Ra={},Pa=Object.keys(Ra);function za(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(Oa[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Ua(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Oa[e]||[]).forEach((e=>{e.apply(null,n)}))}function Ba(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ra[e]?Ra[e].apply(null,t):void 0}function _a(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ca();if(t)return t=Ta(n,t)||t,sa(Fa.definitions,n,t)||sa(na.styles,n,t)}const Fa=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]=zi(zi({},this.definitions[e]||{}),r[e]),da(e,r[e]);const t=No[Ki][e];t&&da(t,r[e]),wa()}))}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}},Ga={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Wi?(Ua("beforeI2svg",e),Ba("pseudoElements2svg",e),Ba("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===Fo.autoReplaceSvg&&(Fo.autoReplaceSvg=!0),Fo.observeMutations=!0,n=()=>{qa({autoReplaceSvgRoot:t}),Ua("watch",e)},Wi&&(oa?setTimeout(n,0):ra.push(n))}},Za={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ta(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=Na(e[0]);return{prefix:n,iconName:Ta(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Fo.cssPrefix,"-"))>-1||e.match(ko))){const t=ka(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ca(),iconName:Ta(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Ca();return{prefix:t,iconName:Ta(t,e)||e}}}},Ha={noAuto:()=>{Fo.autoReplaceSvg=!1,Fo.observeMutations=!1,Ua("noAuto")},config:Fo,dom:Ga,parse:Za,library:Fa,findIconDefinition:_a,toHtml:aa},qa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=qi}=e;(Object.keys(na.styles).length>0||Fo.autoFetchSvg)&&Wi&&Fo.autoReplaceSvg&&Ha.dom.i2svg({node:t})};function Ya(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>aa(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Wi)return;const t=qi.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Va(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=ro.includes(r),g=[Fo.replacementClass,i?"".concat(Fo.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:zi(zi({},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 v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[go]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||qo())},children:[s]}),delete m.attributes.title);const y=zi(zi({},m),{},{prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:zi(zi({},v),u.styles)}),{children:b,attributes:I}=n.found&&t.found?Ba("generateAbstractMask",y)||{children:[],attributes:{}}:Ba("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=I,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=!0===o?"".concat(t,"-").concat(Fo.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:zi(zi({},i),{},{id:a}),children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Jo(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=Qo(zi(zi({},o),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(y)}function Wa(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l=zi(zi(zi({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(l[go]="");const c=zi({},a.styles);Jo(i)&&(c.transform=function(e){let{transform:t,width:n=po,height:r=po,startCentered:i=!1}=e,o="";return o+=i&&Qi?"translate(".concat(t.x/Zo-n/2,"em, ").concat(t.y/Zo-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Zo,"em), calc(-50% + ").concat(t.y/Zo,"em)) "):"translate(".concat(t.x/Zo,"em, ").concat(t.y/Zo,"em) "),o+="scale(".concat(t.size/Zo*(t.flipX?-1:1),", ").concat(t.size/Zo*(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=Qo(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:Qa}=na;function Ja(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(Fo.cssPrefix,"-").concat(Oo)},children:[{tag:"path",attributes:{class:"".concat(Fo.cssPrefix,"-").concat(Po),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Fo.cssPrefix,"-").concat(Ro),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const Xa={found:!1,width:512,height:512};function Ka(e,t){let n=t;return"fa"===t&&null!==Fo.styleDefault&&(t=Ca()),new Promise(((r,i)=>{if("fa"===n){const n=Ea(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&Qa[t]&&Qa[t][e])return r(Ja(Qa[t][e]));!function(e,t){xo||Fo.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(zi(zi({},Xa),{},{icon:Fo.showMissingIcons&&e&&Ba("missingIconAbstract")||{}}))}))}const $a=()=>{},es=Fo.measurePerformance&&Vi&&Vi.mark&&Vi.measure?Vi:{mark:$a,measure:$a},ts='FA "6.7.2"';var ns=e=>(es.mark("".concat(ts," ").concat(e," begins")),()=>(e=>{es.mark("".concat(ts," ").concat(e," ends")),es.measure("".concat(ts," ").concat(e),"".concat(ts," ").concat(e," begins"),"".concat(ts," ").concat(e," ends"))})(e));const rs=()=>{};function is(e){return"string"==typeof(e.getAttribute?e.getAttribute(go):null)}function os(e){return qi.createElementNS("http://www.w3.org/2000/svg",e)}function as(e){return qi.createElement(e)}function ss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?os:as)}=t;if("string"==typeof e)return qi.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(ss(e,{ceFn:n}))})),r}const ls={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ss(e),t)})),null===t.getAttribute(go)&&Fo.keepOriginalSource){let e=qi.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(~Vo(t).indexOf(Fo.replacementClass))return ls.replace(e);const r=new RegExp("".concat(Fo.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Fo.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=>aa(e))).join("\n");t.setAttribute(go,""),t.innerHTML=i}};function cs(e){e()}function us(e,t){const n="function"==typeof t?t:rs;if(0===e.length)n();else{let t=cs;"async"===Fo.mutateApproach&&(t=Hi.requestAnimationFrame||cs),t((()=>{const t=!0===Fo.autoReplaceSvg?ls.replace:ls[Fo.autoReplaceSvg]||ls.replace,r=ns("mutate");e.map(t),r(),n()}))}}let ds=!1;function fs(){ds=!0}function ps(){ds=!1}let hs=null;function gs(e){if(!Yi)return;if(!Fo.observeMutations)return;const{treeCallback:t=rs,nodeCallback:n=rs,pseudoElementsCallback:r=rs,observeMutationsRoot:i=qi}=e;hs=new Yi((e=>{if(ds)return;const i=Ca();Yo(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!is(e.addedNodes[0])&&(Fo.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Fo.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&is(e.target)&&~Lo.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(vo):null,n=e.getAttribute?e.getAttribute(yo):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=ka(Vo(e.target));e.target.setAttribute(vo,t||i),n&&e.target.setAttribute(yo,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(Fo.replacementClass)&&n(e.target);var o}))})),Wi&&hs.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function ms(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=ka(Vo(e));return i.prefix||(i.prefix=Ca()),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,(ya[o]||{})[a]||Ma(i.prefix,ca(e.innerText)))),!i.iconName&&Fo.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=Yo(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 Fo.autoA11y&&(n?t["aria-labelledby"]="".concat(Fo.replacementClass,"-title-").concat(r||qo()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=za("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 zi({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ho,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:vs}=na;function ys(e){const t="nest"===Fo.autoReplaceSvg?ms(e,{styleParser:!1}):ms(e);return~t.extra.classes.indexOf(jo)?Ba("generateLayersText",e,t):Ba("generateSvgReplacementMutation",e,t)}function bs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Wi)return Promise.resolve();const n=qi.documentElement.classList,r=e=>n.add("".concat(bo,"-").concat(e)),i=e=>n.remove("".concat(bo,"-").concat(e)),o=Fo.autoFetchSvg?[...no,...so]:Xi.concat(Object.keys(vs));o.includes("fa")||o.push("fa");const a=[".".concat(jo,":not([").concat(go,"])")].concat(o.map((e=>".".concat(e,":not([").concat(go,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Yo(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=ns("onTree"),c=s.reduce(((e,t)=>{try{const n=ys(t);n&&e.push(n)}catch(e){xo||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{us(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ys(e).then((e=>{e&&us([e],t)}))}const xs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ho,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 Ya(zi({type:"icon"},e),(()=>(Ua("beforeDOMElementCreation",{iconDefinition:e,params:t}),Fo.autoA11y&&(a?c["aria-labelledby"]="".concat(Fo.replacementClass,"-title-").concat(s||qo()):(c["aria-hidden"]="true",c.focusable="false")),Va({icons:{main:Ja(p),mask:i?Ja(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:zi(zi({},Ho),n),symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var ws={mixout(){return{icon:(e=xs,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:_a(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:_a(i||{})),e(r,zi(zi({},n),{},{mask:i}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=bs,e.nodeCallback=Is,e)}),provides(e){e.i2svg=function(e){const{node:t=qi,callback:n=()=>{}}=e;return bs(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([Ka(n,o),l.iconName?Ka(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Va({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=Qo(o);let s;return a.length>0&&(n.style=a),Jo(i)&&(s=Ba("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},As={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Ya({type:"layer"},(()=>{Ua("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(Fo.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Ms={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 Ya({type:"counter",content:e},(()=>(Ua("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i=zi(zi(zi({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Qo(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(Fo.cssPrefix,"-layers-counter"),...r]}}))))}})},Ts={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ho,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Ya({type:"text",content:e},(()=>(Ua("beforeDOMElementCreation",{content:e,params:t}),Wa({content:e,transform:zi(zi({},Ho),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(Fo.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(Qi){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return Fo.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Wa({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const Es=new RegExp('"',"ug"),Cs=[1105920,1112319],Ns=zi(zi(zi(zi({},{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",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"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"}}),Ss=Object.keys(Ns).reduce(((e,t)=>(e[t.toLowerCase()]=Ns[t],e)),{}),ks=Object.keys(Ss).reduce(((e,t)=>{const n=Ss[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function js(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Yo(e.children).filter((e=>e.getAttribute(mo)===t))[0],a=Hi.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Do),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(Ss[n]||{})[i]||ks[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Es,""),n=function(e){const t=e.length;let n,r=e.charCodeAt(0);return r>=55296&&r<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}(t),r=n>=Cs[0]&&n<=Cs[1],i=2===t.length&&t[0]===t[1];return{value:ca(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=Ma(d,f),m=g;if(h){const e=function(e){const t=Ia[e],n=Ma("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(vo)===d&&o.getAttribute(yo)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Ho,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[mo]=t,Ka(g,d).then((i=>{const o=Va(zi(zi({},a),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:m,extra:s,watchable:!0})),l=qi.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>aa(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ds(e){return Promise.all([js(e,"::before"),js(e,"::after")])}function Ls(e){return!(e.parentNode===document.head||~Io.indexOf(e.tagName.toUpperCase())||e.getAttribute(mo)||e.parentNode&&"svg"===e.parentNode.tagName)}function Os(e){if(Wi)return new Promise(((t,n)=>{const r=Yo(e.querySelectorAll("*")).filter(Ls).map(Ds),i=ns("searchPseudoElements");fs(),Promise.all(r).then((()=>{i(),ps(),t()})).catch((()=>{i(),ps(),n()}))}))}var Rs={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Os,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=qi}=e;Fo.searchPseudoElements&&Os(t)}}};let Ps=!1;var zs={mixout:()=>({dom:{unwatch(){fs(),Ps=!0}}}),hooks:()=>({bootstrap(){gs(za("mutationObserverCallbacks",{}))},noAuto(){hs&&hs.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Ps?ps():gs(za("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Us=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 Bs={mixout:()=>({parse:{transform:e=>Us(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Us(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={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:zi({},c.outer),children:[{tag:"g",attributes:zi({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:zi(zi({},t.icon.attributes),c.path)}]}]}}}};const _s={x:0,y:0,width:"100%",height:"100%"};function Fs(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 Gs={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?ka(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=Ca()),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:zi(zi({},_s),{},{fill:"white"})},p=l.children?{children:l.children.map(Fs)}:{},h={tag:"g",attributes:zi({},d.inner),children:[Fs(zi({tag:l.tag,attributes:zi(zi({},l.attributes),d.path)},p))]},g={tag:"g",attributes:zi({},d.outer),children:[h]},m="mask-".concat(o||qo()),v="clip-".concat(o||qo()),y={tag:"mask",attributes:zi(zi({},_s),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(I=u,"g"===I.tag?I.children:[I])},y]};var I;return t.push(b,{tag:"rect",attributes:zi({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(m,")")},_s)}),{children:t,attributes:n}}}},Zs={provides(e){let t=!1;Hi.matchMedia&&(t=Hi.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:zi(zi({},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=zi(zi({},r),{},{attributeName:"opacity"}),o={tag:"circle",attributes:zi(zi({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:zi(zi({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:zi(zi({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:zi(zi({},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:zi(zi({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:zi(zi({},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:zi(zi({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;La=e,Oa={},Object.keys(Ra).forEach((e=>{-1===Pa.indexOf(e)&&delete Ra[e]})),La.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=>{Oa[e]||(Oa[e]=[]),Oa[e].push(t[e])}))}e.provides&&e.provides(Ra)}))}([ea,ws,As,Ms,Ts,Rs,zs,Bs,Gs,Zs,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Ha});const Hs=Ha.parse,qs=Ha.icon;var Ys=i(9067),Vs=i.n(Ys);function Ws(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 Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){Xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Js(e){return Js="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},Js(e)}function Xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ks(e){return function(e){if(Array.isArray(e))return $s(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 $s(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)?$s(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 $s(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 el(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 tl=["style"],nl=!1;try{nl=!0}catch(hv){}function rl(e){return e&&"object"===Js(e)&&e.prefix&&e.iconName&&e.icon?e:Hs.icon?Hs.icon(e):null===e?null:e&&"object"===Js(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 il(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Xs({},e,t):{}}var ol={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},al=t().forwardRef((function(e,t){var n=Qs(Qs({},ol),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=rl(r),d=il("classes",[].concat(Ks(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,v=e.size,y=e.rotation,b=e.pull,I=(Xs(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(v),null!=v),Xs(t,"fa-rotate-".concat(y),null!=y&&0!==y),Xs(t,"fa-pull-".concat(b),null!=b),Xs(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)),Ks((a||"").split(" ")))),f=il("transform","string"==typeof n.transform?Hs.transform(n.transform):n.transform),p=il("mask",rl(i)),h=qs(u,Qs(Qs(Qs(Qs({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!nl&&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){ol.hasOwnProperty(e)||(m[e]=n[e])})),sl(g[0],m)}));al.displayName="FontAwesomeIcon",al.propTypes={beat:Vs().bool,border:Vs().bool,beatFade:Vs().bool,bounce:Vs().bool,className:Vs().string,fade:Vs().bool,flash:Vs().bool,mask:Vs().oneOfType([Vs().object,Vs().array,Vs().string]),maskId:Vs().string,fixedWidth:Vs().bool,inverse:Vs().bool,flip:Vs().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Vs().oneOfType([Vs().object,Vs().array,Vs().string]),listItem:Vs().bool,pull:Vs().oneOf(["right","left"]),pulse:Vs().bool,rotation:Vs().oneOf([0,90,180,270]),shake:Vs().bool,size:Vs().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Vs().bool,spinPulse:Vs().bool,spinReverse:Vs().bool,symbol:Vs().oneOfType([Vs().bool,Vs().string]),title:Vs().string,titleId:Vs().string,transform:Vs().oneOfType([Vs().string,Vs().object]),swapOpacity:Vs().bool};var sl=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=el(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[el(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,tl);return o.attrs.style=Qs(Qs({},o.attrs.style),s),t.apply(void 0,[n.tag,Qs(Qs({},o.attrs),l)].concat(Ks(i)))}.bind(null,t().createElement);const ll=!("undefined"==typeof window||!window.document||!window.document.createElement);var cl=(new Date).getTime(),ul=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-cl)),r=setTimeout(e,n);return cl=t,r},dl=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};ll&&["","webkit","moz","o","ms"].some((function(e){var t=dl(e,"request");return t in window&&(dl(e,"cancel"),ul=function(e){return window[t](e)}),!!ul}));var fl=ul;function pl(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 hl(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gl(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=hl(e.className,t):e.setAttribute("class",hl(e.className&&e.className.baseVal||"",t))}var ml=/([A-Z])/g,vl=/^ms-/;function yl(e){return function(e){return e.replace(ml,"-$1").toLowerCase()}(e).replace(vl,"-ms-")}var bl=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Il=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(yl(t))||function(e){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(yl(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!bl.test(e))}(i)?r+=i+"("+o+") ":n+=yl(i)+": "+o+";":e.style.removeProperty(yl(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var xl=!1,wl=!1;try{var Al={get passive(){return xl=!0},get once(){return wl=xl=!0}};ll&&(window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,!0))}catch(hv){}const Ml=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!wl){var i=r.once,o=r.capture,a=n;!wl&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,xl?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 Tl(e,t,n,r){var i,o;null==n&&(o=-1===(i=Il(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=Ml(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=Ml(e,"transitionend",t);return function(){a(),s()}}function El(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 Cl=Vs().oneOfType([Vs().string,Vs().shape({enter:Vs().string,leave:Vs().string,active:Vs().string,height:Vs().string}),Vs().shape({enter:Vs().string,enterActive:Vs().string,leave:Vs().string,leaveActive:Vs().string,appear:Vs().string,appearActive:Vs().string,height:Vs().string,heightActive:Vs().string})]);function Nl(e){return Nl="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},Nl(e)}function Sl(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 kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sl(Object(n),!0).forEach((function(t){Rl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jl(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 Dl(e,t){return Dl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dl(e,t)}function Ll(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ol(e){return Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ol(e)}function Rl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pl=[];Tl&&Pl.push(Tl);var zl={children:Vs().node,name:Cl.isRequired,appear:Vs().bool,enter:Vs().bool,leave:Vs().bool,appearTimeout:Vs().number,enterTimeout:Vs().number,leaveTimeout:Vs().number},Ul=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&&Dl(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=Ol(i);if(o){var n=Ol(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Nl(t)&&"function"!=typeof t?Ll(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),Rl(Ll(n=a.call(this,e)),"refNode",t().createRef()),Rl(Ll(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Rl(Ll(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Rl(Ll(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;pl(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(gl(r,o),gl(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):Tl&&(i=function(e,t){return Pl.length?Pl.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){Pl.length&&Pl.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=fl((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=fl((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,pl(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=kl(kl({},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&&jl(n.prototype,r),s}(t().Component);Rl(Ul,"displayName","CSSTransitionGroupChild"),Ul.propTypes=zl;const Bl=Ul;function _l(e){return _l="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},_l(e)}function Fl(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 Gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zl(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 Hl(e,t){return Hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hl(e,t)}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yl(e){return Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yl(e)}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wl=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&&Hl(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=Yl(i);if(o){var n=Yl(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==_l(t)&&"function"!=typeof t?ql(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),Vl(ql(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Vl(ql(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(ql(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Vl(ql(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ql(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})),Vl(ql(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=Gl(Gl({},a),{},Vl({},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:Gl({},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=fl(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===_l(r)&&null!==r&&delete(r=Gl({},r)).height,t().createElement(Bl,Gl({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=Gl({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var v="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(v),g.style.height=a}null!==s&&(g.style.width=s);var y={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:y},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]?y:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}],r&&Zl(n.prototype,r),s}(t().Component);Vl(Wl,"displayName","ReactCSSTransitionReplace"),Vl(Wl,"propTypes",{transitionName:Cl.isRequired,transitionAppear:Vs().bool,transitionEnter:Vs().bool,transitionLeave:Vs().bool,transitionAppearTimeout:El("Appear"),transitionEnterTimeout:El("Enter"),transitionLeaveTimeout:El("Leave"),overflowHidden:Vs().bool,changeWidth:Vs().bool,notifyLeaving:Vs().bool}),Vl(Wl,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ql=({error:e,children:n})=>{const{t:r}=ar();return t().createElement(Wl,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(al,{icon:Oi,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Jl=i(758);const Xl=e=>(0,Jl.action)("PLAY_AUDIO",e),Kl=e=>(0,Jl.action)("UPDATE_REMAINING",e),$l=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=mi(yi(n,r)),l=mi(((e,t)=>n=>"playing"===yi(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=mi(xi(r,o)),{i18n:u}=ar(),d=pi(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:v}=(0,e.useContext)(Pr),y=(0,e.useRef)(null);return t().createElement("div",{className:jr()("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},v&&t().createElement("audio",{ref:y,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:jr()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(Xl({src:n,restrictedAudioId:r,duration:i,audioRef:y})),"aria-labelledby":m.join(" ")},!f&&t().createElement(al,{icon:ji,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},ec(null!=l?l:i)))}));function ec(e){const t=e%60;return`${tc(Math.floor(e/60))}:${tc(t)}`}function tc(e){return e.toString().padStart(2,"0")}const nc=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}=ar(),u=null!=s&&null!=a?mi(bi(o,a)):void 0,d=null!=s&&null!=a?mi(xi(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(Pr),p=Ar(n);return t().createElement("div",{className:jr()("audio e-columns e-columns--center-v e-pad-b-2 e-cursor-default",r),onClick:e=>e.preventDefault()},null!=a&&null!=s?t().createElement($l,{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(Ql,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),rc=Ue({attachment:Vr((function({element:n}){const{displayNumber:r}=(0,e.useContext)(Yr);return t().createElement("li",{"data-list-number":r,"aria-label":r},rc(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(Pr),{displayNumber:i}=(0,e.useContext)(Yr);return t().createElement("a",{href:Gr(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},rc(n))}})(),ic=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=ar(),o=yr(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},rc(e)))})),oc=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(Pr);return t().createElement("a",{className:jr()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),ac=t().memo((function({element:e,className:n}){var r,i;const o=Ee(e,"svg"),a=null===(r=e.textContent)||void 0===r?void 0:r.trim(),s=null!==(i=Ee(e,"assistive-title")||a)&&void 0!==i?i:"",l="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:jr()("e-formula",{"e-block e-text-center":l},n),dangerouslySetInnerHTML:{__html:o},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},s))})),sc=({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:jr()("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 lc(e){return"string"==typeof e&&0===e.trim().length}const cc=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(Pr),{t:a}=ar(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Te(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every(lc),p=f?d:void 0,h=f?xr(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(sc,{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 uc({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function dc({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function fc({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement("span",null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(Pr);return t().createElement("span",null,i.format(n))}}const pc=t().memo((function({element:e,renderChildNodes:n,renderComponentOverrides:r}){const{t:i}=ar();function o(i,o){const a=Te(e,i);if(a){const e=a.localName,i=t().createElement(o,{element:a,renderChildNodes:n,renderComponentOverrides:r,key:e});if(i)return Ne(a,"hidden")?t().createElement("del",{key:e},i):i}}function a(o,a,s){const l=Te(e,o);return l&&t().createElement(t().Fragment,{key:l.localName},t().createElement("span",null,i(a)," "),t().createElement(s,{element:l,renderChildNodes:n,renderComponentOverrides:r,key:l.localName}))}return t().createElement("span",{className:jr()("e-break-word",{"e-line-through":Ne(e,"hidden")})},t().createElement("span",null,i("references.source"),be),(s=[o("author",Nr),o("title",uc),o("publisher",Nr),o("publication",Nr),o("howpublished",Nr),o("url",dc),a("publication-date","references.date",fc),a("reference-date","references.reference-date",fc),a("translator","references.translator",Nr),a("modified-by","references.modified-by",Nr),o("note",Nr)]).filter(Boolean).reduce(((e,n,r)=>(e.push(n),r!==s.length-1&&e.push(t().createElement("span",{key:r},". ")),e)),[]));var s})),hc=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(Pr),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Te(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every(lc),f=d?u:void 0,p=d?wr(n):void 0;return t().createElement(sc,{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)})))}));var gc=/\s/;const mc=function(e){for(var t=e.length;t--&&gc.test(e.charAt(t)););return t};var vc=/^\s+/;var yc=/^[-+]0x[0-9a-f]+$/i,bc=/^0b[01]+$/i,Ic=/^0o[0-7]+$/i,xc=parseInt;const wc=function(e){if("number"==typeof e)return e;if(Lt(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,mc(n)+1).replace(vc,""):n;var r=bc.test(e);return r||Ic.test(e)?xc(e.slice(2),r?2:8):yc.test(e)?NaN:+e};var Ac=1/0;const Mc=function(e){var t=function(e){return e?(e=wc(e))===Ac||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 Tc=4294967295,Ec=Math.min;function Cc({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Te(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(al,{icon:Mi,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(al,{icon:Ni,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function Nc({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(Pr).resolveAttachment(o);return t().createElement("div",{className:jr()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(sc,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const Sc=t().memo((function({element:n,renderChildNodes:r,renderComponentOverrides:i}){const[o,a]=(0,e.useState)((()=>function(e,t){if((e=Mc(e))<1||e>9007199254740991)return[];var n=Tc,r=Ec(e,Tc);t=me(t),e-=Tc;for(var i=w(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),s=e=>t=>{const n=[...o];n[e]=t,a(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(Cc,{key:n,opacity:o[n],element:e,setOpacity:s(n),renderChildNodes:r,renderComponentOverrides:i}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(Nc,{key:n,element:e,renderChildNodes:r,renderComponentOverrides:i,opacity:o[n],absolute:n>0}))))))})),kc=t().createContext({}),jc=Rr(kc,(({element:e})=>{const t=Ae(e,"question",!1),n=t.length?[]:Ae(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer","dnd-answer"],!1),r=Ae(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(mr).join(" "):gr(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Te(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function Dc({element:n,options:r}){const i=n.getAttribute("suffix"),{displayNumber:o}=(0,e.useContext)(kc);return 1===r?null:t().createElement(t().Fragment,null,kt(o.split(".")),".",i)}const Lc=t().memo((function({element:e}){const{t:n}=ar(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),Oc=Ue({"attachment-link":Hr("link"),"attachment-links":qr("link"),"attachment-title":Qr,attachment:Wr,audio:nc,"audio-title":Nr,file:oc,image:cc,video:hc,formula:ac,"question-number":Dc,translation:Lc,reference:{component:pc,wrapper:({children:e})=>t().createElement("div",{className:"e-mrg-y-2 e-font-size-s"},e)},"image-overlay":Sc}),Rc=t().memo((function({element:n,renderComponentOverrides:r,forceRender:i=!1}){const o=(0,e.useMemo)((()=>Oc(r)),[r]);if(null==Me(n,"question")&&!i)return null;const a=n.children.length;return t().createElement(t().Fragment,null,a>1&&t().createElement(ic,{element:n,renderChildNodes:o,renderComponentOverrides:r,showTitle:!1,forceRender:i}),o(n))})),Pc=t().memo(jc((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(kc);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Te(e,"external-material"))))}(n,o,a)?t().createElement(Dr,{id:i,"aria-labelledby":gr(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function zc(e){return e.includes(".")?e:`${e}.`}const Uc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(kc);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:gr(i)},zc(i)," ",r(n))):null})),Bc=Ue({"audio-group":Sr,"external-material":Rc,"question-title":Uc,question:Pc,section:Fr(Nr)}),_c=()=>{const{t:e}=ar();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Fc=t().memo(Br(zr((({annotationsEnabled:n,renderComponentOverrides:r={}})=>{const{root:i,language:o,date:a,dateTimeFormatter:s,dayCode:l,examCode:c,resolveAttachment:u,subjectLanguage:d}=(0,e.useContext)(Pr),f=(0,e.useMemo)((()=>Bc(r)),[r]),p=Te(i,"exam-title"),h=i.getAttribute("exam-stylesheet"),g=Te(i,"external-material"),m=Er((()=>or(o,c,l)));return(0,e.useEffect)(sr(m,o)),(0,e.useEffect)(Tr,[]),t().createElement(Or,{annotationsEnabled:n},t().createElement(y,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:d,"aria-labelledby":fr},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:u(h)}),t().createElement(Dr,{"aria-labelledby":fr},p&&t().createElement(Cr,{id:fr},t().createElement(_c,null),be,f(p)),a&&t().createElement("div",{className:"e-semibold e-mrg-b-6"},s.format(a)),g&&t().createElement(Rc,{element:g,renderChildNodes:f,renderComponentOverrides:r,forceRender:!0})),f(i))))}))));function Gc(e){const t=e.documentElement;return Yc(t,Ae(t,"section",!1).map(Zc),{maxAnswers:Ce(t,"max-answers")})}function Zc(e){return Yc(e,Ae(e,"question",!1).map(Hc),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Hc(e){const t=Ae(e,"question",!1);return Yc(e,t.length?t.map(Hc):Ae(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer","dnd-answer"],!1).map(qc),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function qc(e){return Yc(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Yc(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}function Vc(e){var t=this.__data__=new an(e);this.size=t.size}Vc.prototype.clear=function(){this.__data__=new an,this.size=0},Vc.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vc.prototype.get=function(e){return this.__data__.get(e)},Vc.prototype.has=function(e){return this.__data__.has(e)},Vc.prototype.set=function(e,t){var n=this.__data__;if(n instanceof an){var r=n.__data__;if(!sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new un(r)}return n.set(e,t),this.size=n.size,this};const Wc=Vc;function Qc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new un;++t<n;)this.add(e[t])}Qc.prototype.add=Qc.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Qc.prototype.has=function(e){return this.__data__.has(e)};const Jc=Qc,Xc=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},Kc=function(e,t){return e.has(t)},$c=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 Jc: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(!Xc(t,(function(e,t){if(!Kc(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},eu=T.Uint8Array,tu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},nu=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var ru=E?E.prototype:void 0,iu=ru?ru.valueOf:void 0;const ou=function(e,t,n){var r=t(e);return _(e)?r:Rn(r,n(e))},au=function(){return[]};var su=Object.prototype.propertyIsEnumerable,lu=Object.getOwnPropertySymbols,cu=lu?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}(lu(e),(function(t){return su.call(e,t)})))}:au;const uu=cu,du=function(e){return ou(e,fe,uu)};var fu=Object.prototype.hasOwnProperty;const pu=Qt(T,"DataView"),hu=Qt(T,"Promise"),gu=Qt(T,"Set"),mu=Qt(T,"WeakMap");var vu="[object Map]",yu="[object Promise]",bu="[object Set]",Iu="[object WeakMap]",xu="[object DataView]",wu=Ft(pu),Au=Ft(sn),Mu=Ft(hu),Tu=Ft(gu),Eu=Ft(mu),Cu=L;(pu&&Cu(new pu(new ArrayBuffer(1)))!=xu||sn&&Cu(new sn)!=vu||hu&&Cu(hu.resolve())!=yu||gu&&Cu(new gu)!=bu||mu&&Cu(new mu)!=Iu)&&(Cu=function(e){var t=L(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ft(n):"";if(r)switch(r){case wu:return xu;case Au:return vu;case Mu:return yu;case Tu:return bu;case Eu:return Iu}return t});const Nu=Cu;var Su="[object Arguments]",ku="[object Array]",ju="[object Object]",Du=Object.prototype.hasOwnProperty;const Lu=function(e,t,n,r,i,o){var a=_(e),s=_(t),l=a?ku:Nu(e),c=s?ku:Nu(t),u=(l=l==Su?ju:l)==ju,d=(c=c==Su?ju:c)==ju,f=l==c;if(f&&H(e)){if(!H(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Wc),a||te(e)?$c(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 eu(e),new eu(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tn(+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=tu;case"[object Set]":var l=1&r;if(s||(s=nu),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=$c(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(iu)return iu.call(e)==iu.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Du.call(e,"__wrapped__"),h=d&&Du.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new Wc),i(g,m,n,r,o)}}return!!f&&(o||(o=new Wc),function(e,t,n,r,i,o){var a=1&n,s=du(e),l=s.length;if(l!=du(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:fu.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 v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},Ou=function e(t,n,r,i,o){return t===n||(null==t||null==n||!O(t)&&!O(n)?t!=t&&n!=n:Lu(t,n,r,i,e,o))},Ru=function(e){return e==e&&!ce(e)},Pu=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},zu=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,Ru(i)]}return t}(e);return 1==t.length&&t[0][2]?Pu(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 Wc;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?Ou(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},Uu=function(e){return Pt(e)?function(e){return function(t){return null==t?void 0:t[e]}}(Tn(e)):function(e){return function(t){return En(t,e)}}(e)},Bu=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?_(e)?(t=e[0],n=e[1],Pt(t)&&Ru(n)?Pu(Tn(t),n):function(e){var r=vi(e,t);return void 0===r&&r===n?Ln(e,t):Ou(n,r,3)}):zu(e):Uu(e);var t,n},_u=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},Fu=function(e,t){return(_(e)?bn:_u)(e,Bu(t))},Gu=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},Zu=function(e,t,n,r){return he(e,(function(e,i,o){t(r,e,n(e),o)})),r},Hu=function(e,t){return function(n,r){var i=_(n)?Gu:Zu,o=t?t():{};return i(n,e,Bu(r),o)}};var qu=Hu((function(e,t,n){Nn(e,n,t)}));const Yu=qu;function Vu(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 Wu=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Qu=()=>Math.random().toString(36).substring(7).split("").join("."),Ju={INIT:`@@redux/INIT${Qu()}`,REPLACE:`@@redux/REPLACE${Qu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qu()}`};function Xu(e,t,n){if("function"!=typeof e)throw new Error(Vu(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Vu(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Vu(1));return n(Xu)(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(Vu(3));return i}function d(e){if("function"!=typeof e)throw new Error(Vu(4));if(l)throw new Error(Vu(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Vu(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(Vu(7));if(void 0===e.type)throw new Error(Vu(8));if("string"!=typeof e.type)throw new Error(Vu(17));if(l)throw new Error(Vu(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:Ju.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Vu(10));r=e,f({type:Ju.REPLACE})},[Wu]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Vu(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Wu](){return this}}}}}function Ku(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var $u=function(e){return"@@redux-saga/"+e},ed=$u("CANCEL_PROMISE"),td=$u("CHANNEL_END"),nd=$u("IO"),rd=$u("MATCH"),id=$u("MULTICAST"),od=$u("SAGA_ACTION"),ad=$u("SELF_CANCELLATION"),sd=$u("TASK"),ld=$u("TASK_CANCEL"),cd=$u("TERMINATE"),ud=$u("LOCATION");function dd(){return dd=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},dd.apply(null,arguments)}function fd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var pd=function(e){return null==e},hd=function(e){return null!=e},gd=function(e){return"function"==typeof e},md=function(e){return"string"==typeof e},vd=Array.isArray,yd=function(e){return e&&gd(e.then)},bd=function(e){return e&&gd(e.next)&&gd(e.throw)},Id=function e(t){return t&&(md(t)||Ad(t)||gd(t)||vd(t)&&t.every(e))},xd=function(e){return e&&gd(e.take)&&gd(e.close)},wd=function(e){return gd(e)&&e.hasOwnProperty("toString")},Ad=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};const Md=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[ed]=function(){clearTimeout(n)},r};var Td=function(){return function(){return true}}(),Ed=function(){},Cd=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Nd=function(e,t){dd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function Sd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function kd(e){var t=!1;return function(){t||(t=!0,e())}}var jd=function(e){throw e},Dd=function(e){return{value:e,done:!0}};function Ld(e,t,n){void 0===t&&(t=jd),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Dd,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Od(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Rd=function(e){return Array.apply(null,new Array(e))},Pd=function(e){return function(t){return e(Object.defineProperty(t,od,{value:!0}))}},zd=function(e){return e===cd},Ud=function(e){return e===ld},Bd=function(e){return zd(e)||Ud(e)};function _d(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=vd(e)?Rd(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||Bd(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=Ed,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Fd(e){return{name:e.name||"anonymous",location:Gd(e)}}function Gd(e){return e[ud]}function Zd(){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 Hd={isEmpty:Td,put:Ed,take:Ed};var qd=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)},Yd="TAKE",Vd="RACE",Wd="CALL",Qd="FORK",Jd="CANCEL",Xd="SELECT",Kd="CANCELLED",$d=function(e,t){var n;return(n={})[nd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function ef(e,t){return void 0===e&&(e="*"),Id(e)?(hd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),$d(Yd,{pattern:e})):xd(n=e)&&n[id]&&hd(t)&&Id(t)?$d(Yd,{channel:e,pattern:t}):xd(e)?(hd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),$d(Yd,{channel:e})):void 0;var n}function tf(e,t){return pd(t)&&(t=e,e=void 0),$d("PUT",{channel:e,action:t})}function nf(e,t){var n,r=null;return gd(e)?n=e:(vd(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&md(n)&&gd(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function rf(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 $d(Wd,nf(e,n))}function of(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 $d(Qd,nf(e,n))}function af(e){return void 0===e&&(e=ad),$d(Jd,e)}var sf=rf.bind(null,Md);const lf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var cf=[],uf=0;function df(e){try{hf(),e()}finally{gf()}}function ff(e){cf.push(e),uf||(hf(),mf())}function pf(e){try{return hf(),e()}finally{mf()}}function hf(){uf++}function gf(){uf--}function mf(){var e;for(gf();!uf&&void 0!==(e=cf.shift());)df(e)}var vf=function(e){return function(t){return e.some((function(e){return wf(e)(t)}))}},yf=function(e){return function(t){return e(t)}},bf=function(e){return function(t){return t.type===String(e)}},If=function(e){return function(t){return t.type===e}},xf=function(){return Td};function wf(e){var t="*"===e?xf:md(e)?bf:vd(e)?vf:wd(e)?bf:gd(e)?yf:Ad(e)?If:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var Af={type:td},Mf=function(e){return e&&e.type===td};function Tf(e){void 0===e&&(e=qd());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(Af):e.isEmpty()?(n.push(r),r.cancel=function(){Sd(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(Af):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])(Af)}}}}function Ef(){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(Af)}))},(e={})[id]=!0,e.put=function(e){if(!t)if(Mf(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[rd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=xf),t?e(Af):(e[rd]=n,i(),r.push(e),e.cancel=kd((function(){i(),Sd(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[od]?s(e):ff((function(){s(e)}))},a}function Cf(e,t){var n=e[ed];gd(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var Nf,Sf=0,kf=function(){return++Sf};function jf(e){e.isRunning()&&e.cancel()}var Df=((Nf={})[Yd]=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):!Mf(e)||a?n(e):n(cd)};try{i.take(s,hd(o)?wf(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},Nf.PUT=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;ff((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&yd(t)?Cf(t,n):n(t)}))},Nf.ALL=function(e,t,n,r){var i=r.digestEffect,o=Sf,a=Object.keys(t);if(0!==a.length){var s=_d(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(vd(t)?[]:{})},Nf[Vd]=function(e,t,n,r){var i=r.digestEffect,o=Sf,a=Object.keys(t),s=vd(t)?Rd(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||Bd(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=Ed,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)}))},Nf[Wd]=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(yd(l))return void Cf(l,n);if(bd(l))return void Zf(e,l,s.context,Sf,Fd(o),!1,n);n(l)}catch(e){n(e,!0)}},Nf.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){pd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},Nf[Qd]=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(bd(i))return i;var o=!1;return Ld((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!yd(i)})}))}catch(e){return Ld((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Fd(t)}(c,o);pf((function(){var t=Zf(e,c,l.context,Sf,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},Nf.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()&&Sd(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(vd(t)){if(0===t.length)return void n([]);var a=_d(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},Nf[Jd]=function(e,t,n,r){var i=r.task;t===ad?jf(i):vd(t)?t.forEach(jf):jf(t),n()},Nf[Xd]=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)}},Nf.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=Tf(t.buffer),o=wf(r),a=function t(n){Mf(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)},Nf[Kd]=function(e,t,n,r){n(r.task.isCancelled())},Nf.FLUSH=function(e,t,n){t.flush(n)},Nf.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},Nf.SET_CONTEXT=function(e,t,n,r){var i=r.task;Nd(i.context,t),n()},Nf);function Lf(e,t){return e+"?"+t}function Of(e){var t=e.name,n=e.location;return n?t+" "+Lf(n.fileName,n.lineNumber):t}function Rf(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 Pf=null,zf=[],Uf=function(e){e.crashedEffect=Pf,zf.push(e)},Bf=function(){Pf=null,zf.length=0},_f=function(e){Pf=e},Ff=function(){var e,t,n=zf[0],r=zf.slice(1),i=n.crashedEffect?(e=n.crashedEffect,(t=Gd(e))?t.code+" "+Lf(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Of(n.meta)+(i?" \n when executing effect "+i:"")].concat(r.map((function(e){return" created by "+Of(e.meta)})),[Rf(zf)]).join("\n")};function Gf(e,t,n,r,i,o,a){var s;void 0===a&&(a=Ed);var l,c,u=0,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name}))),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(Sd(i,t),t.cont=Ed,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=Ed,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,0,g);function g(t,n){if(n){if(u=2,Uf({meta:i,cancelledTasks:f}),m.isRoot){var r=Ff();Bf(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===ld?u=1:1!==u&&(u=3),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={})[sd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){0===u&&(u=1,h.cancelAll(),g(ld,!1))},s.cont=a,s.end=g,s.setContext=function(e){Nd(p,e)},s.toPromise=function(){return d||(d=lf(),2===u?d.reject(c):0!==u&&d.resolve(l)),d.promise},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return m}function Zf(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){yd(t)?Cf(t,r):bd(t)?Zf(e,t,c.context,n,i,!1,r):t&&t[nd]?(0,Df[t.type])(e,t.payload,r,u):r(t)}));d.cancel=Ed;var l={meta:i,cancel:function(){0===l.status&&(l.status=1,d(ld))},status:0},c=Gf(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),Bf()):Ud(e)?(l.status=1,d.cancel(),i=gd(t.return)?t.return(ld):{done:!0,value:ld}):i=zd(e)?gd(t.return)?t.return():{done:!0}:t.next(e),i.done?(1!==l.status&&(l.status=3),l.cont(i.value)):f(i.value,r,d)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=kf();function l(n,i){o||(o=!0,r.cancel=Ed,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&_f(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=Ed,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=Ed,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Hf(e,t){for(var n=e.channel,r=void 0===n?Ef():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?Od: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),v=kf();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Ed,l.effectTriggered=l.effectTriggered||Ed,l.effectResolved=l.effectResolved||Ed,l.effectRejected=l.effectRejected||Ed,l.effectCancelled=l.effectCancelled||Ed,l.actionDispatched=l.actionDispatched||Ed,l.rootSagaStarted({effectId:v,saga:t,args:p})),c){var y=Zd.apply(void 0,c);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=Cd;var b={channel:r,dispatch:Pd(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return pf((function(){var e=Zf(b,m,s,v,Fd(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}const qf=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?Ef():o,s=n.sagaMonitor,l=fd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Hf.bind(null,dd({},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){Nd(i,e)},c};var Yf=function(e){return{done:!0,value:e}},Vf={};function Wf(e){return xd(e)?"channel":wd(e)?String(e):gd(e)?e.name:String(e)}function Qf(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Vf)return Yf(t);if(n&&!i)throw a=Vf,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===Vf?Yf(t):o}return Ld(s,(function(e){return s(null,e)}),n)}function Jf(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:ef(e)},s=function(e){return o=e};return Qf({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:of.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Wf(e)+", "+t.name+")")}function Xf(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:ef(e)},l=function(e){return{done:!1,value:of.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:af(e)}},u=function(e){return o=e},d=function(e){return a=e};return Qf({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("+Wf(e)+", "+t.name+")")}const Kf=function(e,t){return Un(Fu(e,t),1)};function $f(e,t){return function(e){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 ep(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=Kf(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"dnd-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 tp(e,t){return Kf([$f,ep],(n=>n(e,t)))}const np={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function rp(e,t){const n=new Set(e);return n.add(t),n}const ip=e=>(0,Jl.action)("SAVE_ANSWER",e),op=new Map;function*ap(e,t){const n=e.payload;try{yield sf(1e3),yield rf(t.saveAnswer,n),yield tf((e=>(0,Jl.action)("SAVE_ANSWER_SUCCEEDED",e))(n))}catch(e){yield tf(((e,t)=>(0,Jl.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0))(n,e))}op.delete(n.questionId)}function*sp(e){for(;;){const t=yield ef("SAVE_ANSWER"),n=op.get(t.payload.questionId);n&&(yield af(n));const r=yield of(ap,t,e);op.set(t.payload.questionId,r)}}function*lp(e){for(;e.selectAnswerVersion;){const t=yield ef("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield rf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield rf(e.selectAnswerVersion,n,r);t&&(yield tf(ip(t)),e.logActivity&&(yield rf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*cp(e){yield of(sp,e),yield of(lp,e)}const up=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?Nn(n,s,l):kn(n,s,l)}return n};var dp=Object.prototype.hasOwnProperty;const fp=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&&dp.call(e,r))&&n.push(r);return n},pp=function(e){return de(e)?re(e,!0):fp(e)};var hp="object"==typeof exports&&exports&&!exports.nodeType&&exports,gp=hp&&"object"==typeof module&&module&&!module.nodeType&&module,mp=gp&&gp.exports===hp?T.Buffer:void 0,vp=mp?mp.allocUnsafe:void 0;const yp=ae(Object.getPrototypeOf,Object),bp=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rn(t,uu(e)),e=yp(e);return t}:au,Ip=function(e){return ou(e,pp,bp)};var xp=Object.prototype.hasOwnProperty;const wp=function(e){var t=new e.constructor(e.byteLength);return new eu(t).set(new eu(e)),t};var Ap=/\w*$/;var Mp=E?E.prototype:void 0,Tp=Mp?Mp.valueOf:void 0;const Ep=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return wp(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?wp(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?wp(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,Ap.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return Tp?Object(Tp.call(e)):{}}(e)}};var Cp=Object.create;const Np=function(){function e(){}return function(t){if(!ce(t))return{};if(Cp)return Cp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Sp=$&&$.isMap;const kp=Sp?Q(Sp):function(e){return O(e)&&"[object Map]"==Nu(e)};var jp=$&&$.isSet;const Dp=jp?Q(jp):function(e){return O(e)&&"[object Set]"==Nu(e)};var Lp="[object Arguments]",Op="[object Function]",Rp="[object Object]",Pp={};Pp[Lp]=Pp["[object Array]"]=Pp["[object ArrayBuffer]"]=Pp["[object DataView]"]=Pp["[object Boolean]"]=Pp["[object Date]"]=Pp["[object Float32Array]"]=Pp["[object Float64Array]"]=Pp["[object Int8Array]"]=Pp["[object Int16Array]"]=Pp["[object Int32Array]"]=Pp["[object Map]"]=Pp["[object Number]"]=Pp[Rp]=Pp["[object RegExp]"]=Pp["[object Set]"]=Pp["[object String]"]=Pp["[object Symbol]"]=Pp["[object Uint8Array]"]=Pp["[object Uint8ClampedArray]"]=Pp["[object Uint16Array]"]=Pp["[object Uint32Array]"]=!0,Pp["[object Error]"]=Pp[Op]=Pp["[object WeakMap]"]=!1;const zp=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=_(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&xp.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=Nu(t),p=f==Op||"[object GeneratorFunction]"==f;if(H(t))return function(e,t){if(t)return e.slice();var n=e.length,r=vp?vp(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==Rp||f==Lp||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||oe(e)?{}:Np(yp(e))}(t),!l)return c?function(e,t){return up(e,bp(e),t)}(t,function(e,t){return e&&up(t,pp(t),e)}(s,t)):function(e,t){return up(e,uu(e),t)}(t,function(e,t){return e&&up(t,fe(t),e)}(s,t))}else{if(!Pp[f])return o?t:{};s=Ep(t,f,l)}}a||(a=new Wc);var h=a.get(t);if(h)return h;a.set(t,s),Dp(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):kp(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?Ip:du:c?pp:fe)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),kn(s,o,e(i,n,r,o,t,a))})),s},Up=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},Bp=function(e,t){return null==(e=function(e,t){return t.length<2?e:En(e,Up(t,0,-1))}(e,t=Mn(t,e)))||delete e[Tn(jt(t))]};var _p=Function.prototype,Fp=Object.prototype,Gp=_p.toString,Zp=Fp.hasOwnProperty,Hp=Gp.call(Object);const qp=function(e){return function(e){if(!O(e)||"[object Object]"!=L(e))return!1;var t=yp(e);if(null===t)return!0;var n=Zp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Gp.call(n)==Hp}(e)?void 0:e},Yp=qn((function(e,t){var n={};if(null==e)return n;var r=!1;t=bn(t,(function(t){return t=Mn(t,e),r||(r=t.length>1),t})),up(e,Ip(e),n),r&&(n=zp(n,7,qp));for(var i=t.length;i--;)Bp(n,t[i]);return n})),Vp={errors:{},nowPlaying:null,playbackTimes:{}},Wp=e=>function(t,n){void 0===n&&(n=Hd);var r,i=!1,o=Tf(n),a=function(){i||(i=!0,gd(r)&&r(),o.close())};return r=kd(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(Af),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){Mf(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Qp(e,t){const n=yield rf(Wp,e);try{for(;;){const e=yield ef(n);yield tf(t(e))}}finally{(yield $d(Kd,{}))&&n.close()}}function*Jp(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=Cd);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return $d(Xd,{selector:e,args:n})}(Ii(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 rf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield rf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield tf((e=>(0,Jl.action)("PLAY_AUDIO_STARTED",e))(n)),yield rf(Qp,n.duration,Kl),yield tf((0,Jl.action)("PLAY_AUDIO_FINISHED"))):(yield tf(((e,t)=>(0,Jl.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}))(n,r.response)),yield sf(5e3),yield tf((e=>(0,Jl.action)("HIDE_AUDIO_ERROR",e))(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Xp(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 of.apply(void 0,[Jf,e,t].concat(r))}("PLAY_AUDIO",Jp,e)}const Kp={casStatus:"forbidden"},{createAction:$p}=Jl.deprecated,eh=$p("ALLOW_CAS_SUCCEEDED"),th=$p("ALLOW_CAS_CANCELLED"),nh=e=>(0,Jl.action)("UPDATE_CAS_REMAINING",e);function*rh(e,{payload:t}){try{if("allowed"===(yield rf(e.setCasStatus,"allowing")))return void(yield tf(eh()));yield tf((i=t,(0,Jl.action)("ALLOW_CAS_COUNTDOWN",i)));const{cancelled:o}=yield(n={finished:rf(Qp,t,nh),cancelled:ef("ALLOW_CAS_CANCELLED")},r=$d(Vd,n),r.combinator=!0,r);"allowed"===(yield rf(e.setCasStatus,o?"forbidden":"allowed"))?yield tf(eh()):o||(yield tf(th()))}catch(e){console.error(e)}var n,r,i}function*ih(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 of.apply(void 0,[Xf,e,t].concat(r))}("ALLOW_CAS",rh,e)}const oh=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:Ju.INIT}))throw new Error(Vu(12));if(void 0===n(void 0,{type:Ju.PROBE_UNKNOWN_ACTION()}))throw new Error(Vu(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(Vu(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=np,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=rp(e.savedQuestionIds,n),i=rp(e.serverQuestionIds,n),o=tp(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=Vp,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=Yp(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=vi(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=vi(n,"restrictedAudioId",n.src),i=Yp(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=Kp,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*ah(e){yield of(cp,e),yield of(Xp,e),yield of(ih,e)}function sh(e,t,n,r,i){const o=new Set(Fu(n,"questionId")),a=function(e,t){var n={};return t=Bu(t),pe(e,(function(e,r,i){Nn(n,r,t(e,r,i))})),n}(Yu(r,"restrictedAudioId"),"times"),s=Yu(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:tp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=qf(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ku)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Vu(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Ku(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Xu(oh,l,u);return c.run(ah,i),d}const lh=()=>t().createElement(al,{size:"lg",icon:ki,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),ch=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:jr()("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))})),uh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=ar(),a=mi(yi(r)),s=mi(bi(r)),l=pi(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(Pr),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(Xl({src:r,duration:i,audioRef:d}))},t().createElement(al,{className:"e-mrg-r-1",icon:ji,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ql,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),dh=({children:e})=>t().createElement("footer",{className:"e-footer"},e),fh=Ue({}),ph=t().memo((function({renderComponentOverrides:n}){const{root:r}=(0,e.useContext)(Pr),{t:i}=ar(),o=(0,e.useMemo)((()=>fh(n)),[n]),a=Ae(r,"reference").filter((e=>null==Me(e,"external-material")));return a.length>0?t().createElement(Dr,{"aria-labelledby":pr},t().createElement("h2",{id:pr},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":pr},a.map(((e,r)=>{const i=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":zc(i),key:`${i}${r}`},t().createElement(pc,{element:e,renderChildNodes:o,renderComponentOverrides:n}))})))):null})),hh=(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:jr()("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(al,{icon:Ei,size:"lg"})))))})),gh=(0,e.createContext)({}),mh=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&O(t)&&"[object String]"==L(t)?e:e.getAttribute("display-number");var t})),{t:a}=ar(),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=[kt(o),jt(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),vh=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(Pr),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(_r),{t:c}=ar(),{isInSidebar:u}=(0,e.useContext)(gh),d=u&&!!mi((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=Le("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:br(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:jr()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(mh,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},yh=Ue({section:Fr((({element:n,answers:r,renderChildNodes:i,renderComponentOverrides:o})=>{const{displayNumber:a}=(0,e.useContext)(_r),s=Te(n,"section-title");return t().createElement("li",{"data-section-id":a},s&&t().createElement(vh,{element:s,renderChildNodes:i,renderComponentOverrides:o,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":s&&br(a)},i(n,1)))})),question:jc((({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(Pr),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(kc),{t:c}=ar(),{isInSidebar:u}=(0,e.useContext)(gh),d=Te(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=mi((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)),v=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,y=Number(n.getAttribute("max-answers"))||p.length,b=Le("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:jr()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:Gr("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:jr()("numeric-answer-indicator",{error:m,ok:v===y})},v,"/",y),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:Gr(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(al,{size:"sm",icon:Si,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(hh,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))}))})(),bh=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n;return t().memo((()=>{const{root:n,maxScore:o}=(0,e.useContext)(Pr),{t:a}=ar(),s=Ce(n,"max-answers"),l=i&&!!mi((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),c=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==c?void 0:c.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==c?void 0:c.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":Mr,ref:c},!i&&t().createElement("h2",{id:Mr},t().createElement("span",{className:"e-toc-heading"},a("toc-heading"))),r&&s&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:jr()("answer-instructions",{error:l})},l&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},a("max-answers-warning",{count:s})))),t().createElement(gh.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},yh(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},a("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},a("points",{count:o})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},Ih=()=>{const e=vi(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||"23.13.0")},xh=t().memo(Vr((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(Yr);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),wh=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:jr()("e-choice-answer-option e-column e-pointer",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:jr()("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))},Ah=t().memo((({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const o=Ce(n,"question-id"),a=n.getAttribute("display-number"),s=n.getAttribute("direction")||"vertical",l=n.getAttribute("class"),{questionLabelIds:c}=(0,e.useContext)(kc),u=mi((e=>e.answers.answersById[o])),d=pi(),f=(0,e.useCallback)((e=>{d(ip({type:"choice",questionId:o,value:e.currentTarget.value,displayNumber:a}))}),[o,a]);return t().createElement("div",{className:jr()("e-choice-answer e-mrg-b-4",l,{"e-columns":"horizontal"===s}),"data-question-id":o,role:"radiogroup","aria-labelledby":c},t().createElement("span",{className:"anchor",id:`question-nr-${a}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),a="no-answer"===e.getAttribute("type")?"":n,l=null!=u&&u.value===a;return t().createElement(wh,{element:e,onSelect:f,renderChildNodes:r,renderComponentOverrides:i,questionId:o,key:n,direction:s,selected:l,value:a})})))}));var Mh=i(6003);const Th="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Eh(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Ch(e){return"nodeType"in e}function Nh(e){var t,n;return e?Eh(e)?e:Ch(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Sh(e){const{Document:t}=Nh(e);return e instanceof t}function kh(e){return!Eh(e)&&e instanceof Nh(e).HTMLElement}function jh(e){return e instanceof Nh(e).SVGElement}function Dh(e){return e?Eh(e)?e.document:Ch(e)?Sh(e)?e:kh(e)||jh(e)?e.ownerDocument:document:document:document}const Lh=Th?e.useLayoutEffect:e.useEffect;function Oh(t){const n=(0,e.useRef)(t);return Lh((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Rh(t,n){void 0===n&&(n=[t]);const r=(0,e.useRef)(t);return Lh((()=>{r.current!==t&&(r.current=t)}),n),r}function Ph(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function zh(t){const n=Oh(t),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,i]}function Uh(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let Bh={};function _h(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==Bh[t]?0:Bh[t]+1;return Bh[t]=e,t+"-"+e}),[t,n])}function Fh(e){return 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];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const Gh=Fh(1),Zh=Fh(-1);function Hh(e){if(!e)return!1;const{KeyboardEvent:t}=Nh(e.target);return t&&e instanceof t}function qh(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Nh(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Yh=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Yh.Translate.toString(e),Yh.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Vh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Wh(e){return e.matches(Vh)?e:e.querySelector(Vh)}const Qh={display:"none"};function Jh(e){let{id:n,value:r}=e;return t().createElement("div",{id:n,style:Qh},r)}function Xh(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t().createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const Kh=(0,e.createContext)(null),$h={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},eg={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function tg(n){let{announcements:r=eg,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=$h}=n;const{announce:s,announcement:l}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),c=_h("DndLiveRegion"),[u,d]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{d(!0)}),[]),function(t){const n=(0,e.useContext)(Kh);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!u)return null;const f=t().createElement(t().Fragment,null,t().createElement(Jh,{id:o,value:a.draggable}),t().createElement(Xh,{id:c,announcement:l}));return i?(0,Mh.createPortal)(f,i):f}var ng;function rg(){}function ig(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(ng||(ng={}));const og=Object.freeze({x:0,y:0});function ag(e,t){const n=qh(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function sg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function lg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function cg(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function ug(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function dg(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const fg=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=dg(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(lg)};function pg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:og}function hg(e){return 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];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const gg=hg(1);function mg(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const vg={ignoreTransform:!1};function yg(e,t){void 0===t&&(t=vg);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Nh(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=mg(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function bg(e){return yg(e,{ignoreTransform:!0})}function Ig(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(Sh(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!kh(i)||jh(i))return n;if(n.includes(i))return n;const o=Nh(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=Nh(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=Nh(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function xg(e){const[t]=Ig(e,1);return null!=t?t:null}function wg(e){return Th&&e?Eh(e)?e:Ch(e)?Sh(e)||e===Dh(e).scrollingElement?window:kh(e)?e:null:null:null}function Ag(e){return Eh(e)?e.scrollX:e.scrollLeft}function Mg(e){return Eh(e)?e.scrollY:e.scrollTop}function Tg(e){return{x:Ag(e),y:Mg(e)}}var Eg;function Cg(e){return!(!Th||!e)&&e===document.scrollingElement}function Ng(e){const t={x:0,y:0},n=Cg(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Eg||(Eg={}));const Sg={x:.2,y:.2};function kg(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=Sg);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=Ng(e),p={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!c&&o<=t.top+g?(p.y=Eg.Backward,h.y=r*Math.abs((t.top+g-o)/g)):!u&&l>=t.bottom-g&&(p.y=Eg.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-m?(p.x=Eg.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(p.x=Eg.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function jg(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Dg(e){return e.reduce(((e,t)=>Gh(e,Tg(t))),og)}function Lg(e,t){if(void 0===t&&(t=yg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);xg(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Og=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Ag(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Mg(t)),0)}]];class Rg{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Ig(t),r=Dg(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Og)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Pg{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function zg(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Ug,Bg,_g;function Fg(e){e.preventDefault()}function Gg(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Ug||(Ug={})),(_g=Bg||(Bg={})).Space="Space",_g.Down="ArrowDown",_g.Right="ArrowRight",_g.Left="ArrowLeft",_g.Up="ArrowUp",_g.Esc="Escape",_g.Enter="Enter";const Zg={start:[Bg.Space,Bg.Enter],cancel:[Bg.Esc],end:[Bg.Space,Bg.Enter]},Hg=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Bg.Right:return{...n,x:n.x+25};case Bg.Left:return{...n,x:n.x-25};case Bg.Down:return{...n,y:n.y+25};case Bg.Up:return{...n,y:n.y-25}}};class qg{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Pg(Dh(t)),this.windowListeners=new Pg(Nh(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ug.Resize,this.handleCancel),this.windowListeners.add(Ug.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Ug.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Lg(n),t(og)}handleKeyDown(e){if(Hh(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Zg,coordinateGetter:o=Hg,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:og;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=Zh(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=Ng(n),p=jg(n),h={x:Math.min(i===Bg.Right?p.right-p.width/2:p.right,Math.max(i===Bg.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===Bg.Down?p.bottom-p.height/2:p.bottom,Math.max(i===Bg.Down?p.top:p.top+p.height/2,u.y))},g=i===Bg.Right&&!s||i===Bg.Left&&!l,m=i===Bg.Down&&!c||i===Bg.Up&&!o;if(g&&h.x!==u.x){const e=n.scrollLeft+t.x,o=i===Bg.Right&&e<=d.x||i===Bg.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===Bg.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,o=i===Bg.Down&&e<=d.y||i===Bg.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===Bg.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,Gh(Zh(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Yg(e){return Boolean(e&&"distance"in e)}function Vg(e){return Boolean(e&&"delay"in e)}qg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Zg,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class Wg{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Nh(e);return e instanceof t?e:Dh(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Dh(o),this.documentListeners=new Pg(this.document),this.listeners=new Pg(n),this.windowListeners=new Pg(Nh(o)),this.initialCoordinates=null!=(r=qh(i))?r:og,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Ug.Resize,this.handleCancel),this.windowListeners.add(Ug.DragStart,Fg),this.windowListeners.add(Ug.VisibilityChange,this.handleCancel),this.windowListeners.add(Ug.ContextMenu,Fg),this.documentListeners.add(Ug.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Vg(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(Yg(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Ug.Click,Gg,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ug.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=qh(e))?t:og,l=Zh(r,s);if(!n&&a){if(Yg(a)){if(null!=a.tolerance&&zg(l,a.tolerance))return this.handleCancel();if(zg(l,a.distance))return this.handleStart()}return Vg(a)&&zg(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Bg.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Qg={move:{name:"pointermove"},end:{name:"pointerup"}};class Jg extends Wg{constructor(e){const{event:t}=e,n=Dh(t.target);super(e,Qg,n)}}Jg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Xg={move:{name:"mousemove"},end:{name:"mouseup"}};var Kg;!function(e){e[e.RightClick=2]="RightClick"}(Kg||(Kg={})),class extends Wg{constructor(e){super(e,Xg,Dh(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Kg.RightClick&&(null==r||r({event:n}),!0)}}];const $g={move:{name:"touchmove"},end:{name:"touchend"}};var em,tm;(class extends Wg{constructor(e){super(e,$g)}static setup(){return window.addEventListener($g.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener($g.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(em||(em={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(tm||(tm={}));const nm={x:{[Eg.Backward]:!1,[Eg.Forward]:!1},y:{[Eg.Backward]:!1,[Eg.Forward]:!1}};var rm,im;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(rm||(rm={})),function(e){e.Optimized="optimized"}(im||(im={}));const om=new Map;function am(e,t){return Ph((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function sm(t){let{callback:n,disabled:r}=t;const i=Oh(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function lm(e){return new Rg(yg(e),e)}function cm(t,n,r){void 0===n&&(n=lm);const[i,o]=(0,e.useReducer)((function(e){if(!t)return null;var i;if(!1===t.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=n(t);return JSON.stringify(e)===JSON.stringify(o)?e:o}),null),a=function(t){let{callback:n,disabled:r}=t;const i=Oh(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=sm({callback:o});return Lh((()=>{o(),t?(null==s||s.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())}),[t]),i}const um=[];function dm(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==og;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?Zh(t,r.current):og}function fm(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const pm=[];function hm(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return kh(t)?t:e}const gm=[{sensor:Jg,options:{}},{sensor:qg,options:{}}],mm={current:{}},vm={draggable:{measure:bg},droppable:{measure:bg,strategy:rm.WhileDragging,frequency:im.Optimized},dragOverlay:{measure:yg}};class ym extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const bm={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ym,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:rg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:vm,measureDroppableContainers:rg,windowRect:null,measuringScheduled:!1},Im={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:rg,draggableNodes:new Map,over:null,measureDroppableContainers:rg},xm=(0,e.createContext)(Im),wm=(0,e.createContext)(bm);function Am(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ym}}}function Mm(e,t){switch(t.type){case ng.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ng.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ng.DragEnd:case ng.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ng.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new ym(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case ng.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new ym(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case ng.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new ym(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Tm(t){let{disabled:n}=t;const{active:r,activatorEvent:i,draggableNodes:o}=(0,e.useContext)(xm),a=Uh(i),s=Uh(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!i&&a&&null!=s){if(!Hh(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Wh(e);if(t){t.focus();break}}}))}}),[i,n,o,s,a]),null}function Em(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Cm=(0,e.createContext)({...og,scaleX:1,scaleY:1});var Nm;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Nm||(Nm={}));const Sm=(0,e.memo)((function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=gm,collisionDetection:f=fg,measuring:p,modifiers:h,...g}=n;const m=(0,e.useReducer)(Mm,void 0,Am),[v,y]=m,[b,I]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]),r=(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]);return[r,n]}(),[x,w]=(0,e.useState)(Nm.Uninitialized),A=x===Nm.Initialized,{draggable:{active:M,nodes:T,translate:E},droppable:{containers:C}}=v,N=M?T.get(M):null,S=(0,e.useRef)({initial:null,translated:null}),k=(0,e.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==N?void 0:N.data)?e:mm,rect:S}:null}),[M,N]),j=(0,e.useRef)(null),[D,L]=(0,e.useState)(null),[O,R]=(0,e.useState)(null),P=Rh(g,Object.values(g)),z=_h("DndDescribedBy",s),U=(0,e.useMemo)((()=>C.getEnabled()),[C]),B=function(t){return(0,e.useMemo)((()=>({draggable:{...vm.draggable,...null==t?void 0:t.draggable},droppable:{...vm.droppable,...null==t?void 0:t.droppable},dragOverlay:{...vm.dragOverlay,...null==t?void 0:t.dragOverlay}})),[null==t?void 0:t.draggable,null==t?void 0:t.droppable,null==t?void 0:t.dragOverlay])}(p),{droppableRects:_,measureDroppableContainers:F,measuringScheduled:G}=function(t,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=(0,e.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,e.useRef)(t),f=function(){switch(u){case rm.Always:return!1;case rm.BeforeDragging:return r;default:return!r}}(),p=Rh(f),h=(0,e.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,e.useRef)(null),m=Ph((e=>{if(f&&!r)return om;if(!e||e===om||d.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Rg(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,f,c]);return(0,e.useEffect)((()=>{d.current=t}),[t]),(0,e.useEffect)((()=>{f||h()}),[r,f]),(0,e.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout((()=>{h(),g.current=null}),l))}),[l,f,h,...i]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(U,{dragging:A,dependencies:[E.x,E.y],config:B.droppable}),Z=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Ph((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(T,M),H=(0,e.useMemo)((()=>O?qh(O):null),[O]),q=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=A&&!e&&!t;return"object"==typeof c?{...c,enabled:n}:{enabled:n}}(),Y=function(e,t){return am(e,t)}(Z,B.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=t;const a=(0,e.useRef)(!1),{x:s,y:l}="boolean"==typeof o?{x:o,y:o}:o;Lh((()=>{if(!s&&!l||!n)return void(a.current=!1);if(a.current||!i)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=pg(r(e),i);if(s||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=xg(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,s,l,i,r])}({activeNode:M?T.get(M):null,config:q.layoutShiftCompensation,initialRect:Y,measure:B.draggable.measure});const V=cm(Z,B.draggable.measure,Y),W=cm(Z?Z.parentElement:null),Q=(0,e.useRef)({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:_,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),J=C.getNodeFor(null==(r=Q.current.over)?void 0:r.id),X=function(t){let{measure:n}=t;const[r,i]=(0,e.useState)(null),o=sm({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(kh(t)){i((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=hm(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),i(t?n(t):null)}),[n,o]),[s,l]=zh(a);return(0,e.useMemo)((()=>({nodeRef:s,rect:r,setRef:l})),[r,s,l])}({measure:B.dragOverlay.measure}),K=null!=(i=X.nodeRef.current)?i:Z,$=A?null!=(o=X.rect)?o:V:null,ee=Boolean(X.nodeRef.current&&X.rect),te=pg(ne=ee?null:V,am(ne));var ne;const re=fm(K?Nh(K):null),ie=function(t){const n=(0,e.useRef)(t),r=Ph((e=>t?e&&e!==um&&t&&n.current&&t.parentNode===n.current.parentNode?e:Ig(t):um),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(A?null!=J?J:Z:null),oe=function(t,n){void 0===n&&(n=yg);const[r]=t,i=fm(r?Nh(r):null),[o,a]=(0,e.useReducer)((function(){return t.length?t.map((e=>Cg(e)?i:new Rg(n(e),e))):pm}),pm),s=sm({callback:a});return t.length>0&&o===pm&&a(),Lh((()=>{t.length?t.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),a())}),[t]),o}(ie),ae=Em(h,{transform:{x:E.x-te.x,y:E.y-te.y,scaleX:1,scaleY:1},activatorEvent:O,active:k,activeNodeRect:V,containerNodeRect:W,draggingNodeRect:$,over:Q.current.over,overlayNodeRect:X.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:re}),se=H?Gh(H,E):null,le=function(t){const[n,r]=(0,e.useState)(null),i=(0,e.useRef)(t),o=(0,e.useCallback)((e=>{const t=wg(e.target);t&&r((e=>e?(e.set(t,Tg(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=i.current;if(t!==e){n(e);const a=t.map((e=>{const t=wg(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,Tg(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),i.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=wg(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>Gh(e,t)),og):Dg(t):og),[t,n])}(ie),ce=dm(le),ue=dm(le,[V]),de=Gh(ae,ce),fe=$?gg($,ae):null,pe=k&&fe?f({active:k,collisionRect:fe,droppableRects:_,droppableContainers:U,pointerCoordinates:se}):null,he=ug(pe,"id"),[ge,me]=(0,e.useState)(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ee?ae:Gh(ae,ue),null!=(a=null==ge?void 0:ge.rect)?a:null,V),ye=(0,e.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==j.current)return;const i=T.get(j.current);if(!i)return;const o=e.nativeEvent,a=new n({active:j.current,activeNode:i,event:o,options:r,context:Q,onStart(e){const t=j.current;if(null==t)return;const n=T.get(t);if(!n)return;const{onDragStart:r}=P.current,i={active:{id:t,data:n.data,rect:S}};(0,Mh.unstable_batchedUpdates)((()=>{null==r||r(i),w(Nm.Initializing),y({type:ng.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){y({type:ng.DragMove,coordinates:e})},onEnd:s(ng.DragEnd),onCancel:s(ng.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Q.current;let a=null;if(t&&i){const{cancelDrop:s}=P.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===ng.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=ng.DragCancel)}j.current=null,(0,Mh.unstable_batchedUpdates)((()=>{y({type:e}),w(Nm.Uninitialized),me(null),L(null),R(null);const t=e===ng.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=P.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,Mh.unstable_batchedUpdates)((()=>{L(a),R(e.nativeEvent)}))}),[T]),be=(0,e.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=T.get(r);if(null!==j.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},j.current=r,ye(n,t))}),[T,ye]),Ie=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(d,be);!function(t){(0,e.useEffect)((()=>{if(!Th)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(d),Lh((()=>{V&&x===Nm.Initializing&&w(Nm.Initialized)}),[V,x]),(0,e.useEffect)((()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:n,collisions:r,over:i}=Q.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:i};(0,Mh.unstable_batchedUpdates)((()=>{null==e||e(o),b({type:"onDragMove",event:o})}))}),[de.x,de.y]),(0,e.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Q.current;if(!e||null==j.current||!t||!i)return;const{onDragOver:o}=P.current,a=r.get(he),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,Mh.unstable_batchedUpdates)((()=>{me(s),null==o||o(l),b({type:"onDragOver",event:l})}))}),[he]),Lh((()=>{Q.current={activatorEvent:O,active:k,activeNode:Z,collisionRect:fe,collisions:pe,droppableRects:_,draggableNodes:T,draggingNode:K,draggingNodeRect:$,droppableContainers:C,over:ge,scrollableAncestors:ie,scrollAdjustedTranslate:de},S.current={initial:$,translated:fe}}),[k,Z,pe,fe,T,K,$,_,C,ge,ie,de]),function(t){let{acceleration:n,activator:r=em.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=tm.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=t;const h=function(e){let{delta:t,disabled:n}=e;const r=Uh(t);return Ph((e=>{if(n||!r||!e)return nm;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[Eg.Backward]:e.x[Eg.Backward]||-1===i,[Eg.Forward]:e.x[Eg.Forward]||1===i},y:{[Eg.Backward]:e.y[Eg.Backward]||-1===o,[Eg.Forward]:e.y[Eg.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!a}),[g,m]=function(){const t=(0,e.useRef)(null),n=(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]);return[n,(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),v=(0,e.useRef)({x:0,y:0}),y=(0,e.useRef)({x:0,y:0}),b=(0,e.useMemo)((()=>{switch(r){case em.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case em.DraggableRect:return o}}),[r,o,c]),I=(0,e.useRef)(null),x=(0,e.useCallback)((()=>{const e=I.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),w=(0,e.useMemo)((()=>l===tm.TreeOrder?[...u].reverse():u),[l,u]);(0,e.useEffect)((()=>{if(a&&u.length&&b){for(const e of w){if(!1===(null==i?void 0:i(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:o,speed:a}=kg(e,r,b,n,p);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),I.current=e,g(x,s),v.current=a,void(y.current=o)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[n,x,i,m,a,s,JSON.stringify(b),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}({...q,delta:E,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const xe=(0,e.useMemo)((()=>({active:k,activeNode:Z,activeNodeRect:V,activatorEvent:O,collisions:pe,containerNodeRect:W,dragOverlay:X,draggableNodes:T,droppableContainers:C,droppableRects:_,over:ge,measureDroppableContainers:F,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:B,measuringScheduled:G,windowRect:re})),[k,Z,V,O,pe,W,X,T,C,_,ge,F,ie,oe,B,G,re]),we=(0,e.useMemo)((()=>({activatorEvent:O,activators:Ie,active:k,activeNodeRect:V,ariaDescribedById:{draggable:z},dispatch:y,draggableNodes:T,over:ge,measureDroppableContainers:F})),[O,Ie,k,V,y,z,T,ge,F]);return t().createElement(Kh.Provider,{value:I},t().createElement(xm.Provider,{value:we},t().createElement(wm.Provider,{value:xe},t().createElement(Cm.Provider,{value:ve},u)),t().createElement(Tm,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t().createElement(tg,{...l,hiddenTextDescribedById:z}))})),km=(0,e.createContext)(null),jm="button";function Dm(){return(0,e.useContext)(wm)}const Lm={timeout:25};function Om(t){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=t;const a=_h("Droppable"),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=(0,e.useContext)(xm),d=(0,e.useRef)({disabled:r}),f=(0,e.useRef)(!1),p=(0,e.useRef)(null),h=(0,e.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Lm,...o},y=Rh(null!=m?m:i),b=sm({callback:(0,e.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null}),v)):f.current=!0}),[v]),disabled:g||!s}),I=(0,e.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))}),[b]),[x,w]=zh(I),A=Rh(n);return(0,e.useEffect)((()=>{b&&x.current&&(b.disconnect(),f.current=!1,b.observe(x.current))}),[x,b]),Lh((()=>(l({type:ng.RegisterDroppable,element:{id:i,key:a,disabled:r,node:x,rect:p,data:A}}),()=>l({type:ng.UnregisterDroppable,key:a,id:i}))),[i]),(0,e.useEffect)((()=>{r!==d.current.disabled&&(l({type:ng.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)}),[i,a,r,l]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===i,node:x,over:c,setNodeRef:w}}function Rm(n){let{animation:r,children:i}=n;const[o,a]=(0,e.useState)(null),[s,l]=(0,e.useState)(null),c=Uh(i);return i||o||!c||a(c),Lh((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(r(t,s)).then((()=>{a(null)})):a(null)}),[r,o,s]),t().createElement(t().Fragment,null,i,o?(0,e.cloneElement)(o,{ref:l}):null)}const Pm={x:0,y:0,scaleX:1,scaleY:1};function zm(e){let{children:n}=e;return t().createElement(xm.Provider,{value:Im},t().createElement(Cm.Provider,{value:Pm},n))}const Um={position:"fixed",touchAction:"none"},Bm=e=>Hh(e)?"transform 250ms ease":void 0,_m=(0,e.forwardRef)(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Bm}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...Um,width:l.width,height:l.height,top:l.top,left:l.left,transform:Yh.Transform.toString(f),transformOrigin:o&&i?ag(i,l):void 0,transition:"function"==typeof d?d(i):d,...c};return t().createElement(r,{className:s,style:p,ref:n},a)})),Fm=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},Gm={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Yh.Transform.toString(t)},{transform:Yh.Transform.toString(n)}]},sideEffects:Fm({styles:{active:{opacity:"0"}}})};let Zm=0;const Hm=t().memo((n=>{let{adjustScale:r=!1,children:i,dropAnimation:o,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=n;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:I,scrollableAncestors:x,scrollableAncestorRects:w,windowRect:A}=Dm(),M=(0,e.useContext)(Cm),T=function(t){return(0,e.useMemo)((()=>{if(null!=t)return Zm++,Zm}),[t])}(null==p?void 0:p.id),E=Em(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:x,scrollableAncestorRects:w,transform:M,windowRect:A}),C=am(h),N=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Oh(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=hm(o);if(!l)return;const{transform:c}=Nh(o).getComputedStyle(o),u=mg(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...Gm,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c=a.rect.left-o.rect.left,u=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c,y:s.y-u,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return Lg(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:u})}))}({config:o,draggableNodes:m,droppableContainers:v,measuringConfiguration:I}),S=C?y.setRef:void 0;return t().createElement(zm,null,t().createElement(Rm,{animation:N},p&&T?t().createElement(_m,{key:T,id:p.id,ref:S,as:c,activatorEvent:f,adjustScale:r,className:u,transition:s,rect:C,style:{zIndex:d,...a},transform:E},i):null))}));function qm(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}const Ym=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=function(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Vm="Sortable",Wm=t().createContext({activeIndex:-1,containerId:Vm,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ym,disabled:{draggable:!1,droppable:!1}});function Qm(n){let{children:r,id:i,items:o,strategy:a=Ym,disabled:s=!1}=n;const{active:l,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f}=Dm(),p=_h(Vm,i),h=Boolean(null!==c.rect),g=(0,e.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),m=null!=l,v=l?g.indexOf(l.id):-1,y=d?g.indexOf(d.id):-1,b=(0,e.useRef)(g),I=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,b.current),x=-1!==y&&-1===v||I,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);Lh((()=>{I&&m&&f(g)}),[I,g,m,f]),(0,e.useEffect)((()=>{b.current=g}),[g]);const A=(0,e.useMemo)((()=>({activeIndex:v,containerId:p,disabled:w,disableTransforms:x,items:g,overIndex:y,useDragOverlay:h,sortedRects:qm(g,u),strategy:a})),[v,p,w.draggable,w.droppable,x,g,y,u,h,a]);return t().createElement(Wm.Provider,{value:A},r)}function Jm(e){return`${jt(e.split("."))}.`}Bg.Down,Bg.Right,Bg.Up,Bg.Left;const Xm=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},Km=t().createContext({}),$m=Rr(Km,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Yu(i,"questionId"),s=function(e,t,n,r){return Xm(e.map((e=>function(e,t,n,r){const i=Xm(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=ev(t,e),o=null==i?void 0:i.options.find((t=>t.id===Number(n.value)&&i.id===e));return null!==(r=null==o?void 0:o.score)&&void 0!==r?r:0})(i,o):(e=>{var t,r;const i=tv(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))))}(Ae(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function ev(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 tv(e,t){return e.find((e=>e.questionId===t))}const nv=()=>{const{gradingStructure:t}=(0,e.useContext)(Km);return void 0===t},rv=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(kc),c=nv(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Km),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=ar();if(c)return null;const h=n.length>1&&r;return t().createElement("span",{className:jr()("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"},h&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),iv=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(kc),{t:s}=ar(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(rv,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))})),ov=({element:e,renderChildNodes:n,style:r,className:i})=>{const o=n(e).length>0,{t:a}=ar();return t().createElement("div",{className:i,style:r},t().createElement("div",{className:"option-content"},o?n(e):t().createElement("i",{style:{color:"grey"}},a("dnd-answers.answer-missing"))))},av=({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const o=Ce(n,"option-id"),{attributes:a,listeners:s,setNodeRef:l,isDragging:c,setActivatorNodeRef:u}=function(t){let{id:n,data:r,disabled:i=!1,attributes:o}=t;const a=_h("Droppable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,e.useContext)(xm),{role:h=jm,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==c?void 0:c.id)===n,y=(0,e.useContext)(v?Cm:km),[b,I]=zh(),[x,w]=zh(),A=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e}),{})),[t,n])}(s,n),M=Rh(r);return Lh((()=>(f.set(n,{id:n,key:a,node:b,activatorNode:x,data:M}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]),{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,e.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!v||h!==jm)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[i,h,m,v,g,d.draggable]),isDragging:v,listeners:i?void 0:A,node:b,over:p,setNodeRef:I,setActivatorNodeRef:w,transform:y}}({id:o}),d={opacity:c?.3:1};return t().createElement("div",{ref:l,className:"e-dnd-answer-option","data-testid":"dnd-answer-option"},t().createElement(ov,{element:n,renderChildNodes:r,renderComponentOverrides:i,style:d}),t().createElement("div",{...s,...a,ref:u,className:"drag-handle"},t().createElement(al,{size:"1x",icon:Ci})))},sv=({renderChildNodes:e,renderComponentOverrides:n,correctIds:r,classes:i=[],questionId:o,page:a,answerOptionElements:s=[]})=>{const l=s.some((e=>we(e,"image"))),c=s.some((e=>we(e,"audio"))),{active:u,isOver:d}=Om({id:o}),{t:f}=ar();return t().createElement("div",{className:jr()(["e-dnd-answer-droppable",...i],{"has-images":l,"has-audio":c,hovered:d}),"data-testid":"dnd-droppable"},null==s?void 0:s.map((i=>{const o=Number(i.getAttribute("option-id")),s=null==r?void 0:r.includes(o);return t().createElement(t().Fragment,{key:i.getAttribute("option-id")},"exam"===a?t().createElement(av,{element:i,renderChildNodes:e,renderComponentOverrides:n,key:o}):t().createElement("div",{className:"e-dnd-answer-option"},t().createElement(ov,{element:i,renderChildNodes:e,renderComponentOverrides:n,key:o,className:r?s?"correct-answer":"wrong-answer":void 0})))})),!s.length&&(u?t().createElement("i",{className:"droppable-drop-here"},f("dnd-answers.drop-here")):t().createElement("i",{className:"droppable-no-answer"},f("dnd-answers.no-answer"))))},lv=({id:e,size:n="small",score:r})=>{const{t:i}=ar(),o="inline"===n?"sup":"span";return t().createElement(o,{className:jr()("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}))},cv=({element:n,renderChildNodes:r,renderComponentOverrides:i,itemIds:o,page:a,answerOptionElements:s})=>{var l,c,u,d;const{t:f}=ar(),p=n.getAttribute("question-id"),h=Number(p),g=n.getAttribute("display-number"),m=Ce(n,"max-score"),v=!!we(n,"image"),y=we(n,"dnd-answer-title"),b=y&&r(y).length>0,{gradingStructure:I,answersByQuestionId:x}=(0,e.useContext)(Km),w=!I,A=ev(I,h),M=null===(l=null==A?void 0:A.options)||void 0===l?void 0:l.filter((e=>e.correct)).map((e=>e.id)),T=null!==(c=null==x?void 0:x[h])&&void 0!==c?c:void 0,E=T&&(null===(d=null===(u=null==A?void 0:A.options)||void 0===u?void 0:u.find((e=>e.id===Number(null==T?void 0:T.value)&&e.correct)))||void 0===d?void 0:d.score)||0,C=Jm(g),{setNodeRef:N,isOver:S}=Om({id:p});return t().createElement(Qm,{id:p,items:o},t().createElement("span",{ref:N},t().createElement("div",{className:jr()("e-dnd-answer",{"no-answer":"results"===a&&!(null==T?void 0:T.value)}),"data-question-id":p,key:p},t().createElement("div",{className:"anchor",id:`question-nr-${g}`}),y&&(b?t().createElement("span",{className:jr()("e-dnd-answer-title",{"has-images":v,hovered:S})},r(y)):t().createElement("i",{style:{color:"grey"}},f("dnd-answers.question-missing"))),t().createElement("div",{className:"connection-line"}),t().createElement(sv,{page:a,answerOptionElements:s,questionId:p,renderChildNodes:r,renderComponentOverrides:i,correctIds:M}),w?m&&t().createElement(lv,{score:m,size:"small"}):t().createElement(iv,{score:(null==T?void 0:T.value)?E:void 0,maxScore:m,displayNumber:C,questionId:h}))))},uv=({items:e,renderChildNodes:n,renderComponentOverrides:r,answerOptionElements:i})=>{const{setNodeRef:o}=Om({id:"root"}),{t:a}=ar();return t().createElement(Qm,{items:e},t().createElement("span",{className:"droppable-title"},a("dnd-answers.all-answer-options")),t().createElement("span",{ref:o},t().createElement(sv,{renderChildNodes:n,renderComponentOverrides:r,questionId:"root",page:"exam",classes:["root"],answerOptionElements:i})))},dv=[Bg.Down,Bg.Right,Bg.Up,Bg.Left],fv=(e,{context:{active:t,droppableRects:n,droppableContainers:r,collisionRect:i}})=>{var o;if(dv.includes(e.code)){if(e.preventDefault(),!t||!i)return;const a=[];r.getEnabled().forEach((r=>{var o;if(!r||(null==r?void 0:r.disabled))return;const s=n.get(r.id);if(!s)return;const l=r.data.current;if(l){const{type:e,children:n}=l;if("container"===e&&Array.isArray(n)&&n.length>0&&"container"!==(null===(o=t.data.current)||void 0===o?void 0:o.type))return}switch(e.code){case Bg.Down:i.top<s.top&&a.push(r);break;case Bg.Up:i.top>s.top&&a.push(r);break;case Bg.Left:if(i.left>=s.left+s.width)return;break;case Bg.Right:i.left+i.width<=s.left&&a.push(r)}}));const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=cg(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=cg(r),a=i.reduce(((e,t,r)=>{return e+(i=n[r],o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)));var i,o}),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(sg)})({active:t,collisionRect:i,droppableRects:n,droppableContainers:a,pointerCoordinates:null}),l=ug(s,"id");if(null!=l){const e=r.get(l),t=null==e?void 0:e.node.current,n=null==e?void 0:e.rect.current;if(t&&n)return"placeholder"===e.id?{x:n.left+(n.width-i.width)/2,y:n.top+(n.height-i.height)/2}:"container"===(null===(o=e.data.current)||void 0===o?void 0:o.type)?{x:n.left+20,y:n.top+74}:{x:n.left,y:n.top}}}};i(4828);const pv=e=>"object"==typeof e&&null!=e&&1===e.nodeType,hv=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gv=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hv(n.overflowY,t)||hv(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},mv=(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,vv=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var yv=function(){return yv=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},yv.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var bv=0;function Iv(){}function xv(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function wv(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 Av(){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 Mv(){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 Tv(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 Ev(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=Cv(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Cv(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?Cv(t?o-1:0,t,n,r):-1}function Nv(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(xv(t,e,n)||r&&xv(t,n.document.activeElement,n))}))}var Sv=wv((function(e){kv(e).textContent=""}),500);function kv(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 jv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Dv=wv((function(e,t){!function(e,t){e&&t&&(kv(t).textContent=e,Sv(t))}(e,t)}),200),Lv="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,Ov="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(bv++):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 Rv(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Pv(t){var n=(0,e.useRef)(t);return n.current=t,n}function zv(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=Tv(e,n.props);var r=t(e,n);return n.props.stateReducer(e,dd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Pv(n),f=(0,e.useCallback)((function(e){return u(dd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=Tv(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"+Rv(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](dd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(dd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Uv={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(!pv(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;pv(h)&&d(h);){if(h=vv(h),h===f){p.push(h);break}null!=h&&h===document.body&&gv(h)&&!gv(document.documentElement)||null!=h&&gv(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:v,scrollY:y}=window,{height:b,width:I,top:x,right:w,bottom:A,left:M}=e.getBoundingClientRect(),{top:T,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-T:"end"===s?A+C:x+b/2-T+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&&A<=m&&w<=g&&x>=i&&A<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),T=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,O="offsetHeight"in t?t.offsetHeight-t.clientHeight-T-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?mv(y,y+m,m,T,C,y+S,y+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:mv(v,v+g,g,h,E,v+k,v+k+I,I),N=Math.max(0,N+y),D=Math.max(0,D+v);else{N="start"===s?S-i-T:"end"===s?S-c+C+O:"nearest"===s?mv(i,c,n,T,C+O,S,S+b,b):S-(i+n/2)+O/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+L/2:"end"===l?k-o+E+L:mv(u,o,r,h,E+L,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+O)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+L)),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 Bv(e,t,n){void 0===n&&(n=jv);var r=e["default"+Rv(t)];return void 0!==r?r:n[t]}function _v(e,t,n){void 0===n&&(n=jv);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Rv(t)];return void 0!==i?i:Bv(e,t,n)}function Fv(e){var t=_v(e,"selectedItem"),n=_v(e,"isOpen"),r=function(e){var t=_v(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=_v(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 Gv(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 Zv(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);Dv(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Dv.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Hv=Iv;function qv(e,t,n){var r;return void 0===n&&(n=!0),dd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&dd({selectedItem:e.items[t],isOpen:Bv(e,"isOpen"),highlightedIndex:Bv(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Yv(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Vv(e){var t=Bv(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Wv=dd({},{environment:Vs().shape({addEventListener:Vs().func.isRequired,removeEventListener:Vs().func.isRequired,document:Vs().shape({createElement:Vs().func.isRequired,getElementById:Vs().func.isRequired,activeElement:Vs().any.isRequired,body:Vs().any.isRequired}).isRequired,Node:Vs().func.isRequired}),itemToString:Vs().func,itemToKey:Vs().func,stateReducer:Vs().func},{getA11yStatusMessage:Vs().func,highlightedIndex:Vs().number,defaultHighlightedIndex:Vs().number,initialHighlightedIndex:Vs().number,isOpen:Vs().bool,defaultIsOpen:Vs().bool,initialIsOpen:Vs().bool,selectedItem:Vs().any,initialSelectedItem:Vs().any,defaultSelectedItem:Vs().any,id:Vs().string,labelId:Vs().string,menuId:Vs().string,getItemId:Vs().func,toggleButtonId:Vs().string,onSelectedItemChange:Vs().func,onHighlightedIndexChange:Vs().func,onStateChange:Vs().func,onIsOpenChange:Vs().func,scrollIntoView:Vs().func});yv(yv({},Wv),{items:Vs().array.isRequired,isItemDisabled:Vs().func});var Qv=yv(yv({},Uv),{isItemDisabled:function(){return!1}}),Jv=Iv,Xv=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:14,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:11,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDownHome:5,ToggleButtonKeyDownPageDown:10,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownSpaceButton:8});function Kv(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case 14:r={isOpen:Bv(o,"isOpen"),highlightedIndex:Vv(o),selectedItem:o.items[t.index]};break;case 3: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 1:r={highlightedIndex:e.isOpen?Ev(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Gv(o,e,1),isOpen:!0};break;case 2:r=e.isOpen&&a?qv(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Ev(e.highlightedIndex,-1,o.items,o.isItemDisabled):Gv(o,e,-1),isOpen:!0};break;case 7:case 8:r=qv(o,e.highlightedIndex,!1);break;case 5:r={highlightedIndex:Cv(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case 6:r={highlightedIndex:Cv(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case 9:r={highlightedIndex:Ev(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case 10:r={highlightedIndex:Ev(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case 4:r={isOpen:!1,highlightedIndex:-1};break;case 11:r=dd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case 19: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:Gv(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Gv(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:Vv(o),isOpen:Bv(o,"isOpen"),selectedItem:Bv(o,"selectedItem"),inputValue:Bv(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return dd({},e,r)}(e,t,Xv)}return dd({},e,r)}var $v=["onClick"],ey=["onMouseLeave","refKey","ref"],ty=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],ny=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function ry(t){void 0===t&&(t={}),Jv(t,ry);var n=dd({},Qv,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=zv(e,t,n,r),o=i[0],a=i[1];return[Tv(o,t),a]}(Kv,n,Fv,Yv),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),v=Ov(n),y=Pv({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[v.getItemId(e)]}),[v]);Zv(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 Lv((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=wv((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Hv({props:n,state:s}),(0,e.useEffect)((function(){_v(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 Iv;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,Nv(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||Nv(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(){y.current.state.isOpen&&l({type:11})}),[l,y]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=Iv;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var A=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:1,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:2,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:5})},End:function(e){e.preventDefault(),l({type:6})},Escape:function(){y.current.state.isOpen&&l({type:4})},Enter:function(e){e.preventDefault(),l({type:y.current.state.isOpen?7:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:9}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:10}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?l({type:3,key:" "}):l({type:8}):l({type:0})}}}),[l,y]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),T=(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:19,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=fd(t,$v);return dd({id:v.labelId,htmlFor:v.toggleButtonId,onClick:Av(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[v]),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=fd(r,ey),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),dd(((n={})[a]=Mv(s,(function(e){h.current=e})),n.id=v.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+v.labelId,n.onMouseLeave=Av(i,(function(){l({type:12})})),n),c)}),[l,w,v]),L=(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=fd(r,ty),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=y.current.state,m=dd(((n={})[c]=Mv(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?v.getItemId(g.highlightedIndex):"",n["aria-controls"]=v.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+v.labelId,n.id=v.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=Av(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:11})})),n),d);return d.disabled||(m.onClick=Av(o,(function(){l({type:0})})),m.onKeyDown=Av(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&&A[t]?A[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:3,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,v,y,x,w,A]),O=(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=fd(n,ny);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=y.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!"),A=w[0],M=w[1],T=b.isItemDisabled(A,M),E=dd(((t={})[u]=Mv(f,(function(e){e&&(g.current[v.getItemId(M)]=e)})),t["aria-disabled"]=T,t["aria-selected"]=A===m.selectedItem,t.id=v.getItemId(M),t.role="option",t),p);return T||(E.onClick=Av(a,(function(){l({type:14,index:M})}))),E.onMouseMove=Av(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:T}))})),E.onMouseDown=Av(s,(function(e){return e.preventDefault()})),E}),[y,v,x,I,l]);return{getToggleButtonProps:L,getLabelProps:j,getMenuProps:D,getItemProps:O,toggleMenu:M,openMenu:E,closeMenu:T,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}ry.stateChangeTypes=Xv,dd({},Wv,{items:Vs().array.isRequired,isItemDisabled:Vs().func,inputValue:Vs().string,defaultInputValue:Vs().string,initialInputValue:Vs().string,inputId:Vs().string,onInputValueChange:Vs().func}),dd({},Uv,{isItemDisabled:function(){return!1}}),Vs().array,Vs().array,Vs().array,Vs().func,Vs().number,Vs().number,Vs().number,Vs().func,Vs().func,Vs().string,Vs().string;const iy=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&&!Lt(a):n(a,s)))var s=a,l=o}return l},oy=function(e,t){return e>t};var ay=i(7767),sy=i.n(ay);const ly=Promise.all([new(sy())("Noto Sans",{weight:300}).load(),new(sy())("Noto Sans",{weight:400}).load(),new(sy())("Noto Sans",{weight:600}).load()]).then((()=>{cy=!0})).catch(Dt);let cy=!1;const uy=!navigator.userAgent.includes("jsdom/"),dy=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=mi((e=>e.answers.answersById[i])),s=pi(),l=n.getAttribute("display-number"),c=a&&a.value&&Te(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)(cy);uy&&(ly.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?iy(e,ge,oy):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:v,questionLabelIds:y}=(0,e.useContext)(kc),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:A,selectedItem:M}=ry({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(ip({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:T}=ar(),E=Ir(n),C=(0,e.useContext)(Lr),N={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:jr()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:jr()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":A}),...x({"aria-describedby":E,"aria-labelledby":y},{suppressRefError:!uy})},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":T.raw("dropdown-answer.label")},be))),t().createElement("span",{className:jr()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(al,{icon:A?Ti:Di}))),t().createElement("span",{...I({className:jr()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":A}),"aria-labelledby":void 0,ref:d},{suppressRefError:!uy})},m.map(((e,n)=>t().createElement("span",{className:jr()("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}),...C?N:{}},t().createElement("span",{className:jr()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":T.raw("dropdown-answer.clear")},be))))))),v.length>1&&t().createElement(lv,{score:o,size:"inline",id:E}))})),fy=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),py=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))})),hy=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(Ur),{examineExam:r}=n,{t:i}=ar();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 gy({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Te(e,"hint"),s=je(e);return t().createElement("p",{className:jr()("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&&Jm(o)," ",r(a))}const my=({element:e,renderChildNodes:n})=>{const r=mi((e=>e.answers.focusedQuestionId)),i=Ae(e,["text-answer","scored-text-answer"]).filter((e=>null!=Te(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(gy,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},vy=(0,e.memo)((function({onClose:n,className:r,children:i}){const o=(0,e.useRef)(null);return(0,e.useEffect)((()=>(o.current&&(o.current.showModal(),document.body.style.overflow="hidden",o.current.addEventListener("close",n)),()=>{var e;null===(e=o.current)||void 0===e||e.close(),document.body.style.overflow=""})),[]),t().createElement("dialog",{ref:o,className:r},i)})),yy=e=>{const{t:n}=ar(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(xy,{...e}):""," ",t().createElement(mh,{...e}))},by=({displayNumber:e,characterCount:n})=>{const{t:r}=ar();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function Iy({validationErrors:e,inExam:n}){return e.length>0?t().createElement("dialog",{open:!0,className:jr()({"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(al,{size:"lg",icon:Oi,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(yy,{...e,key:n}):t().createElement(by,{...e,key:n})})))):null}const xy=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(Pr),i=Te(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Te(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},wy=t().memo((()=>{const e=mi((e=>e.answers.validationErrors));return t().createElement(Iy,{validationErrors:e,inExam:!0})})),Ay=t().memo((function(){const e=mi(wi),{t:n}=ar();return"initial"===e?null:t().createElement("dialog",{open:!0,className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:jr()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),My=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Ty=t().memo(jc((function({element:n,renderChildNodes:r}){const i=mi((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(_r),{displayNumber:a,level:s}=(0,e.useContext)(kc),{examServerApi:l}=(0,e.useContext)(Ur),[c,u]=(0,e.useState)(!1),{t:d}=ar(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`),e||setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10)},p=we(n,"text-answer"),h=p?Ce(p,"question-id"):null;(0,e.useEffect)((()=>{if(c){const e=h?document.querySelector(`[data-question-id="${h}"]`):void 0;null==e||e.focus()}}),[c]);const g=t().createRef(),{addRef:m}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==g?void 0:g.current)&&0===s&&m&&m(g.current)}),[]),o&&"forbidden"!==i?null:t().createElement(My.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:jr()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:g},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement(vy,{className:"full-screen",onClose:()=>f(!1)},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(al,{icon:Ai}),d("close-writing-mode")),r(n),t().createElement(wy,null),t().createElement(Ay,null)):r(n)))}))),Ey=t().memo((function({element:e,renderChildNodes:n}){const r=mr(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Cy=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(kc),c=`h${Math.min(3+a,6)}`,u=gr(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:jr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${zc(i)} `),r(n)," ",t().createElement(lv,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),Ny=({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:jr()("e-progress-bar",i),ref:o},t().createElement("div",{className:jr()("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 Sy(){const{t:e}=ar();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function ky(n){const r=pi(),{t:i}=ar(),{casCountdownDuration:o}=(0,e.useContext)(Ur);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(hy,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,Jl.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(Ny,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(th()),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 jy=t().memo(Fr((function({element:n,renderChildNodes:r}){const i=mi((e=>e.cas),ni),{casForbidden:o,displayNumber:a}=(0,e.useContext)(_r),{sections:s}=(0,e.useContext)(Pr),l=n===jt(s);return t().createElement(Dr,{className:"exam-section","aria-labelledby":hr(a)},r(n),o&&t().createElement(ky,{...i}),l&&t().createElement(Sy,null))}))),Dy=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Ly=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(Pr),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(_r),{t:c}=ar(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ye);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:hr(o),"data-toc-id":`section-${o}`,ref:u,"data-annotation-anchor":`section-title-${o}`},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Oy=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Ry=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Py=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=ar(),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:jr()("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=Te(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));var zy=i(8115),Uy=i.n(zy);class By extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(vi(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(My.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Uy(),{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(Fy,null),t().createElement(al,{icon:Li})))))}}By.contextType=Pr;const _y=By,Fy=()=>{const{t:e}=ar();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Gy=t().memo((({maxLength:e,id:n})=>{const{t:r}=ar();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(lh,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Zy(e){return e.replace(/\s/g,"").length}const Hy=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)(Pr),{questionLabelIds:d,answers:f}=(0,e.useContext)(kc),{examServerApi:p}=(0,e.useContext)(Ur),[h,g]=(0,e.useState)(),m=mi((e=>e.answers.answersById[o])),v=mi((e=>e.answers.supportsAnswerHistory)),y=mi((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=mi((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=pi(),x=(0,e.useRef)(null),w=m&&m.value,A=Ir(n),M=null!=b,T=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${vr(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:Zy(t),displayNumber:a};I(ip(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(/^(\u002D|\u2212)?\d*$/.test(t)){S(t);const e={type:"text",questionId:o,value:t,characterCount:Zy(t),displayNumber:a};I(ip(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:Zy(t),displayNumber:a};I(ip(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),L=(0,e.useCallback)((()=>I((e=>(0,Jl.action)("ANSWER_FOCUSED",e))(o))),[o]),O=(0,e.useCallback)((()=>I((e=>(0,Jl.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Jl.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(Gy,{maxLength:c,id:vr(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(_y,{answer:m,className:jr()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:T,invalid:M,labelledBy:E}),t().createElement(Py,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:y,supportsAnswerHistory:v,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:jr()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:L,onBlur:O,ref:x,"data-question-id":o,lang:T,"aria-describedby":A,"aria-labelledby":E}),f.length>1&&t().createElement(lv,{score:s,size:"inline",id:A}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:jr()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:L,onBlur:O,ref:x,"data-question-id":o,lang:T,"aria-describedby":A,"aria-labelledby":E}),f.length>1&&t().createElement(lv,{score:s,size:"inline",id:A}))}})),qy=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Te(n,"hint"),a=t().createElement(Hy,{...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"},Jm(i)),t().createElement(Ry,null,r(o)),a):a)}));var Yy=i(6660),Vy=i.n(Yy);class Wy 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(Qy,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Qy=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=ar(),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,", "))))))},Jy=Vy().CancelToken;function Xy(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function Ky(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 $y(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(sb,null)))}function eb(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 tb(e,t=50){const n=eb(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 nb(e){return eb(e).replace(/\s/g,"").length}function rb(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 ib extends t().PureComponent{constructor(e){super(e),this.source=Jy.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()}},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 Vy().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(Xy);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Vy().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(vy,{onClose:this.close.bind(this)},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(ab,{close:this.close.bind(this)}),this.state.loading?t().createElement(ob,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(Wy,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:tb(e),minutesSinceAnswer:o,characterCount:nb(e),screenshotCount:rb(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(Ky,{selectedAnswer:e}),t().createElement($y,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const ob=()=>{const{t:e}=ar();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},ab=({close:e})=>{const{t:n}=ar();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")}))},sb=()=>{const{t:e}=ar();return t().createElement("div",null,e("undo.restoreAnswer"))},lb=Ue({attachment:xh,"attachment-link":Hr("link"),"attachment-links":qr("link"),audio:nc,"audio-title":Nr,"audio-group":ch,"audio-test":uh,"choice-answer":Ah,"dnd-answer-container":({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{var o;const a=pi(),[s,l]=(0,e.useState)(),[c,u]=(0,e.useState)({}),[d,f]=(0,e.useState)({}),[p,h]=(0,e.useState)({}),g=mi((e=>e.answers));(0,e.useEffect)((()=>{const e=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),t=Re(n,g.answersById),r=Pe(n),i=e.reduce(((e,t)=>{const n=t.getAttribute("question-id"),r=t.getAttribute("display-number");return{...e,[n]:r}}),{});u(t),f(r),h(i)}),[n]);const m=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(ig(Jg),ig(qg,{coordinateGetter:fv}));function v(e,t){const n=Number(e),r=(null==t?void 0:t.toString())||"",i=p[e];a(ip({type:"choice",questionId:n,value:r,displayNumber:i}))}const y=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),b=null===(o=c.root)||void 0===o?void 0:o.map((e=>d[e]||null)).filter(Boolean);return t().createElement("div",{className:"e-dnd-answer-container"},t().createElement(Sm,{sensors:m,onDragStart:function(e){l(e.active.id)},onDragEnd:function(e){const{optionId:t,questionIdFrom:n,questionIdTo:r}=function(e){const{active:t,over:n}=e,r=t.id,i=function(e){return e in c?e:Object.keys(c).find((t=>c[t].includes(e)))}(r);return{optionId:r,questionIdFrom:i,questionIdTo:null==n?void 0:n.id}}(e);n&&r&&n!==r&&(u((e=>function(e,t,n,r){const i={...e};if(i[t]=i[t].filter((e=>e!==r)),"root"===n)i.root=[r,...i.root];else{if(i[n].length>0){const e=i[n][0];i.root=[...i.root,e]}i[n]=[r]}return i}(e,n,r,t))),"root"!==n&&v(n,""),"root"!==r&&v(r,t),l(null))}},y.map((e=>{var n;const o=e.getAttribute("question-id"),a=null===(n=c[o]||[])||void 0===n?void 0:n.map((e=>(null==d?void 0:d[e])||null)).filter(Boolean),s=c[o]||[];return t().createElement(cv,{key:o,element:e,renderChildNodes:r,renderComponentOverrides:i,itemIds:s,answerOptionElements:a,page:"exam"})})),t().createElement(uv,{items:c.root||[],renderChildNodes:r,renderComponentOverrides:i,answerOptionElements:b}),t().createElement(Hm,{className:"e-dnd-answer-drag-overlay",dropAnimation:{duration:250,easing:"ease-in-out"}},s?t().createElement(av,{element:d[s],renderChildNodes:r,renderComponentOverrides:i}):null)))},"dropdown-answer":dy,"exam-footer":fy,"external-material":ic,file:oc,formula:ac,image:cc,question:Ty,"question-number":Dc,translation:Lc,"question-instruction":Ey,"question-title":Cy,hints:my,references:ph,"scored-text-answer":qy,"scored-text-answers":my,"section-instruction":Dy,section:jy,"section-title":Ly,"text-answer":qy,video:hc,"image-overlay":Sc}),cb=({root:e})=>{const{t:n}=ar();return we(e,"external-material")?null:t().createElement("span",{className:"notification notification--inline"},t().createElement(lh,null),n("no-attachments"))},ub=()=>{const{t:e}=ar();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},db=t().memo(Br(zr((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotationsEnabled:u,renderComponentOverrides:d={}})=>{const{date:f,dateTimeFormatter:p,dayCode:h,examCode:g,language:m,resolveAttachment:v,root:b,subjectLanguage:I}=(0,e.useContext)(Pr),x=(0,e.useMemo)((()=>lb(d)),[d]),w=Te(b,"exam-title"),A=Te(b,"exam-instruction"),M=Te(b,"table-of-contents"),T=Te(b,"external-material"),E=b.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=Er((()=>sh(Gc(n),r,i,o,a))),S=Er((()=>bh({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=Er((()=>bh({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=Er((()=>or(m,g,h)));(0,e.useEffect)(sr(j,m)),(0,e.useEffect)(Tr,[]);const[D,L]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(O),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const O=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(si,{store:N},t().createElement(Or,{annotationsEnabled:u},t().createElement(ye.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||L((t=>[...t,e]))}}},t().createElement(y,{i18n:j},t().createElement("main",{className:"e-exam",lang:I,"aria-labelledby":fr,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:v(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:x,renderComponentOverrides:d})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Oy,{studentName:s}),t().createElement(Dr,{"aria-labelledby":fr},w&&t().createElement(Cr,{id:fr},x(w)),f&&t().createElement("p",null,t().createElement("strong",null,p.format(f))),t().createElement(cb,{root:b}),A&&t().createElement(py,{element:A,renderChildNodes:x,renderComponentOverrides:d}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:x,renderComponentOverrides:d})),T&&t().createElement(ic,{element:T,renderChildNodes:x,renderComponentOverrides:d,forceRender:!0})),x(b),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(hy,null),t().createElement(ub,null))))),(U||z)&&t().createElement(dh,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(Ih,null))),t().createElement(wy,null),t().createElement(Ay,null),l&&z&&t().createElement(ib,{...c}))))))})))),fb=e=>t().memo((function({element:t,children:n}){return e(t)?n:null})),pb=t().createContext({}),hb=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(pb),{displayNumber:o}=(0,e.useContext)(kc);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))},gb=({element:n,renderChildNodes:r,renderComponentOverrides:i})=>{const{answers:o}=(0,e.useContext)(kc),a=Te(n,"answer-grading-instruction"),s=Ce(n,"max-length"),l=t().createElement(t().Fragment,null,null!=s&&t().createElement(Gy,{maxLength:s}),t().createElement("ul",null,r(n)),a&&t().createElement(hb,{element:a,renderChildNodes:r,renderComponentOverrides:i}));if(1===o.length)return l;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Te(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(lv,{score:i})),l)}},mb=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=ar();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},vb=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),yb=jc((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(kc);return t().createElement("div",{className:jr()("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))})),bb=({element:e,renderChildNodes:n})=>{const r=Te(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=ar(),o=Te(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 Me(e,"dnd-answer")?"[Audio]":null},Ib=Fr((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(_r);return t().createElement(Dr,{className:"e-grading-instruction-section","aria-labelledby":hr(i)},r(n))})),xb=({EditorComponent:e,children:n})=>t().createElement(pb.Provider,{value:{EditorComponent:e}},n),wb=({element:n,renderChildNodes:r,renderComponentOverrides:i,answerOptionsById:o})=>{var a;const s=Number(n.getAttribute("question-id")),{t:l}=ar(),{gradingStructure:c}=(0,e.useContext)(Km),u=ev(c,s),d=null===(a=null==u?void 0:u.options)||void 0===a?void 0:a.filter((e=>e.correct)).map((e=>e.id)),f=null==d?void 0:d.map((e=>(null==o?void 0:o[e])||null)).filter(Boolean);return t().createElement(t().Fragment,null,t().createElement("span",{className:"droppable-title align-right"},l("dnd-answers.correct-answers")),t().createElement(sv,{renderChildNodes:r,renderComponentOverrides:i,answerOptionElements:f,correctIds:d,questionId:s,page:"results",classes:["correct-answers"]}))},Ab=({element:n,renderChildNodes:r,renderComponentOverrides:i,page:o})=>{const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Km),l=Ae(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),c=Pe(n),u="results"===o?Re(n,a):(e=>{const t=Ae(e,"dnd-answer-option").reduce(((e,t)=>{const n=t.getAttribute("for-question-id"),r=t.getAttribute("option-id");if(!n)return e;const i=e[n]||[];return{...e,[n]:i.concat(r)}}),{});return t})(n);return t().createElement("div",{className:"e-dnd-answer-container"},l.map((e=>{var n;const a=e.getAttribute("question-id"),l=u[a]||[],d=null===(n=u[a]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean);return t().createElement(t().Fragment,{key:a},t().createElement(cv,{element:e,answerOptionElements:d,renderChildNodes:r,renderComponentOverrides:i,itemIds:l,page:o}),"results"===o&&s&&t().createElement(wb,{element:e,renderChildNodes:r,renderComponentOverrides:i,answerOptionsById:c}))})))},Mb=fb((e=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction","dnd-answer-title","dnd-answer-option"]))),Tb=fb((e=>null==Me(e,["external-material"]))),Eb=Ue({"accepted-answer":mb,attachment:Sr,"attachment-link":{component:Hr("plain"),wrapper:Tb},"attachment-links":{component:qr("plain"),wrapper:Tb},audio:bb,"audio-group":Sr,"choice-answer":gb,"choice-answer-option":mb,"dropdown-answer":gb,"dropdown-answer-option":mb,"dnd-answer-container":e=>t().createElement(Ab,{...e,page:"grading-instructions"}),"external-material":Sr,file:{component:oc,wrapper:Mb},formula:{component:ac,wrapper:Mb},hints:Sr,image:{component:cc,wrapper:Mb},question:yb,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(kc),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:jr()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${zc(i)} `),r(n)," ",t().createElement(lv,{score:o,size:0===a?"large":"small"})))},"question-instruction":Ey,"question-grading-instruction":hb,"question-number":Dc,translation:Lc,"scored-text-answer":gb,"text-answer":gb,section:Ib,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(Pr),{displayNumber:o}=(0,e.useContext)(_r),{t:a}=ar();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:hr(o),"data-annotation-anchor":`section-title-${o}`},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:bb}),Cb=()=>{const{t:e}=ar();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Nb=t().memo(zr((({doc:n,EditorComponent:r,annotationsEnabled:i,renderComponentOverrides:o={}})=>{const a=n.documentElement,{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,subjectLanguage:f}=(0,e.useContext)(Pr),p=(0,e.useMemo)((()=>Eb(o)),[o]),h=Te(a,"exam-title"),g=Te(a,"exam-grading-instruction"),m=Te(a,"table-of-contents"),v=bh({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=Er((()=>or(d,u,c)));return(0,e.useEffect)(sr(b,d)),(0,e.useEffect)(Tr,[]),t().createElement(Or,{annotationsEnabled:i},t().createElement(xb,{EditorComponent:r},t().createElement(y,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:f},t().createElement(t().StrictMode,null),t().createElement(Dr,{"aria-labelledby":fr},t().createElement(Cr,{id:fr},t().createElement(Cb,null)," ",h&&p(h)),s&&t().createElement("p",null,t().createElement("strong",null,l.format(s))),g&&t().createElement(vb,{element:g,renderChildNodes:p,renderComponentOverrides:o}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(v,{element:m,renderChildNodes:p,renderComponentOverrides:o}))),p(a)))))})));function Sb({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=ar(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:jr()("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:jr()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(Ry,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:jr()("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:jr()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const kb=t().memo((function({element:n,renderChildNodes:r,renderComponentOverrides:i}){var o,a;const{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Km),c=Ce(n,"question-id"),u=s[c],d=n.getAttribute("direction")||"vertical",f=n.getAttribute("class"),p=ev(l,c),h=u&&(null===(a=null===(o=null==p?void 0:p.options)||void 0===o?void 0:o.find((e=>e.id===Number(u.value))))||void 0===a?void 0:a.score),g=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement(iv,{score:h,maxScore:g,questionId:c}),t().createElement("div",{className:jr()("e-choice-answer",f,{"e-columns":"horizontal"===d})},Se(n,(e=>{var n;const o=Ce(e,"option-id"),a=null!=u&&Number(u.value)===o,s=null===(n=null==p?void 0:p.options)||void 0===n?void 0:n.find((e=>e.id===o));return t().createElement(Sb,{element:e,renderChildNodes:r,renderComponentOverrides:i,questionId:c,key:o,direction:d,selected:a,isCorrect:(null==s?void 0:s.correct)||!1})}))))})),jb=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=ar(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Km),{answers:c}=(0,e.useContext)(kc),u=Ce(n,"question-id"),d=s[u],f=Te(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=nv(),h=ev(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")))),v=f&&g.includes(Ce(f,"option-id")),y=Jm(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,y),t().createElement("span",{className:jr()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":v,"e-dropdown-answer__answered--wrong":!v}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Ry,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Ry,null,o("screen-reader.answer-end")),v&&t().createElement(Ry,null,o("screen-reader.correct-answer"))),!p&&!v&&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(iv,{score:b,maxScore:I,displayNumber:y,questionId:u}))}));function Db({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(Lb,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Lb,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Lb,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Lb=({i18nTitleKey:e,annotations:n})=>{const{t:r}=ar();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},Ob=t().memo((function(){const{answers:n}=(0,e.useContext)(kc),{scores:r,singleGrading:i}=(0,e.useContext)(Km),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=tv(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)=>Kf(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?Jm(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(Db,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Rb=t().memo(jc((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Km),{displayNumber:l,level:c}=(0,e.useContext)(kc),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}=ar(),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:jr()("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(Ob,null))}))),Pb=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(kc),c=`h${Math.min(3+o,6)}`,u=nv();return t().createElement(t().Fragment,null,t().createElement(c,{className:jr()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:jr()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${zc(i)} `),r(n)," ",u&&t().createElement(lv,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(lh,null),t().createElement(mh,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),zb=t().memo(Fr((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(_r);return t().createElement(Dr,{"aria-labelledby":hr(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Ub=5;function Bb(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":Gb(e,a,i,l,s,r);break;default:Hb(e,a,i,l,s,r)}}}function _b(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 Fb(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 Gb(e,t,n,r,i,o){const{attachmentIndex:a}=t;return Zb(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function Zb(e,t,n,r,i,o){const a=Fb(e),s=function(){const e=De("mark",{className:jr()("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 _b(e,n),o&&e.appendChild(qb(o,"shape",n.message)),e}();return a.appendChild(s),s}function Hb(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(function(e){return"DIV"===e.nodeName}(f)||l(f)||function(e){return"SUP"===e.nodeName}(f)||function(e){return"BR"===e.nodeName}(f)||!(p>=a)){if(f instanceof HTMLDivElement&&f.childNodes.length>0)return e(f.childNodes[0],p,h);f instanceof Text&&p+u(f)>a&&f.splitText(a-p);const t=function(e){return l(e)?e.childNodes[0]:c(e)}(f);t&&e(t,p+u(f),h)}else{const a=De("mark",{className:jr()("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),u=c(a);l>0&&u?e(u,p+s-l,l):i&&(l>0&&console.error("Bug: the answer seems to be too short for the current set of annotations."),a.appendChild(qb(i,"text",t.message)))}}(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;return null===r||r===e?null: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 qb(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Ub?`${e})`:n,"data-message":n})}const Yb=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=ar(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&Bb(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:jr()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(Ry,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Ry,null,s("screen-reader.answer-end"))),a)})),Vb=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(kc),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Km),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Jm(n.getAttribute("display-number")),d=tv(o,a),f=null==d?void 0:d.autograding;return t().createElement(Yb,{answers:r,displayNumber:u,value:c,score:d},t().createElement(iv,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function Wb({maxScore:e}){const{t:n}=ar();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function Qb({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 Jb({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=ar();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(Xb,{className:jr()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(Xb,{className:"e-result-scorecount-shortcode"},n),t().createElement(Xb,{className:"e-mrg-r-0"},a(r)))}function Xb({className:e,children:n}){return t().createElement("span",{className:jr()("e-mrg-r-1 e-nowrap",e)},n)}function Kb({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function $b(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const eI=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)(kc),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(rv,{...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?$b(e.censoring):[],e.pregrading&&Kb(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(Jb,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(Qb,{shortCode:h})):t().createElement(Wb,{maxScore:r}))})),tI=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=ar(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&Bb(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:jr()("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(Ry,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(Ry,null,o("screen-reader.answer-end")))},nI=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(kc),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Km),{t:s}=ar(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Jm(n.getAttribute("display-number")):void 0,p=tv(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(Gy,{maxLength:m}),t().createElement(eI,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(tI,{type:g,value:d,score:p}),t().createElement(Py,{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(Yb,{answers:i,score:p,displayNumber:f,value:d},t().createElement(eI,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),rI=({onEndSession:e,sessionEnded:n})=>{const{t:r}=ar();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"))))},iI=({duration:e,labelId:n})=>t().createElement("div",{className:"audio e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-pad-1 restricted-audio-player restricted-audio-player--disabled e-columns e-columns--center-v"},t().createElement("button",{className:"restricted-audio-player__play e-column e-column--narrow",disabled:!0,onClick:()=>{}},t().createElement(al,{icon:ji,fixedWidth:!0})),t().createElement("span",{className:"e-column e-text-right e-column"},ec(e))),t().createElement("span",{className:"e-pad-l-2",id:n},t().createElement("em",null,"Ei kuunneltavissa"))),oI=Ue({attachment:Nr,"attachment-link":Hr("plain"),"attachment-links":qr("plain"),"audio-group":Nr,audio:{component:({element:e,renderChildNodes:n,renderComponentOverrides:r})=>{const i=!!Ce(e,"times"),o=Ce(e,"duration"),a=Ar(e);return i?t().createElement(iI,{duration:o,labelId:a}):t().createElement(nc,{element:e,renderChildNodes:n,renderComponentOverrides:r})},wrapper:fb((e=>null!=Me(e,"dnd-answer-container")))},"choice-answer":kb,"dnd-answer-container":e=>t().createElement(Ab,{...e,page:"results"}),"dropdown-answer":jb,formula:ac,question:Rb,hints:Nr,image:{component:cc,wrapper:fb((e=>null!=Me(e,["choice-answer","dnd-answer-container"])))},"question-instruction":Ey,"question-number":Dc,translation:Lc,"question-title":Pb,section:zb,"section-title":Ly,"text-answer":nI,"scored-text-answer":Vb,"scored-text-answers":Nr}),aI=()=>{const{t:e}=ar();return e("examineExam.returnToExam")},sI=()=>{const{t:e}=ar();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 lI(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Km),{t:i}=ar();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 cI=t().memo($m(zr((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a,renderComponentOverrides:s})=>{const{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,resolveAttachment:p,root:h,subjectLanguage:g}=(0,e.useContext)(Pr),{answersByQuestionId:m}=(0,e.useContext)(Km),v=(0,e.useMemo)((()=>oI(s)),[s]),b=Te(h,"exam-title"),I=h.getAttribute("exam-stylesheet"),x=Er((()=>or(f,d,u)));(0,e.useEffect)(sr(x,f)),(0,e.useEffect)(Tr,[]);const w=nv(),A=void 0!==i,M=!w&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(y,{i18n:x},t().createElement("main",{className:jr()("e-exam e-results",{"examine-exam-page":w,"session-ended":o}),lang:g},t().createElement(t().StrictMode,null),I&&t().createElement("link",{rel:"stylesheet",href:p(I)}),!M&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(aI,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},b&&t().createElement(Cr,{id:"title",className:"e-column e-mrg-b-0"},v(b),l&&`, ${c.format(l)}`),!w&&t().createElement(lI,null)),!M&&t().createElement(sI,null),t().createElement(Iy,{validationErrors:tp(Gc(n),m),inExam:!1}),v(h),(A||a)&&t().createElement(rI,{onEndSession:w?()=>{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(dh,null))})))),uI=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 dI=Math.max;const fI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Mc(n);return i<0&&(i=dI(r+i,0)),uI(e,Bu(t),i)};var pI=Math.max,hI=Math.min;const gI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=Mc(n),i=n<0?pI(r+i,0):hI(i,r-1)),uI(e,Bu(t),i,!0)},mI=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Up(e,t,n)},vI=function(e){return e!=e},yI=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):uI(e,vI,n)};var bI=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var II="\\ud800-\\udfff",xI="["+II+"]",wI="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",AI="\\ud83c[\\udffb-\\udfff]",MI="[^"+II+"]",TI="(?:\\ud83c[\\udde6-\\uddff]){2}",EI="[\\ud800-\\udbff][\\udc00-\\udfff]",CI="(?:"+wI+"|"+AI+")?",NI="[\\ufe0e\\ufe0f]?",SI=NI+CI+"(?:\\u200d(?:"+[MI,TI,EI].join("|")+")"+NI+CI+")*",kI="(?:"+[MI+wI+"?",wI,TI,EI,xI].join("|")+")",jI=RegExp(AI+"(?="+AI+")|"+kI+SI,"g");const DI=function(e){return function(e){return bI.test(e)}(e)?function(e){return e.match(jI)||[]}(e):function(e){return e.split("")}(e)};var LI=/^\s+/;const OI=function(e,t,n){if((e=An(e))&&(n||void 0===t))return e.replace(LI,"");if(!e||!(t=wn(t)))return e;var r=DI(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&yI(t,e[n],0)>-1;);return n}(r,DI(t));return mI(r,i).join("")},RI=function(e,t,n){if((e=An(e))&&(n||void 0===t))return e.slice(0,mc(e)+1);if(!e||!(t=wn(t)))return e;var r=DI(e),i=function(e,t){for(var n=e.length;n--&&yI(t,e[n],0)>-1;);return n}(r,DI(t))+1;return mI(r,0,i).join("")};function PI(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Ae(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(zI),Ae(n.documentElement,"reference").forEach((e=>{Ae(e,(()=>!0),!1).forEach(UI)})),n}function zI(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Te(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function UI(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=fI(n,t),i=gI(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=OI(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=RI(n[i].textContent))}function BI({characterCount:e,maxLength:n}){const{t:r}=ar(),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})):"")}const _I=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?Up(e,r?0:o,r?o+1:i):Up(e,r?o+1:0,r?i:o)}(e,Bu(t)):[]},FI=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},GI=function(e,t){return e<t},ZI=function(e,t){return e&&e.length?iy(e,Bu(t),GI):void 0},HI=function(e,t){return e&&e.length?iy(e,Bu(t),oy):void 0},qI=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Lt(e),a=void 0!==t,s=null===t,l=t==t,c=Lt(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},YI=function(e,t,n){t=t.length?bn(t,(function(e){return _(e)?function(t){return En(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=bn(t,Q(Bu)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(_u(e,(function(e,n,i){return{criteria:bn(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=qI(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))},VI=function(e,t,n){if(!ce(n))return!1;var r=typeof t;return!!("number"==r?de(n)&&Y(t,n.length):"string"==r&&t in n)&&tn(n[t],e)},WI=function(e){return Hn(Fn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&VI(e,t[0],t[1])?t=[]:n>2&&VI(t[0],t[1],t[2])&&(t=[t[0]]),YI(e,Un(t,1),[])}));var QI=Hu((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));const JI=QI,XI=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=wc(n))==n?n:0),void 0!==t&&(t=(t=wc(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}(wc(e),t,n)};function KI(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=_I(n,(e=>e!==o));return a+Xm(s.map(ex))}}function $I(e,t,n){return function(e,t,n){const r=ix(e,{startIndex:t,length:n,message:""});return FI(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function ex(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 tx(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 nx(){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 rx(e,t,n){const r=ix(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=ZI(r.overlapping,(e=>e.startIndex)),n=HI(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 WI(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=KI(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 ix(e,t){const n=JI(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 ox(e){return XI(e,0,1)}function ax(e){e.preventDefault(),e.stopPropagation()}function sx(e,t){e.style.display=t?"initial":"none"}function lx(){return matchMedia("(pointer:fine)").matches}const cx=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(Db,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let ux;function dx(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];ux=t.length,t.forEach((e=>{e.complete?setTimeout((()=>fx(e)),0):e.addEventListener("load",(()=>fx(e)))}))}function fx(e){ux--;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 px(n){const r=Er((()=>or(n.language)));return(0,e.useEffect)(sr(r,n.language)),t().createElement(y,{i18n:r},t().createElement(hx,{...n}))}function hx({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,v;const y={start:void 0,element:void 0,img:void 0};let b,I,x,w,A,M=!1;const[T,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0),[S,k]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=Array.from(document.querySelectorAll(".e-grading-answer img[src]")).filter((e=>!e.src.endsWith("/math.svg?latex=")));function t(){E((e=>e+1))}function n(e){console.error("Image failed to load:",e.src),k((e=>e+1)),e.alt="Image failed to load",e.style.border="1px solid red"}return N((null==e?void 0:e.length)||0),E(0),k(0),null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.complete?e.naturalWidth&&e.naturalHeight?t():n(e):(e.addEventListener("load",t),e.addEventListener("error",(()=>n(e)))))})),()=>{null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.removeEventListener("load",t),e.removeEventListener("error",(()=>n(e))))}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(v=l,sx(g.current,!1),sx(p.current,!1),H(v),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>dx(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",_),window.removeEventListener("mousemove",Z)})));const{t:j}=ar(),D=C>0&&T!==C,L=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)y.element||P(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}"]`);P(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&O()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",T,"/",C,")"),L&&t().createElement("span",{className:"failed"},j("grading.some-images-failed"))),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",_);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",ax),y.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=ox((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:ox((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),y.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||nx()&&!a||y.element||P(t)}(e.target)}),t().createElement(BI,{characterCount:r,maxLength:u}),t().createElement(cx,{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?v[b.role][b.index].message=t:v[s]=rx(f.current,{...m,message:t},v[s]||[]),sx(p.current,!1),c(v)}(e)},t().createElement("input",{onFocus:()=>function(){if(!lx()&&f.current){const e={...v};e[s]=rx(f.current,m,v[s]),H(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"},j("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),B()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(x)},onMouseOut:O},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(sx(g.current,!1),U(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),O(),v[b.role].splice(b.index,1),b=void 0,c(v)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function O(){x=setTimeout((()=>{sx(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(x),O()),f.current.removeEventListener("mouseout",R)}function P(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(),tx(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",R)}function z(e,t){b=void 0,U(e,t)}function U(e,t){window.removeEventListener("keydown",q),tx(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",q)}function B(){m=void 0,y.element=void 0,y.img=void 0,M=!1,window.removeEventListener("keydown",q),sx(p.current,!1),H(v)}function _(){var e,t;if(null===(e=y.img)||void 0===e||e.removeEventListener("dragstart",ax),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",_),y.element)return void z(null===(t=y.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&nx()){const e=n.getRangeAt(0),t=KI(f.current,e);if(!t)return;const r=$I(v[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...v};i[s]=rx(f.current,m,v[s]),H(i)}}function F(){lx()||(clearTimeout(A),A=setTimeout(G,500))}function G(){const e=window.getSelection();if(e&&null!==f.current&&nx()){const t=e.getRangeAt(0),n=KI(f.current,t);if(!n)return;const r=$I(v[s],n.startIndex,n.length);M=!0,h.current.value=r,tx(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function Z(e){ax(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=ox((e.clientX-t.left)/t.width),l=ox((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,y.start),y.element?_b(y.element,m):y.element=Zb(y.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(Fb),dx(t)):t.textContent=i,Bb(t,e.pregrading,e.censoring,!1)}function q(e){"Escape"===e.key&&M&&(e.stopPropagation(),B())}}})(),o})()));