@citolab/qti-components 6.9.1-beta.25 → 6.9.1-beta.26
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.
- package/dist/custom-elements.json +51 -51
- package/dist/index.global.js +1 -1
- package/dist/qti-components/index.d.ts +2 -2
- package/dist/qti-components/index.js +30 -30
- package/dist/qti-item/index.d.ts +1 -1
- package/dist/qti-loader/index.d.ts +13 -2
- package/dist/qti-loader/index.js +2 -2
- package/dist/{qti-simple-choice-bOvnZAEz.d.ts → qti-simple-choice-CWJsmgbB.d.ts} +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function t(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function e(t){if(Array.isArray(t))return t}function n(e){if(Array.isArray(e))return t(e)}function r(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function i(t,e,n,r,i,o,a){try{var s=t[o](a);var l=s.value}catch(t){n(t);return}if(s.done){e(l)}else{Promise.resolve(l).then(r,i)}}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(undefined)})}}function a(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function s(t,e,n){if(D()){s=Reflect.construct}else{s=function t(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r);var o=new i;if(n)E(o,n.prototype);return o}}return s.apply(null,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function u(t,e,n){if(e)l(t.prototype,e);if(n)l(t,n);return t}function c(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function d(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){d=Reflect.get}else{d=function t(t,e,n){var r=_(t,e);if(!r)return;var i=Object.getOwnPropertyDescriptor(r,e);if(i.get){return i.get.call(n||t)}return i.value}}return d(t,e,n||t)}function h(t){h=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return h(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)E(t,e)}function f(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function v(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function g(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function y(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(t);!(i=(a=n.next()).done);i=true){r.push(a.value);if(e&&r.length===e)break}}catch(t){o=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}return r}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(){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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))}r.forEach(function(e){c(t,e,n[e])})}return t}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);if(e){r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}n.push.apply(n,r)}return n}function w(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function x(t,e){if(e&&(O(e)==="object"||typeof e==="function")){return e}return r(t)}function C(t,e,n,r){if(typeof Reflect!=="undefined"&&Reflect.set){C=Reflect.set}else{C=function t(t,e,n,r){var i=_(t,e);var o;if(i){o=Object.getOwnPropertyDescriptor(i,e);if(o.set){o.set.call(r,n);return true}else if(!o.writable){return false}}o=Object.getOwnPropertyDescriptor(r,e);if(o){if(!o.writable){return false}o.value=n;Object.defineProperty(r,e,o)}else{c(r,e,n)}return true}}return C(t,e,n,r)}function A(t,e,n,r,i){var o=C(t,e,n,r||t);if(!o&&i){throw new Error("failed to set property")}return n}function E(t,e){E=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return E(t,e)}function S(t,n){return e(t)||y(t,n)||P(t,n)||m()}function _(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=h(t);if(t===null)break}return t}function R(t,e){if(!e){e=t.slice(0)}return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function T(t){return e(t)||g(t)||P(t)||m()}function I(t){return n(t)||g(t)||P(t)||b()}function O(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,n){if(!e)return;if(typeof e==="string")return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}function M(t){var e=typeof Map==="function"?new Map:undefined;M=function t(t){if(t===null||!v(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,h(this).constructor)}n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});return E(n,t)};return M(t)}function D(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function $(t){var e=D();return function n(){var n=h(t),r;if(e){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else{r=n.apply(this,arguments)}return x(this,r)}}function L(t,e){var n,r,i,o,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;r=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(o[0]===6&&a.label<i[1]){a.label=i[1];i=o;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(o);break}if(i[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}function N(){var t=R(["<slot></slot>"]);N=function e(){return t};return t}function V(){var t=R(["<slot></slot>"]);V=function e(){return t};return t}function H(){var t=R(['<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n<xsl:output method="html" version="5.0" encoding="UTF-8" indent="yes" />\n <xsl:template match="@*|node()">\n <xsl:copy>\n <xsl:apply-templates select="@*|node()"/>\n </xsl:copy>\n </xsl:template>\n\n <!-- remove existing namespaces -->\n <xsl:template match="*">\n <!-- remove element prefix -->\n <xsl:element name="{local-name()}">\n <!-- process attributes -->\n <xsl:for-each select="@*">\n <!-- remove attribute prefix -->\n <xsl:attribute name="{local-name()}">\n <xsl:value-of select="."/>\n </xsl:attribute>\n </xsl:for-each>\n <xsl:apply-templates/>\n </xsl:element>\n</xsl:template>\n</xsl:stylesheet>']);H=function e(){return t};return t}function z(){var t=R(["\n :host {\n display: block;\n }\n"]);z=function e(){return t};return t}function U(){var t=R(['<slot name="qti-rubric-block"></slot><slot></slot>']);U=function e(){return t};return t}function j(){var t=R(["<slot></slot>"]);j=function e(){return t};return t}function B(){var t=R(["<slot></slot>"]);B=function e(){return t};return t}function Q(){var t=R(["",""]);Q=function e(){return t};return t}function F(){var t=R(["\n :host {\n display: none;\n }\n "]);F=function e(){return t};return t}function W(){var t=R(["",""]);W=function e(){return t};return t}function Y(){var t=R(["\n :host {\n display: none;\n }\n "]);Y=function e(){return t};return t}function X(){var t=R(["<slot></slot>"]);X=function e(){return t};return t}function Z(){var t=R(["<slot></slot>"]);Z=function e(){return t};return t}function G(){var t=R(["\n :host {\n display: block;\n }\n "]);G=function e(){return t};return t}function K(){var t=R([' <slot part="feedback" class="feedback ','"></slot> ']);K=function e(){return t};return t}function J(){var t=R(["\n :host {\n display: block;\n }\n .on {\n display: block;\n }\n .off {\n display: none;\n }\n "]);J=function e(){return t};return t}function tt(){var t=R([' <slot part="feedback" class="','"></slot> ']);tt=function e(){return t};return t}function te(){var t=R(["\n .on {\n display: inline-block;\n }\n .off {\n display: none;\n }\n "]);te=function e(){return t};return t}function tn(){var t=R([' <slot part="feedback" class="','"></slot> ']);tn=function e(){return t};return t}function tr(){var t=R(["\n .on {\n display: inline-block;\n }\n .off {\n display: none;\n }\n "]);tr=function e(){return t};return t}function ti(){var t=R(["\n /* PK: display host as block, else design will be collapsed */\n :host {\n display: block;\n }\n textarea {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border: 0;\n }\n "]);ti=function e(){return t};return t}function to(){var t=R(['<slot name="prompt"></slot\n ><textarea\n part="textarea"\n ','\n spellcheck="false"\n autocomplete="off"\n @keydown="','"\n @keyup="','"\n @change="','"\n @blur="','"\n placeholder="','"\n maxlength="','"\n pattern="','"\n ?disabled="','"\n ?readonly="','"\n .value=',"\n ></textarea>"]);to=function e(){return t};return t}function ta(){var t=R(["\n [part='correct'] {\n position: absolute;\n width: 100%;\n }\n "]);ta=function e(){return t};return t}function ts(){var t=R(['\n <input\n part="input"\n spellcheck="false"\n autocomplete="off"\n @blur="','"\n @keydown="','"\n @keyup="','"\n @change="','"\n type="','"\n placeholder="','"\n .value="','"\n size="','"\n pattern="','"\n ?disabled="','"\n ?readonly="','"\n />\n <div part="correct">',"</div>\n "]);ts=function e(){return t};return t}function tl(){var t=R(["<slot></slot>"]);tl=function e(){return t};return t}function tu(){var t=R(["\n :host {\n display: inline-block;\n }\n slot {\n display: flex;\n flex-direction: column;\n }\n [role='menu'] {\n position: absolute;\n z-index: 1000;\n }\n .anchor {\n /* anchor-name: --infobox; */\n width: fit-content;\n }\n\n .positionedElement {\n position: absolute;\n /* position-anchor: --infobox; */\n /* top: anchor(bottom); */\n }\n "]);tu=function e(){return t};return t}function tc(){var t=R(['\n <option value="','" ?selected="','">',"</option>\n "]);tc=function e(){return t};return t}function td(){var t=R(['\n <select part="select" @change="','" ?disabled="','" ?readonly="','">\n ',"\n </select>\n\n ","\n "]);td=function e(){return t};return t}function th(){var t=R(["\n [part='slot'] {\n /* display: flex; */\n /* flex-direction: column; */\n /* gap: var(--qti-gap-size); */\n --choice-interactions-stacking: 1;\n display: grid; /* grid */\n grid-template-columns: repeat(var(--choice-interactions-stacking), minmax(0, 1fr)); /* grid-cols-2 */\n gap: var(--qti-gap-size); /* gap-4 */\n /* qti-prompt {\n grid-column: span var(--choice-interactions-stacking) / span var(--choice-interactions-stacking); \n } */\n }\n\n :host(.qti-choices-stacking-1) [part='slot'] {\n --choice-interactions-stacking: 1;\n }\n\n :host(.qti-choices-stacking-2) [part='slot'] {\n --choice-interactions-stacking: 2;\n }\n :host(.qti-choices-stacking-3) [part='slot'] {\n --choice-interactions-stacking: 3;\n }\n :host(.qti-choices-stacking-4) [part='slot'] {\n --choice-interactions-stacking: 4;\n }\n :host(.qti-choices-stacking-5) [part='slot'] {\n --choice-interactions-stacking: 5;\n }\n :host()[part='slot'] {\n &.qti-orientation-horizontal {\n /* is the default layout */\n }\n }\n :host()[part='slot'] {\n &[orientation='horizontal'] {\n flex-direction: row;\n }\n }\n"]);th=function e(){return t};return t}function tp(){var t=R([' <slot name="prompt"></slot><slot part="slot"></slot>']);tp=function e(){return t};return t}function tf(){var t=R(["<slot></slot>"]);tf=function e(){return t};return t}function tv(){var t=R(["\n :host {\n display: none;\n }\n "]);tv=function e(){return t};return t}function tg(){var t=R(["<slot></slot>"]);tg=function e(){return t};return t}function ty(){var t=R(["\n :host {\n display: none;\n }\n "]);ty=function e(){return t};return t}function tm(){var t=R(["<slot></slot>"]);tm=function e(){return t};return t}function tb(){var t=R(["<slot></slot>"]);tb=function e(){return t};return t}function tq(){var t=R(["<slot></slot>"]);tq=function e(){return t};return t}function tk(){var t=R(["",""]);tk=function e(){return t};return t}function tw(){var t=R(["<pre>","</pre>\n <slot></slot>"]);tw=function e(){return t};return t}function tx(){var t=R(["\n slot {\n display: none;\n }\n "]);tx=function e(){return t};return t}function tC(){var t=R(["",""]);tC=function e(){return t};return t}function tA(){var t=R(["",""]);tA=function e(){return t};return t}function tE(){var t=R(['<div style="color:red">\n <h1>Error</h1>\n ',"\n </div>"]);tE=function e(){return t};return t}function tS(){var t=R(["<slot></slot>",""]);tS=function e(){return t};return t}function t_(){var t=R(["\n :host {\n display: block; /* necessary to calculate scaling position */\n }\n slot[name='qti-simple-associable-choice'] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n }\n\n :host::part(associables-container) {\n display: flex;\n justify-content: space-between;\n background: linear-gradient(\n 180deg,\n rgb(0 0 0 / 0%) calc(50% - 1px),\n var(--qti-border-color-gray) calc(50%),\n rgb(0 0 0 / 0%) calc(50% + 1px)\n );\n }\n"]);t_=function e(){return t};return t}function tR(){var t=R(['<div part="associables-container">\n <div name="left','" part="drop-list" class="dl" identifier="droplist','_left"></div>\n <div name="right','" part="drop-list" class="dl" identifier="droplist','_right"></div>\n </div>']);tR=function e(){return t};return t}function tT(){var t=R([' <slot name="prompt"></slot>\n <slot name="qti-simple-associable-choice"></slot>\n <div part="drop-container">\n ',"\n </div>"]);tT=function e(){return t};return t}function tI(){var t=R(['<div style="color:red">\n <h1>Error</h1>\n ',"\n </div>"]);tI=function e(){return t};return t}function tO(){var t=R(["<iframe\n width=","\n height=",'\n frameborder="0"\n title="pciContainer"\n id="pciContainer"\n >\n </iframe>\n ',""]);tO=function e(){return t};return t}function tP(){var t=R(["<button ?disabled=",' part="button" @click=',">","</button>"]);tP=function e(){return t};return t}function tM(){var t=R(['<slot name="prompt"> </slot><slot part="drags" name="qti-gap-text"></slot> <slot part="drops"></slot>']);tM=function e(){return t};return t}function tD(){var t=R(["\n :host {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: 0.5rem;\n }\n\n :host(.qti-choices-top) {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) {\n flex-direction: row;\n }\n :host(.qti-choices-right) {\n flex-direction: row-reverse;\n }\n /* [part='drops'] , */\n [part='drags'] {\n display: flex;\n align-items: flex-start;\n flex: 1;\n gap: 0.5rem;\n }\n "]);tD=function e(){return t};return t}function t$(){var t=R(['\n <line\n part="line"\n x1=',"\n y1=","\n x2=","\n y2=",'\n stroke="red"\n stroke-width="3"\n @click=',"\n />\n "]);t$=function e(){return t};return t}function tL(){var t=R(['<line\n part="point"\n x1=',"\n y1=","\n x2=","\n y2=",'\n stroke="red"\n stroke-width="3"\n />']);tL=function e(){return t};return t}function tN(){var t=R(['<slot name="prompt"></slot>\n <line-container>\n <svg\n width=',"\n height=",'\n viewbox="0 0 '," ",'"\n >\n ',"\n ","\n </svg>\n <slot></slot>\n </line-container>"]);tN=function e(){return t};return t}function tV(){var t=R(["\n slot:not([name='prompt']) {\n // position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n }\n ::slotted(qti-associable-hotspot) {\n transform: translate(-50%, -50%);\n }\n line-container {\n display: block;\n position: relative;\n }\n svg {\n position: absolute;\n top: 0px;\n left: 0px;\n }\n "]);tV=function e(){return t};return t}function tH(){var t=R([' <slot name="prompt"></slot>\n <slot></slot>\n <slot name="qti-gap-img"></slot>']);tH=function e(){return t};return t}function tz(){var t=R(["\n :host {\n display: inline-block;\n position: relative;\n }\n slot[name='qti-gap-img'] {\n display: flex;\n gap: 1rem;\n }\n "]);tz=function e(){return t};return t}function tU(){var t=R(['\n <slot name="prompt"></slot>\n <!-- slot for the prompt -->\n <slot></slot>\n <!-- slot for the image and hotspots -->\n ']);tU=function e(){return t};return t}function tj(){var t=R(["\n slot:not([name='prompt']) {\n position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n }\n "]);tj=function e(){return t};return t}function tB(){var t=R(['\n <slot name="prompt"></slot>\n <!-- slot for the prompt -->\n <slot></slot>\n <!-- slot for the image and hotspots -->\n ']);tB=function e(){return t};return t}function tQ(){var t=R(["\n slot:not([name='prompt']) {\n position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n /* width:100%; */\n }\n "]);tQ=function e(){return t};return t}function tF(){var t=R(['\n <slot part="slot"></slot>\n <slot part="dropslot" name="qti-simple-associable-choice"></slot>\n ']);tF=function e(){return t};return t}function tW(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n slot {\n width: 100%;\n display: block;\n }\n slot[name='qti-simple-associable-choice'] {\n width: 100%;\n }\n "]);tW=function e(){return t};return t}function tY(){var t=R(["\n slot {\n /* slot where the */\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: flex-start; /* prevents the drag and drop container slots having the same height */\n }\n :host(.qti-choices-top) slot {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) slot {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) slot {\n flex-direction: row;\n }\n :host(.qti-choices-right) slot {\n flex-direction: row-reverse;\n }\n slot[name='prompt'] {\n display: block;\n }\n ::slotted(qti-simple-match-set) {\n /* Make sure the drag and drop container slots have the same width */\n flex: 1;\n }\n"]);tY=function e(){return t};return t}function tX(){var t=R(['<th part="r-header">',"</th>"]);tX=function e(){return t};return t}function tZ(){var t=R(["<td>\n <input\n type=","\n part=","\n name=","\n value=","\n .disabled=","\n @change=","\n @click=","\n />\n </td>"]);tZ=function e(){return t};return t}function tG(){var t=R(['<tr>\n <td part="c-header">',"</td>\n ","\n </tr>"]);tG=function e(){return t};return t}function tK(){var t=R(['\n <slot name="prompt"></slot>\n <table>\n <tr>\n <td></td>\n ',"\n </tr>\n\n ","\n </table>\n "]);tK=function e(){return t};return t}function tJ(){var t=R(['<slot name="prompt"></slot> <slot></slot>']);tJ=function e(){return t};return t}function t0(){var t=R([' <slot name="prompt"></slot>\n <slot></slot>']);t0=function e(){return t};return t}function t1(){var t=R([""]);t1=function e(){return t};return t}function t2(){var t=R(['<drop-list part="drop-list" identifier="droplist','"></drop-list>',""]);t2=function e(){return t};return t}function t5(){var t=R([' <slot name="prompt"> </slot>\n <div part="container">\n <slot part="drags"> </slot>\n <div part="drops">\n ',"\n </div>\n </div>"]);t5=function e(){return t};return t}function t3(){var t=R(["\n [part='drags'] {\n display: flex;\n align-items: flex-start;\n flex: 1;\n }\n\n [part='drops'] {\n flex: 1;\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: 1fr;\n }\n\n :host([orientation='horizontal']) [part='drags'] {\n flex-direction: row;\n }\n :host([orientation='horizontal']) [part='drops'] {\n grid-auto-flow: column;\n }\n :host([orientation='vertical']) [part='drags'] {\n flex-direction: column;\n }\n :host([orientation='vertical']) [part='drops'] {\n grid-auto-flow: row;\n }\n\n [part='drop-list'] {\n display: block;\n flex: 1;\n }\n\n [part='container'] {\n display: flex;\n gap: 0.5rem;\n }\n :host(.qti-choices-top) [part='container'] {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) [part='container'] {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) [part='container'] {\n flex-direction: row;\n }\n :host(.qti-choices-right) [part='container'] {\n flex-direction: row-reverse;\n }\n "]);t3=function e(){return t};return t}function t4(){var t=R(["<slot></slot>"]);t4=function e(){return t};return t}function t6(){var t=R(["\n :host {\n display: block;\n }\n ::slotted(img) {\n position: absolute;\n cursor: move;\n user-select: none;\n left: 50%;\n transform: translateX(-50%);\n }\n "]);t6=function e(){return t};return t}function t7(){var t=R(["<slot></slot>"]);t7=function e(){return t};return t}function t8(){var t=R(["\n :host {\n display: inline-block;\n position: relative;\n }\n "]);t8=function e(){return t};return t}function t9(){var t=R(['\n <button\n part="point"\n style=','\n aria-label="Remove point at ','"\n @click=',"\n ></button>\n "]);t9=function e(){return t};return t}function et(){var t=R([' <slot name="prompt"></slot>\n <point-container>\n ',"\n <slot></slot>\n </point-container>"]);et=function e(){return t};return t}function ee(){var t=R(["\n :host {\n display: block;\n }\n point-container {\n display: block;\n position: relative;\n }\n "]);ee=function e(){return t};return t}function en(){var t=R(['<div id="bounds" part="bounds">\n <div>',"</div>\n <div>","</div>\n </div>"]);en=function e(){return t};return t}function er(){var t=R(['<div id="ticks" part="ticks"></div>']);er=function e(){return t};return t}function ei(){var t=R(['<div id="value" part="value">',"</div>"]);ei=function e(){return t};return t}function eo(){var t=R(['<slot name="prompt"></slot>\n <div id="slider" part="slider">\n ',"\n ",'\n <div id="rail" part="rail" @mousedown='," @touchstart=",'>\n <div id="knob" part="knob">\n ',"\n </div>\n </div>\n </div>"]);eo=function e(){return t};return t}function ea(){var t=R([""]);ea=function e(){return t};return t}function es(){var t=R(["<slot @slotchange=","></slot>"]);es=function e(){return t};return t}function el(){var t=R([' <slot name="qti-gap-img"></slot> ']);el=function e(){return t};return t}function eu(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n position: absolute;\n }\n "]);eu=function e(){return t};return t}function ec(){var t=R([' <slot name="qti-gap-text"></slot>']);ec=function e(){return t};return t}function ed(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);ed=function e(){return t};return t}function eh(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);eh=function e(){return t};return t}function ep(){var t=R(["<slot></slot>"]);ep=function e(){return t};return t}function ef(){var t=R(["\n :host {\n display: inline-flex;\n user-select: none;\n }\n "]);ef=function e(){return t};return t}function ev(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n position: absolute;\n }\n "]);ev=function e(){return t};return t}function eg(){var t=R(['<div part="ch"><div part="cha"></div></div>\n <slot></slot> ']);eg=function e(){return t};return t}function ey(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);ey=function e(){return t};return t}function em(){var t=R(["\n :host {\n display: block;\n cursor: pointer;\n }\n "]);em=function e(){return t};return t}function eb(){var t=R([" <slot></slot> "]);eb=function e(){return t};return t}function eq(){var t=R(['<div id="label">',"</div>"]);eq=function e(){return t};return t}function ek(){var t=R(['<div part="ch">\n <div part="cha"></div>\n </div>\n ','\n <slot part="slot"></slot> ']);ek=function e(){return t};return t}function ew(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n slot {\n width: 100%;\n display: flex;\n align-items: center;\n }\n [part='ch'] {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n }\n "]);ew=function e(){return t};return t}var QtiComponents=function(){var t=function t(t){var e=t.context;return function(t,n){var r=new WeakMap;if((typeof n==="undefined"?"undefined":O(n))=="object")return n.addInitializer(function(){r.set(this,new eW(this,{context:e}))}),{get:function e(){return t.get.call(this)},set:function e(e){var n;return(n=r.get(this))===null||n===void 0?void 0:n.setValue(e),t.set.call(this,e)},init:function t(t){var e;return(e=r.get(this))===null||e===void 0?void 0:e.setValue(t),t}};{t.constructor.addInitializer(function(t){r.set(t,new eW(t,{context:e}))});var i=Object.getOwnPropertyDescriptor(t,n),o;if(i===void 0){var a=new WeakMap;o={get:function t(){return a.get(this)},set:function t(t){r.get(this).setValue(t),a.set(this,t)},configurable:!0,enumerable:!0}}else{var s=i.set;o=w(q({},i),{set:function t(t){r.get(this).setValue(t),s===null||s===void 0?void 0:s.call(this,t)}})}return void Object.defineProperty(t,n,o)}}};var e=function t(t){var e=t.context,n=t.subscribe;return function(t,r){(typeof r==="undefined"?"undefined":O(r))=="object"?r.addInitializer(function(){var r=this;new eB(this,{context:e,callback:function(e){t.set.call(r,e)},subscribe:n})}):t.constructor.addInitializer(function(t){new eB(t,{context:e,callback:function(e){t[r]=e},subscribe:n})})}};var n=function t(t,e){if(!nO(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return nC!==void 0?nC.createHTML(e):e};var i=function t(t){return function(e,n){return(typeof n==="undefined"?"undefined":O(n))=="object"?ro(t,e,n):function(t,e,n){var r=e.hasOwnProperty(n);return e.constructor.createProperty(n,r?w(q({},t),{wrapped:!0}):t),r?Object.getOwnPropertyDescriptor(e,n):void 0}(t,e,n)}};var s=function t(t){return i(w(q({},t),{state:!0,attribute:!1}))};var l=function t(t,e){return function(n,r,i){var o=function(e){var n;var r;return(r=(n=e.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&r!==void 0?r:null};if(e){var a=(typeof r==="undefined"?"undefined":O(r))=="object"?n:i!==null&&i!==void 0?i:function(){var t=Symbol();return{get:function e(){return this[t]},set:function e(e){this[t]=e}}}(),s=a.get,l=a.set;return ra(n,r,{get:function t(){var t=s.call(this);return t===void 0&&(t=o(this),(t!==null||this.hasUpdated)&&l.call(this,t)),t}})}return ra(n,r,{get:function t(){return o(this)}})}};var c=function t(t){return function(e,n){var r=t!==null&&t!==void 0?t:{},i=r.slot,o=r.selector,a="slot"+(i?"[name=".concat(i,"]"):":not([name])");return ra(e,n,{get:function e(){var e;var n;var r=(e=this.renderRoot)===null||e===void 0?void 0:e.querySelector(a),i=(n=r===null||r===void 0?void 0:r.assignedElements(t))!==null&&n!==void 0?n:[];return o===void 0?i:i.filter(function(t){return t.matches(o)})}})}};var v=function t(t,e){var n=q({waitUntilFirstUpdate:!1},e);return function(e,r){var i=e.update,o=Array.isArray(t)?t:[t];e.update=function(t){var e=this;o.forEach(function(i){var o=i;if(t.has(o)){var a=t.get(o),s=e[o];a!==s&&(!n.waitUntilFirstUpdate||e.hasUpdated)&&e[r](a,s)}}),i.call(this,t)}}};var g=function t(t){var e=[];return t.querySelectorAll("qti-assessment-item-ref").forEach(function(t){var n=t.getAttribute("identifier"),r=t.getAttribute("href"),i=t.getAttribute("category");e.push({identifier:n,href:r,category:i})}),e};var y=function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e&&rv!==null&&rv.abort(),new Promise(function(e,n){var r=new XMLHttpRequest;rv=r,r.open("GET",t,!0),r.responseType="document",r.onload=function(){r.status>=200&&r.status<300?e(r.responseXML):n(r.statusText)},r.onerror=function(){n(r.statusText)},r.send()})};var m=function t(t){return new DOMParser().parseFromString(t,"text/xml")};var b=function t(t){var e=new XSLTProcessor,n=new DOMParser().parseFromString(rf,"text/xml");return e.importStylesheet(n),e.transformToFragment(t,document)};var k=function t(t,e){e.endsWith("/")||(e+="/"),t.querySelectorAll("[src],[href],[primary-path]").forEach(function(t){var n;var r="";t.getAttribute("src")&&(r="src"),t.getAttribute("href")&&(r="href"),t.getAttribute("primary-path")&&(r="primary-path");var i=(n=t.getAttribute(r))===null||n===void 0?void 0:n.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){var o=e+encodeURI(i);t.setAttribute(r,o)}})};var C=function t(t){t.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(function(t){var e=document.createComment(t.textContent);t.replaceChild(e,t.firstChild)})};var E=function t(t){t.querySelectorAll("qti-stylesheet").forEach(function(t){return t.remove()})};var _=function t(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}a(this,r);var o;o=n.call.apply(n,[this].concat(I(e)));o.identifier="";o.tabIndex=0;o.disabled=!1;o.readonly=!1;o._internals=o.attachInternals();return o}u(r,[{key:"handleDisabledChange",value:function t(t,e){this.tabIndex=e?-1:0,e&&this.blur()}},{key:"setInternalState",value:function t(t,e){e&&!this._internals.states.has(t)?this._internals.states.add(t):!e&&this._internals.states.has(t)&&this._internals.states.delete(t)}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("register-".concat(e),{bubbles:!0,composed:!0}))}},{key:"disconnectedCallback",value:function t(){d(h(r.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("unregister-".concat(e),{bubbles:!0,composed:!0}))}},{key:"_onKeyUp",value:function t(t){t.altKey||t.code==="Space"&&(t.preventDefault(),this._activate())}},{key:"_onClick",value:function t(){this.disabled||this.readonly||(this.focus(),this._activate())}},{key:"_activate",value:function t(){this.disabled||this.readonly||this.dispatchEvent(new CustomEvent("activate-".concat(e),{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}},{key:"render",value:function t(){return nj(N())}}]);return r}(t);return eL([i({type:String})],n.prototype,"identifier",2),eL([i({type:Number,reflect:!0,attribute:"tabindex"})],n.prototype,"tabIndex",2),eL([i({type:Boolean,reflect:!0,attribute:"aria-disabled",converter:ry})],n.prototype,"disabled",2),eL([i({type:Boolean,reflect:!0,attribute:"aria-readonly",converter:ry})],n.prototype,"readonly",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],n.prototype,"handleDisabledChange",1),n};var R=function t(t){return t==null};var P=function t(t){return t.replace(/([^:]\/)\/+/g,"$1").replace(/\/\//g,"/").replace("http:/","http://").replace("https:/","https://")};var D=function t(t){this._$AN!==void 0?(rX(this),this._$AM=t,rZ(this)):this._$AM=t};var ex=function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;var r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(r))for(var o=n;o<r.length;o++)rY(r[o],!1),rX(r[o]);else r!=null&&(rY(r,!1),rX(r));else rY(this,t)};var eC=function t(t,e){var n,r=q({},e);return function(e,r){var i=e.connectedCallback,o=e.disconnectedCallback;e.connectedCallback=function(){var e=this;i.call(this);var o=function(n){var i=Array.from(e.querySelectorAll(t));var o=true,a=false,s=undefined;try{for(var l=n[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;var d=Array.from(c.addedNodes).map(function(t){return t}),h=Array.from(c.addedNodes).map(function(t){return t});c.type==="childList"&&d.find(function(t){return i.includes(t)})&&e[r](d,h)}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}};n=new MutationObserver(o),n.observe(this,{childList:!0,subtree:!0});var a;var s=(a=this.querySelectorAll(t))!==null&&a!==void 0?a:[];this[r](Array.from(s),[])},e.disconnectedCallback=function(){o.call(this),n.disconnect()}}};var eA=function t(t){return function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculateChildren",value:function t(t){return t.map(function(t){var e=t;if(!e.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var n=e.calculate();if(typeof n=="string")if(n==="true")n=!0;else if(n==="false")n=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return n}).every(function(t){return typeof t=="boolean"&&t})}}]);return n}(t)};var eE=function t(t,e,n,r){switch(t){case"circle":{var i=S(e,3),o=i[0],a=i[1],s=i[2],l=o/n.width*100,u=a/n.height*100,c=s/n.width*100;r.style.left=l-c+"%",r.style.top=u-c+"%",r.style.width=r.style.height=4*c+"px",r.style.borderRadius="9999px"}break;case"rect":{var d=S(e,4),h=d[0],p=d[1],f=d[2],v=d[3],g=h/n.width*100,y=p/n.height*100,m=f/n.width*100,b=v/n.height*100;r.style.left=g+"%",r.style.top=y+"%",r.style.width=m-g+"%",r.style.height=b-y+"%"}break;case"poly":{var q,k,w,x;var C=e.reduce(function(t,e,n,r){if(n%2===1){var i=t.pop();t[t.length]={x:i,y:r[n]}}else t.push(e);return t},[]),A=(q=Math).min.apply(q,I(C.map(function(t){return t.x}))),E=(k=Math).max.apply(k,I(C.map(function(t){return t.x}))),_=(w=Math).min.apply(w,I(C.map(function(t){return t.y}))),R=(x=Math).max.apply(x,I(C.map(function(t){return t.y}))),T=A/n.width*100,O=_/n.height*100,P=E/n.width*100,M=R/n.height*100;r.style.left=A/n.width*100+"%",r.style.top=_/n.height*100+"%",r.style.width=P-T+"%",r.style.height=M-O+"%";var D=C.map(function(t){return{x:(t.x-A)/(E-A)*100,y:(t.y-_)/(R-_)*100}}).map(function(t){return Math.round(t.x)+"% "+Math.round(t.y)+"%"}).join(",");r.style.clipPath="polygon(".concat(D,")")}break;default:break}};var eS,e_;var eR=Object.defineProperty;var eT=Object.getOwnPropertyDescriptor;var eI=Object.getOwnPropertyNames;var eO=Object.prototype.hasOwnProperty;var eP=function(t){throw TypeError(t)};var eM=function(t,e){for(var n in e)eR(t,n,{get:e[n],enumerable:!0})},eD=function(t,e,n,r){var i=true,o=false,a=undefined;if(e&&(typeof e==="undefined"?"undefined":O(e))=="object"||typeof e=="function")try{var s=function(){var i=u.value;!eO.call(t,i)&&i!==n&&eR(t,i,{get:function(){return e[i]},enumerable:!(r=eT(e,i))||r.enumerable})};for(var l=eI(e)[Symbol.iterator](),u;!(i=(u=l.next()).done);i=true)s()}catch(t){o=true;a=t}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(o){throw a}}}return t};var e$=function(t){return eD(eR({},"__esModule",{value:!0}),t)},eL=function(t,e,n,r){for(var i=r>1?void 0:r?eT(e,n):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(i=(r?a(e,n,i):a(i))||i);return r&&i&&eR(e,n,i),i};var eN=function(t,e,n){return e.has(t)||eP("Cannot "+n)};var eV=function(t,e,n){return eN(t,e,"read from private field"),n?n.call(t):e.get(t)},eH=function(t,e,n){return e.has(t)?eP("Cannot add the same private member more than once"):f(e,WeakSet)?e.add(t):e.set(t,n)},ez=function(t,e,n,r){return eN(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n};var eU={};eM(eU,{ActiveElementMixin:function(){return _},Interaction:function(){return rD},QtiAnd:function(){return ix},QtiAssessmentItem:function(){return ru},QtiAssessmentStimulusRef:function(){return rg},QtiAssociableHotspot:function(){return of},QtiAssociateInteraction:function(){return i1},QtiBaseValue:function(){return iC},QtiChoiceInteraction:function(){return io},QtiCompanionMaterialsInfo:function(){return rA},QtiConditionExpression:function(){return iw},QtiContains:function(){return iA},QtiContentBody:function(){return rE},QtiCorrect:function(){return iE},QtiCustomInteraction:function(){return i2},QtiCustomOperator:function(){return op},QtiEndAttemptInteraction:function(){return i5},QtiEqual:function(){return iR},QtiEqualRounded:function(){return iS},QtiExpression:function(){return ik},QtiExtendedTextInteraction:function(){return r5},QtiFeedbackBlock:function(){return rI},QtiFeedbackInline:function(){return rO},QtiGap:function(){return ov},QtiGapImg:function(){return og},QtiGapMatchInteraction:function(){return i3},QtiGapText:function(){return oy},QtiGraphicAssociateInteraction:function(){return i7},QtiGraphicGapMatchInteraction:function(){return i8},QtiGraphicOrderInteraction:function(){return i9},QtiGt:function(){return iT},QtiGte:function(){return iI},QtiHotspotChoice:function(){return om},QtiHotspotInteraction:function(){return ot},QtiHottext:function(){return ob},QtiHottextInteraction:function(){return r6},QtiInlineChoice:function(){return oq},QtiInlineChoiceInteraction:function(){return r9},QtiIsNull:function(){return iO},QtiItem:function(){return oA},QtiLookupOutcomeValue:function(){return ip},QtiLt:function(){return iP},QtiLte:function(){return iM},QtiMapResponse:function(){return iD},QtiMapping:function(){return i$},QtiMatch:function(){return iL},QtiMatchInteraction:function(){return or},QtiMediaInteraction:function(){return oi},QtiMember:function(){return iN},QtiModalFeedback:function(){return rP},QtiMultiple:function(){return iV},QtiNot:function(){return iH},QtiOr:function(){return iz},QtiOrderInteraction:function(){return oo},QtiOrdered:function(){return iU},QtiOutcomeDeclaration:function(){return rx},QtiOutcomeProcessing:function(){return ia},QtiOutcomeProcessingProcessor:function(){return is},QtiPortableCustomInteraction:function(){return iX},QtiPositionObjectStage:function(){return os},QtiPrintedVariable:function(){return ij},QtiProduct:function(){return iB},QtiPrompt:function(){return rq},QtiResponseCondition:function(){return iv},QtiResponseDeclaration:function(){return rC},QtiResponseElse:function(){return im},QtiResponseElseIf:function(){return iq},QtiResponseIf:function(){return ib},QtiResponseProcessing:function(){return id},QtiRubricBlock:function(){return rS},QtiRule:function(){return ih},QtiSPositionObjectInteraction:function(){return oa},QtiSelectPointInteraction:function(){return od},QtiSetOutcomeValue:function(){return ig},QtiSetOutcomeValueRule:function(){return iy},QtiSimpleAssociableChoice:function(){return oe},QtiSimpleChoice:function(){return ok},QtiSliderInteraction:function(){return oh},QtiStringMatch:function(){return iQ},QtiStylesheet:function(){return rk},QtiSum:function(){return iF},QtiSumExpression:function(){return iW},QtiTextEntryInteraction:function(){return r3},QtiVariable:function(){return iY},getAssessmentData:function(){return o_},getItemByIndex:function(){return oS},getItemByUri:function(){return oR},itemContext:function(){return rl},itemContextVariables:function(){return rs},qtiAndMixin:function(){return eA},qtiTransformItem:function(){return rd},qtiTransformManifest:function(){return rh},qtiTransformTest:function(){return rp}});var ej=function(t){"use strict";p(n,t);var e=$(n);function n(t,r,i){a(this,n);var o;o=e.call(this,"context-request",{bubbles:!0,composed:!0}),o.context=t,o.callback=r,o.subscribe=i!==null&&i!==void 0?i:!1;return x(o)}return n}(M(Event));var eB=function(){"use strict";function t(e,n,r,i){var o=this;a(this,t);if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=function(t,e){o.unsubscribe&&(o.unsubscribe!==e&&(o.provided=!1,o.unsubscribe()),o.subscribe||o.unsubscribe()),o.value=t,o.host.requestUpdate(),o.provided&&!o.subscribe||(o.provided=!0,o.callback&&o.callback(t,e)),o.unsubscribe=e},this.host=e,n.context!==void 0){var s=n;var l;this.context=s.context,this.callback=s.callback,this.subscribe=(l=s.subscribe)!==null&&l!==void 0?l:!1}else this.context=n,this.callback=r,this.subscribe=i!==null&&i!==void 0?i:!1;this.host.addController(this)}u(t,[{key:"hostConnected",value:function t(){this.dispatchRequest()}},{key:"hostDisconnected",value:function t(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}},{key:"dispatchRequest",value:function t(){this.host.dispatchEvent(new ej(this.context,this.t,this.subscribe))}}]);return t}();var eQ=function(){"use strict";function t(e){var n=this;a(this,t);this.subscriptions=new Map,this.updateObservers=function(){var t=true,e=false,r=undefined;try{for(var i=n.subscriptions[Symbol.iterator](),o;!(t=(o=i.next()).done);t=true){var a=S(o.value,2),s=a[0],l=a[1],u=l.disposer;s(n.o,u)}}catch(t){e=true;r=t}finally{try{if(!t&&i.return!=null){i.return()}}finally{if(e){throw r}}}},e!==void 0&&(this.value=e)}u(t,[{key:"value",get:function t(){return this.o},set:function t(t){this.setValue(t)}},{key:"setValue",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}},{key:"addCallback",value:function t(t,e,n){var r=this;if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:function(){r.subscriptions.delete(t)},consumerHost:e});var i=this.subscriptions.get(t),o=i.disposer;t(this.value,o)}},{key:"clearCallbacks",value:function t(){this.subscriptions.clear()}}]);return t}();var eF=function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;r=e.call(this,"context-provider",{bubbles:!0,composed:!0}),r.context=t;return x(r)}return n}(M(Event)),eW=function(t){"use strict";p(n,t);var e=$(n);function n(t,i,o){a(this,n);var s;var l,u;s=e.call(this,i.context!==void 0?i.initialValue:o),s.onContextRequest=function(t){var e=t.composedPath()[0];t.context===s.context&&e!==s.host&&(t.stopPropagation(),s.addCallback(t.callback,e,t.subscribe))},s.onProviderRequest=function(t){var e=t.composedPath()[0];if(t.context!==s.context||e===s.host)return;var n=new Set;var r=true,i=false,o=undefined;try{for(var a=s.subscriptions[Symbol.iterator](),l;!(r=(l=a.next()).done);r=true){var u=S(l.value,2),c=u[0],d=u[1],h=d.consumerHost;n.has(c)||(n.add(c),h.dispatchEvent(new ej(s.context,c,!0)))}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}t.stopPropagation()},s.host=t,i.context!==void 0?s.context=i.context:s.context=i,s.attachListeners(),(l=(u=s.host).addController)===null||l===void 0?void 0:l.call(u,r(s));return x(s)}u(n,[{key:"attachListeners",value:function t(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}},{key:"hostConnected",value:function t(){this.host.dispatchEvent(new eF(this.context))}}]);return n}(eQ);var eY=function(){"use strict";function t(e){a(this,t);this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=e}u(t,[{key:"shadowRoot",get:function t(){return this.__host.__shadowRoot}},{key:"checkValidity",value:function t(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}},{key:"reportValidity",value:function t(){return!0}},{key:"setFormValue",value:function t(){}},{key:"setValidity",value:function t(){}}]);return t}();var eX=new WeakMap,eZ=function(t){var e=eX.get(t);return e===void 0&&eX.set(t,e=new Map),e},eG=function(){"use strict";function t(){a(this,t);this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}u(t,[{key:"attributes",get:function t(){return Array.from(eZ(this)).map(function(t){var e=S(t,2),n=e[0],r=e[1];return{name:n,value:r}})}},{key:"shadowRoot",get:function t(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}},{key:"setAttribute",value:function t(t,e){eZ(this).set(t,String(e))}},{key:"removeAttribute",value:function t(t){eZ(this).delete(t)}},{key:"toggleAttribute",value:function t(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}},{key:"hasAttribute",value:function t(t){return eZ(this).has(t)}},{key:"attachShadow",value:function t(t){var e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}},{key:"attachInternals",value:function t(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");var t=new eY(this);return this.__internals=t,t}},{key:"getAttribute",value:function t(t){var e;return(e=eZ(this).get(t))!==null&&e!==void 0?e:null}}]);return t}();var eK=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(eG),eJ=eK;var e0=function(){"use strict";function t(){a(this,t);this.__definitions=new Map}u(t,[{key:"define",value:function t(t,e){if(this.__definitions.has(t))throw new Error("Failed to execute 'define' on 'CustomElementRegistry': the name \"".concat(t,'" has already been used with this registry'));var n;this.__definitions.set(t,{ctor:e,observedAttributes:(n=e.observedAttributes)!==null&&n!==void 0?n:[]})}},{key:"get",value:function t(t){var e;return(e=this.__definitions.get(t))===null||e===void 0?void 0:e.ctor}}]);return t}(),e1=e0;var e2=new e1;var e5=globalThis,e3=e5.ShadowRoot&&(e5.ShadyCSS===void 0||e5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e4=Symbol(),e6=new WeakMap,e7=function(){"use strict";function t(e,n,r){a(this,t);if(this._$cssResult$=!0,r!==e4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}u(t,[{key:"styleSheet",get:function t(){var t=this.o,e=this.t;if(e3&&t===void 0){var n=e!==void 0&&e.length===1;n&&(t=e6.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&e6.set(e,t))}return t}},{key:"toString",value:function t(){return this.cssText}}]);return t}(),e8=function(t){return new e7(typeof t=="string"?t:t+"",void 0,e4)},e9=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}var i=t.length===1?t[0]:n.reduce(function(e,n,r){return e+function(t){if(t._$cssResult$===!0)return t.cssText;if(typeof t=="number")return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]},t[0]);return new e7(i,t,e4)},nt=function(t,e){var n=true,r=false,i=undefined;if(e3)t.adoptedStyleSheets=e.map(function(t){return f(t,CSSStyleSheet)?t:t.styleSheet});else try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;var l=document.createElement("style"),u=e5.litNonce;u!==void 0&&l.setAttribute("nonce",u),l.textContent=s.cssText,t.appendChild(l)}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}},ne=e3||e5.CSSStyleSheet===void 0?function(t){return t}:function(t){return f(t,CSSStyleSheet)?function(t){var e="";var n=true,r=false,i=undefined;try{for(var o=t.cssRules[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;e+=s.cssText}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}return e8(e)}(t):t};var nn=Object.is,nr=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,no=Object.getOwnPropertyNames,na=Object.getOwnPropertySymbols,ns=Object.getPrototypeOf,nl=globalThis;var nu;(nu=nl.customElements)!==null&&nu!==void 0?nu:nl.customElements=e2;var nc=nl.trustedTypes,nd=nc?nc.emptyScript:"",nh=nl.reactiveElementPolyfillSupport,np=function(t,e){return t},nf={toAttribute:function t(t,e){switch(e){case Boolean:t=t?nd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute:function t(t,e){var n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},nv=function(t,e){return!nn(t,e)},ng={attribute:!0,type:String,converter:nf,reflect:!1,hasChanged:nv};var ny,nm;(ny=Symbol.metadata)!==null&&ny!==void 0?ny:Symbol.metadata=Symbol("metadata"),(nm=nl.litPropertyMetadata)!==null&&nm!==void 0?nm:nl.litPropertyMetadata=new WeakMap;var nb;var nq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t._$Ep=void 0,t.isUpdatePending=!1,t.hasUpdated=!1,t._$Em=null,t._$Ev();return x(t)}u(n,[{key:"_$Ev",value:function t(){var t=this;var e;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0?void 0:e.forEach(function(e){return e(t)})}},{key:"addController",value:function t(t){var e;var n;((n=this._$EO)!==null&&n!==void 0?n:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)===null||e===void 0?void 0:e.call(t))}},{key:"removeController",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.delete(t)}},{key:"_$E_",value:function t(){var t=new Map,e=this.constructor.elementProperties;var n=true,r=false,i=undefined;try{for(var o=e.keys()[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s])}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}t.size>0&&(this._$Ep=t)}},{key:"createRenderRoot",value:function t(){var t;var e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return nt(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function t(){var t;var e;(e=this.renderRoot)!==null&&e!==void 0?e:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostConnected)===null||e===void 0?void 0:e.call(t)})}},{key:"enableUpdating",value:function t(t){}},{key:"disconnectedCallback",value:function t(){var t;(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostDisconnected)===null||e===void 0?void 0:e.call(t)})}},{key:"attributeChangedCallback",value:function t(t,e,n){this._$AK(t,n)}},{key:"_$EC",value:function t(t,e){var n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){var i;var o=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:nf).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}},{key:"_$AK",value:function t(t,e){var n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){var i;var o=n.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:nf;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}},{key:"requestUpdate",value:function t(t,e,n){if(t!==void 0){var r;if(n!==null&&n!==void 0?n:n=this.constructor.getPropertyOptions(t),!((r=n.hasChanged)!==null&&r!==void 0?r:nv)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}},{key:"P",value:function t(t,e,n){var r;this._$AL.has(t)||this._$AL.set(t,e),n.reflect===!0&&this._$Em!==t&&((r=this._$Ej)!==null&&r!==void 0?r:this._$Ej=new Set).add(t)}},{key:"_$ET",value:function t(){var t=this;return o(function(){var e,n,r;return L(this,function(i){switch(i.label){case 0:t.isUpdatePending=!0;i.label=1;case 1:i.trys.push([1,3,,4]);return[4,t._$ES];case 2:i.sent();return[3,4];case 3:e=i.sent();Promise.reject(e);return[3,4];case 4:n=t.scheduleUpdate();r=n!=null;if(!r)return[3,6];return[4,n];case 5:r=i.sent();i.label=6;case 6:return[2,(r,!t.isUpdatePending)]}})})()}},{key:"scheduleUpdate",value:function t(){return this.performUpdate()}},{key:"performUpdate",value:function t(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var t;if((t=this.renderRoot)!==null&&t!==void 0?t:this.renderRoot=this.createRenderRoot(),this._$Ep){var e=true,n=false,r=undefined;try{for(var i=this._$Ep[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=S(o.value,2),s=a[0],l=a[1];this[s]=l}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}this._$Ep=void 0}var u=this.constructor.elementProperties;var c=true,d=false,h=undefined;if(u.size>0)try{for(var p=u[Symbol.iterator](),f;!(c=(f=p.next()).done);c=true){var v=S(f.value,2),g=v[0],y=v[1];y.wrapped!==!0||this._$AL.has(g)||this[g]===void 0||this.P(g,this[g],y)}}catch(t){d=true;h=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(d){throw h}}}}var m=!1,b=this._$AL;try{var q;m=this.shouldUpdate(b),m?(this.willUpdate(b),(q=this._$EO)===null||q===void 0?void 0:q.forEach(function(t){var e;return(e=t.hostUpdate)===null||e===void 0?void 0:e.call(t)}),this.update(b)):this._$EU()}catch(t){throw m=!1,this._$EU(),t}m&&this._$AE(b)}},{key:"willUpdate",value:function t(t){}},{key:"_$AE",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.forEach(function(t){var e;return(e=t.hostUpdated)===null||e===void 0?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$EU",value:function t(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function t(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function t(){return this._$ES}},{key:"shouldUpdate",value:function t(t){return!0}},{key:"update",value:function t(t){var e=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return e._$EC(t,e[t])})),this._$EU()}},{key:"updated",value:function t(t){}},{key:"firstUpdated",value:function t(t){}}],[{key:"addInitializer",value:function t(t){var e;this._$Ei(),((e=this.l)!==null&&e!==void 0?e:this.l=[]).push(t)}},{key:"observedAttributes",get:function t(){return this.finalize(),this._$Eh&&I(this._$Eh.keys())}},{key:"createProperty",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ng;if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){var n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&nr(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function t(t,e,n){var r;var i=(r=ni(this.prototype,t))!==null&&r!==void 0?r:{get:function t(){return this[e]},set:function t(t){this[e]=t}},o=i.get,a=i.set;return{get:function t(){return o===null||o===void 0?void 0:o.call(this)},set:function e(e){var r=o===null||o===void 0?void 0:o.call(this);a.call(this,e),this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function t(t){var e;return(e=this.elementProperties.get(t))!==null&&e!==void 0?e:ng}},{key:"_$Ei",value:function t(){if(this.hasOwnProperty(np("elementProperties")))return;var t=ns(this);t.finalize(),t.l!==void 0&&(this.l=I(t.l)),this.elementProperties=new Map(t.elementProperties)}},{key:"finalize",value:function t(){if(this.hasOwnProperty(np("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(np("properties"))){var t=this.properties,e=I(no(t)).concat(I(na(t)));var n=true,r=false,i=undefined;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.createProperty(s,t[s])}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}}var l=this[Symbol.metadata];if(l!==null){var u=litPropertyMetadata.get(l);var c=true,d=false,h=undefined;if(u!==void 0)try{for(var p=u[Symbol.iterator](),f;!(c=(f=p.next()).done);c=true){var v=S(f.value,2),g=v[0],y=v[1];this.elementProperties.set(g,y)}}catch(t){d=true;h=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(d){throw h}}}}this._$Eh=new Map;var m=true,b=false,q=undefined;try{for(var k=this.elementProperties[Symbol.iterator](),w;!(m=(w=k.next()).done);m=true){var x=S(w.value,2),C=x[0],A=x[1];var E=this._$Eu(C,A);E!==void 0&&this._$Eh.set(E,C)}}catch(t){b=true;q=t}finally{try{if(!m&&k.return!=null){k.return()}}finally{if(b){throw q}}}this.elementStyles=this.finalizeStyles(this.styles)}},{key:"finalizeStyles",value:function t(t){var e=[];if(Array.isArray(t)){var n=new Set(t.flat(1/0).reverse());var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;e.unshift(ne(l))}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}else t!==void 0&&e.push(ne(t));return e}},{key:"_$Eu",value:function t(t,e){var n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}}]);return n}((nb=globalThis.HTMLElement)!==null&&nb!==void 0?nb:eJ);var nk;nq.elementStyles=[],nq.shadowRootOptions={mode:"open"},nq[np("elementProperties")]=new Map,nq[np("finalized")]=new Map,nh===null||nh===void 0?void 0:nh({ReactiveElement:nq}),((nk=nl.reactiveElementVersions)!==null&&nk!==void 0?nk:nl.reactiveElementVersions=[]).push("2.0.4");var nw=globalThis,nx=nw.trustedTypes,nC=nx?nx.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,nA="$lit$",nE="lit$".concat(Math.random().toFixed(9).slice(2),"$"),nS="?"+nE,n_="<".concat(nS,">"),nR=nw.document===void 0?{createTreeWalker:function(){return{}}}:document,nT=function(){return nR.createComment("")},nI=function(t){return t===null||(typeof t==="undefined"?"undefined":O(t))!="object"&&typeof t!="function"},nO=Array.isArray,nP=function(t){return nO(t)||typeof(t===null||t===void 0?void 0:t[Symbol.iterator])=="function"},nM="[ \n\f\r]",nD=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,n$=/-->/g,nL=/>/g,nN=RegExp(">|".concat(nM,"(?:([^\\s\"'>=/]+)(").concat(nM,"*=").concat(nM,"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),nV=/'/g,nH=/"/g,nz=/^(?:script|style|textarea|title)$/i,nU=function(t){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{_$litType$:t,strings:e,values:r}}},nj=nU(1),nB=nU(2),nQ=nU(3),nF=Symbol.for("lit-noChange"),nW=Symbol.for("lit-nothing"),nY=new WeakMap,nX=nR.createTreeWalker(nR,129);var nZ=function(t,e){var r=t.length-1,i=[],o,a=e===2?"<svg>":e===3?"<math>":"",s=nD;for(var l=0;l<r;l++){var u=t[l],c=void 0,d=void 0,h=-1,p=0;for(;p<u.length&&(s.lastIndex=p,d=s.exec(u),d!==null);)p=s.lastIndex,s===nD?d[1]==="!--"?s=n$:d[1]!==void 0?s=nL:d[2]!==void 0?(nz.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=nN):d[3]!==void 0&&(s=nN):s===nN?d[0]===">"?(s=o!==null&&o!==void 0?o:nD,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?nN:d[3]==='"'?nH:nV):s===nH||s===nV?s=nN:s===n$||s===nL?s=nD:(s=nN,o=void 0);var f=s===nN&&t[l+1].startsWith("/>")?" ":"";a+=s===nD?u+n_:h>=0?(i.push(c),u.slice(0,h)+nA+u.slice(h)+nE+f):u+nE+(h===-2?l:f)}return[n(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},nG=function(){"use strict";function t(e,n){var r=e.strings,i=e._$litType$;a(this,t);var o;this.parts=[];var s=0,l=0,u=r.length-1,c=this.parts,d=S(nZ(r,i),2),h=d[0],p=d[1];if(this.el=t.createElement(h,n),nX.currentNode=this.el.content,i===2||i===3){var f;var v=this.el.content.firstChild;(f=v).replaceWith.apply(f,I(v.childNodes))}for(;(o=nX.nextNode())!==null&&c.length<u;){if(o.nodeType===1){var g=true,y=false,m=undefined;if(o.hasAttributes())try{for(var b=o.getAttributeNames()[Symbol.iterator](),q;!(g=(q=b.next()).done);g=true){var k=q.value;if(k.endsWith(nA)){var w=p[l++],x=o.getAttribute(k).split(nE),C=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?n2:C[1]==="?"?n5:C[1]==="@"?n3:n1}),o.removeAttribute(k)}else k.startsWith(nE)&&(c.push({type:6,index:s}),o.removeAttribute(k))}}catch(t){y=true;m=t}finally{try{if(!g&&b.return!=null){b.return()}}finally{if(y){throw m}}}if(nz.test(o.tagName)){var A=o.textContent.split(nE),E=A.length-1;if(E>0){o.textContent=nx?nx.emptyScript:"";for(var _=0;_<E;_++)o.append(A[_],nT()),nX.nextNode(),c.push({type:2,index:++s});o.append(A[E],nT())}}}else if(o.nodeType===8)if(o.data===nS)c.push({type:2,index:s});else{var R=-1;for(;(R=o.data.indexOf(nE,R+1))!==-1;)c.push({type:7,index:s}),R+=nE.length-1}s++}}u(t,null,[{key:"createElement",value:function t(t,e){var n=nR.createElement("template");return n.innerHTML=t,n}}]);return t}();function nK(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0;var i,o;if(e===nF)return e;var a=r!==void 0?(i=n.o)===null||i===void 0?void 0:i[r]:n.l,s=nI(e)?void 0:e._$litDirective$;var l;return(a===null||a===void 0?void 0:a.constructor)!==s&&(a===null||a===void 0?void 0:(o=a._$AO)===null||o===void 0?void 0:o.call(a,!1),s===void 0?a=void 0:(a=new s(t),a._$AT(t,n,r)),r!==void 0?((l=n.o)!==null&&l!==void 0?l:n.o=[])[r]=a:n.l=a),a!==void 0&&(e=nK(t,a._$AS(t,e.values),a,r)),e}var nJ=function(){"use strict";function t(e,n){a(this,t);this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}u(t,[{key:"parentNode",get:function t(){return this._$AM.parentNode}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"u",value:function t(t){var e;var n=this._$AD,r=n.el,i=r.content,o=n.parts,a=((e=t===null||t===void 0?void 0:t.creationScope)!==null&&e!==void 0?e:nR).importNode(i,!0);nX.currentNode=a;var s=nX.nextNode(),l=0,u=0,c=o[0];for(;c!==void 0;){if(l===c.index){var d=void 0;c.type===2?d=new n0(s,s.nextSibling,this,t):c.type===1?d=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(d=new n4(s,this,t)),this._$AV.push(d),c=o[++u]}l!==(c===null||c===void 0?void 0:c.index)&&(s=nX.nextNode(),l++)}return nX.currentNode=nR,a}},{key:"p",value:function t(t){var e=0;var n=true,r=false,i=undefined;try{for(var o=this._$AV[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}}}]);return t}(),n0=function(){"use strict";function t(e,n,r,i){a(this,t);var o;this.type=2,this._$AH=nW,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this.v=(o=i===null||i===void 0?void 0:i.isConnected)!==null&&o!==void 0?o:!0}u(t,[{key:"_$AU",get:function t(){var t;var e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this.v}},{key:"parentNode",get:function t(){var t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t===null||t===void 0?void 0:t.nodeType)===11&&(t=e.parentNode),t}},{key:"startNode",get:function t(){return this._$AA}},{key:"endNode",get:function t(){return this._$AB}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;t=nK(this,t,e),nI(t)?t===nW||t==null||t===""?(this._$AH!==nW&&this._$AR(),this._$AH=nW):t!==this._$AH&&t!==nF&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):nP(t)?this.k(t):this._(t)}},{key:"O",value:function t(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"T",value:function t(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"_",value:function t(t){this._$AH!==nW&&nI(this._$AH)?this._$AA.nextSibling.data=t:this.T(nR.createTextNode(t)),this._$AH=t}},{key:"$",value:function t(t){var e;var r=t.values,i=t._$litType$,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nG.createElement(n(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(r);else{var a=new nJ(o,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}},{key:"_$AC",value:function t(t){var e=nY.get(t.strings);return e===void 0&&nY.set(t.strings,e=new nG(t)),e}},{key:"k",value:function e(e){nO(this._$AH)||(this._$AH=[],this._$AR());var n=this._$AH,r,i=0;var o=true,a=false,s=undefined;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;i===n.length?n.push(r=new t(this.O(nT()),this.O(nT()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var n,r;for((n=(r=this)._$AP)===null||n===void 0?void 0:n.call(r,!1,!0,e);t&&t!==this._$AB;){var i=t.nextSibling;t.remove(),t=i}}},{key:"setConnected",value:function t(t){var e,n;this._$AM===void 0&&(this.v=t,(e=(n=this)._$AP)===null||e===void 0?void 0:e.call(n,t))}}]);return t}(),n1=function(){"use strict";function t(e,n,r,i,o){a(this,t);this.type=1,this._$AH=nW,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=nW}u(t,[{key:"tagName",get:function t(){return this.element.tagName}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var i=this.strings,o=!1;if(i===void 0)t=nK(this,t,e,0),o=!nI(t)||t!==this._$AH&&t!==nF,o&&(this._$AH=t);else{var a=t,s,l;for(t=i[0],s=0;s<i.length-1;s++)l=nK(this,a[n+s],e,s),l===nF&&(l=this._$AH[s]),o||(o=!nI(l)||l!==this._$AH[s]),l===nW?t=nW:t!==nW&&(t+=(l!==null&&l!==void 0?l:"")+i[s+1]),this._$AH[s]=l}o&&!r&&this.j(t)}},{key:"j",value:function t(t){t===nW?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!==null&&t!==void 0?t:"")}}]);return t}(),n2=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.type=3;return x(t)}u(n,[{key:"j",value:function t(t){this.element[this.name]=t===nW?void 0:t}}]);return n}(n1),n5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.type=4;return x(t)}u(n,[{key:"j",value:function t(t){this.element.toggleAttribute(this.name,!!t&&t!==nW)}}]);return n}(n1),n3=function(t){"use strict";p(n,t);var e=$(n);function n(t,r,i,o,s){a(this,n);var l;l=e.call(this,t,r,i,o,s),l.type=5;return x(l)}u(n,[{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;var n;if((t=(n=nK(this,t,e,0))!==null&&n!==void 0?n:nW)===nF)return;var r=this._$AH,i=t===nW&&r!==nW||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==nW&&(r===nW||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}},{key:"handleEvent",value:function t(t){var e;var n;typeof this._$AH=="function"?this._$AH.call((n=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}}]);return n}(n1),n4=function(){"use strict";function t(e,n,r){a(this,t);this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}u(t,[{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){nK(this,t)}}]);return t}(),n6={M:nA,P:nE,A:nS,C:1,L:nZ,R:nJ,D:nP,V:nK,I:n0,H:n1,N:n5,U:n3,B:n2,F:n4},n7=nw.litHtmlPolyfillSupport;var n8;n7===null||n7===void 0?void 0:n7(nG,n0),((n8=nw.litHtmlVersions)!==null&&n8!==void 0?n8:nw.litHtmlVersions=[]).push("3.2.0");var n9=function(t,e,n){var r;var i=(r=n===null||n===void 0?void 0:n.renderBefore)!==null&&r!==void 0?r:e,o=i._$litPart$;if(o===void 0){var a;var s=(a=n===null||n===void 0?void 0:n.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=o=new n0(e.insertBefore(nT(),s),s,void 0,n!==null&&n!==void 0?n:{})}return o._$AI(t),o};var rt=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.renderOptions={host:r(t)},t.o=void 0;return x(t)}u(n,[{key:"createRenderRoot",value:function t(){var t;var e=d(h(n.prototype),"createRenderRoot",this).call(this);var r;return(r=(t=this.renderOptions).renderBefore)!==null&&r!==void 0?r:t.renderBefore=e.firstChild,e}},{key:"update",value:function t(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),d(h(n.prototype),"update",this).call(this,t),this.o=n9(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function t(){var t;d(h(n.prototype),"connectedCallback",this).call(this),(t=this.o)===null||t===void 0?void 0:t.setConnected(!0)}},{key:"disconnectedCallback",value:function t(){var t;d(h(n.prototype),"disconnectedCallback",this).call(this),(t=this.o)===null||t===void 0?void 0:t.setConnected(!1)}},{key:"render",value:function t(){return nF}}]);return n}(nq);rt._$litElement$=!0,rt.finalized=!0,(eS=(e_=globalThis).litElementHydrateSupport)===null||eS===void 0?void 0:eS.call(e_,{LitElement:rt});var re=globalThis.litElementPolyfillSupport;re===null||re===void 0?void 0:re({LitElement:rt});var rn;((rn=globalThis.litElementVersions)!==null&&rn!==void 0?rn:globalThis.litElementVersions=[]).push("4.1.0");var rr=function(t){return function(e,n){n!==void 0?n.addInitializer(function(){customElements.define(t,e)}):customElements.define(t,e)}};var ri={attribute:!0,type:String,converter:nf,reflect:!1,hasChanged:nv},ro=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ri,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;var r=n.kind,i=n.metadata,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,t),r==="accessor"){var a=n.name;return{set:function n(n){var r=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,r,t)},init:function e(e){return e!==void 0&&this.P(a,void 0,t),e}}}if(r==="setter"){var s=n.name;return function n(n){var r=this[s];e.call(this,n),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+r)};var ra=function(t,e,n){return n.configurable=!0,n.enumerable=!0,Reflect.decorate&&(typeof e==="undefined"?"undefined":O(e))!="object"&&Object.defineProperty(t,e,n),n};var rs=[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"unknown",type:"outcome"},{identifier:"numAttempts",cardinality:"single",baseType:"integer",value:"0",type:"response"}],rl="item";var ru=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.identifier="";t.adaptive="false";t.timeDependent=null;t._handleDisabledChange=function(e,n){t._interactionElements.forEach(function(t){return t.disabled=n})};t._handleReadonlyChange=function(e,n){return t._interactionElements.forEach(function(t){return t.readonly=n})};t._context={identifier:t.getAttribute("identifier"),variables:rs};t._initialContext=w(q({},t._context),{variables:t._context.variables});t._feedbackElements=[];t._interactionElements=[];t.addEventListener("qti-register-variable",function(e){t._context=w(q({},t._context),{variables:I(t._context.variables).concat([e.detail.variable])}),t._initialContext=t._context,e.stopPropagation()}),t.addEventListener("qti-register-feedback",function(e){e.stopPropagation();var n=e.detail;t._feedbackElements.push(n),n.checkShowFeedback(n.outcomeIdentifier)}),t.addEventListener("qti-register-interaction",function(e){e.stopPropagation(),t._interactionElements.push(e.target)}),t.addEventListener("end-attempt",function(e){var n=e.detail,r=n.responseIdentifier,i=n.countAttempt;t.updateResponseVariable(r,"true"),t.processResponse(i)}),t.addEventListener("qti-set-outcome-value",function(e){var n=e.detail,r=n.outcomeIdentifier,i=n.value;t.updateOutcomeVariable(r,i),e.stopPropagation()}),t.addEventListener("qti-interaction-response",t.handleUpdateResponseVariable);return t}u(n,[{key:"variables",get:function t(){return this._context.variables.map(function(t){return q({identifier:t.identifier,value:t.value,type:t.type},t.type==="outcome"&&t.identifier==="SCORE"?{externalScored:t.externalScored}:{})})},set:function t(t){var e=this;if(!Array.isArray(t)||t.some(function(t){return!("identifier"in t)})){console.warn("variables property should be an array of VariableDeclaration");return}this._context=w(q({},this._context),{variables:this._context.variables.map(function(e){var n=t.find(function(t){return t.identifier===e.identifier});return n?q({},e,n):e})}),this._context.variables.forEach(function(t){if(t.type==="response"){var n=e._interactionElements.find(function(e){return e.responseIdentifier===t.identifier});n&&(n.response=t.value)}t.type==="outcome"&&e._feedbackElements.forEach(function(e){return e.checkShowFeedback(t.identifier)})})}},{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){return L(this,function(t){switch(t.label){case 0:r().call(e);return[4,e.updateComplete];case 1:t.sent(),e._emit("qti-assessment-item-connected",e);return[2]}})})()}},{key:"responses",set:function t(t){var e=true,n=false,r=undefined;if(t)try{var i,o=function(){var t=s.value;i.getResponse(t.responseIdentifier)&&i.updateResponseVariable(t.responseIdentifier,t.response);var e=i._interactionElements.find(function(e){return e.getAttribute("response-identifier")===t.responseIdentifier});e&&(e.response=t.response)};for(var a=t[Symbol.iterator](),s;!(e=(s=a.next()).done);e=true)i=this,o()}catch(t){n=true;r=t}finally{try{if(!e&&a.return!=null){a.return()}}finally{if(n){throw r}}}}},{key:"render",value:function t(){return nj(V())}},{key:"showCorrectResponse",value:function t(t){var e=this._context.variables.filter(function(t){return"correctResponse"in t&&t.correctResponse}).map(function(t){return{responseIdentifier:t.identifier,response:t.correctResponse}});var n=true,r=false,i=undefined;try{var o,a=function(){var e=l.value;var n=o._interactionElements.find(function(t){return t.getAttribute("response-identifier")===e.responseIdentifier});n&&(n.correctResponse=t?e.response:"")};for(var s=e[Symbol.iterator](),l;!(n=(l=s.next()).done);n=true)o=this,a()}catch(t){r=true;i=t}finally{try{if(!n&&s.return!=null){s.return()}}finally{if(r){throw i}}}}},{key:"processResponse",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e;var n=this.querySelector("qti-response-processing");return!n||!n.process?!1:(n.process(),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus()),t&&this.updateOutcomeVariable("numAttempts",(+((e=this._context.variables.find(function(t){return t.identifier==="numAttempts"}))===null||e===void 0?void 0:e.value)+1).toString()),this._emit("qti-response-processed"),!0)}},{key:"resetResponses",value:function t(){this._context=this._initialContext}},{key:"getResponse",value:function t(t){return this.getVariable(t)}},{key:"getOutcome",value:function t(t){return this.getVariable(t)}},{key:"getVariable",value:function t(t){return this._context.variables.find(function(e){return e.identifier===t})||null}},{key:"handleUpdateResponseVariable",value:function t(t){var e=t.detail,n=e.responseIdentifier,r=e.response;this.updateResponseVariable(n,r)}},{key:"updateResponseVariable",value:function t(t,e){this._context=w(q({},this._context),{variables:this._context.variables.map(function(n){return n.identifier!==t?n:w(q({},n),{value:e})})}),this._emit("qti-interaction-changed",{item:this.identifier,responseIdentifier:t,response:Array.isArray(e)?I(e):e}),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus())}},{key:"updateOutcomeVariable",value:function t(t,e){var n;var r=this.getOutcome(t);if(!r){console.warn("Can not set qti-outcome-identifier: ".concat(t,", it is not available"));return}this._context=w(q({},this._context),{variables:this._context.variables.map(function(n){return n.identifier!==t?n:w(q({},n),{value:r.cardinality==="single"?e:I(n.value).concat([e])})})}),this._feedbackElements.forEach(function(e){return e.checkShowFeedback(t)}),this._emit("qti-outcome-changed",{item:this.identifier,outcomeIdentifier:t,value:(n=this._context.variables.find(function(e){return e.identifier===t}))===null||n===void 0?void 0:n.value})}},{key:"_getCompletionStatus",value:function t(){return this._interactionElements.every(function(t){return t.validate()})?"completed":this._interactionElements.some(function(t){return t.validate()})?"incomplete":"not_attempted"}},{key:"_emit",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}}]);return n}(rt);eL([i({type:String})],ru.prototype,"title",2),eL([i({type:String})],ru.prototype,"identifier",2),eL([i({type:String})],ru.prototype,"adaptive",2),eL([i({type:String})],ru.prototype,"timeDependent",2),eL([i({type:Boolean})],ru.prototype,"disabled",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],ru.prototype,"_handleDisabledChange",2),eL([i({type:Boolean})],ru.prototype,"readonly",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],ru.prototype,"_handleReadonlyChange",2),eL([t({context:rl})],ru.prototype,"_context",2),ru=eL([rr("qti-assessment-item")],ru);var rc=String.raw,rd=function(){var t,e={load:function n(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return o(function(){return L(this,function(i){return[2,new Promise(function(i,o){y(n,r).then(function(n){return t=n,i(e)})})]})})()},parse:function n(n){return t=m(n),e},path:function(n){return k(t,n),e},fn:function n(n){return n(t),e},pciHooks:function n(n){var r=["hook","module"],i=n.substring(0,n.lastIndexOf("/"));var o=true,a=false,s=undefined;try{var l=function(){var e=c.value;t.querySelectorAll("["+e+"]").forEach(function(t){var r=t.getAttribute(e);!r.startsWith("data:")&&!r.startsWith("http")&&(t.setAttribute("base-url",n),t.setAttribute("module",i+"/"+encodeURI(r+(r.endsWith(".js")?"":".js"))))})};for(var u=r[Symbol.iterator](),c;!(o=(c=u.next()).done);o=true)l()}catch(t){a=true;s=t}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw s}}}return e},customInteraction:function n(n,r){var i=t.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",n),i.setAttribute("data-base-item",n+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),e},convertCDATAtoComment:function n(){return C(t),e},stripStyleSheets:function n(){return E(t),e},html:function e(){return new XMLSerializer().serializeToString(b(t))},xml:function e(){return new XMLSerializer().serializeToString(t)},htmldoc:function e(){return b(t)},xmldoc:function e(){return t}};return e},rh=function(){var t,e={load:function n(n){return o(function(){return L(this,function(r){return[2,new Promise(function(r,i){y(n).then(function(n){return t=n,r(e)})})]})})()},parse:function e(e){t=m(e)},assessmentTest:function e(){var e=t.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return e},rp=function(){var t,e={load:function n(n){return o(function(){return L(this,function(r){return[2,new Promise(function(r,i){y(n).then(function(n){return t=n,r(e)})})]})})()},parse:function n(n){return t=m(n),e},fn:function n(n){return n(t),e},items:function e(){return g(t)},html:function e(){return new XMLSerializer().serializeToString(b(t))},xml:function e(){return new XMLSerializer().serializeToString(t)},htmldoc:function e(){return b(t)},xmldoc:function e(){return t}};return e},rf=rc(H());var rv=null;var rg=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.identifier="";t.href="";return t}u(n,[{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){var t,n,i;return L(this,function(o){switch(o.label){case 0:r().call(e);t=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(!e.dispatchEvent(t))return[3,4];n=e.closest("qti-assessment-item").querySelector("[data-stimulus-idref=".concat(e.identifier,"]"));if(!n)return[3,2];return[4,e.loadAndAppendStimulus(n)];case 1:i=o.sent();return[3,3];case 2:i=console.warn("Stimulus with data-stimulus-idref ".concat(e.identifier," not found"));o.label=3;case 3:i;o.label=4;case 4:return[2]}})})()}},{key:"loadAndAppendStimulus",value:function t(t){var e=this;return o(function(){var n,r,i,o,a;return L(this,function(s){switch(s.label){case 0:n=e.href.substring(0,e.href.lastIndexOf("/"));return[4,rd().load(e.href).then(function(t){return t.path(n).htmldoc()})];case 1:r=s.sent();if(r){;;a=r.querySelectorAll("qti-stimulus-body, qti-stylesheet");t.innerHTML="",(i=t).append.apply(i,I(a)),((o=r.querySelector("qti-assessment-stimulus"))===null||o===void 0?void 0:o.title).includes("(lijst)")&&t.classList.add("qti-stimulus-list")}return[2]}})})()}}]);return n}(rt);eL([i({type:String})],rg.prototype,"identifier",2),eL([i({type:String})],rg.prototype,"href",2),rg=eL([rr("qti-assessment-stimulus-ref")],rg);var ry={toAttribute:function(t){return t?"true":"false"},fromAttribute:function(t){return t==="true"}};var rm=e9(z());var rb=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(U())}}]);return n}(rt);rb.styles=rm,rb=eL([rr("qti-item-body")],rb);var rq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(j())}},{key:"connectedCallback",value:function t(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}}]);return n}(rt);rq=eL([rr("qti-prompt")],rq);var rk=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"firstUpdated",value:function t(t){d(h(n.prototype),"firstUpdated",this).call(this,t);var e=this,r=this.getAttribute("href");if(r!==null){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.media="screen",i.href=r,e.appendChild(i),this.styleLink=i}if(this.textContent!==null){var o=document.createElement("style");o.media="screen",o.textContent=this.textContent,e.appendChild(o),this.styleLink=o}}},{key:"disconnectedCallback",value:function t(){if(this.styleLink)try{this.styleLink.remove()}catch(t){console.log("could not remove stylesheet")}}}]);return n}(rt);rk=eL([rr("qti-stylesheet")],rk);var rw=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(B())}},{key:"defaultValues",value:function t(t){var e=Array.from(this.querySelectorAll("qti-default-value > qti-value"));if(e.length===0)return null;var n=e.map(function(t){return t.innerHTML.trim()});return n.length>1||t.cardinality==="multiple"||t.cardinality==="ordered"?n:n[0]}}]);return n}(rt);rw=eL([rr("qti-variabledeclaration")],rw);var rx=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.externalScored=null;return t}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(Q(),JSON.stringify(r,null,2))}},{key:"interpolationTable",get:function t(){var t=this.querySelector("qti-interpolation-table");if(t){var e=new Map;var n=true,r=false,i=undefined;try{for(var o=t.querySelectorAll("qti-interpolation-table-entry")[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;!s.getAttribute("source-value")&&s.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");var l=parseInt(s.getAttribute("source-value")),u=parseInt(s.getAttribute("target-value"));(isNaN(l)||isNaN(u))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),e.set(l,u)}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}return e}return null}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this);var t={identifier:this.identifier,cardinality:this.cardinality,baseType:this.baseType,type:"outcome",value:null,interpolationTable:this.interpolationTable,externalScored:this.externalScored};t.value=this.defaultValues(t),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:t}}))}}]);return n}(rw);rx.styles=[e9(F())],eL([i({type:String,attribute:"base-type"})],rx.prototype,"baseType",2),eL([i({type:String,attribute:"external-scored"})],rx.prototype,"externalScored",2),eL([i({type:String})],rx.prototype,"identifier",2),eL([i({type:String})],rx.prototype,"cardinality",2),eL([e({context:rl,subscribe:!0}),s()],rx.prototype,"itemContext",2),rx=eL([rr("qti-outcome-declaration")],rx);var rC=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(W(),JSON.stringify(r,null,2))}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this);var t={baseType:this.baseType,identifier:this.identifier,correctResponse:this.correctResponse,cardinality:this.cardinality||"single",mapping:this.mapping,value:null,type:"response",candidateResponse:null};t.value=this.defaultValues(t),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:t}}))}},{key:"correctResponse",get:function t(){var t,e=this.querySelector("qti-correct-response");if(e){var n=e.querySelectorAll("qti-value");if(this.cardinality==="single"&&n.length>0)t=n[0].textContent,n[0].remove();else if(this.cardinality!=="single"){t=[];for(var r=0;r<n.length;r++)t.push(n[r].textContent),n[r].remove()}}return t}},{key:"mapping",get:function t(){return this.querySelector("qti-mapping")}}]);return n}(rw);rC.styles=[e9(Y())],eL([i({type:String,attribute:"base-type"})],rC.prototype,"baseType",2),eL([i({type:String})],rC.prototype,"identifier",2),eL([i({type:String})],rC.prototype,"cardinality",2),eL([e({context:rl,subscribe:!0}),s()],rC.prototype,"itemContext",2),rC=eL([rr("qti-response-declaration")],rC);var rA=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(rt);rA=eL([rr("qti-companion-materials-info")],rA);var rE=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(X())}}]);return n}(rt);rE=eL([rr("qti-content-body")],rE);var rS=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;this.classNames.split(" ").forEach(function(t){switch(t){case"qti-rubric-discretionary-placement":n.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":n.setAttribute("slot","");break;default:break}})}},{key:"render",value:function t(){return nj(Z())}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-rubric-block")}}]);return n}(rt);rS.styles=e9(G()),eL([i({type:String})],rS.prototype,"id",2),eL([i({type:String})],rS.prototype,"use",2),eL([i({type:String})],rS.prototype,"view",2),eL([i({type:String,attribute:"class"})],rS.prototype,"classNames",2),eL([v("classNames",{waitUntilFirstUpdate:!0})],rS.prototype,"handleclassNamesChange",1),rS=eL([rr("qti-rubric-block")],rS);var r_=function(){return new Intl.NumberFormat().format(.1).replace(/\d/g,"")},rR=function(t){if(typeof t=="string")return t;var e=r_();return e==="."?t.toLocaleString():t.toString().replace(".","").replace(e,".")};var rT=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-feedback",{bubbles:!0,composed:!0,detail:this}))}},{key:"checkShowFeedback",value:function t(t){var e=this.closest("qti-assessment-item").getOutcome(t);if(this.outcomeIdentifier!==t||!e)return;var n=!1;Array.isArray(e.value)?n=e.value.includes(this.identifier):n=!R(this.identifier)&&!R(e===null||e===void 0?void 0:e.value)&&this.identifier===e.value||!1,this.showFeedback(n)}},{key:"showFeedback",value:function t(t){this.showStatus=t&&this.showHide==="show"||!t&&this.showHide==="hide"?"on":"off"}}]);return n}(rt);eL([i({type:String,attribute:"show-hide"})],rT.prototype,"showHide",2),eL([i({type:String,attribute:"outcome-identifier"})],rT.prototype,"outcomeIdentifier",2),eL([i({type:String})],rT.prototype,"identifier",2),eL([i({type:String,attribute:!1})],rT.prototype,"showStatus",2);var rI=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(K(),this.showStatus)}},{key:"firstUpdated",value:function t(t){this.checkShowFeedback(this.outcomeIdentifier)}}]);return n}(rT);rI.styles=e9(J()),rI=eL([rr("qti-feedback-block")],rI);var rO=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tt(),t.showStatus)};return t}return n}(rT);rO.styles=e9(te()),rO=eL([rr("qti-feedback-inline")],rO);var rP=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tn(),t.showStatus)};return t}return n}(rT);rP.styles=e9(tr()),rP=eL([rr("qti-modal-feedback")],rP);var rM=function(t){return t!==null&&t!==void 0?t:nW};var rD=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.responseIdentifier="";t.disabled=!1;t.readonly=!1;return t}u(n,[{key:"correctResponse",set:function t(t){console.warn("correctResponse is not implemented")}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"saveResponse",value:function t(t){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:Array.isArray(t)?I(t):t}}))}}]);return n}(rt);eL([i({attribute:"response-identifier"})],rD.prototype,"responseIdentifier",2),eL([i({reflect:!0,type:Boolean})],rD.prototype,"disabled",2),eL([i({reflect:!0,type:Boolean})],rD.prototype,"readonly",2);var r$=n6.I;var rL=function(t){return t.strings===void 0},rN=function(){return document.createComment("")},rV=function(t,e,n){var r=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(n===void 0){var o=r.insertBefore(rN(),i),a=r.insertBefore(rN(),i);n=new r$(o,a,t,t.options)}else{var s=n._$AB.nextSibling,l=n._$AM,u=l!==t;if(u){var c;var d;(c=n._$AQ)===null||c===void 0?void 0:c.call(n,t),n._$AM=t,n._$AP!==void 0&&(d=t._$AU)!==l._$AU&&n._$AP(d)}if(s!==i||u){var h=n._$AA;for(;h!==s;){var p=h.nextSibling;r.insertBefore(h,i),h=p}}}return n},rH=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;return t._$AI(e,n),t},rz={},rU=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rz;return t._$AH=e},rj=function(t){return t._$AH},rB=function(t){var e;(e=t._$AP)===null||e===void 0?void 0:e.call(t,!1,!0);var n=t._$AA,r=t._$AB.nextSibling;for(;n!==r;){var i=n.nextSibling;n.remove(),n=i}};var rQ={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rF=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return{_$litDirective$:t,values:n}}},rW=function(){"use strict";function t(e){a(this,t)}u(t,[{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AT",value:function t(t,e,n){this.t=t,this._$AM=e,this.i=n}},{key:"_$AS",value:function t(t,e){return this.update(t,e)}},{key:"update",value:function t(t,e){return this.render.apply(this,I(e))}}]);return t}();var rY=function(t,e){var n;var r=t._$AN;if(r===void 0)return!1;var i=true,o=false,a=undefined;try{for(var s=r[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var u=l.value;(n=u._$AO)===null||n===void 0?void 0:n.call(u,e,!1),rY(u,e)}}catch(t){o=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(o){throw a}}}return!0},rX=function(t){var e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n===null||n===void 0?void 0:n.size)===0)},rZ=function(t){for(var e;e=t._$AM;t=e){var n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),rG(e)}};var rG=function(t){var e,n;t.type==rQ.CHILD&&((e=t._$AP)!==null&&e!==void 0?e:t._$AP=ex,(n=t._$AQ)!==null&&n!==void 0?n:t._$AQ=D)},rK=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t._$AN=void 0;return x(t)}u(n,[{key:"_$AT",value:function t(t,e,r){d(h(n.prototype),"_$AT",this).call(this,t,e,r),rZ(this),this.isConnected=t._$AU}},{key:"_$AO",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;var n,r,i,o;t!==this.isConnected&&(this.isConnected=t,t?(n=(r=this).reconnected)===null||n===void 0?void 0:n.call(r):(i=(o=this).disconnected)===null||i===void 0?void 0:i.call(o)),e&&(rY(this,t),rX(this))}},{key:"setValue",value:function t(t){if(rL(this.t))this.t._$AI(t,this);else{var e=I(this.t._$AH);e[this.i]=t,this.t._$AI(e,this,0)}}},{key:"disconnected",value:function t(){}},{key:"reconnected",value:function t(){}}]);return n}(rW);var rJ=function(){return new r0},r0=function t(){"use strict";a(this,t)},r1=new WeakMap,r2=rF(function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(t){return nW}},{key:"update",value:function t(t,e){var n=S(e,1),r=n[0];var i;var o=r!==this.Y;return o&&this.Y!==void 0&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.Y=r,this.ht=(i=t.options)===null||i===void 0?void 0:i.host,this.rt(this.ct=t.element)),nW}},{key:"rt",value:function t(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){var e;var n=(e=this.ht)!==null&&e!==void 0?e:globalThis,r=r1.get(n);r===void 0&&(r=new WeakMap,r1.set(n,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}},{key:"lt",get:function t(){var t,e;var n;return typeof this.Y=="function"?(t=r1.get((n=this.ht)!==null&&n!==void 0?n:globalThis))===null||t===void 0?void 0:t.get(this.Y):(e=this.Y)===null||e===void 0?void 0:e.value}},{key:"disconnected",value:function t(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function t(){this.rt(this.ct)}}]);return n}(rK));var r5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.textareaRef=rJ();t._value="";return t}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;this.classNames.split(" ").forEach(function(t){if(t.startsWith("qti-height-lines")){var e=t.replace("qti-height-lines-","");n.textareaRef&&(n.textareaRef.value.rows=parseInt(e))}})}},{key:"response",set:function t(t){this._value=t!==void 0?t:""}},{key:"validate",value:function t(){return this._value!==""}},{key:"render",value:function t(){var t=this;return nj(to(),r2(this.textareaRef),function(t){return t.stopImmediatePropagation()},this.textChanged,this.textChanged,function(e){var n=e.target;n.checkValidity()?n.setCustomValidity(""):(n.setCustomValidity(t.dataset.patternmaskMessage||"Invalid input"),n.reportValidity())},rM(this.placeholderText?this.placeholderText:void 0),rM(this.expectedLength?this.expectedLength:void 0),rM(this.patternMask?this.patternMask:void 0),this.disabled,this.readonly,this._value)}},{key:"textChanged",value:function t(t){if(this.disabled||this.readonly)return;var e=t.target;this.setEmptyAttribute(e.value),this._value!==e.value&&(this._value=e.value,this.saveResponse(e.value))}},{key:"reset",value:function t(){this._value=""}},{key:"setEmptyAttribute",value:function t(t){this.setAttribute("empty",t===""?"true":"false")}}],[{key:"styles",get:function t(){return[e9(ti())]}}]);return n}(rD);eL([i({type:Number,attribute:"expected-length"})],r5.prototype,"expectedLength",2),eL([i({type:String,attribute:"pattern-mask"})],r5.prototype,"patternMask",2),eL([i({type:String,attribute:"placeholder-text"})],r5.prototype,"placeholderText",2),eL([s()],r5.prototype,"_value",2),eL([i({type:String,attribute:"class"})],r5.prototype,"classNames",2),eL([v("classNames",{waitUntilFirstUpdate:!0})],r5.prototype,"handleclassNamesChange",1),r5=eL([rr("qti-extended-text-interaction")],r5);var r3=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._value="";t._correctValue="";t._size=5;t.inputRef=rJ();return t}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;e.split(" ").forEach(function(t){if(t.startsWith("qti-input-width")){var e=t.replace("qti-input-width-","");n._size=parseInt(e)}})}},{key:"response",set:function t(t){this._value=t!==void 0?t:""}},{key:"validate",value:function t(){return this._value!==""}},{key:"correctResponse",set:function t(t){this._correctValue=t}},{key:"render",value:function t(){var t=this;return nj(ts(),function(e){var n=e.target;n.checkValidity()?n.setCustomValidity(""):(n.setCustomValidity(t.dataset.patternmaskMessage||"Invalid input"),n.reportValidity())},function(t){return t.stopImmediatePropagation()},this.textChanged,this.textChanged,this.patternMask=="[0-9]*"?"number":"text",rM(this.placeholderText?this.placeholderText:void 0),this._value,this._size,rM(this.patternMask?this.patternMask:void 0),this.disabled,this.readonly,this._correctValue)}},{key:"textChanged",value:function t(t){if(this.disabled||this.readonly)return;var e=t.target;this.setEmptyAttribute(e.value),this._value!==e.value&&(this._value=e.value,this.saveResponse(e.value))}},{key:"reset",value:function t(){this._value=""}},{key:"setEmptyAttribute",value:function t(t){this.setAttribute("empty",t===""?"true":"false")}}],[{key:"styles",get:function t(){return[e9(ta())]}}]);return n}(rD);eL([i({type:Number,attribute:"expected-length"})],r3.prototype,"expectedLength",2),eL([i({type:String,attribute:"pattern-mask"})],r3.prototype,"patternMask",2),eL([i({type:String,attribute:"placeholder-text"})],r3.prototype,"placeholderText",2),eL([s()],r3.prototype,"_value",2),eL([s()],r3.prototype,"_correctValue",2),eL([s()],r3.prototype,"_size",2),eL([i({type:String,attribute:"class"})],r3.prototype,"classNames",2),eL([v("classNames")],r3.prototype,"handleclassNamesChange",1),r3=eL([rr("qti-text-entry-interaction")],r3);var r4=function(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}a(this,r);var o;o=n.call.apply(n,[this].concat(I(e)));o._choiceElements=[];o.responseIdentifier="";o.minChoices=0;o.maxChoices=1;o.disabled=!1;o._handleDisabledChange=function(t,e){o._choiceElements.forEach(function(t){return t.disabled=e})};o.readonly=!1;o._handleReadonlyChange=function(t,e){o._choiceElements.forEach(function(t){return t.readonly=e})};return o}u(r,[{key:"_handleMaxChoicesChange",value:function t(t,e){this._determineInputType()}},{key:"validate",value:function t(){var t=this;var e=this._choiceElements.filter(function(e){return t._getChoiceChecked(e)}).length;return this.maxChoices!==0&&e>this.maxChoices?!1:e>=this.minChoices}},{key:"response",set:function t(t){var e=this;var n=Array.isArray(t)?t:[t];this._choiceElements.forEach(function(t){e._setChoiceChecked(t,n.includes(t.identifier))})}},{key:"correctResponse",set:function t(t){var e=Array.isArray(t)?t:[t];if(e.length===0){this._choiceElements.forEach(function(t){t.removeAttribute("data-correct-response")});return}this._choiceElements.forEach(function(t){t.setAttribute("data-correct-response",e.includes(t.identifier)?"true":"false")})}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.addEventListener("register-".concat(e),this._registerChoiceElement),this.addEventListener("unregister-".concat(e),this._unregisterChoiceElement),this.addEventListener("activate-".concat(e),this._choiceElementSelectedHandler),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0}))}},{key:"disconnectedCallback",value:function t(){d(h(r.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("register-".concat(e),this._registerChoiceElement),this.removeEventListener("unregister-".concat(e),this._unregisterChoiceElement),this.removeEventListener("activate-".concat(e),this._choiceElementSelectedHandler)}},{key:"_registerChoiceElement",value:function t(t){t.stopPropagation();var e=t.target;e.disabled=this.disabled,this._choiceElements.push(e),this._setInputType(e)}},{key:"_unregisterChoiceElement",value:function t(t){t.stopPropagation();var e=t.target;this._choiceElements=this._choiceElements.filter(function(t){return t!==e})}},{key:"_determineInputType",value:function t(){var t=this;this._choiceElements.forEach(function(e){t._setInputType(e)})}},{key:"_setInputType",value:function t(t){t.setAttribute("role",this.maxChoices===1?"radio":"checkbox")}},{key:"_choiceElementSelectedHandler",value:function t(t){var e=this;this._toggleChoiceChecked(t.target),this.maxChoices===1&&this._choiceElements.forEach(function(n){n.identifier!==t.detail.identifier&&e._setChoiceChecked(n,!1)}),this._handleChoiceSelection()}},{key:"_setChoiceChecked",value:function t(t,e){t.setAttribute("aria-checked",e.toString())}},{key:"_getChoiceChecked",value:function t(t){return t.getAttribute("aria-checked")==="true"}},{key:"_toggleChoiceChecked",value:function t(t){var e=this._getChoiceChecked(t);this._setChoiceChecked(t,!e)}},{key:"_handleChoiceSelection",value:function t(){var t=this;var e=this._choiceElements.filter(function(e){return t._getChoiceChecked(e)}),n=e.map(function(t){return t.identifier});if(this.maxChoices>1&&this.maxChoices!==0){var r=e.length>=this.maxChoices;this._choiceElements.forEach(function(e){t._getChoiceChecked(e)||(e.disabled=r)})}var i=this.maxChoices===1?n[0]||void 0:n;this._saveResponse(i)}},{key:"_saveResponse",value:function t(t){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:t}}))}}]);return r}(t);return eL([i({attribute:"response-identifier"})],n.prototype,"responseIdentifier",2),eL([i({type:Number,attribute:"min-choices"})],n.prototype,"minChoices",2),eL([i({type:Number,attribute:"max-choices"})],n.prototype,"maxChoices",2),eL([v("maxChoices",{waitUntilFirstUpdate:!0})],n.prototype,"_handleMaxChoicesChange",1),eL([i({reflect:!0,type:Boolean})],n.prototype,"disabled",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],n.prototype,"_handleDisabledChange",2),eL([i({reflect:!0,type:Boolean})],n.prototype,"readonly",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],n.prototype,"_handleReadonlyChange",2),n};var r6=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tl())};return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("qti-hottext-interaction","")}}]);return n}(r4(rt,"qti-hottext"));r6=eL([rr("qti-hottext-interaction")],r6);var r7=function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;if(r=e.call(this,t),r.it=nW,t.type!==rQ.CHILD)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return x(r)}u(n,[{key:"render",value:function t(t){if(t===nW||t==null)return this._t=void 0,this.it=t;if(t===nF)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;var e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}]);return n}(rW);r7.directiveName="unsafeHTML",r7.resultType=1;var r8=rF(r7);var r9=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.options=[];t.correctOption="";t.dataPrompt="select";return t}u(n,[{key:"render",value:function t(){return nj(td(),this.choiceSelected,this.disabled,this.readonly,this.options.map(function(t){return nj(tc(),t.value,t.selected,r8(t.textContent))}),r8(this.correctOption))}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("on-dropdown-selected",this.choiceSelected);var t=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:this.dataPrompt,value:"",selected:!1}].concat(I(t.map(function(t){return{textContent:t.innerHTML,value:t.getAttribute("identifier"),selected:!1}})))}},{key:"disconnectedCallback",value:function t(){this.removeEventListener("on-dropdown-selected",this.choiceSelected)}},{key:"validate",value:function t(){var t=this.options.find(function(t){return t.selected});return t?t.value!=="":!1}},{key:"reset",value:function t(){this.options=this.options.map(function(t,e){return w(q({},t),{selected:e===0})})}},{key:"response",set:function t(t){this.options=this.options.map(function(e){return t===e.value&&(e.selected=!0),e})}},{key:"correctResponse",set:function t(t){if(t===""){this.correctOption="";return}this.correctOption='<span part="correct-option">'.concat(this.options.find(function(e){return t===e.value}).textContent,"</span>")}},{key:"choiceSelected",value:function t(t){var e=t.target.value;this.options=this.options.map(function(t){return w(q({},t),{selected:t.value===e})}),this.saveResponse(e)}}],[{key:"styles",get:function t(){return[e9(tu())]}}]);return n}(rD);r9.inputWidthClass=["","qti-input-width-2","qti-input-width-1","qti-input-width-3","qti-input-width-4","qti-input-width-6","qti-input-width-10","qti-input-width-15","qti-input-width-20","qti-input-width-72"],eL([s()],r9.prototype,"options",2),eL([s()],r9.prototype,"correctOption",2),eL([i({attribute:"data-prompt",type:String})],r9.prototype,"dataPrompt",2),r9=eL([rr("qti-inline-choice-interaction")],r9);var it=function(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){a(this,r);var t;t=n.call.apply(n,[this].concat(Array.prototype.slice.call(arguments)));t._shuffle=!1;return t}u(r,[{key:"shuffle",get:function t(){return this._shuffle},set:function t(t){var e=this._shuffle;this._shuffle=t,t?this._shuffleChoices():this._resetShuffleChoices(),this.requestUpdate("shuffle",e)}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.shuffle?this._shuffleChoices():this._resetShuffleChoices()}},{key:"_shuffleChoices",value:function t(){var t=Array.from(this.querySelectorAll(e)),n=[],r=[];if(t.forEach(function(t,e){t.hasAttribute("fixed")?n.push({element:t,index:e}):r.push(t)}),r.length<=1){console.warn("Shuffling is not possible with fewer than 2 non-fixed elements.");return}var i=!1,o=10,a=0,s=I(r);for(;!i&&a<o;){a++;for(var l=r.length-1;l>0;l--){var u=Math.floor(Math.random()*(l+1));var c;c=[r[u],r[l]],r[l]=c[0],r[u]=c[1],c}if(i=!r.every(function(t,e){return t===s[e]}),i)break}i||console.warn("Failed to shuffle the choices after multiple attempts.");var d=1;t.forEach(function(t,e){t.hasAttribute("fixed")?t.style.setProperty("order",String(d++)):r.shift().style.setProperty("order",String(d++))})}},{key:"_resetShuffleChoices",value:function t(){Array.from(this.querySelectorAll("qti-simple-choice")).forEach(function(t,e){t.style.setProperty("order","initial")})}}]);return r}(t);return eL([i({type:String,reflect:!0,converter:ie})],n.prototype,"shuffle",1),n},ie={fromAttribute:function t(t){return t==="true"},toAttribute:function t(t){return t?"true":"false"}};var ir=function(t,e){var n=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._classes=[];t._allLabels=["qti-labels-decimal","qti-labels-lower-alpha","qti-labels-upper-alpha"];t._allLabelSuffixes=["qti-labels-suffix-period","qti-labels-suffix-parenthesis"];return t}u(n,[{key:"class",get:function t(){var t;return((t=this._classes)===null||t===void 0?void 0:t.join(" "))||""},set:function t(t){t&&(this._classes=t.split(" "),this._addLabels())}},{key:"updated",value:function t(t){d(h(n.prototype),"updated",this).call(this,t),t.has("shuffle")&&this._addLabels()}},{key:"_addLabels",value:function t(){var t=this;var e=this._classes.some(function(e){return t._allLabels.includes(e)||t._allLabelSuffixes.includes(e)}),n=function(t){return!isNaN(+t)};if(e){var r=Array.from(this.querySelectorAll("qti-simple-choice")).map(function(t){return t}).map(function(t,e){return{el:t,order:n(t.style.order)?+t.style.order:e+1}}).sort(function(t,e){return t.order-e.order}).map(function(t){return t.el});for(var i=0;i<r.length;i++)r[i].marker=this._getLabel(i+1)}}},{key:"_getLabel",value:function t(t){var e=this;var n=this._classes.filter(function(t){return e._allLabels.includes(t)}).pop(),r=this._classes.filter(function(t){return e._allLabelSuffixes.includes(t)}).pop();!n&&r&&(n="qti-labels-upper-alpha");var i="";switch(n){case"qti-labels-decimal":i="".concat(t);break;case"qti-labels-lower-alpha":i="".concat(String.fromCharCode(97+t-1));break;case"qti-labels-upper-alpha":i="".concat(String.fromCharCode(65+t-1));break}return r==="qti-labels-suffix-period"?i+=".":r==="qti-labels-suffix-parenthesis"&&(i+=")"),i}}]);return n}(t);return eL([i({type:String,reflect:!0})],n.prototype,"class",1),n};var ii=e9(th());var io=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tp())}}]);return n}(ir(it(r4(rt,"qti-simple-choice"),"qti-simple-choice"),"qti-simple-choice"));io.styles=ii,eL([i({type:String})],io.prototype,"orientation",2),io=eL([rr("qti-choice-interaction")],io);var ia=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tf())}},{key:"process",value:function t(){var t=new is,e=I(this.children);t.process(e)}}]);return n}(rt);ia.styles=[e9(tv())],ia=eL([rr("qti-outcome-processing")],ia);var is=function(){"use strict";function t(){a(this,t)}u(t,[{key:"process",value:function t(t){var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;a.process()}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}}}]);return t}();var il='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-match>\n <qti-variable identifier="RESPONSE"></qti-variable>\n <qti-correct identifier="RESPONSE"></qti-correct>\n </qti-match>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">1</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>',iu='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier="RESPONSE"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0.0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-map-response identifier="RESPONSE"> </qti-map-response>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>',ic='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier="RESPONSE"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-map-response-point identifier="RESPONSE"></qti-map-response-point>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>';var id=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tg())}},{key:"process",value:function t(){var t=I(this.children);var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;a.process()}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}}},{key:"firstUpdated",value:function t(t){if(this.getAttribute("template")){var e=this.getAttribute("template").split("/"),n=e[e.length-1].replace(".xml","");switch(this.innerHTML="",n){case"map_response":{this.appendChild(this.fragmentFromString(iu).firstElementChild.firstElementChild);break}case"map_response_point":{this.appendChild(this.fragmentFromString(ic).firstElementChild.firstElementChild);break}case"match_correct":this.appendChild(this.fragmentFromString(il).firstElementChild.firstElementChild);break}}}},{key:"fragmentFromString",value:function t(t){return document.createRange().createContextualFragment(t)}}]);return n}(rt);id.styles=[e9(ty())],id=eL([rr("qti-response-processing")],id);var ih=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tm())}},{key:"process",value:function t(){throw new Error("Not implemented")}}]);return n}(rt);ih=eL([rr("qti-rule")],ih);var ip=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"childExpression",get:function t(){return this.firstElementChild}},{key:"process",value:function t(){var t=this.getAttribute("identifier"),e=this.closest("qti-assessment-item").getVariable(t),n;return e.interpolationTable&&(n=e.interpolationTable.get(parseInt(this.childExpression.calculate()))),n==null?(console.warn("lookupOutcomeValue: value is null or undefined"),0):(this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:this.identifier,value:rR(n)}})),n)}}]);return n}(ih);eL([i({type:String})],ip.prototype,"identifier",2);customElements.define("qti-lookup-outcome-value",ip);var iv=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tb())}},{key:"process",value:function t(){var t=I(this.children);for(var e=0;e<t.length;e++){var n=t[e];if(n.calculate()){n.process();return}}}}]);return n}(ih);customElements.define("qti-response-condition",iv);var ig=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"process",value:function t(){var t=this.getAttribute("identifier"),e=this.firstElementChild,n=new iy(e).process();this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:t,value:Array.isArray(n)?n.map(function(t){return rR(t)}):rR(n)}}))}}]);return n}(ih),iy=function(){"use strict";function t(e){a(this,t);this.expression=e}u(t,[{key:"process",value:function t(){var t=this.expression?this.expression.calculate():null;if(t==null){console.warn("setOutcomeValue: value is null or undefined");return}return t}}]);return t}();customElements.define("qti-set-outcome-value",ig);var im=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tq())}},{key:"calculate",value:function t(){return!0}},{key:"getSubRules",value:function t(){return I(this.children)}},{key:"process",value:function t(){var t=this.getSubRules();for(var e=0;e<t.length;e++)t[e].process()}}]);return n}(rt);customElements.define("qti-response-else",im);var ib=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.firstElementChild.calculate()}},{key:"getSubRules",value:function t(){var t=[];for(var e=1;e<this.children.length;e++)t.push(this.children[e]);return t}}]);return n}(im);customElements.define("qti-response-if",ib);var iq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tk(),d(h(n.prototype),"render",this).call(this))}}]);return n}(ib);customElements.define("qti-response-else-if",iq);var ik=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.getVariables=function(){return Array.from(t.children).map(function(e){switch(e.tagName.toLowerCase()){case"qti-base-value":return{baseType:e.getAttribute("base-type"),value:e.textContent.trim(),cardinality:"single"};case"qti-variable":{var n=e.getAttribute("identifier")||"";return t.assessmentItem.getVariable(n)}case"qti-multiple":{var r=e.getResult();return r.length>0?{identifier:"",baseType:r[0].baseType,value:r.map(function(t){return t.value}),cardinality:"multiple",type:"response"}:null}case"qti-correct":{var i=e.getAttribute("identifier")||"",o=t.assessmentItem.getResponse(i);return{baseType:o.baseType,value:o.correctResponse,cardinality:o.cardinality}}default:{try{return{baseType:"integer",value:e.getResult().toString(),cardinality:"single"}}catch(t){console.warn("default not sufficient")}return null}}}).filter(function(t){return t!==null})};return t}u(n,[{key:"render",value:function t(){return nj(tw(),JSON.stringify(this.result,null,2))}},{key:"calculate",value:function t(){return this.result=this.getResult(),this.result}},{key:"getResult",value:function t(){throw new Error("Not implemented")}},{key:"assessmentItem",get:function t(){return this.closest("qti-assessment-item")}}]);return n}(rt);ik.styles=e9(tx()),eL([s()],ik.prototype,"result",2);var iw=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.result=this.getResult(),this.result}},{key:"getResult",value:function t(){throw new Error("Not implemented")}}]);return n}(ik);var ix=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.calculateChildren(Array.from(this.children))}}]);return n}(eA(iw));customElements.define("qti-and",ix);var iC=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.baseType="string";return t}u(n,[{key:"getResult",value:function t(){return this.textContent.trim()}}]);return n}(ik);eL([i({type:String,attribute:"base-type"})],iC.prototype,"baseType",2);customElements.define("qti-base-value",iC);var iA=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(this.children.length===2){var e=t[0],n=t[1];if(e.baseType==="directedPair"&&n.baseType==="directedPair"&&e.cardinality==="multiple"){var r=e.value,i=n.value;return r.filter(function(t){return i.includes(t)}).length>0}else if(e.baseType==="directedPair"&&n.baseType==="directedPair"&&e.cardinality==="single"){var o=e.value;return n.value.includes(o)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}}]);return n}(iw);customElements.define("qti-contains",iA);var iE=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"interpretation",get:function t(){return this.getAttribute("interpretation")||""}},{key:"getResult",value:function t(){var t=this.getAttribute("identifier")||"",e=this.closest("qti-assessment-item").getResponse(t);return e.correctResponse,e.cardinality!=="single"?e.correctResponse.length>0?e.correctResponse[0]:"":e.correctResponse}}]);return n}(ik);customElements.define("qti-correct",iE);var iS=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.roundingMode="significantFigures";return t}u(n,[{key:"figures",get:function t(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;var t=parseInt(this.getAttribute("figures")||"0");return isNaN(t)?(console.error("figures attribute is not a number"),null):t<0?(console.error("figures attribute is negative"),null):t<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):t}},{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(this.roundingMode===null)return null;if(e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value))return console.error("unexpected cardinality in qti equal"),!1;switch(t[0].baseType){case"integer":case"float":{var r=parseFloat(e.value),i=parseFloat(n.value);if(!isNaN(r)&&!isNaN(i))return this.roundingMode==="significantFigures"?r.toPrecision(this.figures)===i.toPrecision(this.figures):Math.round(r*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(i*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error("value cannot be casted to numeric value in equalRounded operator: ".concat(r,", ").concat(i));break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}}]);return n}(ik);eL([i({type:String})],iS.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",iS);var i_=function(){"use strict";function t(){a(this,t)}u(t,null,[{key:"compareSingleValues",value:function t(t,e,n){switch(n){case"identifier":case"string":return t===e;case"integer":{var r=parseInt(t,10),i=parseInt(e,10);if(!isNaN(r)&&!isNaN(i))return r===i;console.error("Cannot convert ".concat(t," and/or ").concat(e," to int."));break}case"float":{var o=parseFloat(t),a=parseFloat(e);if(!isNaN(o)&&!isNaN(a))return o===a;console.error("couldn't convert ".concat(t," and/or ").concat(e," to float."));break}case"pair":case"directedPair":{var s=t.split(" ").sort(),l=e.split(" ").sort();if(s.length===2&&l.length===2)return n==="pair"&&(s.sort(),l.sort()),s.join(" ")===l.join(" ");console.error("compared two pair but one of the values does not have 2 values: 1: ".concat(t," 2: ").concat(e));break}}return!1}}]);return t}();var iR=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.toleranceMode="exact";return t}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value)?(console.error("unexpected cardinality in qti equal"),!1):i_.compareSingleValues(e.value,n.value,e.baseType)}return console.error("unexpected number of children in qti-equal"),null}}]);return n}(ik);eL([i({type:String})],iR.prototype,"toleranceMode",2);customElements.define("qti-equal",iR);var iT=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float"))return+e.value>+n.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}}]);return n}(ik);customElements.define("qti-gt",iT);var iI=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float")?+e.value>=+n.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}}]);return n}(iw);customElements.define("qti-gte",iI);var iO=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===1){var t=this.getVariables();if(!t)return!0;var e=t[0].value;return e==null||e==null||e===""}return console.error("unexpected number of children in qti Null"),null}}]);return n}(ik);customElements.define("qti-is-null",iO);var iP=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float"))return+e.value<+n.value;console.error("unexpected baseType or cardinality in qti lt")}return console.error("unexpected number of children in lt"),null}}]);return n}(ik);customElements.define("qti-lt",iP);var iM=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float")?+e.value<=+n.value:(console.error("unexpected baseType or cardinality in qti lte"),null)}return console.log("unexpected number of children in lte"),null}}]);return n}(iw);customElements.define("qti-lte",iM);var iD=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.assessmentItem.getResponse(this.identifier);if(!t)return console.warn("Response ".concat(this.identifier," can not be found")),null;var e=t.mapping,n=Array.isArray(t.value)?t.value:[t.value],r=0;var i=true,o=false,a=undefined;try{var s=function(){var n=u.value;var i=e.mapEntries.find(function(e){return i_.compareSingleValues(e.mapKey,n,t.baseType)});i==null||i.mappedValue==null?r+=e.defaultValue:r+=i.mappedValue};for(var l=n[Symbol.iterator](),u;!(i=(u=l.next()).done);i=true)s()}catch(t){o=true;a=t}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(o){throw a}}}return e.lowerBound!=null&&(r=Math.max(e.lowerBound,r)),e.upperBound!=null&&(r=Math.min(e.upperBound,r)),r}}]);return n}(ik);eL([i({type:String})],iD.prototype,"identifier",2);customElements.define("qti-map-response",iD);var i$=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.defaultValue=0;return t}u(n,[{key:"mapEntries",get:function t(){return Array.from(this.querySelectorAll("qti-map-entry")).map(function(t){return{mapKey:t.getAttribute("map-key"),mappedValue:+t.getAttribute("mapped-value")}})}}]);return n}(rt);eL([i({attribute:"default-value",type:Number})],i$.prototype,"defaultValue",2),eL([i({attribute:"lower-bound",type:Number})],i$.prototype,"lowerBound",2),eL([i({attribute:"upper-bound",type:Number})],i$.prototype,"upperBound",2);customElements.define("qti-mapping",i$);var iL=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],r=t[1];return n.match(e,r)}return console.error("unexpected number of children in match"),null}}],[{key:"match",value:function t(t,e){switch(e.cardinality){case"single":var n;return t.value===null?!1:Array.isArray(t.value)||Array.isArray(e.value)?(console.error("unexpected cardinality in qti match"),!1):i_.compareSingleValues((n=t.value)===null||n===void 0?void 0:n.toString(),e.value.toString(),e.baseType);case"ordered":{if(!Array.isArray(t.value)||!Array.isArray(e.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==e.value.length)return!1;for(var r=0;r<t.value.length;r++)if(!i_.compareSingleValues(e.value[r],t.value[r],e.baseType))return!1;return!0}case"multiple":{if(!Array.isArray(t.value)||!Array.isArray(e.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==e.value.length)return!1;var i=0;var o=true,a=false,s=undefined;try{for(var l=e.value[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;var d=null,h=I(t.value);var p=true,f=false,v=undefined;try{for(var g=h[Symbol.iterator](),y;!(p=(y=g.next()).done);p=true){var m=y.value;if(i_.compareSingleValues(c,m,e.baseType)){d=m;break}}}catch(t){f=true;v=t}finally{try{if(!p&&g.return!=null){g.return()}}finally{if(f){throw v}}}if(d!==null)h.splice(h.indexOf(d),1);else return!1;i++}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}return!0}default:return console.error("unexpected cardinality in qti match"),!1}}}]);return n}(ik);customElements.define("qti-match",iL);var iN=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();this.children.length!==2&&console.warn("The member operator takes two sub-expressions");var e=S(t,2),n=e[0],r=e[1];if(n.baseType!==r.baseType&&console.warn("Which must both have the same base-type"),r.cardinality==="multiple"||r.cardinality==="ordered"||console.warn("and the second must be a multiple or ordered container"),(n.baseType==="float"||r.baseType==="float")&&console.warn("The member operator should not be used on sub-expressions with a base-type of float"),(n.baseType==="duration"||r.baseType==="duration")&&console.warn("It must not be used on sub-expressions with a base-type of duration"),n.value===null||r.value===null)return null;var i=n.value;return r.value.includes(i)}}]);return n}(ik);customElements.define("qti-member",iN);var iV=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;if(a.cardinality!=="multiple"&&a.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[]}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}return t}}]);return n}(ik);customElements.define("qti-multiple",iV);var iH=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tC(),d(h(n.prototype),"render",this).call(this))}},{key:"getResult",value:function t(){return!this.firstElementChild.calculate()}}]);return n}(ik);customElements.define("qti-not",iH);var iz=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){return Array.from(this.children).map(function(t){var e=t;if(!e.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var n=e.calculate();if(typeof n=="string")if(n==="true")n=!0;else if(n==="false")n=!1;else return console.error("unexpected value in qti-or, expected boolean"),null;return n}).some(function(t){return typeof t=="boolean"&&t})}}]);return n}(iw);customElements.define("qti-or",iz);var iU=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;if(a.cardinality!=="ordered"&&a.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[]}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}return t}}]);return n}(ik);customElements.define("qti-ordered",iU);var ij=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(tA(),JSON.stringify(r,null,2))}},{key:"calculate",value:function t(){var t=this.closest("qti-assessment-item"),e=this.identifier;return t.getVariable(e).value}}]);return n}(rt);eL([i({type:String})],ij.prototype,"identifier",2),eL([e({context:rl,subscribe:!0}),s()],ij.prototype,"itemContext",2);customElements.define("qti-printed-variable",ij);var iB=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){return this.getVariables().reduce(function(t,e){if(e.baseType=="float"||e.baseType=="integer")try{return t*parseInt(e.value.toString())}catch(t){console.warn("can not convert to number")}else console.warn("has another baseType ".concat(e.baseType));return t},1)}}]);return n}(ik);customElements.define("qti-product",iB);var iQ=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.caseSensitive="true";return t}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value))return console.error("unexpected cardinality in qti string-match"),!1;var r=this.caseSensitive==="true"?e.value:e.value.toLowerCase(),i=this.caseSensitive==="true"?n.value:n.value.toLowerCase();return i_.compareSingleValues(r,i,e.baseType)}return console.error("unexpected number of children in qti-string-match"),null}}]);return n}(ik);eL([i({type:String,attribute:"case-sensitive"})],iQ.prototype,"caseSensitive",2);customElements.define("qti-string-match",iQ);var iF=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t._expression=new iW(Array.from(t.children));return x(t)}u(n,[{key:"getResult",value:function t(){return this._expression.calculate()}}]);return n}(ik),iW=function(){"use strict";function t(e){a(this,t);this.expressions=e}u(t,[{key:"calculate",value:function t(){return this.expressions.map(function(t){if(!t.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var e=t.calculate();return Number.isNaN(e)?(console.error("unexpected value in qti-sum, expected number"),null):Number(e)}).reduce(function(t,e){return t+e},0)}}]);return t}();customElements.define("qti-sum",iF);var iY=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariable(t).value}}]);return n}(ik);customElements.define("qti-variable",iY);var iX=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._errorMessage=null;var i=r(t);t.loadConfig=function(){var t=o(function(t,e){var n,r,o,a;return L(this,function(o){switch(o.label){case 0:t=i.removeDoubleSlashes(t);o.label=1;case 1:o.trys.push([1,5,,6]);return[4,fetch(t)];case 2:n=o.sent();if(!n.ok)return[3,4];return[4,n.json()];case 3:r=o.sent();for(var s in r.paths)e&&(r.paths[s]=i.getResolvablePath(r.paths[s],e));return[2,r];case 4:return[3,6];case 5:a=o.sent();return[3,6];case 6:return[2,null]}})});return function(e,n){return t.apply(this,arguments)}}();t.getResolvablePathString=function(e,n){return e=e.replace(/\.js$/,""),(e===null||e===void 0?void 0:e.toLocaleLowerCase().startsWith("http"))||!n?e:t.removeDoubleSlashes("".concat(n,"/").concat(e))};t.getResolvablePath=function(e,n){return Array.isArray(e)?e.map(function(e){return t.getResolvablePathString(e,n)}):t.getResolvablePathString(e,n)};return t}u(n,[{key:"convertQtiVariableJSON",value:function t(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if(n){for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];if(Array.isArray(i))return i.map(String);if(i!=null)return String(i)}}}return null}},{key:"startChecking",value:function t(){var t=this;this.intervalId=setInterval(function(){var e=t.pci.getResponse(),n=t.pci.getResponse(),r=JSON.stringify(e);if(r!==t.rawResponse){t.rawResponse=r;var i=t.convertQtiVariableJSON(n);t.response=i,t.saveResponse(i)}},200)}},{key:"stopChecking",value:function t(){this.intervalId!==void 0&&clearInterval(this.intervalId)}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"getTAOConfig",value:function t(t){var e=t.querySelectorAll("properties"),n={},r=function(t){var e={},n=t.getAttribute("key");if(n){var r=Array.from(t.children),o=r.map(function(t){return t.getAttribute("key")});o.length>0&&!o.find(function(t){return!Number.isInteger(+t)})?e[n]=r.map(function(t){return i(t)}):e[n]=t.textContent}return e},i=function(t){if(t){var e={};var n=true,i=false,o=undefined;try{for(var a=t.children[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){var l=s.value;e=q({},e,r(l))}}catch(t){i=true;o=t}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(i){throw o}}}return e}};var o=true,a=false,s=undefined;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;return c.getAttribute("key")||(n=q({},n,i(c))),n}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}return console.log("Can not find qti-custom-interaction config"),null}},{key:"register",value:function t(t){this.pci=t;var e=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",n=e=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");n.classList.add("qti-customInteraction"),e=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");var r=e=="IMS"?{properties:this.dataset,onready:function(){console.log("onready")}}:this.getTAOConfig(this);e=="IMS"?t.getInstance(n,r,void 0):t.initialize(this.customInteractionTypeIdentifier,n.firstElementChild,r),e=="TAO"&&Array.from(this.querySelectorAll("link")).map(function(t){return t.getAttribute("href")}).forEach(function(t){var e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="screen",e.href=t,n.appendChild(e)}),this.startChecking()}},{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this),define("qtiCustomInteractionContext",function(){return{register:function(e){t.register(e)},notifyReady:function(){}}});var e=this.buildRequireConfig();requirejs.config(e)(["require"],function(e){e([t.module])})}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),requirejs.undef(this.customInteractionTypeIdentifier);var t=requirejs.s.contexts;delete t[this.customInteractionTypeIdentifier],this.stopChecking()}},{key:"buildRequireConfig",value:function t(){var t={context:this.customInteractionTypeIdentifier,catchError:!0,paths:window.requirePaths||{},shim:window.requireShim||{}};if(!globalThis.require)return this._errorMessage="RequireJS not found. Please load it via CDN: https://cdnjs.com/libraries/require.js",null;var e=this.getAttribute("data-base-url"),n=this.querySelector("qti-interaction-modules");if(n){var r=n.querySelectorAll("qti-interaction-module");var i=true,o=false,a=undefined;try{for(var s=r[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var u=l.value;var c=u.getAttribute("id"),d=u.getAttribute("primary-path"),h=u.getAttribute("fallback-path");if(c&&d){var p=h?this.combineRequireResolvePaths(this.getResolvablePath(d,e),this.getResolvablePath(h,e)):this.getResolvablePath(d,e),f=t.paths[c]||[];t.paths[c]=this.combineRequireResolvePaths(f,p)}}}catch(t){o=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(o){throw a}}}}return t}},{key:"combineRequireResolvePaths",value:function t(t,e){var n=Array.isArray(t)?t:[t],r=Array.isArray(e)?e:[e];return n.concat(r)}},{key:"removeDoubleSlashes",value:function t(t){return t.replace(/([^:]\/)\/+/g,"$1").replace(/\/\//g,"/").replace("http:/","http://").replace("https:/","https://")}},{key:"render",value:function t(){return nj(tS(),this._errorMessage&&nj(tE(),this._errorMessage))}}]);return n}(rD);eL([i({type:String,attribute:"response-identifier"})],iX.prototype,"responseIdentifier",2),eL([i({type:String,attribute:"module"})],iX.prototype,"module",2),eL([i({type:String,attribute:"custom-interaction-type-identifier"})],iX.prototype,"customInteractionTypeIdentifier",2),eL([s()],iX.prototype,"_errorMessage",2),iX=eL([rr("qti-portable-custom-interaction")],iX);var iZ=function(){"use strict";function t(){a(this,t);this.touchStartTime=0;this.touchStartPoint=null;this.lastClickTime=0;this.isDraggable=!1;this.dragSource=null;this.dragClone=null;this.touchEndTriggered=!1;this.isDragging=!1;this.initialTransform="";this.hasDispatchedDragStart=!1;this.rootNode=null;this.focusedElement=null;this.focusableDropZones=[];this.currentDropZoneIndex=-1;this.dataTransfer={data:{},setData:function t(t,e){this.data[t]=e},getData:function t(t){return this.data[t]},effectAllowed:"move"};this.cloneOffset={x:0,y:0};this.lastTarget=null;this.currentDropTarget=null;this.allowClick=!0;this.copyStylesForDragClone=!0;this.dragOnClickEnabled=!1;this.useDragClone=!1;this.MIN_DRAG_DISTANCE=5;this.DRAG_CLONE_OPACITY=1;if(t.instance)return t.instance;t.instance=this,document.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!1}),document.addEventListener("mousemove",this.handleTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.handleTouchEnd.bind(this),{passive:!1}),document.addEventListener("mouseup",this.handleTouchEnd.bind(this),{passive:!1}),document.addEventListener("touchcancel",this.handleTouchCancel.bind(this),{passive:!1}),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("keyup",this.handleKeyUp.bind(this))}u(t,[{key:"addDraggableElements",value:function t(t){var e=this;t.forEach(function(t){t.setAttribute("tabindex","0"),t.addEventListener("focus",function(){return e.focusedElement=t}),t.addEventListener("blur",function(){return e.focusedElement=null}),t.addEventListener("touchstart",e.handleTouchStart.bind(e),{passive:!1}),t.addEventListener("mousedown",e.handleTouchStart.bind(e),{passive:!1})})}},{key:"handleTouchStart",value:function t(t){this.touchStartTime=Date.now();var e=this.getEventCoordinates(t),n=e.x,r=e.y;if(this.touchStartPoint={x:n,y:r},this.dragSource=t.currentTarget,this.isDraggable=!0,this.rootNode=this.dragSource.getRootNode(),this.dragOnClickEnabled&&(this.isDragging=!0,this.createDragClone(t,{clientX:n,clientY:r})),!this.useDragClone){var i=window.getComputedStyle(this.dragSource);this.initialTransform=i.transform==="none"?"":i.transform,this.initialTransition=i.transition||"",this.dragSource.style.transition="none";var o=this.dragSource.getBoundingClientRect();this.cloneOffset.x=n-o.left,this.cloneOffset.y=r-o.top,this.dragSource.style.zIndex="9999",this.dragSource.focus()}t.preventDefault()}},{key:"handleTouchMove",value:function t(t){if(this.isDraggable&&this.dragSource){var e=this.getEventCoordinates(t),n=e.x,r=e.y,i={clientX:n,clientY:r};this.calculateDragDistance(i)>=this.MIN_DRAG_DISTANCE&&(this.dragSource.style.pointerEvents="none",this.isDragging=!0),this.createDragClone(t,i),t.preventDefault()}}},{key:"createDragClone",value:function t(t,e){if(!this.isDragging)return;if(this.useDragClone){if(!this.dragClone){if(this.dragSource.style.opacity=this.DRAG_CLONE_OPACITY.toString(),this.dragClone=this.dragSource.cloneNode(!0),this.copyStylesForDragClone){var n=window.getComputedStyle(this.dragSource);var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;this.dragClone.style[l]=n.getPropertyValue(l)}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}f(this.rootNode,ShadowRoot)?this.rootNode.host.appendChild(this.dragClone):f(this.rootNode,Document)&&document.body.appendChild(this.dragClone),this.calculateClonePosition(e),this.setDragCloneStyles(e),this.dispatchCustomEvent(this.dragSource,"dragstart")}this.updateDragClonePosition(e)}else if(this.touchStartPoint){var u=e.clientX-this.touchStartPoint.x,c=e.clientY-this.touchStartPoint.y;this.dragSource.style.transform="".concat(this.initialTransform," translate(").concat(u,"px, ").concat(c,"px)"),this.hasDispatchedDragStart||(this.dispatchCustomEvent(this.dragSource,"dragstart"),this.hasDispatchedDragStart=!0)}var d=this.findDropTarget(t);d!==this.lastTarget&&(this.dispatchCustomEvent(d,"dragenter"),this.dispatchCustomEvent(this.lastTarget,"dragleave"),this.lastTarget=d),this.currentDropTarget=d,this.currentDropTarget&&this.dispatchCustomEvent(d,"dragover")}},{key:"handleTouchEnd",value:function t(t){this.touchEndTriggered=!0,this.isDraggable=!1;var e=!1;if(this.currentDropTarget)this.dispatchCustomEvent(this.currentDropTarget,"drop"),this.dispatchCustomEvent(this.dragSource,"dragend"),e=!0;else if(this.isDragging){var n;var r=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});r.dataTransfer={dropEffect:"none"},(n=this.dragSource)===null||n===void 0?void 0:n.dispatchEvent(r)}this.resetDragState(e)}},{key:"handleTouchCancel",value:function t(t){this.resetDragState()}},{key:"findDropTarget",value:function t(t){var e=this.getEventCoordinates(t),n=e.x,r=e.y;return this.getDropTargetAtPoint(document,n,r)}},{key:"getDropTargetAtPoint",value:function t(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(r>2)return null;var i=t.elementFromPoint(e,n);if(!i)return null;if(i.hasAttribute("dropzone"))return i;var o=i.parentElement;for(;o;){if(o.hasAttribute("dropzone"))return o;o=o.parentElement}if(i.shadowRoot&&r<2){var a=this.getDropTargetAtPoint(i.shadowRoot,e,n,r+1);if(a)return a}return null}},{key:"handleKeyDown",value:function t(t){this.focusedElement&&(t.key===" "&&!this.isDragging?(t.preventDefault(),this.isDraggable=!0,this.dragSource=this.focusedElement,this.isDragging=!0,this.collectDropZones(),this.dispatchCustomEvent(this.dragSource,"dragstart")):t.key==="Tab"&&this.isDragging&&(t.preventDefault(),this.moveToNextDropZone()))}},{key:"handleKeyUp",value:function t(t){t.key===" "&&this.isDragging&&this.currentDropTarget&&(t.preventDefault(),this.dispatchCustomEvent(this.currentDropTarget,"drop"),this.dispatchCustomEvent(this.dragSource,"dragend"),this.resetDragState(!0))}},{key:"collectDropZones",value:function t(){this.focusableDropZones=Array.from(document.querySelectorAll("[dropzone]")),this.currentDropZoneIndex=-1}},{key:"moveToNextDropZone",value:function t(){if(this.focusableDropZones.length===0)return;this.currentDropZoneIndex=(this.currentDropZoneIndex+1)%this.focusableDropZones.length;var t=this.focusableDropZones[this.currentDropZoneIndex];t.focus(),this.currentDropTarget=t,this.dispatchCustomEvent(t,"dragenter")}},{key:"getEventCoordinates",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n=t.touches?t.touches[0]:t;return{x:e?n.pageX:n.clientX,y:e?n.pageY:n.clientY}}},{key:"calculateClonePosition",value:function t(t){var e=this.dragSource.getBoundingClientRect();this.cloneOffset.x=t.clientX-e.left,this.cloneOffset.y=t.clientY-e.top}},{key:"setDragCloneStyles",value:function t(t){this.dragClone.style.position="fixed",this.dragClone.style.top="".concat(t.clientY-this.cloneOffset.y,"px"),this.dragClone.style.left="".concat(t.clientX-this.cloneOffset.x,"px"),this.dragClone.style.pointerEvents="none",this.dragClone.style.zIndex="999999"}},{key:"updateDragClonePosition",value:function t(t){var e=this;requestAnimationFrame(function(){if(e.touchEndTriggered||!e.dragClone)return;var n=t.clientX-e.cloneOffset.x,r=t.clientY-e.cloneOffset.y,i=e.applyBoundaries(n,r,e.dragClone),o=i.newLeft,a=i.newTop;e.dragClone.style.left="".concat(o,"px"),e.dragClone.style.top="".concat(a,"px")})}},{key:"applyTransformBoundaries",value:function t(t,e){var n;f(this.rootNode,ShadowRoot)?n=this.rootNode.host.getBoundingClientRect():f(this.rootNode,Document)?n=document.documentElement.getBoundingClientRect():n=new DOMRect(0,0,window.innerWidth,window.innerHeight);var r=this.dragSource.getBoundingClientRect(),i=r.width,o=r.height,a=r.left+t,s=r.top+e,l=Math.max(n.left,Math.min(a,n.right-i)),u=Math.max(n.top,Math.min(s,n.bottom-o)),c=l-r.left,d=u-r.top;return{boundedDeltaX:c,boundedDeltaY:d}}},{key:"applyBoundaries",value:function t(t,e,n){var r;f(this.rootNode,ShadowRoot)?r=this.rootNode.host.getBoundingClientRect():f(this.rootNode,Document)?r=document.documentElement.getBoundingClientRect():r=new DOMRect(0,0,window.innerWidth,window.innerHeight);var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=Math.max(r.left,Math.min(t,r.right-o)),l=Math.max(r.top,Math.min(e,r.bottom-a));return{newLeft:s,newTop:l}}},{key:"calculateDragDistance",value:function t(t){var e=Math.abs(t.clientX-this.touchStartPoint.x),n=Math.abs(t.clientY-this.touchStartPoint.y);return e+n}},{key:"dispatchCustomEvent",value:function t(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t)return;var r=new CustomEvent(e,{bubbles:n,cancelable:!0});r.dataTransfer=this.dataTransfer,t.dispatchEvent(r)}},{key:"resetDragState",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;var e;this.isDragging&&(this.useDragClone?(this.dragSource.style.opacity="1.0",(e=this.dragClone)===null||e===void 0?void 0:e.parentElement.removeChild(this.dragClone)):(t||(this.dragSource.style.transform="translate(0, 0)"),this.dragSource.style.zIndex="",this.dragSource.style.pointerEvents="",this.dragSource.style.transition=this.initialTransition,this.initialTransition="")),this.isDragging=!1,this.dragSource=null,this.dragClone=null,this.isDraggable=!1,this.touchStartTime=0,this.touchStartPoint=null,this.touchEndTriggered=!1,this.dataTransfer={data:{},setData:function t(t,e){this.data[t]=e},getData:function t(t){return this.data[t]},effectAllowed:"move"},this.cloneOffset={x:0,y:0},this.lastTarget=null,this.currentDropTarget=null,this.allowClick=!0,this.initialTransform="",this.hasDispatchedDragStart=!1,this.rootNode=null}}]);return t}();var iG=function(t,e,n){var r=function(t){"use strict";p(i,t);var r=$(i);function i(){a(this,i);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.disabled=!1;return t}u(i,[{key:"firstUpdated",value:function t(t){var e=this;if(this.isMatchTabular())return;d(h(i.prototype),"firstUpdated",this).call(this,t);var n=this.getDroppableElements();this.initializeEventHandlers(),n.forEach(function(t){e.prepareDroppable(t),e.observeDroppableAttributes(t)})}},{key:"isMatchTabular",value:function t(){return this.classList.contains("qti-match-tabular")}},{key:"getDroppableElements",value:function t(){return Array.from(e?this.shadowRoot.querySelectorAll(n):this.querySelectorAll(n))}},{key:"initializeEventHandlers",value:function t(){this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dragenterHandler=this.dragenterHandler.bind(this),this.dropHandler=this.dropHandler.bind(this)}},{key:"prepareDroppable",value:function t(t){t.setAttribute("dropzone","move"),t.addEventListener("dragleave",this.dragleaveHandler),this.attachEventListeners(t)}},{key:"observeDroppableAttributes",value:function t(t){var e=this;this.observer=new MutationObserver(function(n){n.forEach(function(n){var r=n.attributeName;r==="disabled"&&e.toggleDroppableHandlers(t)})}),this.observer.observe(t,{attributes:!0})}},{key:"toggleDroppableHandlers",value:function t(t){t.hasAttribute("disabled")?this.removeEventListeners(t):this.attachEventListeners(t)}},{key:"attachEventListeners",value:function t(t){t.addEventListener("dragover",this.dragoverHandler),t.addEventListener("dragenter",this.dragenterHandler),t.addEventListener("drop",this.dropHandler)}},{key:"removeEventListeners",value:function t(t){t.removeEventListener("dragover",this.dragoverHandler),t.removeEventListener("dragenter",this.dragenterHandler),t.removeEventListener("drop",this.dropHandler)}},{key:"disconnectedCallback",value:function t(){var t;this.isMatchTabular()||(d(h(i.prototype),"disconnectedCallback",this).call(this),(t=this.observer)===null||t===void 0?void 0:t.disconnect())}},{key:"dragenterHandler",value:function t(t){t.preventDefault()}},{key:"dragoverHandler",value:function t(t){return t.preventDefault(),this.activateDroppable(t.currentTarget),t.dataTransfer.dropEffect="move",!1}},{key:"activateDroppable",value:function t(t){t.setAttribute("active","")}},{key:"dropHandler",value:function t(t){var e=this;return o(function(){var n,r,i,o,a;return L(this,function(s){switch(s.label){case 0:t.preventDefault();n=t.currentTarget,r=t.dataTransfer.getData("text"),i=e.findDraggable(r);if(!i)return[3,4];if(!(i&&!e.isValidDrop(n,i)))return[3,1];a=(i.style.transform="translate(0, 0)",!1);return[3,3];case 1:return[4,e.moveDraggableToDroppable(i,n)];case 2:a=(s.sent(),e.deactivateDroppable(n),!1);s.label=3;case 3:o=a;return[3,5];case 4:o=!1;s.label=5;case 5:return[2,o]}})})()}},{key:"findDraggable",value:function t(t){return t?this.querySelector("[identifier=".concat(t,"]"))||this.shadowRoot.querySelector("[identifier=".concat(t,"]")):null}},{key:"isValidDrop",value:function t(t,e){return e.parentElement.getAttribute("identifier")!==t.getAttribute("identifier")}},{key:"moveDraggableToDroppable",value:function t(t,e){var n=this;return o(function(){var r;return L(this,function(i){switch(i.label){case 0:r=function(){t.style.transform="translate(0, 0)",e.appendChild(t),n.checkMaxAssociations(),n.saveResponse()};if(!document.startViewTransition){r();return[2]}return[4,document.startViewTransition(r).finished];case 1:i.sent();return[2]}})})()}},{key:"deactivateDroppable",value:function t(t){t.removeAttribute("active")}},{key:"dragleaveHandler",value:function t(t){return t.preventDefault(),this.deactivateDroppable(t.currentTarget),t.dataTransfer.dropEffect="none",!1}}]);return i}(t);return eL([i({type:Boolean,reflect:!0})],r.prototype,"disabled",2),r};var iK=function(t,e,n){var r=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(t);return r};var iJ=function(t,e,n,s){var l=function(t){"use strict";p(i,t);var e=$(i);function i(){a(this,i);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.draggables=new Map;t.droppables=[];t.responseIdentifier="";t.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};t.disabled=!1;t.readonly=!1;t.minAssociations=1;t.maxAssociations=1;t.handleDragStart=function(e){var n=e.currentTarget;e.dataTransfer.setData("text",n.getAttribute("identifier")),n.setAttribute("dragging",""),t.activateDroppables()};var n=r(t);t.handleDragEnd=function(){var t=o(function(t){var e;return L(this,function(r){switch(r.label){case 0:t.preventDefault(),n.deactivateDroppables();e=t.currentTarget;e.removeAttribute("dragging");return[4,n.wasDropped(t)];case 1:r.sent()||n.configuration.dragCanBePlacedBack&&n.restoreInitialDraggablePosition(e);return[2]}})});return function(e){return t.apply(this,arguments)}}();t.checkForMoveTestItem=function(t){return t.dataTransfer.items?new Promise(function(e){var n=!1,r=Array.from(t.dataTransfer.items),i=r.length;if(i===0){e(!1);return}r.forEach(function(t){t.kind==="string"&&t.type==="text"?t.getAsString(function(t){t==="move-test"&&(n=!0),i===0&&e(n)}):i===0&&e(n)})}):Promise.resolve(!1)};return t}u(i,[{key:"handleDraggablesChange",value:function t(t,e){if(this.isMatchTabular())return;var n=this.filterExistingDraggables(t);n.length>0&&this.addNewDraggables(n)}},{key:"firstUpdated",value:function t(t){d(h(i.prototype),"firstUpdated",this).call(this,t),this.initializeDroppables()}},{key:"connectedCallback",value:function t(){d(h(i.prototype),"connectedCallback",this).call(this),this.initializeDragDropApi()}},{key:"initializeDragDropApi",value:function t(){this.dragDropApi=new iZ,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}},{key:"isMatchTabular",value:function t(){return this.classList.contains("qti-match-tabular")}},{key:"filterExistingDraggables",value:function t(t){var e=this;return t.filter(function(t){return!e.draggables.has(t)})}},{key:"addNewDraggables",value:function t(t){var e=this;this.dragDropApi.addDraggableElements(t),t.forEach(function(t){return e.storeDraggable(t)})}},{key:"storeDraggable",value:function t(t){var e=Array.from(t.parentNode.children).indexOf(t);this.draggables.set(t,{parent:t.parentElement,index:e}),t.style.viewTransitionName="drag-".concat(e,"-").concat(this.getAttribute("identifier")),t.setAttribute("qti-draggable","true"),t.addEventListener("dragstart",this.handleDragStart),t.addEventListener("dragend",this.handleDragEnd)}},{key:"initializeDroppables",value:function t(){this.droppables=Array.from(n?this.shadowRoot.querySelectorAll(s):this.querySelectorAll(s))}},{key:"activateDroppables",value:function t(){this.droppables.forEach(function(t){return t.setAttribute("enabled","")})}},{key:"deactivateDroppables",value:function t(){this.droppables.forEach(function(t){return t.removeAttribute("enabled")})}},{key:"wasDropped",value:function t(t){var e=this;return o(function(){var n;return L(this,function(r){switch(r.label){case 0:return[4,e.checkForMoveTestItem(t)];case 1:n=r.sent();return[2,t.dataTransfer.dropEffect!=="none"||n]}})})()}},{key:"wasMoved",value:function t(t){return t.dataTransfer.dropEffect==="move"}},{key:"restoreInitialDraggablePosition",value:function t(t){var e=this;return o(function(){var n,r,i,o,a,s;return L(this,function(l){n=e.draggables.get(t),r=n.parent,i=n.index,o=Math.min(i,r.children.length),a=function(t,n,r){var i=Math.min(r,n.children.length);n.insertBefore(t,n.children[i]),t.style.transform="translate(0, 0)",e.checkMaxAssociations()};if(!document.startViewTransition){a(t,r,i);return[2]}s=document.startViewTransition(function(){t.style.transform="",a(t,r,i)});return[2]})})()}},{key:"checkMaxAssociations",value:function t(){var t=this;this.droppables.forEach(function(e,n){var r=+(e.getAttribute("match-max")||1);e.querySelectorAll('[qti-draggable="true"]').length>=r?t.disableDroppable(e):t.enableDroppable(e)})}},{key:"disableDroppable",value:function t(t){t.setAttribute("disabled",""),t.removeAttribute("dropzone")}},{key:"enableDroppable",value:function t(t){t.removeAttribute("disabled"),t.setAttribute("dropzone","move")}},{key:"response",get:function t(){return this.collectResponseData()},set:function t(t){var e=this;this.isMatchTabular()||(this.resetDroppables(),t===null||t===void 0?void 0:t.forEach(function(t){return e.placeResponse(t)}))}},{key:"placeResponse",value:function t(t){var e=this;var n=T(t.split(" ").reverse()),r=n[0],i=n.slice(1),o=this.findDroppableById(r);i.forEach(function(t){return e.placeDraggableInDroppable(t,o)})}},{key:"findDroppableById",value:function t(t){return this.droppables.find(function(e){return e.getAttribute("identifier")===t})}},{key:"placeDraggableInDroppable",value:function t(t,e){var n=this;return o(function(){var r,i,o;return L(this,function(a){switch(a.label){case 0:r=n.querySelector("[identifier=".concat(t,"]"));if(!e||!r){console.error("Cannot find draggable or droppable with the given identifier: ".concat(t));return[2]}i=function(){r.style.transform="translate(0, 0)",e.appendChild(r),n.checkMaxAssociations()};if(!document.startViewTransition)return[3,2];return[4,document.startViewTransition(i).finished];case 1:o=a.sent();return[3,3];case 2:o=i();a.label=3;case 3:o;return[2]}})})()}},{key:"validate",value:function t(){var t=this.getValidAssociations();return this.minAssociations<=0||this.minAssociations<=t}},{key:"getValidAssociations",value:function t(){return this.droppables.filter(function(t){return t.childElementCount>0}).length}},{key:"saveResponse",value:function t(){var t=this.collectResponseData();this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:t}}))}},{key:"collectResponseData",value:function t(){return this.droppables.map(function(t){var e=t.querySelectorAll('[qti-draggable="true"]'),n=Array.from(e).map(function(t){return t.getAttribute("identifier")}),r=t.getAttribute("identifier");return n.map(function(t){return"".concat(t," ").concat(r)})}).flat()}},{key:"reset",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.resetDroppables(),t&&this.saveResponse()}},{key:"resetDroppables",value:function t(){var t=this;return o(function(){var e;return L(this,function(n){switch(n.label){case 0:e=function(t,e,n){t.style.transform="translate(0, 0)";var r=Math.min(n,e.children.length);e.insertBefore(t,e.children[r])};if(!document.startViewTransition){t.draggables.forEach(function(t,n){var r=t.parent,i=t.index;e(n,r,i)});return[2]}return[4,document.startViewTransition(function(){t.draggables.forEach(function(t,n){var r=t.parent,i=t.index;e(n,r,i)})}).finished];case 1:n.sent();return[2]}})})()}}]);return i}(iK(iG(t,n,s),s,e));return eL([i({type:String,attribute:"response-identifier"})],l.prototype,"responseIdentifier",2),eL([i({attribute:!1,type:Object})],l.prototype,"configuration",2),eL([i({type:Boolean,reflect:!0})],l.prototype,"disabled",2),eL([i({type:Boolean,reflect:!0})],l.prototype,"readonly",2),eL([i({type:Number,reflect:!0,attribute:"min-associations"})],l.prototype,"minAssociations",2),eL([i({type:Number,reflect:!0,attribute:"max-associations"})],l.prototype,"maxAssociations",2),eL([eC(e)],l.prototype,"handleDraggablesChange",1),l};var i0=e9(t_());var i1=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t._childrenMap=[];t.addEventListener("register-qti-simple-associable-choice",function(e){var n=e.target;t._childrenMap.push(n)});return t}u(n,[{key:"render",value:function t(){return nj(tT(),this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map(function(t,e){return nj(tR(),e,e,e,e)}))}}]);return n}(iJ(rt,"qti-simple-associable-choice",!0,".dl"));i1.styles=i0,eL([s()],i1.prototype,"_childrenMap",2),i1=eL([rr("qti-associate-interaction")],i1);var i2=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t._errorMessage=null;t.handlePostMessage=t.handlePostMessage.bind(r(t));return t}u(n,[{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this);var e=this.data.startsWith("http")?this.data:P(this.baseItemUrl+"/"+this.data);fetch(e).then(function(t){return t.json()}).then(function(e){t.manifest=e,t.setupCES()}).catch(function(e){t._errorMessage=e})}},{key:"setupCES",value:function t(){var t=this.shadowRoot.querySelector("#pciContainer"),e=t.contentWindow||t,n=t.contentDocument;window.addEventListener("message",this.handlePostMessage),n.open(),n.write("\n <html>\n <head>\n <link href='".concat(P("".concat(this.baseRefUrl,"/").concat(this.manifest.style[0])),"' rel=\"stylesheet\" />\n <script src='").concat(P("".concat(this.baseRefUrl,"/").concat(this.manifest.script[0])),"'></script>\n </head>\n <body></body>\n </html>\n ")),n.close()}},{key:"getIFrames",value:function t(){var t=this.shadowRoot.querySelectorAll("iframe"),e=this.querySelectorAll("iframe"),n=I(t).concat(I(e));var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;var u=l.src;if(new URL(u,window.location.href).origin===window.location.origin)try{var c=l.contentDocument||l.contentWindow.document;c&&this.getInnerIFrames(c,n)}catch(t){console.error("Error accessing nested iframe:",t)}}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}return n.forEach(function(t,e){n.indexOf(t)!==e&&n.splice(e,1)}),n}},{key:"getInnerIFrames",value:function t(t){var e=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.querySelectorAll("iframe").forEach(function(t){n.push(t);var r=t.src;if(new URL(r,window.location.href).origin===window.location.origin)try{var i=t.contentDocument||t.contentWindow.document;e.getInnerIFrames(i,n)}catch(t){console.error("Error accessing nested iframe:",t)}else console.warn("Skipped cross-origin iframe:",r)}),n}},{key:"postToWindowAndIframes",value:function t(t,e){window.postMessage({type:t,data:e},"*");var n=this.getIFrames();var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;l.contentWindow&&l.contentWindow.postMessage({type:t,data:e},"*")}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}},{key:"handlePostMessage",value:function t(t){var e=this;var n=t.data,r=n.type,i=n.data;switch(r){case"setResponse":this.rawResponse=i,this.saveResponse(i);break;case"getResponse":{this.postToWindowAndIframes("responseData",this.rawResponse);break}case"getMedia":{var o=this.manifest.media.map(function(t){return t.startsWith("http")?t:P(e.baseRefUrl+"/"+t)});this.postToWindowAndIframes("mediaData",o);break}case"setStageHeight":console.log("setStageHeight not implemented");break}}},{key:"validate",value:function t(){return this.rawResponse!==""}},{key:"response",set:function t(t){this.rawResponse=t}},{key:"disconnectedCallback",value:function t(){window.removeEventListener("message",this.handlePostMessage),d(h(n.prototype),"disconnectedCallback",this).call(this)}},{key:"render",value:function t(){return nj(tO(),this.getAttribute("width"),this.getAttribute("height"),this._errorMessage&&nj(tI(),this._errorMessage))}}]);return n}(rD);eL([i({type:String,attribute:"response-identifier"})],i2.prototype,"responseIdentifier",2),eL([i({type:String,attribute:"data"})],i2.prototype,"data",2),eL([i({type:String,attribute:"data-base-item"})],i2.prototype,"baseItemUrl",2),eL([i({type:String,attribute:"data-base-ref"})],i2.prototype,"baseRefUrl",2),eL([i({type:String,attribute:"id"})],i2.prototype,"id",2),eL([s()],i2.prototype,"_errorMessage",2),i2=eL([rr("qti-custom-interaction")],i2);var i5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.countAttempt="true";return t}u(n,[{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"render",value:function t(){return nj(tP(),this.disabled,this.endAttempt,this.title)}},{key:"endAttempt",value:function t(t){this.dispatchEvent(new CustomEvent("end-attempt",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,countAttempt:this.countAttempt==="true"}}))}}]);return n}(rD);eL([i({type:String,attribute:"count-attempt"})],i5.prototype,"countAttempt",2),eL([i({type:String})],i5.prototype,"title",2),i5=eL([rr("qti-end-attempt-interaction")],i5);var i3=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tM())}},{key:"correctResponse",set:function t(t){var e=this;var n=[],r=Array.isArray(t)?t:[t];r&&(n=r.map(function(t){var e=t.split(" ");return{text:e[0],gap:e[1]}})),this.querySelectorAll("qti-gap").forEach(function(t,r){var i,o,a;var s=t.getAttribute("identifier"),l=(i=n.find(function(t){return t.gap===s}))===null||i===void 0?void 0:i.text,u=(o=e.querySelector('qti-gap-text[identifier="'.concat(l,'"]')))===null||o===void 0?void 0:o.textContent.trim();if(l&&u){var c;if(!((c=t.nextElementSibling)===null||c===void 0?void 0:c.classList.contains("correct-option"))){var d=document.createElement("span");d.classList.add("correct-option"),d.textContent=u,t.insertAdjacentElement("afterend",d)}}else((a=t.nextElementSibling)===null||a===void 0?void 0:a.classList.contains("correct-option"))&&t.nextElementSibling.remove()})}}]);return n}(iJ(rt,"qti-gap-text",!1,"qti-gap"));i3.styles=[e9(tD())],i3=eL([rr("qti-gap-match-interaction")],i3);var i4=function(t,e,n){var r=new Map;for(var i=e;i<=n;i++)r.set(t[i],i);return r},i6=rF(function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;if(r=e.call(this,t),t.type!==rQ.CHILD)throw Error("repeat() can only be used in text expressions");return x(r)}u(n,[{key:"dt",value:function t(t,e,n){var r;n===void 0?n=e:e!==void 0&&(r=e);var i=[],o=[],a=0;var s=true,l=false,u=undefined;try{for(var c=t[Symbol.iterator](),d;!(s=(d=c.next()).done);s=true){var h=d.value;i[a]=r?r(h,a):a,o[a]=n(h,a),a++}}catch(t){l=true;u=t}finally{try{if(!s&&c.return!=null){c.return()}}finally{if(l){throw u}}}return{values:o,keys:i}}},{key:"render",value:function t(t,e,n){return this.dt(t,e,n).values}},{key:"update",value:function t(t,e){var n=S(e,3),r=n[0],i=n[1],o=n[2];var a=rj(t),s=this.dt(r,i,o),l=s.values,u=s.keys;if(!Array.isArray(a))return this.ut=u,l;var c;var d=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],h=[],p,f,v=0,g=a.length-1,y=0,m=l.length-1;for(;v<=g&&y<=m;)if(a[v]===null)v++;else if(a[g]===null)g--;else if(d[v]===u[y])h[y]=rH(a[v],l[y]),v++,y++;else if(d[g]===u[m])h[m]=rH(a[g],l[m]),g--,m--;else if(d[v]===u[m])h[m]=rH(a[v],l[m]),rV(t,h[m+1],a[v]),v++,m--;else if(d[g]===u[y])h[y]=rH(a[g],l[y]),rV(t,a[v],a[g]),g--,y++;else if(p===void 0&&(p=i4(u,y,m),f=i4(d,v,g)),p.has(d[v]))if(p.has(d[g])){var b=f.get(u[y]),q=b!==void 0?a[b]:null;if(q===null){var k=rV(t,a[v]);rH(k,l[y]),h[y]=k}else h[y]=rH(q,l[y]),rV(t,a[v],q),a[b]=null;y++}else rB(a[g]),g--;else rB(a[v]),v++;for(;y<=m;){var w=rV(t,h[m+1]);rH(w,l[y]),h[y++]=w}for(;v<=g;){var x=a[v++];x!==null&&rB(x)}return this.ut=u,rU(t,h),nF}}]);return n}(rW));var i7=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.startPoint=null;t.endPoint=null;t._lines=[];t.addEventListener("qti-register-hotspot",t.positionHotspotOnRegister);return t}u(n,[{key:"reset",value:function t(){this._lines=[]}},{key:"validate",value:function t(){return this._lines.length>0}},{key:"response",set:function t(t){Array.isArray(t)&&(this._lines=t)}},{key:"render",value:function t(){var t=this;var e,n,r,i;return nj(tN(),rM((e=this.grImage[0])===null||e===void 0?void 0:e.width),rM((n=this.grImage[0])===null||n===void 0?void 0:n.height),(r=this.grImage[0])===null||r===void 0?void 0:r.width,(i=this.grImage[0])===null||i===void 0?void 0:i.height,i6(this._lines,function(t){return t},function(e,n){return nB(t$(),parseInt(t.querySelector("[identifier="+e.split(" ")[0]+"]").style.left),parseInt(t.querySelector("[identifier="+e.split(" ")[0]+"]").style.top),parseInt(t.querySelector("[identifier="+e.split(" ")[1]+"]").style.left),parseInt(t.querySelector("[identifier="+e.split(" ")[1]+"]").style.top),function(e){e.stopPropagation(),t._lines=t._lines.filter(function(t,e){return e!==n}),t.saveResponse(t._lines)})}),this.startPoint&&nB(tL(),this.startCoord.x,this.startCoord.y,this.mouseCoord.x,this.mouseCoord.y))}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eE(i,o,e,n)}},{key:"firstUpdated",value:function t(t){var e=this;d(h(n.prototype),"firstUpdated",this).call(this,t),this.hotspots=this.querySelectorAll("qti-associable-hotspot"),document.addEventListener("mousemove",function(t){e.mouseCoord={x:t.clientX-e.grImage[0].getBoundingClientRect().left,y:t.clientY-e.grImage[0].getBoundingClientRect().top}}),this.hotspots.forEach(function(t){t.style.left=t.getAttribute("coords").split(",")[0]+"px",t.style.top=t.getAttribute("coords").split(",")[1]+"px",t.addEventListener("click",function(t){e.startPoint?e.endPoint||(e.endPoint=t.target,e._lines=I(e._lines).concat([e.startPoint.getAttribute("identifier")+" "+e.endPoint.getAttribute("identifier")]),e.saveResponse(e._lines),e.startPoint=null,e.endPoint=null):(e.startPoint=t.target,e.startCoord={x:e.startPoint.getAttribute("coords").split(",")[0],y:e.startPoint.getAttribute("coords").split(",")[1]})})})}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}}]);return n}(rD);i7.styles=[e9(tV())],eL([s()],i7.prototype,"_lines",2),eL([s()],i7.prototype,"startCoord",2),eL([s()],i7.prototype,"mouseCoord",2),eL([l("svg")],i7.prototype,"svgContainer",2),eL([c({selector:"img"})],i7.prototype,"grImage",2),i7=eL([rr("qti-graphic-associate-interaction")],i7);var i8=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tH())}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});switch(i){case"circle":{var a=S(o,3),s=a[0],l=a[1],u=a[2];n.style.left=s-u+"px",n.style.top=l-u+"px",n.style.width=n.style.height=2*u+"px"}break;case"rect":{var c=S(o,4),d=c[0],h=c[1],p=c[2],f=c[3];n.style.left=d+"px",n.style.top=h+"px",n.style.width=p-d+"px",n.style.height=f-h+"px"}break;default:break}}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}}]);return n}(iJ(rt,"qti-gap-img",!1,"qti-associable-hotspot"));i8.styles=e9(tz()),i8=eL([rr("qti-graphic-gap-match-interaction")],i8);var i9=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tU())}},{key:"setHotspotOrder",value:function t(t){var e=t.detail,n=e.identifier,r=this._choiceElements.find(function(t){return t.getAttribute("identifier")===n}),i=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,r.order==null){if(this._choiceElements.filter(function(t){return t.order>0}).length>=i){this.choiceOrdering=!1;return}r.order=this._choiceElements.filter(function(t){return!!t.order}).length+1,this.choiceOrdering=!1;return}else this._choiceElements.forEach(function(t){return t.order>t.order&&t.order--,t}),r.order=null;this.choiceOrdering=!1}}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eE(i,o,e,n)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("activate-qti-hotspot-choice",this.setHotspotOrder),this.addEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("activate-qti-hotspot-choice",this.setHotspotOrder),this.removeEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}}]);return n}(r4(rt,"qti-hotspot-choice"));i9.styles=[e9(tj())],i9=eL([rr("qti-graphic-order-interaction")],i9);var ot=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tB())}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eE(i,o,e,n)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}}]);return n}(r4(rt,"qti-hotspot-choice"));ot.styles=[e9(tQ())],ot=eL([rr("qti-hotspot-interaction")],ot);var oe=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.matchMin=0;t.matchMax=1;t.fixed=!1;return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}},{key:"render",value:function t(){return nj(tF())}}]);return n}(_(rt,"qti-simple-associable-choice"));oe.styles=e9(tW()),eL([i({type:Number,attribute:"match-min"})],oe.prototype,"matchMin",2),eL([i({type:Number,attribute:"match-max"})],oe.prototype,"matchMax",2),eL([i({type:Boolean,attribute:"fixed"})],oe.prototype,"fixed",2),oe=eL([rr("qti-simple-associable-choice")],oe);var on=e9(tY());var or=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.lastCheckedRadio=null;t._response=[];t.correctOptions=[];t.responseIdentifier="";t.handleRadioClick=function(e){var n=e.target;t.lastCheckedRadio===n?(n.checked=!1,t.lastCheckedRadio=null,t.handleRadioChange(e)):t.lastCheckedRadio=n};t.handleRadioChange=function(e){var n=e.target,r=n.value,i=n.name,o=n.type;n.checked?(t.response?t.response.indexOf(r)===-1&&(o==="radio"&&(t.response=t.response.filter(function(t){return t.indexOf(i)===-1})),t.response=I(t.response).concat([r])):t.response=[r],t.lastCheckedRadio=n):(t.response=t.response.filter(function(t){return t!==r}),t.lastCheckedRadio=null),t.requestUpdate(),t.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:t.responseIdentifier,response:Array.isArray(t.response)?I(t.response):t.response}}))};return t}u(n,[{key:"response",get:function t(){return this.classList.contains("qti-match-tabular")?this._response:d(h(n.prototype),"response",this)},set:function t(t){this.classList.contains("qti-match-tabular")?this._response=t:A(h(n.prototype),"response",t,this,true)}},{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){return L(this,function(t){r().call(e),e.rows=Array.from(e.querySelectorAll("qti-simple-match-set:first-of-type qti-simple-associable-choice")),e.cols=Array.from(e.querySelectorAll("qti-simple-match-set:last-of-type qti-simple-associable-choice")),e.response=[];return[2]})})()}},{key:"correctResponse",set:function t(t){if(t===""){this.correctOptions=[];return}else Array.isArray(t)&&(this.correctOptions=t)}},{key:"render",value:function t(){var t=this;return this.classList.contains("qti-match-tabular")?nj(tK(),this.cols.map(function(t,e){return nj(tX(),r8(t.innerHTML))}),this.rows.map(function(e,n){return nj(tG(),r8(e.innerHTML),t.cols.map(function(n,r){var i=e.getAttribute("identifier"),o=n.getAttribute("identifier"),a="".concat(i," ").concat(o),s=t.response.filter(function(t){return t.split(" ")[0]===i}).length||0,l=t.response.includes(a),u="rb ".concat(l?"rb-checked":""," ").concat(t.correctOptions.includes(a)?"rb-correct":""),c=t.correctOptions.length>0?!0:e.matchMax===1?!1:s>=e.matchMax&&!l;return nj(tZ(),e.matchMax===1?"radio":"checkbox",u,i,a,c,function(e){return t.handleRadioChange(e)},function(n){return e.matchMax===1?t.handleRadioClick(n):null})}))})):nj(tJ())}}]);return n}(iJ(rt,"qti-simple-match-set:first-of-type qti-simple-associable-choice",!1,"qti-simple-match-set:last-of-type qti-simple-associable-choice"));or.styles=on,eL([s()],or.prototype,"_response",2),eL([s()],or.prototype,"correctOptions",2),eL([i({type:String,attribute:"response-identifier"})],or.prototype,"responseIdentifier",2),or=eL([rr("qti-match-interaction")],or);var oi=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.value=0;return t}u(n,[{key:"reset",value:function t(){}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"render",value:function t(){return nj(t0())}},{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("audio")||this.querySelector("video")||this.querySelector("object");e&&e.addEventListener("ended",function(){t.value++,t.saveResponse(t.value.toString())})}}],[{key:"properties",get:function t(){return w(q({},rD.properties),{step:{type:Number,attribute:"step",default:10}})}}]);return n}(rD);oi.styles=[e9(t1())],oi=eL([rr("qti-media-interaction")],oi);var oo=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.nrChoices=0;t.correctResponses=[];t.showCorrectResponses=!1;return t}u(n,[{key:"render",value:function t(){var t=this;var e=Array.from(this.querySelectorAll("qti-simple-choice"));return this.nrChoices<e.length&&(this.nrChoices=e.length),nj(t5(),Array.from(Array(this.nrChoices)).map(function(e,n){return nj(t2(),n,t.showCorrectResponses&&t.correctResponses.length>n?r8("<span part='correct-response'>".concat(t.correctResponses[n],"</span>")):"")}))}},{key:"correctResponse",set:function t(t){var e=this;if(t===""){this.showCorrectResponses=!1;return}this.correctResponses.length===0&&(Array.isArray(t)?t:[t]).forEach(function(t,n){var r=e.querySelector('qti-simple-choice[identifier="'.concat(t,'"]'));r||(r=e.shadowRoot.querySelector('qti-simple-choice[identifier="'.concat(t,'"]')));var i=r===null||r===void 0?void 0:r.textContent.trim();e.correctResponses=I(e.correctResponses).concat([i])}),this.showCorrectResponses=!0}},{key:"getResponse",value:function t(){return Array.from(this.shadowRoot.querySelectorAll("drop-list")).map(function(t){var e=t.querySelectorAll('[qti-draggable="true"]');return I(Array.from(e).map(function(t){return t.getAttribute("identifier")})).join(" ")})}},{key:"firstUpdated",value:function t(t){var e=this;var r=this,i=function(){return d(h(n.prototype),"firstUpdated",e)};return o(function(){return L(this,function(e){i().call(r,t),r.childrenMap=Array.from(r.querySelectorAll("qti-simple-choice")),r.childrenMap.forEach(function(t){return t.setAttribute("part","qti-simple-choice")});return[2]})})()}}]);return n}(it(iJ(rt,"qti-simple-choice",!0,"drop-list"),"qti-simple-choice"));oo.styles=[e9(t3())],eL([s()],oo.prototype,"nrChoices",2),eL([s()],oo.prototype,"correctResponses",2),eL([s()],oo.prototype,"showCorrectResponses",2),eL([i({type:String})],oo.prototype,"orientation",2),oo=eL([rr("qti-order-interaction")],oo);var oa=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(t4())}}]);return n}(rt);oa.styles=[e9(t6())];customElements.define("qti-position-object-interaction",oa);var os=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t.removeMoveListener=t.removeMoveListener.bind(r(t)),t.dragElementHandler=t.dragElementHandler.bind(r(t));return x(t)}u(n,[{key:"render",value:function t(){return nj(t7())}},{key:"dragElementHandler",value:function t(t){t.preventDefault();var e=t.clientX-this.startX,n=t.clientY-this.startY;this.dragElement.style.left=this.dragElement.offsetLeft+e+"px",this.dragElement.style.top=this.dragElement.offsetTop+n+"px",this.startX=t.clientX,this.startY=t.clientY}},{key:"firstUpdated",value:function t(t){var e=this;d(h(n.prototype),"firstUpdated",this).call(this,t),this.dragElement=this.querySelector("qti-position-object-interaction>img"),this.startX=0,this.startY=0,this.dragElement.addEventListener("mousedown",function(t){e.startX=t.clientX,e.startY=t.clientY,document.addEventListener("mousemove",e.dragElementHandler,!0)}),document.addEventListener("mouseup",this.removeMoveListener)}},{key:"removeMoveListener",value:function t(t){document.removeEventListener("mousemove",this.dragElementHandler,!0)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("mousemove",this.dragElementHandler),document.removeEventListener("mouseup",this.removeMoveListener)}}]);return n}(rt);os.styles=[e9(t8())],os=eL([rr("qti-position-object-stage")],os);var ol="important",ou=" !"+ol,oc=rF(function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;var i;if(r=e.call(this,t),t.type!==rQ.ATTRIBUTE||t.name!=="style"||((i=t.strings)===null||i===void 0?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return x(r)}u(n,[{key:"render",value:function t(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r==null?e:e+"".concat(n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")},"")}},{key:"update",value:function t(t,e){var n=S(e,1),r=n[0];var i=t.element,o=i.style;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);var a=true,s=false,l=undefined;try{for(var u=this.ft[Symbol.iterator](),c;!(a=(c=u.next()).done);a=true){var d=c.value;r[d]==null&&(this.ft.delete(d),d.includes("-")?o.removeProperty(d):o[d]=null)}}catch(t){s=true;l=t}finally{try{if(!a&&u.return!=null){u.return()}}finally{if(s){throw l}}}for(var h in r){var p=r[h];if(p!=null){this.ft.add(h);var f=typeof p=="string"&&p.endsWith(ou);h.includes("-")||f?o.setProperty(h,f?p.slice(0,-11):p,f?ol:""):o[h]=p}}return nF}}]);return n}(rW));var od=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.maxChoices=1/0;t.minChoices=0;t._points=[];t._imgElement=null;t._onImageClick=function(e){if(t._points.length<t.maxChoices){var n=e.offsetX,r=e.offsetY;t._points=I(t._points).concat(["".concat(n," ").concat(r)]),t.saveResponse(t._points)}};return t}u(n,[{key:"render",value:function t(){var t=this;return nj(et(),i6(this._points,function(t){return t},function(e,n){return nj(t9(),oc({position:"absolute",transform:"translate(-50%, -50%)",left:"".concat(e.split(" ")[0],"px"),top:"".concat(e.split(" ")[1],"px")}),e,function(e){e.stopPropagation(),t._points=t._points.filter(function(t,e){return e!==n}),t.saveResponse(t._points)})}))}},{key:"reset",value:function t(){this._points=[]}},{key:"validate",value:function t(){return this._points.length>=this.minChoices&&this._points.length<=this.maxChoices}},{key:"response",set:function t(t){this._points=Array.isArray(t)?t:[t]}},{key:"firstUpdated",value:function t(){this._imgElement=this.querySelector("img"),this._imgElement?this._imgElement.addEventListener("click",this._onImageClick):console.warn("No <img> element found in <qti-select-point-interaction>")}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this._imgElement&&this._imgElement.removeEventListener("click",this._onImageClick)}}]);return n}(rD);od.styles=[e9(ee())],eL([i({type:Number,attribute:"max-choices"})],od.prototype,"maxChoices",2),eL([i({type:Number,attribute:"min-choices"})],od.prototype,"minChoices",2),eL([s()],od.prototype,"_points",2),od=eL([rr("qti-select-point-interaction")],od);var oh=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.stepLabel=!1;t.reverse=!1;t._handleDisabledChange=function(t,e){};t._handleReadonlyChange=function(t,e){};t.csLive=getComputedStyle(r(t));return t}u(n,[{key:"min",get:function t(){return this._min},set:function t(t){this._min=t,this.value=t,this.style.setProperty("--min","".concat(this._min))}},{key:"max",get:function t(){return this._max},set:function t(t){this._max=t,this.style.setProperty("--max","".concat(this._max))}},{key:"step",get:function t(){return this._step},set:function t(t){this._step=t,this.style.setProperty("--step","".concat(this._step))}},{key:"reset",value:function t(){}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){if(Array.isArray(t)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}var e=parseInt(t);if(Number.isNaN(e)){console.error("QtiSliderInteraction: response is not a number");return}this.value=e}},{key:"render",value:function t(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);var t=(this.value-this.min)/(this.max-this.min)*100;return this.style.setProperty("--value-percentage","".concat(t,"%")),this.setAttribute("aria-valuenow",this.value.toString()),nj(eo(),this.csLive.getPropertyValue("--show-bounds")=="true"?nj(en(),this._min,this._max):nW,this.csLive.getPropertyValue("--show-ticks")=="true"?nj(er()):nW,this._onMouseDown,this._onTouchMove,this.csLive.getPropertyValue("--show-value")=="true"?nj(ei(),this.value):nW)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}},{key:"_onTouchMove",value:function t(t){var e=this;var n=function(t){var n=e.getPositionFromEvent(t),r=n.x,i=r-e._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;e.calculateValue(i),t.stopPropagation()},r=function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),e.saveResponse(e.value.toString())};document.addEventListener("touchmove",n),document.addEventListener("touchend",r);var i=this.getPositionFromEvent(t),o=i.x,a=o-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(a),t.stopPropagation()}},{key:"_onMouseDown",value:function t(t){var e=this;var n=function(t){var n=t.pageX-e._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;e.calculateValue(n),t.preventDefault(),t.stopPropagation()},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),e.saveResponse(e.value.toString())};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r);var i=t.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(i),t.preventDefault(),t.stopPropagation()}},{key:"calculateValue",value:function t(t){var e=this.min+(this.max-this.min)*t/this._rail.getBoundingClientRect().width,n=this.min+Math.round((e-this.min)/this._step)*this._step;this.value=n}},{key:"getPositionFromEvent",value:function t(t){var e;if(t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="touchcancel"){var n=O(t.originalEvent)>"u"?t:t.originalEvent,r=n.touches[0]||n.changedTouches[0];e={x:r.pageX,y:r.pageY}}else(t.type=="mousedown"||t.type=="mouseup"||t.type=="mousemove"||t.type=="mouseover"||t.type=="mouseout"||t.type=="mouseenter"||t.type=="mouseleave")&&(e={x:t.clientX,y:t.clientY});return e}}]);return n}(rD);oh.styles=[e9(ea())],eL([l("#knob")],oh.prototype,"_knob",2),eL([l("#rail")],oh.prototype,"_rail",2),eL([i({type:Number})],oh.prototype,"value",2),eL([i({type:Boolean,attribute:"step-label"})],oh.prototype,"stepLabel",2),eL([i({type:Boolean})],oh.prototype,"reverse",2),eL([i({type:Number,attribute:"lower-bound"})],oh.prototype,"min",1),eL([i({type:Number,attribute:"upper-bound"})],oh.prototype,"max",1),eL([i({type:Number,attribute:"step"})],oh.prototype,"step",1),eL([v("disabled",{waitUntilFirstUpdate:!0})],oh.prototype,"_handleDisabledChange",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],oh.prototype,"_handleReadonlyChange",2),oh=eL([rr("qti-slider-interaction")],oh);var op=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(es(),this.handleSlotChange)}},{key:"handleSlotChange",value:function t(t){var e;var n;var r=Array.from((n=(e=this.firstElementChild)===null||e===void 0?void 0:e.childNodes)!==null&&n!==void 0?n:[]).find(function(t){return t.nodeType===Node.COMMENT_NODE});try{var i;this.operatorFunction=new Function("context","fn","item",(i=r.textContent)!==null&&i!==void 0?i:"")}catch(t){console.error("custom-operator contains invalid javascript code",t)}}},{key:"calculate",value:function t(){var t=this;var e={variable:function(e){var n,r;var i;return(i=(r=t._context)===null||r===void 0?void 0:(n=r.variables.find(function(t){return t.identifier===e}))===null||n===void 0?void 0:n.value)!==null&&i!==void 0?i:""},correct:function(e){var n,r;var i;return(i=(r=t._context)===null||r===void 0?void 0:(n=r.variables.find(function(t){return t.identifier===e}))===null||n===void 0?void 0:n.correctResponse)!==null&&i!==void 0?i:""}},n={getVariable:function(e){var n;return(n=t._context)===null||n===void 0?void 0:n.variables.find(function(t){return t.identifier===e})},updateOutcomeVariable:function(e,n){t.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:e,value:n}}))},updateResponseVariable:function(e,n){t.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:e,response:n}}))}};return this.operatorFunction(this._context,e,n)}}]);return n}(rt);eL([e({context:rl,subscribe:!0}),s()],op.prototype,"_context",2),op=eL([rr("qti-custom-operator")],op);var of=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-hotspot",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"render",value:function t(){return nj(el())}}]);return n}(rt);of.styles=e9(eu()),of=eL([rr("qti-associable-hotspot")],of);var ov=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"render",value:function t(){return nj(ec())}}]);return n}(rt);ov.styles=e9(ed()),eL([i({type:Number,reflect:!0})],ov.prototype,"tabindex",2),ov=eL([rr("qti-gap")],ov);var og=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"connectedCallback",value:function t(){this.setAttribute("slot","qti-gap-img")}}]);return n}(rt);og.styles=e9(eh()),eL([i({type:Number,reflect:!0})],og.prototype,"tabindex",2),og=eL([rr("qti-gap-img")],og);var oy=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-gap-text")}},{key:"render",value:function t(){return nj(ep())}}]);return n}(_(rt,"qti-gap-text"));oy.styles=e9(ef()),eL([i({type:Number,reflect:!0})],oy.prototype,"tabindex",2),oy=eL([rr("qti-gap-text")],oy);var om=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(_(rt,"qti-hotspot-choice"));om.styles=e9(ev()),eL([i({attribute:"aria-ordervalue",type:Number,reflect:!0})],om.prototype,"order",2),om=eL([rr("qti-hotspot-choice")],om);var ob=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(eg())}}]);return n}(_(rt,"qti-hottext"));ob.styles=e9(ey()),ob=eL([rr("qti-hottext")],ob);var oq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",this._onSelectInlineChoice),this.dispatchEvent(new CustomEvent("qti-inline-choice-register",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"disconnectedCallback",value:function t(){this.removeEventListener("click",this._onSelectInlineChoice)}},{key:"render",value:function t(){return nj(eb())}},{key:"_onSelectInlineChoice",value:function t(){this.dispatchEvent(new CustomEvent("qti-inline-choice-select",{bubbles:!0,cancelable:!1,composed:!0,detail:{identifier:this.identifier}}))}}],[{key:"styles",get:function t(){return[e9(em())]}}]);return n}(rt);eL([i({type:String})],oq.prototype,"identifier",2),oq=eL([rr("qti-inline-choice")],oq);var ok=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(ek(),this.marker?nj(eq(),this.marker):nW)}}]);return n}(_(rt,"qti-simple-choice"));ok.styles=e9(ew()),eL([i({type:String,attribute:!1})],ok.prototype,"marker",2),ok=eL([rr("qti-simple-choice")],ok);console.log("%cC\xbfTO%cLab%c: qti-components loaded","font-weight:bold; color:green",'font-family: "PT Sans", font-weight:bold; color:green; font-size: smaller;vertical-align: sub',"font-weight:unset");var ow="@layer qti-base, qti-components, qti-utilities, qti-variants, qti-extended;\n\n/* \nBase variables on PNP \nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.x51afjl5r8gl\nfont-face\nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.r3hufj74r1do\nline-spacing\nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl\n*/\n\n:root,\n:host {\n /* Primary colors */\n --qti-primary-light: #ffeaea;\n --qti-primary: #f86d70;\n --qti-primary-dark: #a1616a;\n\n /* Secondary colors */\n --qti-secondary-light: #bed4ff;\n --qti-secondary: #6daef8;\n --qti-secondary-dark: #3a449d;\n\n /* Background colors */\n --qti-bg-gray-50: #f9fafb;\n --qti-bg-gray-100: #f3f4f6;\n --qti-bg-white: white;\n --qti-bg-primary: var(--qti-primary);\n\n /* Text colors */\n --qti-text-gray-500: #45484f;\n --qti-text-white: white;\n\n /* Border properties */\n --qti-border-thickness: 1.5px;\n --qti-border-style: solid;\n --qti-border-color-gray: #c6cad0; /* Corresponding to border-gray-400 */\n --qti-border-radius-md: 0.375rem;\n --qti-border-radius-lg: 0.5rem;\n --qti-border-radius-full: 9999px;\n\n /* Padding */\n --qti-padding-sm: 0.125rem; /* py-0.5 */\n --qti-padding-md: 0.5rem; /* py-2 */\n --qti-padding-lg: 0.75rem; /* p-3 */\n --qti-padding-xl: 1rem; /* pl-4 */\n\n /* Form & layout */\n --qti-form-size: 1rem;\n --qti-gap-size: 0.5rem;\n\n /* Typography */\n --qti-font-weight-semibold: 600;\n --qti-line-height: 2.5;\n\n /* Focus & active states */\n --qti-active: blue;\n --qti-focus-color: #bddcff7e;\n --qti-focus-border-width: 5px;\n\n /* Correct/Incorrect feedback */\n --qti-correct: rgb(74 222 128);\n --qti-correct-light: rgb(220 252 231);\n --qti-incorrect: rgb(248 113 113);\n --qti-incorrect-light: rgb(254 226 226);\n\n /* ---- */\n --box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 7.5%);\n --box-shadow-lg: 0 0.5rem 1rem rgb(0 0 0 / 15%);\n --table-border-color: var(--qti-border-color-gray);\n --foreground: var(--qti-bg-gray-50);\n --well-bg: var(--qti-bg-gray-50);\n --well-border: var(--qti-border-color-gray);\n --well-box-shadow: var(--box-shadow);\n}\n\n.chevron {\n background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px;\n}\n\n.handle {\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n background-repeat: repeat-y;\n background-position: left center;\n background-size: 14px 8px;\n}\n\n.check-mask {\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n}\n\n.bordered {\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.borderinvisible {\n border-color: transparent;\n}\n\n.form {\n\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.p-lg {\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl); /* Padding shorthand */\n}\n\n.button {\n\n border-radius: var(--qti-border-radius-md);\n padding: var(--qti-padding-md) var(--qti-padding-md);\n font-weight: var(--qti-font-weight-semibold);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.select {\n\n border-radius: var(--qti-border-radius-md);\n position: relative;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n padding: var(--qti-padding-md) 1.75rem var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */ border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray); outline: none; background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px;\n}\n\n.text {\n\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg); /* Equal padding on all sides */\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.spot {\n\n width: 100%;\n height: 100%;\n background-color: transparent;\n padding: 0;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n/* qti-select-point-interaction */\n\n.point {\n\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem; /* w-6 */\n height: 1.5rem;\n background-color: transparent;\n padding: 0;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.drag {\n\n transition:\n transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl); /* Padding shorthand */\n border-radius: var(--qti-border-radius-md);\n cursor: grab;\n background-color: white;\n font-weight: var(--qti-font-weight-semibold);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n background-repeat: repeat-y;\n background-position: left center;\n background-size: 14px 8px;\n}\n\n.dragging {\n pointer-events: none;\n rotate: -2deg;\n box-shadow:\n 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n}\n\n.drop {\n\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.dropping {\n background-color: var(--qti-primary-light);\n}\n\n.order {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem; /* w-6 */\n height: 1.5rem;\n color: var(--qti-text-white);\n}\n\n.check-size {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n}\n\n.check {\n /* display: flex; */\n\n /* align-items: center; */\n gap: 0.5rem;\n padding: var(--qti-padding-md) var(--qti-padding-md); /* Padding shorthand */\n outline: none;\n border-radius: var(--qti-border-radius-md);\n cursor: pointer;\n}\n\n.check-radio {\n\n border-radius: var(--qti-border-radius-full);\n\n width: var(--qti-form-size);\n\n height: var(--qti-form-size);\n\n align-self: 1;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n}\n\n.check-radio-checked {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n}\n\n.check-checkbox {\n\n border-radius: var(--qti-border-radius-md);\n\n width: var(--qti-form-size);\n\n height: var(--qti-form-size);\n\n align-self: 1;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n}\n\n.check-checkbox-checked {\n\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask); /* check-mask */ -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\"); mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n}\n\n.hov {\n /* background-color: var(--qti-bg-gray-50); */\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n}\n\n.foc {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n}\n\n.act {\n border-color: var(--qti-bg-primary); /* border-primary */\n}\n\n.rdo {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n}\n\n.dis {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n\n /* outline-color: var(--qti-text-gray-50); */\n}\n\n/* base */\n\n/* ============================\n QTI 3 shared css\n 1. Display\n 2. Special Flex styles\n 3. Margin\n 4. Padding\n 5. Horizontal Alignment styles\n 6. Vertical Alignment styles\n 7. Height\n 8. Width\n 9. Text-Indent\n 10. List Style\n 11. Layout\n 12. Other QTI 3 presentation utilities\n ============================ */\n\n/* ==========\n Display css\n =========== */\n\n.qti-display-inline {\n display: inline;\n}\n\n.qti-display-inline-block {\n display: inline-block;\n}\n\n.qti-display-block {\n display: block;\n}\n\n.qti-display-flex {\n display: flexbox;\n display: flex;\n}\n\n.qti-display-inline-flex {\n display: inline-flex;\n}\n\n.qti-display-grid {\n display: grid;\n}\n\n.qti-display-inline-grid {\n display: inline-grid;\n}\n\n.qti-display-table {\n display: table;\n}\n\n.qti-display-table-cell {\n display: table-cell;\n}\n\n.qti-display-table-row {\n display: table-row;\n}\n\n.qti-display-list-item {\n display: list-item;\n}\n\n.qti-display-inherit {\n display: inherit;\n}\n\n/* \n * hidden to screen readers and sighted\n */\n\n.qti-hidden {\n display: none;\n}\n\n/*\n * visible to screen readers, hidden to sighted\n */\n\n.qti-visually-hidden {\n position: fixed !important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n height: 1px;\n width: 1px;\n border: 0;\n margin: -1px;\n}\n\n/* =============================\n Special flex styles\n ============================= */\n\n.qti-flex-direction-column {\n flex-direction: column;\n}\n\n.qti-flex-direction-row {\n flex-direction: row;\n}\n\n.qti-flex-grow-1 {\n flex-grow: 1;\n}\n\n.qti-flex-grow-0 {\n flex-grow: 0;\n}\n\n/* =========\n Margin css\n ========== */\n\n/**\n * For margin Top and Bottom and Left and Right\n */\n\n.qti-margin-0 {\n margin: 0 !important;\n}\n\n.qti-margin-1 {\n margin: 0.25rem !important;\n}\n\n.qti-margin-2 {\n margin: 0.5rem !important;\n}\n\n.qti-margin-3 {\n margin: 1rem !important;\n}\n\n.qti-margin-4 {\n margin: 1.5rem !important;\n}\n\n.qti-margin-5 {\n margin: 3rem !important;\n}\n\n.qti-margin-auto {\n margin: auto !important;\n}\n\n/*\n For margin Left and Right\n */\n\n.qti-margin-x-0 {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n\n.qti-margin-x-1 {\n margin-right: 0.25rem !important;\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-x-2 {\n margin-right: 0.5rem !important;\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-x-3 {\n margin-right: 1rem !important;\n margin-left: 1rem !important;\n}\n\n.qti-margin-x-4 {\n margin-right: 1.5rem !important;\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-x-5 {\n margin-right: 3rem !important;\n margin-left: 3rem !important;\n}\n\n.qti-margin-x-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n\n/*\n For margin Top and Bottom\n */\n\n.qti-margin-y-0 {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n}\n\n.qti-margin-y-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-y-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-y-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-y-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-y-5 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-y-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n/*\n For margin Top\n */\n\n.qti-margin-t-0 {\n margin-top: 0 !important;\n}\n\n.qti-margin-t-1 {\n margin-top: 0.25rem !important;\n}\n\n.qti-margin-t-2 {\n margin-top: 0.5rem !important;\n}\n\n.qti-margin-t-3 {\n margin-top: 1rem !important;\n}\n\n.qti-margin-t-4 {\n margin-top: 1.5rem !important;\n}\n\n.qti-margin-t-5 {\n margin-top: 3rem !important;\n}\n\n.qti-margin-t-auto {\n margin-top: auto !important;\n}\n\n/* \n For margin Bottom\n */\n\n.qti-margin-b-0 {\n margin-bottom: 0 !important;\n}\n\n.qti-margin-b-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-b-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-b-3 {\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-b-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-b-5 {\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-b-auto {\n margin-bottom: auto !important;\n}\n\n/*\n For margin Start LTR\n */\n\n.qti-margin-s-0 {\n margin-left: 0 !important;\n}\n\n.qti-margin-s-1 {\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-s-2 {\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-s-3 {\n margin-left: 1rem !important;\n}\n\n.qti-margin-s-4 {\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-s-5 {\n margin-left: 3rem !important;\n}\n\n.qti-margin-s-auto {\n margin-left: auto !important;\n}\n\n/* \n For margin End LTR\n */\n\n.qti-margin-e-0 {\n margin-right: 0 !important;\n}\n\n.qti-margin-e-1 {\n margin-right: 0.25rem !important;\n}\n\n.qti-margin-e-2 {\n margin-right: 0.5rem !important;\n}\n\n.qti-margin-e-3 {\n margin-right: 1rem !important;\n}\n\n.qti-margin-e-4 {\n margin-right: 1.5rem !important;\n}\n\n.qti-margin-e-5 {\n margin-right: 3rem !important;\n}\n\n.qti-margin-e-auto {\n margin-right: auto !important;\n}\n\n/* =========\n Padding css\n ========== */\n\n/*\n For padding Top and Bottom and Left and Right\n */\n\n.qti-padding-0 {\n padding: 0 !important;\n}\n\n.qti-padding-1 {\n padding: 0.25rem !important;\n}\n\n.qti-padding-2 {\n padding: 0.5rem !important;\n}\n\n.qti-padding-3 {\n padding: 1rem !important;\n}\n\n.qti-padding-4 {\n padding: 1.5rem !important;\n}\n\n.qti-padding-5 {\n padding: 3rem !important;\n}\n\n/*\n For padding Left and Right\n */\n\n.qti-padding-x-0 {\n padding-right: 0 !important;\n padding-left: 0 !important;\n}\n\n.qti-padding-x-1 {\n padding-right: 0.25rem !important;\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-x-2 {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-x-3 {\n padding-right: 1rem !important;\n padding-left: 1rem !important;\n}\n\n.qti-padding-x-4 {\n padding-right: 1.5rem !important;\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-x-5 {\n padding-right: 3rem !important;\n padding-left: 3rem !important;\n}\n\n/*\n For padding Top and Bottom\n */\n\n.qti-padding-y-0 {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.qti-padding-y-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-y-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-y-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-y-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-y-5 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Top\n */\n\n.qti-padding-t-0 {\n padding-top: 0 !important;\n}\n\n.qti-padding-t-1 {\n padding-top: 0.25rem !important;\n}\n\n.qti-padding-t-2 {\n padding-top: 0.5rem !important;\n}\n\n.qti-padding-t-3 {\n padding-top: 1rem !important;\n}\n\n.qti-padding-t-4 {\n padding-top: 1.5rem !important;\n}\n\n.qti-padding-t-5 {\n padding-top: 3rem !important;\n}\n\n/*\n For padding Bottom\n */\n\n.qti-padding-b-0 {\n padding-bottom: 0 !important;\n}\n\n.qti-padding-b-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-b-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-b-3 {\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-b-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-b-5 {\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Start LTR\n */\n\n.qti-padding-s-0 {\n padding-left: 0 !important;\n}\n\n.qti-padding-s-1 {\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-s-2 {\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-s-3 {\n padding-left: 1rem !important;\n}\n\n.qti-padding-s-4 {\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-s-5 {\n padding-left: 3rem !important;\n}\n\n/*\n For padding End LTR\n */\n\n.qti-padding-e-0 {\n padding-right: 0 !important;\n}\n\n.qti-padding-e-1 {\n padding-right: 0.25rem !important;\n}\n\n.qti-padding-e-2 {\n padding-right: 0.5rem !important;\n}\n\n.qti-padding-e-3 {\n padding-right: 1rem !important;\n}\n\n.qti-padding-e-4 {\n padding-right: 1.5rem !important;\n}\n\n.qti-padding-e-5 {\n padding-right: 3rem !important;\n}\n\n/* ====================\n Horizontal alignment\n ==================== */\n\n.qti-align-left {\n text-align: left;\n}\n\n.qti-align-center {\n text-align: center;\n}\n\n.qti-align-right {\n text-align: right;\n}\n\n/* ==================\n Vertical alignment\n ================== */\n\n.qti-valign-top {\n vertical-align: top;\n}\n\n.qti-valign-middle {\n vertical-align: middle;\n}\n\n.qti-valign-baseline {\n vertical-align: baseline;\n}\n\n.qti-valign-bottom {\n vertical-align: bottom;\n}\n\n/* =============\n Height styles\n ============= */\n\n.qti-height-0 {\n height: 0;\n}\n\n.qti-height-px {\n height: 1px;\n}\n\n.qti-height-0p5 {\n height: 0.125rem;\n}\n\n.qti-height-1 {\n height: 0.25rem;\n}\n\n.qti-height-1p5 {\n height: 0.375rem;\n}\n\n.qti-height-2 {\n height: 0.5rem;\n}\n\n.qti-height-2p5 {\n height: 0.625rem;\n}\n\n.qti-height-3 {\n height: 0.75rem;\n}\n\n.qti-height-3p5 {\n height: 0.875rem;\n}\n\n.qti-height-4 {\n height: 1rem;\n}\n\n.qti-height-5 {\n height: 1.25rem;\n}\n\n.qti-height-6 {\n height: 1.5rem;\n}\n\n.qti-height-7 {\n height: 1.75rem;\n}\n\n.qti-height-8 {\n height: 2rem;\n}\n\n.qti-height-9 {\n height: 2.25rem;\n}\n\n.qti-height-10 {\n height: 2.5rem;\n}\n\n.qti-height-11 {\n height: 2.75rem;\n}\n\n.qti-height-12 {\n height: 3rem;\n}\n\n.qti-height-14 {\n height: 3.5rem;\n}\n\n.qti-height-16 {\n height: 4rem;\n}\n\n.qti-height-20 {\n height: 5rem;\n}\n\n.qti-height-24 {\n height: 6rem;\n}\n\n.qti-height-28 {\n height: 7rem;\n}\n\n.qti-height-32 {\n height: 8rem;\n}\n\n.qti-height-36 {\n height: 9rem;\n}\n\n.qti-height-40 {\n height: 10rem;\n}\n\n.qti-height-44 {\n height: 11rem;\n}\n\n.qti-height-48 {\n height: 12rem;\n}\n\n.qti-height-52 {\n height: 13rem;\n}\n\n.qti-height-56 {\n height: 14rem;\n}\n\n.qti-height-60 {\n height: 15rem;\n}\n\n.qti-height-64 {\n height: 16rem;\n}\n\n.qti-height-72 {\n height: 18rem;\n}\n\n.qti-height-80 {\n height: 20rem;\n}\n\n.qti-height-96 {\n height: 24rem;\n}\n\n.qti-height-1-2 {\n height: 50%;\n}\n\n.qti-height-1-3 {\n height: 33.333333%;\n}\n\n.qti-height-2-3 {\n height: 66.666667%;\n}\n\n.qti-height-1-4 {\n height: 25%;\n}\n\n.qti-height-2-4 {\n height: 50%;\n}\n\n.qti-height-3-4 {\n height: 75%;\n}\n\n.qti-height-1-5 {\n height: 20%;\n}\n\n.qti-height-2-5 {\n height: 40%;\n}\n\n.qti-height-3-5 {\n height: 60%;\n}\n\n.qti-height-4-5 {\n height: 80%;\n}\n\n.qti-height-1-6 {\n height: 16.666667%;\n}\n\n.qti-height-2-6 {\n height: 33.333333%;\n}\n\n.qti-height-3-6 {\n height: 50%;\n}\n\n.qti-height-4-6 {\n height: 66.666667%;\n}\n\n.qti-height-5-6 {\n height: 83.333333%;\n}\n\n.qti-height-auto {\n height: auto;\n}\n\n.qti-height-full {\n height: 100%;\n}\n\n/* ============\n Width styles\n ============ */\n\n.qti-width-0 {\n width: 0;\n}\n\n.qti-width-px {\n width: 1px;\n}\n\n.qti-width-0p5 {\n width: 0.125rem;\n}\n\n.qti-width-1 {\n width: 0.25rem;\n}\n\n.qti-width-1p5 {\n width: 0.375rem;\n}\n\n.qti-width-2 {\n width: 0.5rem;\n}\n\n.qti-width-2p5 {\n width: 0.625rem;\n}\n\n.qti-width-3 {\n width: 0.75rem;\n}\n\n.qti-width-3p5 {\n width: 0.875rem;\n}\n\n.qti-width-4 {\n width: 1rem;\n}\n\n.qti-width-5 {\n width: 1.25rem;\n}\n\n.qti-width-6 {\n width: 1.5rem;\n}\n\n.qti-width-7 {\n width: 1.75rem;\n}\n\n.qti-width-8 {\n width: 2rem;\n}\n\n.qti-width-9 {\n width: 2.25rem;\n}\n\n.qti-width-10 {\n width: 2.5rem;\n}\n\n.qti-width-11 {\n width: 2.75rem;\n}\n\n.qti-width-12 {\n width: 3rem;\n}\n\n.qti-width-14 {\n width: 3.5rem;\n}\n\n.qti-width-16 {\n width: 4rem;\n}\n\n.qti-width-20 {\n width: 5rem;\n}\n\n.qti-width-24 {\n width: 6rem;\n}\n\n.qti-width-28 {\n width: 7rem;\n}\n\n.qti-width-32 {\n width: 8rem;\n}\n\n.qti-width-36 {\n width: 9rem;\n}\n\n.qti-width-40 {\n width: 10rem;\n}\n\n.qti-width-44 {\n width: 11rem;\n}\n\n.qti-width-48 {\n width: 12rem;\n}\n\n.qti-width-52 {\n width: 13rem;\n}\n\n.qti-width-56 {\n width: 14rem;\n}\n\n.qti-width-60 {\n width: 15rem;\n}\n\n.qti-width-64 {\n width: 16rem;\n}\n\n.qti-width-72 {\n width: 18rem;\n}\n\n.qti-width-80 {\n width: 20rem;\n}\n\n.qti-width-96 {\n width: 24rem;\n}\n\n.qti-width-auto {\n width: auto;\n}\n\n.qti-width-1-2 {\n width: 50%;\n}\n\n.qti-width-1-3 {\n width: 33.333333%;\n}\n\n.qti-width-2-3 {\n width: 66.666667%;\n}\n\n.qti-width-1-4 {\n width: 25%;\n}\n\n.qti-width-2-4 {\n width: 50%;\n}\n\n.qti-width-3-4 {\n width: 75%;\n}\n\n.qti-width-1-5 {\n width: 20%;\n}\n\n.qti-width-2-5 {\n width: 40%;\n}\n\n.qti-width-3-5 {\n width: 60%;\n}\n\n.qti-width-4-5 {\n width: 80%;\n}\n\n.qti-width-1-6 {\n width: 16.666667%;\n}\n\n.qti-width-2-6 {\n width: 33.333333%;\n}\n\n.qti-width-3-6 {\n width: 50%;\n}\n\n.qti-width-4-6 {\n width: 66.666667%;\n}\n\n.qti-width-5-6 {\n width: 83.333333%;\n}\n\n.qti-width-1-12 {\n width: 8.333333%;\n}\n\n.qti-width-2-12 {\n width: 16.666667%;\n}\n\n.qti-width-3-12 {\n width: 25%;\n}\n\n.qti-width-4-12 {\n width: 33.333333%;\n}\n\n.qti-width-5-12 {\n width: 41.666667%;\n}\n\n.qti-width-6-12 {\n width: 50%;\n}\n\n.qti-width-7-12 {\n width: 58.333333%;\n}\n\n.qti-width-8-12 {\n width: 66.666667%;\n}\n\n.qti-width-9-12 {\n width: 75%;\n}\n\n.qti-width-10-12 {\n width: 83.333333%;\n}\n\n.qti-width-11-12 {\n width: 91.666667%;\n}\n\n.qti-width-full,\n.qti-fullwidth {\n width: 100%;\n}\n\n/* ==================\n Text Indent styles\n ================== */\n\n.qti-text-indent-0 {\n text-indent: 0;\n}\n\n.qti-text-indent-px {\n text-indent: 1px;\n}\n\n.qti-text-indent-0p5 {\n text-indent: 0.125rem;\n}\n\n.qti-text-indent-1 {\n text-indent: 0.25rem;\n}\n\n.qti-text-indent-1p5 {\n text-indent: 0.375rem;\n}\n\n.qti-text-indent-2 {\n text-indent: 0.5rem;\n}\n\n.qti-text-indent-2p5 {\n text-indent: 0.625rem;\n}\n\n.qti-text-indent-3 {\n text-indent: 0.75rem;\n}\n\n.qti-text-indent-3p5 {\n text-indent: 0.875rem;\n}\n\n.qti-text-indent-4 {\n text-indent: 1rem;\n}\n\n.qti-text-indent-5 {\n text-indent: 1.25rem;\n}\n\n.qti-text-indent-6 {\n text-indent: 1.5rem;\n}\n\n.qti-text-indent-7 {\n text-indent: 1.75rem;\n}\n\n.qti-text-indent-8 {\n text-indent: 2rem;\n}\n\n.qti-text-indent-12 {\n text-indent: 3rem;\n}\n\n.qti-text-indent-16 {\n text-indent: 4rem;\n}\n\n.qti-text-indent-20 {\n text-indent: 5rem;\n}\n\n.qti-text-indent-24 {\n text-indent: 6rem;\n}\n\n.qti-text-indent-28 {\n text-indent: 7rem;\n}\n\n.qti-text-indent-32 {\n text-indent: 8rem;\n}\n\n/* =================\n List Style styles\n ================= */\n\n.qti-list-style-type-none {\n list-style-type: none;\n}\n\n.qti-list-style-type-disc {\n list-style-type: disc;\n}\n\n.qti-list-style-type-circle {\n list-style-type: circle;\n}\n\n.qti-list-style-type-square {\n list-style-type: square;\n}\n\n.qti-list-style-type-decimal {\n list-style-type: decimal;\n}\n\n.qti-list-style-type-decimal-leading-zero {\n list-style-type: decimal-leading-zero;\n}\n\n.qti-list-style-type-lower-alpha {\n list-style-type: lower-alpha;\n}\n\n.qti-list-style-type-upper-alpha {\n list-style-type: upper-alpha;\n}\n\n.qti-list-style-type-lower-roman {\n list-style-type: lower-roman;\n}\n\n.qti-list-style-type-upper-roman {\n list-style-type: upper-roman;\n}\n\n.qti-list-style-type-lower-latin {\n list-style-type: lower-latin;\n}\n\n.qti-list-style-type-upper-latin {\n list-style-type: upper-latin;\n}\n\n.qti-list-style-type-lower-greek {\n list-style-type: lower-greek;\n}\n\n.qti-list-style-type-arabic-indic {\n list-style-type: arabic-indic;\n}\n\n.qti-list-style-type-armenian {\n list-style-type: armenian;\n}\n\n.qti-list-style-type-lower-armenian {\n list-style-type: lower-armenian;\n}\n\n.qti-list-style-type-upper-armenian {\n list-style-type: upper-armenian;\n}\n\n.qti-list-style-type-bengali {\n list-style-type: bengali;\n}\n\n.qti-list-style-type-cambodian {\n list-style-type: cambodian;\n}\n\n.qti-list-style-type-simp-chinese-formal {\n list-style-type: simp-chinese-formal;\n}\n\n.qti-list-style-type-simp-chinese-informal {\n list-style-type: simp-chinese-informal;\n}\n\n.qti-list-style-type-trad-chinese-formal {\n list-style-type: trad-chinese-formal;\n}\n\n.qti-list-style-type-trad-chinese-informal {\n list-style-type: trad-chinese-informal;\n}\n\n.qti-list-style-type-cjk-ideographic {\n list-style-type: cjk-ideographic;\n}\n\n.qti-list-style-type-cjk-heavenly-stem {\n list-style-type: cjk-heavenly-stem;\n}\n\n.qti-list-style-type-cjk-earthly-branch {\n list-style-type: cjk-earthly-branch;\n}\n\n.qti-list-style-type-devanagari {\n list-style-type: devanagari;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-er {\n list-style-type: ethiopic-halehame-ti-er;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-et {\n list-style-type: ethiopic-halehame-ti-et;\n}\n\n.qti-list-style-type-ethiopic-halehame-am {\n list-style-type: ethiopic-halehame-am;\n}\n\n.qti-list-style-type-ethiopic-halehame {\n list-style-type: ethiopic-halehame;\n}\n\n.qti-list-style-type-georgian {\n list-style-type: georgian;\n}\n\n.qti-list-style-type-gujarati {\n list-style-type: gujarati;\n}\n\n.qti-list-style-type-gurmukhi {\n list-style-type: gurmukhi;\n}\n\n.qti-list-style-type-hangul {\n list-style-type: hangul;\n}\n\n.qti-list-style-type-hangul-consonant {\n list-style-type: hangul-consonant;\n}\n\n.qti-list-style-type-hebrew {\n list-style-type: hebrew;\n}\n\n.qti-list-style-type-hiragana {\n list-style-type: hiragana;\n}\n\n.qti-list-style-type-hiragana-iroha {\n list-style-type: hiragana-iroha;\n}\n\n.qti-list-style-type-khmer {\n list-style-type: khmer;\n}\n\n.qti-list-style-type-korean-hangul-formal {\n list-style-type: korean-hangul-formal;\n}\n\n.qti-list-style-type-korean-hanja-formal {\n list-style-type: korean-hanja-formal;\n}\n\n.qti-list-style-type-korean-hanja-informal {\n list-style-type: korean-hanja-informal;\n}\n\n.qti-list-style-type-lao {\n list-style-type: lao;\n}\n\n.qti-list-style-type-malayalam {\n list-style-type: malayalam;\n}\n\n.qti-list-style-type-mongolian {\n list-style-type: mongolian;\n}\n\n.qti-list-style-type-myanmar {\n list-style-type: myanmar;\n}\n\n.qti-list-style-type-oriya {\n list-style-type: oriya;\n}\n\n.qti-list-style-type-persian {\n list-style-type: persian;\n}\n\n.qti-list-style-type-thai {\n list-style-type: thai;\n}\n\n.qti-list-style-type-tibetan {\n list-style-type: tibetan;\n}\n\n.qti-list-style-type-telugu {\n list-style-type: telugu;\n}\n\n.qti-list-style-type-urdu {\n list-style-type: urdu;\n}\n\n/* =========================\n Other QTI 3 Presentation Utilities\n ========================= */\n\n.qti-bordered {\n border: 1px solid var(--table-border-color);\n}\n\n.qti-underline {\n text-decoration: underline;\n text-decoration-color: var(--foreground);\n}\n\n.qti-italic {\n font-style: italic;\n}\n\n.qti-well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: var(--well-bg);\n border: var(--well-border);\n border-radius: 4px;\n box-shadow: var(--well-box-shadow);\n}\n\n/* Set writing-mode to vertical-rl \n Typical for CJK vertical text */\n\n.qti-writing-mode-vertical-rl {\n writing-mode: vertical-rl;\n}\n\n/* Set writing-mode to vertical-lr\n Typical for Mongolian vertical text */\n\n.qti-writing-mode-vertical-lr {\n writing-mode: vertical-lr;\n}\n\n/* Set writing-mode to horizontal-tb \n Browser default */\n\n.qti-writing-mode-horizontal-tb {\n writing-mode: horizontal-tb;\n}\n\n/* Float an element left */\n\n.qti-float-left {\n float: left;\n}\n\n/* Float an element right */\n\n.qti-float-right {\n float: right;\n}\n\n/* Remove a float */\n\n.qti-float-none {\n float: none;\n}\n\n/* Clearfix Hack to apply to a container of \n floated content that overflows the container. */\n\n.qti-float-clearfix::after {\n content: '';\n clear: both;\n display: table;\n}\n\n.qti-float-clear-left\n .qti-float-clear-right\n .qti-float-clear-both\n \n /* Set text-orientation to upright */\n .qti-text-orientation-upright {\n text-orientation: upright;\n}\n\n@layer qti-base {\n .qti-layout-row {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 2.1276595745%;\n }\n\n .qti-layout-row [class*='qti-layout-col'] {\n box-sizing: border-box;\n }\n\n .qti-layout-col1 {\n width: 6.3829787234%;\n }\n\n .qti-layout-col2 {\n width: 14.8936170213%;\n }\n\n .qti-layout-col3 {\n width: 23.4042553191%;\n }\n\n .qti-layout-col4 {\n width: 31.914893617%;\n }\n\n .qti-layout-col5 {\n width: 40.4255319149%;\n }\n\n .qti-layout-col6 {\n width: 48.9361702128%;\n }\n\n .qti-layout-col7 {\n width: 57.4468085106%;\n }\n\n .qti-layout-col8 {\n width: 65.9574468085%;\n }\n\n .qti-layout-col9 {\n width: 74.4680851064%;\n }\n\n .qti-layout-col10 {\n width: 82.9787234043%;\n }\n\n .qti-layout-col11 {\n width: 91.4893617021%;\n }\n\n .qti-layout-col12 {\n width: 100%;\n }\n\n .qti-layout-offset1 {\n margin-left: 8.5106382979%;\n }\n\n .qti-layout-offset2 {\n margin-left: 17.0212765957%;\n }\n\n .qti-layout-offset3 {\n margin-left: 25.5319148936%;\n }\n\n .qti-layout-offset4 {\n margin-left: 34.0425531915%;\n }\n\n .qti-layout-offset5 {\n margin-left: 42.5531914894%;\n }\n\n .qti-layout-offset6 {\n margin-left: 51.0638297872%;\n }\n\n .qti-layout-offset7 {\n margin-left: 59.5744680851%;\n }\n\n .qti-layout-offset8 {\n margin-left: 68.085106383%;\n }\n\n .qti-layout-offset9 {\n margin-left: 76.5957446809%;\n }\n\n .qti-layout-offset10 {\n margin-left: 85.1063829787%;\n }\n\n .qti-layout-offset11 {\n margin-left: 93.6170212766%;\n }\n\n .qti-layout-offset12 {\n margin-left: 102.1276595745%;\n }\n\n @media (width <= 767px) {\n [class*='qti-layout-col'] {\n width: 100%;\n }\n }\n}\n\n[view],\nqti-outcome-declaration,\nqti-response-declaration {\n display: none;\n}\n\n[view].show {\n display: block;\n}\n\n:host {\n box-sizing: border-box;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n[popover] {\n position: fixed;\n inset: 0;\n margin: auto;\n border: solid;\n padding: 0.25em;\n overflow: auto;\n color: CanvasText;\n background-color: Canvas;\n}\n\n[popovertarget] {\n all: unset;\n cursor: pointer;\n}\n\n/* components */\n\n@layer qti-components {\n qti-choice-interaction {\n &.qti-input-control-hidden {\n & qti-simple-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n &:not(.qti-input-control-hidden) {\n & qti-simple-choice {\n\n &:not([aria-disabled='true'], [aria-readonly='true']):hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n &::part(cha) {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n }\n\n &[role='radio']::part(ch) {\n border-radius: var(--qti-border-radius-full);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='radio'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n }\n\n &[role='checkbox']::part(ch) {\n border-radius: var(--qti-border-radius-md);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='checkbox'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask);\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n }\n\n gap: 0.5rem;\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n outline: none;\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: pointer\n }\n }\n\n & qti-simple-choice {\n &[data-correct-response='true'] {\n &::after {\n content: '\\02714';\n color: #16a34a; /* text-green-600 */\n }\n }\n }\n\n & qti-simple-choice > p {\n margin: 0;\n padding: 0;\n }\n }\n\n qti-text-entry-interaction {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus-within {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(input) {\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg);\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n }\n\n qti-extended-text-interaction {\n &::part(textarea) {\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg);\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus-within {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n }\n\n qti-gap-match-interaction {\n & qti-gap-text {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n & qti-gap {\n\n display: inline-flex;\n width: 8rem; /* w-32 */\n &:empty::after {\n padding: var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */\n content: '\\0000a0'; /* when empty, put a space in it */\n }\n\n &:not(:empty) {\n display: inline-flex;\n padding: 0;\n width: auto;\n }\n\n &:not(:empty) > * {\n flex: 1;\n transform: rotate(0); /* rotate-0 */\n box-shadow: 0 0 0 1px #e5e7eb; /* ring-gray-200 */\n }\n\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n\n border-radius: var(--qti-border-radius-lg);\n\n position: relative;\n\n background-color: var(--qti-bg-white);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n qti-hotspot-interaction {\n & qti-hotspot-choice {\n &[shape='circle'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='rect'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='poly'] {\n &:hover::after {\n\n content: '';\n width: 100%;\n height: 100%;\n background: repeating-linear-gradient(\n 45deg,\n var(--qti-primary),\n var(--qti-primary) 5px,\n transparent 5px,\n transparent 10px\n );\n display: block;\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-checked='true']::after {\n\n content: '';\n width: 100%;\n height: 100%;\n background: repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 5px,\n var(--qti-primary) 5px,\n var(--qti-primary) 10px\n );\n display: block;\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n }\n }\n\n qti-hottext-interaction {\n /* &:not(.qti-input-control-hidden),\n &:not(.qti-unselected-hidden) { */\n qti-hottext {\n display: inline-flex;\n align-items: center;\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(cha) {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n }\n\n &[role='radio']::part(ch) {\n border-radius: var(--qti-border-radius-full);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='radio'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n }\n\n &[role='checkbox']::part(ch) {\n border-radius: var(--qti-border-radius-md);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='checkbox'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask);\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n }\n\n gap: 0.5rem;\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n outline: none;\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: pointer\n }\n\n /* } */\n\n &.qti-input-control-hidden {\n qti-hottext {\n /* --qti-padding-md: 0.1rem;\n --qti-padding-lg: 0.2rem;\n --qti-border-radius-md: 0.3rem;\n --qti-border-thickness: 1px;\n --qti-font-weight-semibold: 400; */\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n /* @layer qti-variants { */\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n /* } */\n }\n\n &.qti-unselected-hidden {\n qti-hottext {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n cursor: pointer;\n\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n background-color: var(--qti-primary-light); /* bg-blue-200 */\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n }\n }\n\n qti-inline-choice-interaction {\n &::part(select) {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n position: relative;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n\n padding: var(--qti-padding-md) 1.75rem var(--qti-padding-md) var(--qti-padding-lg);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px\n }\n }\n\n qti-match-interaction:not(.qti-match-tabular) {\n /* The draggables */\n & qti-simple-match-set:first-of-type {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start; /* Prevents children from stretching */\n gap: var(--qti-gap-size);\n\n & qti-simple-associable-choice {\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n }\n\n /* The droppables */\n & qti-simple-match-set:last-of-type {\n display: grid;\n grid-auto-columns: 1fr; /* auto-cols-fr */\n grid-auto-flow: column; /* grid-flow-col */\n gap: var(--qti-gap-size); /* gap-2 */\n width: 100%; /* w-full */\n\n & qti-simple-associable-choice {\n display: flex;\n flex-direction: column;\n }\n\n & > qti-simple-associable-choice {\n /* a droppable qti-simple-associable-choice */\n box-sizing: border-box;\n display: grid;\n grid-row: 2 / 4;\n grid-template-rows: subgrid;\n\n & img {\n max-width: 100%;\n height: auto;\n }\n\n &[enabled] {\n &::part(dropslot) {\n background-color: var(--qti-primary-light);\n }\n }\n\n &[disabled] {\n &::part(dropslot) {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n\n &[active] {\n &::part(dropslot) {\n border-color: var(--qti-bg-primary);\n }\n }\n\n &::part(dropslot) {\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n min-height: 6rem;\n gap: var(--qti-gap-size);\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n & > *:not(qti-simple-associable-choice) {\n pointer-events: none;\n }\n\n & > qti-simple-associable-choice {\n\n &::part(dropslot) {\n display: none;\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n flex-basis: fit-content;\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px;\n }\n }\n }\n }\n\n qti-order-interaction {\n &::part(qti-simple-choice),\n & qti-simple-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n &::part(qti-simple-choice) {\n display: flex;\n overflow: hidden;\n align-items: center;\n width: 100%;\n text-overflow: ellipsis;\n }\n\n &::part(drops) {\n gap: 0.5rem; /* gap-2 */\n }\n\n &::part(drags) {\n gap: 0.5rem; /* gap-2 */\n }\n\n &::part(drop-list) {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n display: flex;\n min-height: 4rem;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &::part(active) {\n border-color: var(--qti-bg-primary);\n }\n }\n\n qti-associate-interaction {\n & qti-simple-associable-choice, /* drags when in lightdom */\n &::part(qti-simple-associable-choice) /* drags when in shadowdom */ {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n /* display: flex;\n overflow: hidden;\n align-items: center; */\n\n /* &::part(drop-container) {\n display: flex;\n flex-direction: column;\n gap: var(--qti-gap-size);\n } */\n\n &::part(drop-list) {\n\n display: grid;\n height: 3rem;\n min-width: 10rem;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &::part(drop-list):focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(drop-list)[dragging] {\n border-color: var(--qti-bg-primary);\n }\n\n /* &::part(drop-list) {\n @apply act;\n } */\n }\n\n qti-graphic-order-interaction {\n & qti-hotspot-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n &[aria-ordervalue] {\n\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem;\n height: 1.5rem;\n color: var(--qti-text-white);\n }\n\n &[aria-ordervalue]::after {\n content: attr(aria-ordervalue) !important;\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n qti-graphic-associate-interaction {\n position: relative;\n display: block;\n\n & qti-associable-hotspot {\n &[shape='circle'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='square'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n }\n\n qti-graphic-gap-match-interaction {\n position: relative;\n\n & img {\n margin: 0;\n padding: 0;\n }\n }\n\n qti-slider-interaction {\n display: block;\n\n --qti-tick-color: rgb(229 231 235 / 100%);\n --qti-tick-width: 1px;\n\n &::part(slider) {\n margin-left: 2rem; /* mx-8 */\n margin-right: 2rem;\n padding-bottom: 1rem; /* pb-4 */\n padding-top: 1.25rem; /* pt-5 */\n }\n\n --show-bounds: true;\n\n &::part(bounds) {\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-bottom: 0.5rem; /* mb-2 */\n }\n\n --show-ticks: true;\n\n &::part(ticks) {\n margin-left: 0.125rem; /* mx-0.5 */\n margin-right: 0.125rem;\n margin-bottom: 0.25rem; /* mb-1 */\n height: 0.5rem; /* h-2 */\n background-position: 0 center;\n background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x;\n background-size: calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;\n }\n\n &::part(rail) {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: 0.375rem; /* h-1.5 */\n width: 100%;\n cursor: pointer;\n border-radius: 9999px; /* rounded-full */\n border: 1px solid #d1d5db; /* border-gray-300 */\n background-color: #e5e7eb; /* bg-gray-200 */\n }\n\n &::part(knob) {\n background-color: var(--qti-primary);\n position: relative;\n height: 1rem; /* h-4 */\n width: 1rem; /* w-4 */\n transform-origin: center;\n transform: translateX(-50%);\n cursor: pointer;\n border-radius: 9999px; /* rounded-full */\n left: var(--value-percentage);\n }\n\n --show-value: true;\n\n &::part(value) {\n position: absolute;\n bottom: 2rem; /* bottom-8 */\n left: 0.5rem; /* left-2 */\n transform: translateX(-50%);\n cursor: pointer;\n border-radius: 0.25rem; /* rounded */\n background-color: #f3f4f6; /* bg-gray-100 */\n padding: 0.25rem 0.5rem; /* px-2 py-1 */\n text-align: center;\n color: #6b7280; /* text-gray-500 */\n }\n }\n\n qti-select-point-interaction {\n &::part(point) {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n border-radius: var(--qti-border-radius-full);\n\n width: 1.5rem;\n\n height: 1.5rem;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n }\n }\n\n qti-position-object-stage {\n & qti-position-object-interaction {\n /* no styles necessary, only layout styles, defined in the component */\n }\n }\n\n qti-prompt {\n margin: 0.5rem 0; /* my-2 */\n display: block;\n width: 100%;\n }\n}\n\n/* utilities */\n\n/* @import './styles/qti-utilities/qti-styles'; */\n\n/* variants */\n\n/* @import './styles/qti-variants/qti-input-width'; */\n\n/* @import './styles/qti-variants/qti-interactions'; */\n";var ox,oC,oA=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));eH(r(t),ox,null);eH(r(t),oC,null);return t}u(n,[{key:"xmlDoc",set:function t(t){var e=this;if(!eV(this,ox)){ez(this,ox,this.attachShadow({mode:"open"}));var n=new CSSStyleSheet;n.replaceSync(ow),eV(this,ox).adoptedStyleSheets=[n],eV(this,ox).innerHTML="",eV(this,ox).addEventListener("qti-assessment-item-connected",function(t){var n=t.target;return ez(e,oC,n)})}eV(this,ox).innerHTML="",eV(this,ox).appendChild(t.cloneNode(!0))}},{key:"processResponse",value:function t(){var t;((t=eV(this,oC))===null||t===void 0?void 0:t.processResponse())||console.warn("No qti-assessment-item found")}},{key:"variables",get:function t(){var t;return((t=eV(this,oC))===null||t===void 0?void 0:t.variables)||console.warn("No qti-assessment-item found")},set:function t(t){eV(this,oC).variables=t}},{key:"attributeChangedCallback",value:function t(t,e,n){switch(t){case"view":break;default:e!==n&&(this[t]=n);break}}}]);return n}(M(HTMLElement));ox=new WeakMap,oC=new WeakMap;customElements.define("qti-item",oA);var oE=function(t){return t.endsWith("/")?t:"".concat(t,"/")},oS=function(){var t=o(function(t,e){var n,r,i,o,a,s;var l=arguments;return L(this,function(u){switch(u.label){case 0:n=l.length>2&&l[2]!==void 0?l[2]:!0;r=oE(t);return[4,rh().load("".concat(r,"imsmanifest.xml")).then(function(t){return t.assessmentTest()})];case 1:i=u.sent();return[4,rp().load("".concat(r).concat(i.href)).then(function(t){return t.items()})];case 2:o=u.sent(),a="".concat(r).concat(i.href.substring(0,i.href.lastIndexOf("/")),"/").concat(o[e].href);return[4,rd().load(a,n).then(function(t){return t.path(a.substring(0,a.lastIndexOf("/"))).stripStyleSheets()})];case 3:s=u.sent();return[2,{itemHTMLDoc:s.htmldoc(),itemHTML:s.html(),items:o}]}})});return function e(e,n){return t.apply(this,arguments)}}(),o_=function(){var t=o(function(t){var e,n,r,i,o,a;return L(this,function(s){switch(s.label){case 0:e=oE(t);return[4,rh().load("".concat(e,"imsmanifest.xml")).then(function(t){return t.assessmentTest()})];case 1:n=s.sent();return[4,rp().load("".concat(e).concat(n.href)).then(function(t){return t.htmldoc()})];case 2:r=s.sent();return[4,rp().load("".concat(e).concat(n.href)).then(function(t){return t.items()})];case 3:i=s.sent(),o="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(n.href.substring(0,n.href.lastIndexOf("/"))),a="".concat(o,"/").concat(i[0].href.substring(0,i[0].href.lastIndexOf("/")));return[2,{assessmentXML:r,itemLocation:a,assessmentLocation:o,items:i,testIdentifier:n.identifier}]}})});return function e(e){return t.apply(this,arguments)}}(),oR=function(){var t=o(function(t){var e;var n=arguments;return L(this,function(r){e=n.length>1&&n[1]!==void 0?n[1]:!0;return[2,rd().load(t,e).then(function(e){return e.path(t.substring(0,t.lastIndexOf("/"))).stripStyleSheets().html()})]})});return function e(e){return t.apply(this,arguments)}}();return e$(eU)}();/*! Bundled license information:
|
|
1
|
+
function t(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function e(t){if(Array.isArray(t))return t}function n(e){if(Array.isArray(e))return t(e)}function r(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function i(t,e,n,r,i,o,a){try{var s=t[o](a);var l=s.value}catch(t){n(t);return}if(s.done){e(l)}else{Promise.resolve(l).then(r,i)}}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(undefined)})}}function a(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function s(t,e,n){if(D()){s=Reflect.construct}else{s=function t(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r);var o=new i;if(n)A(o,n.prototype);return o}}return s.apply(null,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function u(t,e,n){if(e)l(t.prototype,e);if(n)l(t,n);return t}function c(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function d(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){d=Reflect.get}else{d=function t(t,e,n){var r=_(t,e);if(!r)return;var i=Object.getOwnPropertyDescriptor(r,e);if(i.get){return i.get.call(n||t)}return i.value}}return d(t,e,n||t)}function h(t){h=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return h(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)A(t,e)}function f(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function v(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function g(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function y(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var o=false;var a,s;try{for(n=n.call(t);!(i=(a=n.next()).done);i=true){r.push(a.value);if(e&&r.length===e)break}}catch(t){o=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}return r}function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(){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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))}r.forEach(function(e){c(t,e,n[e])})}return t}function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);if(e){r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}n.push.apply(n,r)}return n}function w(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function x(t,e){if(e&&(O(e)==="object"||typeof e==="function")){return e}return r(t)}function C(t,e,n,r){if(typeof Reflect!=="undefined"&&Reflect.set){C=Reflect.set}else{C=function t(t,e,n,r){var i=_(t,e);var o;if(i){o=Object.getOwnPropertyDescriptor(i,e);if(o.set){o.set.call(r,n);return true}else if(!o.writable){return false}}o=Object.getOwnPropertyDescriptor(r,e);if(o){if(!o.writable){return false}o.value=n;Object.defineProperty(r,e,o)}else{c(r,e,n)}return true}}return C(t,e,n,r)}function E(t,e,n,r,i){var o=C(t,e,n,r||t);if(!o&&i){throw new Error("failed to set property")}return n}function A(t,e){A=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return A(t,e)}function S(t,n){return e(t)||y(t,n)||P(t,n)||m()}function _(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=h(t);if(t===null)break}return t}function R(t,e){if(!e){e=t.slice(0)}return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function T(t){return e(t)||g(t)||P(t)||m()}function I(t){return n(t)||g(t)||P(t)||b()}function O(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,n){if(!e)return;if(typeof e==="string")return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}function M(t){var e=typeof Map==="function"?new Map:undefined;M=function t(t){if(t===null||!v(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,h(this).constructor)}n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});return A(n,t)};return M(t)}function D(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function $(t){var e=D();return function n(){var n=h(t),r;if(e){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else{r=n.apply(this,arguments)}return x(this,r)}}function L(t,e){var n,r,i,o,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;r=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(o[0]===6&&a.label<i[1]){a.label=i[1];i=o;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(o);break}if(i[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}function N(){var t=R(["<slot></slot>"]);N=function e(){return t};return t}function V(){var t=R(["<slot></slot>"]);V=function e(){return t};return t}function H(){var t=R(['<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\n<xsl:output method="html" version="5.0" encoding="UTF-8" indent="yes" />\n <xsl:template match="@*|node()">\n <xsl:copy>\n <xsl:apply-templates select="@*|node()"/>\n </xsl:copy>\n </xsl:template>\n\n <!-- remove existing namespaces -->\n <xsl:template match="*">\n <!-- remove element prefix -->\n <xsl:element name="{local-name()}">\n <!-- process attributes -->\n <xsl:for-each select="@*">\n <!-- remove attribute prefix -->\n <xsl:attribute name="{local-name()}">\n <xsl:value-of select="."/>\n </xsl:attribute>\n </xsl:for-each>\n <xsl:apply-templates/>\n </xsl:element>\n</xsl:template>\n</xsl:stylesheet>']);H=function e(){return t};return t}function z(){var t=R(["\n :host {\n display: block;\n }\n"]);z=function e(){return t};return t}function U(){var t=R(['<slot name="qti-rubric-block"></slot><slot></slot>']);U=function e(){return t};return t}function j(){var t=R(["<slot></slot>"]);j=function e(){return t};return t}function B(){var t=R(["<slot></slot>"]);B=function e(){return t};return t}function Q(){var t=R(["",""]);Q=function e(){return t};return t}function F(){var t=R(["\n :host {\n display: none;\n }\n "]);F=function e(){return t};return t}function W(){var t=R(["",""]);W=function e(){return t};return t}function Y(){var t=R(["\n :host {\n display: none;\n }\n "]);Y=function e(){return t};return t}function X(){var t=R(["<slot></slot>"]);X=function e(){return t};return t}function Z(){var t=R(["<slot></slot>"]);Z=function e(){return t};return t}function G(){var t=R(["\n :host {\n display: block;\n }\n "]);G=function e(){return t};return t}function K(){var t=R([' <slot part="feedback" class="feedback ','"></slot> ']);K=function e(){return t};return t}function J(){var t=R(["\n :host {\n display: block;\n }\n .on {\n display: block;\n }\n .off {\n display: none;\n }\n "]);J=function e(){return t};return t}function tt(){var t=R([' <slot part="feedback" class="','"></slot> ']);tt=function e(){return t};return t}function te(){var t=R(["\n .on {\n display: inline-block;\n }\n .off {\n display: none;\n }\n "]);te=function e(){return t};return t}function tn(){var t=R([' <slot part="feedback" class="','"></slot> ']);tn=function e(){return t};return t}function tr(){var t=R(["\n .on {\n display: inline-block;\n }\n .off {\n display: none;\n }\n "]);tr=function e(){return t};return t}function ti(){var t=R(["\n /* PK: display host as block, else design will be collapsed */\n :host {\n display: block;\n }\n textarea {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border: 0;\n }\n "]);ti=function e(){return t};return t}function to(){var t=R(['<slot name="prompt"></slot\n ><textarea\n part="textarea"\n ','\n spellcheck="false"\n autocomplete="off"\n @keydown="','"\n @keyup="','"\n @change="','"\n @blur="','"\n placeholder="','"\n maxlength="','"\n pattern="','"\n ?disabled="','"\n ?readonly="','"\n .value=',"\n ></textarea>"]);to=function e(){return t};return t}function ta(){var t=R(["\n [part='correct'] {\n position: absolute;\n width: 100%;\n }\n "]);ta=function e(){return t};return t}function ts(){var t=R(['\n <input\n part="input"\n spellcheck="false"\n autocomplete="off"\n @blur="','"\n @keydown="','"\n @keyup="','"\n @change="','"\n type="','"\n placeholder="','"\n .value="','"\n size="','"\n pattern="','"\n ?disabled="','"\n ?readonly="','"\n />\n <div part="correct">',"</div>\n "]);ts=function e(){return t};return t}function tl(){var t=R(["<slot></slot>"]);tl=function e(){return t};return t}function tu(){var t=R(["\n :host {\n display: inline-block;\n }\n slot {\n display: flex;\n flex-direction: column;\n }\n [role='menu'] {\n position: absolute;\n z-index: 1000;\n }\n .anchor {\n /* anchor-name: --infobox; */\n width: fit-content;\n }\n\n .positionedElement {\n position: absolute;\n /* position-anchor: --infobox; */\n /* top: anchor(bottom); */\n }\n "]);tu=function e(){return t};return t}function tc(){var t=R(['\n <option value="','" ?selected="','">',"</option>\n "]);tc=function e(){return t};return t}function td(){var t=R(['\n <select part="select" @change="','" ?disabled="','" ?readonly="','">\n ',"\n </select>\n\n ","\n "]);td=function e(){return t};return t}function th(){var t=R(["\n [part='slot'] {\n /* display: flex; */\n /* flex-direction: column; */\n /* gap: var(--qti-gap-size); */\n --choice-interactions-stacking: 1;\n display: grid; /* grid */\n grid-template-columns: repeat(var(--choice-interactions-stacking), minmax(0, 1fr)); /* grid-cols-2 */\n gap: var(--qti-gap-size); /* gap-4 */\n /* qti-prompt {\n grid-column: span var(--choice-interactions-stacking) / span var(--choice-interactions-stacking); \n } */\n }\n\n :host(.qti-choices-stacking-1) [part='slot'] {\n --choice-interactions-stacking: 1;\n }\n\n :host(.qti-choices-stacking-2) [part='slot'] {\n --choice-interactions-stacking: 2;\n }\n :host(.qti-choices-stacking-3) [part='slot'] {\n --choice-interactions-stacking: 3;\n }\n :host(.qti-choices-stacking-4) [part='slot'] {\n --choice-interactions-stacking: 4;\n }\n :host(.qti-choices-stacking-5) [part='slot'] {\n --choice-interactions-stacking: 5;\n }\n :host()[part='slot'] {\n &.qti-orientation-horizontal {\n /* is the default layout */\n }\n }\n :host()[part='slot'] {\n &[orientation='horizontal'] {\n flex-direction: row;\n }\n }\n"]);th=function e(){return t};return t}function tp(){var t=R([' <slot name="prompt"></slot><slot part="slot"></slot>']);tp=function e(){return t};return t}function tf(){var t=R(["<slot></slot>"]);tf=function e(){return t};return t}function tv(){var t=R(["\n :host {\n display: none;\n }\n "]);tv=function e(){return t};return t}function tg(){var t=R(["<slot></slot>"]);tg=function e(){return t};return t}function ty(){var t=R(["\n :host {\n display: none;\n }\n "]);ty=function e(){return t};return t}function tm(){var t=R(["<slot></slot>"]);tm=function e(){return t};return t}function tb(){var t=R(["<slot></slot>"]);tb=function e(){return t};return t}function tq(){var t=R(["<slot></slot>"]);tq=function e(){return t};return t}function tk(){var t=R(["",""]);tk=function e(){return t};return t}function tw(){var t=R(["<pre>","</pre>\n <slot></slot>"]);tw=function e(){return t};return t}function tx(){var t=R(["\n slot {\n display: none;\n }\n "]);tx=function e(){return t};return t}function tC(){var t=R(["",""]);tC=function e(){return t};return t}function tE(){var t=R(["",""]);tE=function e(){return t};return t}function tA(){var t=R(['<div style="color:red">\n <h1>Error</h1>\n ',"\n </div>"]);tA=function e(){return t};return t}function tS(){var t=R(["<slot></slot>",""]);tS=function e(){return t};return t}function t_(){var t=R(["\n :host {\n display: block; /* necessary to calculate scaling position */\n }\n slot[name='qti-simple-associable-choice'] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n }\n\n :host::part(associables-container) {\n display: flex;\n justify-content: space-between;\n background: linear-gradient(\n 180deg,\n rgb(0 0 0 / 0%) calc(50% - 1px),\n var(--qti-border-color-gray) calc(50%),\n rgb(0 0 0 / 0%) calc(50% + 1px)\n );\n }\n"]);t_=function e(){return t};return t}function tR(){var t=R(['<div part="associables-container">\n <div name="left','" part="drop-list" class="dl" identifier="droplist','_left"></div>\n <div name="right','" part="drop-list" class="dl" identifier="droplist','_right"></div>\n </div>']);tR=function e(){return t};return t}function tT(){var t=R([' <slot name="prompt"></slot>\n <slot name="qti-simple-associable-choice"></slot>\n <div part="drop-container">\n ',"\n </div>"]);tT=function e(){return t};return t}function tI(){var t=R(['<div style="color:red">\n <h1>Error</h1>\n ',"\n </div>"]);tI=function e(){return t};return t}function tO(){var t=R(["<iframe\n width=","\n height=",'\n frameborder="0"\n title="pciContainer"\n id="pciContainer"\n >\n </iframe>\n ',""]);tO=function e(){return t};return t}function tP(){var t=R(["<button ?disabled=",' part="button" @click=',">","</button>"]);tP=function e(){return t};return t}function tM(){var t=R(['<slot name="prompt"> </slot><slot part="drags" name="qti-gap-text"></slot> <slot part="drops"></slot>']);tM=function e(){return t};return t}function tD(){var t=R(["\n :host {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n gap: 0.5rem;\n }\n\n :host(.qti-choices-top) {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) {\n flex-direction: row;\n }\n :host(.qti-choices-right) {\n flex-direction: row-reverse;\n }\n /* [part='drops'] , */\n [part='drags'] {\n display: flex;\n align-items: flex-start;\n flex: 1;\n gap: 0.5rem;\n }\n "]);tD=function e(){return t};return t}function t$(){var t=R(['\n <line\n part="line"\n x1=',"\n y1=","\n x2=","\n y2=",'\n stroke="red"\n stroke-width="3"\n @click=',"\n />\n "]);t$=function e(){return t};return t}function tL(){var t=R(['<line\n part="point"\n x1=',"\n y1=","\n x2=","\n y2=",'\n stroke="red"\n stroke-width="3"\n />']);tL=function e(){return t};return t}function tN(){var t=R(['<slot name="prompt"></slot>\n <line-container>\n <svg\n width=',"\n height=",'\n viewbox="0 0 '," ",'"\n >\n ',"\n ","\n </svg>\n <slot></slot>\n </line-container>"]);tN=function e(){return t};return t}function tV(){var t=R(["\n slot:not([name='prompt']) {\n // position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n }\n ::slotted(qti-associable-hotspot) {\n transform: translate(-50%, -50%);\n }\n line-container {\n display: block;\n position: relative;\n }\n svg {\n position: absolute;\n top: 0px;\n left: 0px;\n }\n "]);tV=function e(){return t};return t}function tH(){var t=R([' <slot name="prompt"></slot>\n <slot></slot>\n <slot name="qti-gap-img"></slot>']);tH=function e(){return t};return t}function tz(){var t=R(["\n :host {\n display: inline-block;\n position: relative;\n }\n slot[name='qti-gap-img'] {\n display: flex;\n gap: 1rem;\n }\n "]);tz=function e(){return t};return t}function tU(){var t=R(['\n <slot name="prompt"></slot>\n <!-- slot for the prompt -->\n <slot></slot>\n <!-- slot for the image and hotspots -->\n ']);tU=function e(){return t};return t}function tj(){var t=R(["\n slot:not([name='prompt']) {\n position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n }\n "]);tj=function e(){return t};return t}function tB(){var t=R(['\n <slot name="prompt"></slot>\n <!-- slot for the prompt -->\n <slot></slot>\n <!-- slot for the image and hotspots -->\n ']);tB=function e(){return t};return t}function tQ(){var t=R(["\n slot:not([name='prompt']) {\n position: relative; /* qti-hotspot-choice relative to the slot */\n display: block;\n width: fit-content; /* hotspots not stretching further if image is at max size */\n }\n ::slotted(img) {\n /* image not selectable anymore */\n pointer-events: none;\n user-select: none;\n /* width:100%; */\n }\n "]);tQ=function e(){return t};return t}function tF(){var t=R(['\n <slot part="slot"></slot>\n <slot part="dropslot" name="qti-simple-associable-choice"></slot>\n ']);tF=function e(){return t};return t}function tW(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n slot {\n width: 100%;\n display: block;\n }\n slot[name='qti-simple-associable-choice'] {\n width: 100%;\n }\n "]);tW=function e(){return t};return t}function tY(){var t=R(["\n slot {\n /* slot where the */\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n align-items: flex-start; /* prevents the drag and drop container slots having the same height */\n }\n :host(.qti-choices-top) slot {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) slot {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) slot {\n flex-direction: row;\n }\n :host(.qti-choices-right) slot {\n flex-direction: row-reverse;\n }\n slot[name='prompt'] {\n display: block;\n }\n ::slotted(qti-simple-match-set) {\n /* Make sure the drag and drop container slots have the same width */\n flex: 1;\n }\n"]);tY=function e(){return t};return t}function tX(){var t=R(['<th part="r-header">',"</th>"]);tX=function e(){return t};return t}function tZ(){var t=R(["<td>\n <input\n type=","\n part=","\n name=","\n value=","\n .disabled=","\n @change=","\n @click=","\n />\n </td>"]);tZ=function e(){return t};return t}function tG(){var t=R(['<tr>\n <td part="c-header">',"</td>\n ","\n </tr>"]);tG=function e(){return t};return t}function tK(){var t=R(['\n <slot name="prompt"></slot>\n <table>\n <tr>\n <td></td>\n ',"\n </tr>\n\n ","\n </table>\n "]);tK=function e(){return t};return t}function tJ(){var t=R(['<slot name="prompt"></slot> <slot></slot>']);tJ=function e(){return t};return t}function t0(){var t=R([' <slot name="prompt"></slot>\n <slot></slot>']);t0=function e(){return t};return t}function t1(){var t=R([""]);t1=function e(){return t};return t}function t2(){var t=R(['<drop-list part="drop-list" identifier="droplist','"></drop-list>',""]);t2=function e(){return t};return t}function t5(){var t=R([' <slot name="prompt"> </slot>\n <div part="container">\n <slot part="drags"> </slot>\n <div part="drops">\n ',"\n </div>\n </div>"]);t5=function e(){return t};return t}function t3(){var t=R(["\n [part='drags'] {\n display: flex;\n align-items: flex-start;\n flex: 1;\n }\n\n [part='drops'] {\n flex: 1;\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: 1fr;\n }\n\n :host([orientation='horizontal']) [part='drags'] {\n flex-direction: row;\n }\n :host([orientation='horizontal']) [part='drops'] {\n grid-auto-flow: column;\n }\n :host([orientation='vertical']) [part='drags'] {\n flex-direction: column;\n }\n :host([orientation='vertical']) [part='drops'] {\n grid-auto-flow: row;\n }\n\n [part='drop-list'] {\n display: block;\n flex: 1;\n }\n\n [part='container'] {\n display: flex;\n gap: 0.5rem;\n }\n :host(.qti-choices-top) [part='container'] {\n flex-direction: column;\n }\n :host(.qti-choices-bottom) [part='container'] {\n flex-direction: column-reverse;\n }\n :host(.qti-choices-left) [part='container'] {\n flex-direction: row;\n }\n :host(.qti-choices-right) [part='container'] {\n flex-direction: row-reverse;\n }\n "]);t3=function e(){return t};return t}function t4(){var t=R(["<slot></slot>"]);t4=function e(){return t};return t}function t6(){var t=R(["\n :host {\n display: block;\n }\n ::slotted(img) {\n position: absolute;\n cursor: move;\n user-select: none;\n left: 50%;\n transform: translateX(-50%);\n }\n "]);t6=function e(){return t};return t}function t7(){var t=R(["<slot></slot>"]);t7=function e(){return t};return t}function t8(){var t=R(["\n :host {\n display: inline-block;\n position: relative;\n }\n "]);t8=function e(){return t};return t}function t9(){var t=R(['\n <button\n part="point"\n style=','\n aria-label="Remove point at ','"\n @click=',"\n ></button>\n "]);t9=function e(){return t};return t}function et(){var t=R([' <slot name="prompt"></slot>\n <point-container>\n ',"\n <slot></slot>\n </point-container>"]);et=function e(){return t};return t}function ee(){var t=R(["\n :host {\n display: block;\n }\n point-container {\n display: block;\n position: relative;\n }\n "]);ee=function e(){return t};return t}function en(){var t=R(['<div id="bounds" part="bounds">\n <div>',"</div>\n <div>","</div>\n </div>"]);en=function e(){return t};return t}function er(){var t=R(['<div id="ticks" part="ticks"></div>']);er=function e(){return t};return t}function ei(){var t=R(['<div id="value" part="value">',"</div>"]);ei=function e(){return t};return t}function eo(){var t=R(['<slot name="prompt"></slot>\n <div id="slider" part="slider">\n ',"\n ",'\n <div id="rail" part="rail" @mousedown='," @touchstart=",'>\n <div id="knob" part="knob">\n ',"\n </div>\n </div>\n </div>"]);eo=function e(){return t};return t}function ea(){var t=R([""]);ea=function e(){return t};return t}function es(){var t=R(["<slot @slotchange=","></slot>"]);es=function e(){return t};return t}function el(){var t=R([' <slot name="qti-gap-img"></slot> ']);el=function e(){return t};return t}function eu(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n position: absolute;\n }\n "]);eu=function e(){return t};return t}function ec(){var t=R([' <slot name="qti-gap-text"></slot>']);ec=function e(){return t};return t}function ed(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);ed=function e(){return t};return t}function eh(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);eh=function e(){return t};return t}function ep(){var t=R(["<slot></slot>"]);ep=function e(){return t};return t}function ef(){var t=R(["\n :host {\n display: inline-flex;\n user-select: none;\n }\n "]);ef=function e(){return t};return t}function ev(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n position: absolute;\n }\n "]);ev=function e(){return t};return t}function eg(){var t=R(['<div part="ch"><div part="cha"></div></div>\n <slot></slot> ']);eg=function e(){return t};return t}function ey(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n "]);ey=function e(){return t};return t}function em(){var t=R(["\n :host {\n display: block;\n cursor: pointer;\n }\n "]);em=function e(){return t};return t}function eb(){var t=R([" <slot></slot> "]);eb=function e(){return t};return t}function eq(){var t=R(['<div id="label">',"</div>"]);eq=function e(){return t};return t}function ek(){var t=R(['<div part="ch">\n <div part="cha"></div>\n </div>\n ','\n <slot part="slot"></slot> ']);ek=function e(){return t};return t}function ew(){var t=R(["\n :host {\n display: flex;\n user-select: none;\n }\n slot {\n width: 100%;\n display: flex;\n align-items: center;\n }\n [part='ch'] {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n }\n "]);ew=function e(){return t};return t}var QtiComponents=function(){var t=function t(t){var e=t.context;return function(t,n){var r=new WeakMap;if((typeof n==="undefined"?"undefined":O(n))=="object")return n.addInitializer(function(){r.set(this,new eW(this,{context:e}))}),{get:function e(){return t.get.call(this)},set:function e(e){var n;return(n=r.get(this))===null||n===void 0?void 0:n.setValue(e),t.set.call(this,e)},init:function t(t){var e;return(e=r.get(this))===null||e===void 0?void 0:e.setValue(t),t}};{t.constructor.addInitializer(function(t){r.set(t,new eW(t,{context:e}))});var i=Object.getOwnPropertyDescriptor(t,n),o;if(i===void 0){var a=new WeakMap;o={get:function t(){return a.get(this)},set:function t(t){r.get(this).setValue(t),a.set(this,t)},configurable:!0,enumerable:!0}}else{var s=i.set;o=w(q({},i),{set:function t(t){r.get(this).setValue(t),s===null||s===void 0?void 0:s.call(this,t)}})}return void Object.defineProperty(t,n,o)}}};var e=function t(t){var e=t.context,n=t.subscribe;return function(t,r){(typeof r==="undefined"?"undefined":O(r))=="object"?r.addInitializer(function(){var r=this;new eB(this,{context:e,callback:function(e){t.set.call(r,e)},subscribe:n})}):t.constructor.addInitializer(function(t){new eB(t,{context:e,callback:function(e){t[r]=e},subscribe:n})})}};var n=function t(t,e){if(!nO(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return nC!==void 0?nC.createHTML(e):e};var i=function t(t){return function(e,n){return(typeof n==="undefined"?"undefined":O(n))=="object"?ro(t,e,n):function(t,e,n){var r=e.hasOwnProperty(n);return e.constructor.createProperty(n,r?w(q({},t),{wrapped:!0}):t),r?Object.getOwnPropertyDescriptor(e,n):void 0}(t,e,n)}};var s=function t(t){return i(w(q({},t),{state:!0,attribute:!1}))};var l=function t(t,e){return function(n,r,i){var o=function(e){var n;var r;return(r=(n=e.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&r!==void 0?r:null};if(e){var a=(typeof r==="undefined"?"undefined":O(r))=="object"?n:i!==null&&i!==void 0?i:function(){var t=Symbol();return{get:function e(){return this[t]},set:function e(e){this[t]=e}}}(),s=a.get,l=a.set;return ra(n,r,{get:function t(){var t=s.call(this);return t===void 0&&(t=o(this),(t!==null||this.hasUpdated)&&l.call(this,t)),t}})}return ra(n,r,{get:function t(){return o(this)}})}};var c=function t(t){return function(e,n){var r=t!==null&&t!==void 0?t:{},i=r.slot,o=r.selector,a="slot"+(i?"[name=".concat(i,"]"):":not([name])");return ra(e,n,{get:function e(){var e;var n;var r=(e=this.renderRoot)===null||e===void 0?void 0:e.querySelector(a),i=(n=r===null||r===void 0?void 0:r.assignedElements(t))!==null&&n!==void 0?n:[];return o===void 0?i:i.filter(function(t){return t.matches(o)})}})}};var v=function t(t,e){var n=q({waitUntilFirstUpdate:!1},e);return function(e,r){var i=e.update,o=Array.isArray(t)?t:[t];e.update=function(t){var e=this;o.forEach(function(i){var o=i;if(t.has(o)){var a=t.get(o),s=e[o];a!==s&&(!n.waitUntilFirstUpdate||e.hasUpdated)&&e[r](a,s)}}),i.call(this,t)}}};var g=function t(t){var e=[];return t.querySelectorAll("qti-assessment-item-ref").forEach(function(t){var n=t.getAttribute("identifier"),r=t.getAttribute("href"),i=t.getAttribute("category");e.push({identifier:n,href:r,category:i})}),e};var y=function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e&&rv!==null&&rv.abort(),new Promise(function(e,n){var r=new XMLHttpRequest;rv=r,r.open("GET",t,!0),r.responseType="document",r.onload=function(){r.status>=200&&r.status<300?e(r.responseXML):n(r.statusText)},r.onerror=function(){n(r.statusText)},r.send()})};var m=function t(t){return new DOMParser().parseFromString(t,"text/xml")};var b=function t(t){var e=new XSLTProcessor,n=new DOMParser().parseFromString(rf,"text/xml");return e.importStylesheet(n),e.transformToFragment(t,document)};var k=function t(t,e){e.endsWith("/")||(e+="/"),t.querySelectorAll("[src],[href],[primary-path]").forEach(function(t){var n;var r="";t.getAttribute("src")&&(r="src"),t.getAttribute("href")&&(r="href"),t.getAttribute("primary-path")&&(r="primary-path");var i=(n=t.getAttribute(r))===null||n===void 0?void 0:n.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){var o=e+encodeURI(i);t.setAttribute(r,o)}})};var C=function t(t){t.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(function(t){var e=document.createComment(t.textContent);t.replaceChild(e,t.firstChild)})};var A=function t(t){t.querySelectorAll("qti-stylesheet").forEach(function(t){return t.remove()})};var _=function t(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}a(this,r);var o;o=n.call.apply(n,[this].concat(I(e)));o.identifier="";o.tabIndex=0;o.disabled=!1;o.readonly=!1;o._internals=o.attachInternals();return o}u(r,[{key:"handleDisabledChange",value:function t(t,e){this.tabIndex=e?-1:0,e&&this.blur()}},{key:"setInternalState",value:function t(t,e){e&&!this._internals.states.has(t)?this._internals.states.add(t):!e&&this._internals.states.has(t)&&this._internals.states.delete(t)}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("register-".concat(e),{bubbles:!0,composed:!0}))}},{key:"disconnectedCallback",value:function t(){d(h(r.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("unregister-".concat(e),{bubbles:!0,composed:!0}))}},{key:"_onKeyUp",value:function t(t){t.altKey||t.code==="Space"&&(t.preventDefault(),this._activate())}},{key:"_onClick",value:function t(){this.disabled||this.readonly||(this.focus(),this._activate())}},{key:"_activate",value:function t(){this.disabled||this.readonly||this.dispatchEvent(new CustomEvent("activate-".concat(e),{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}},{key:"render",value:function t(){return nj(N())}}]);return r}(t);return eL([i({type:String})],n.prototype,"identifier",2),eL([i({type:Number,reflect:!0,attribute:"tabindex"})],n.prototype,"tabIndex",2),eL([i({type:Boolean,reflect:!0,attribute:"aria-disabled",converter:ry})],n.prototype,"disabled",2),eL([i({type:Boolean,reflect:!0,attribute:"aria-readonly",converter:ry})],n.prototype,"readonly",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],n.prototype,"handleDisabledChange",1),n};var R=function t(t){return t==null};var P=function t(t){return t.replace(/([^:]\/)\/+/g,"$1").replace(/\/\//g,"/").replace("http:/","http://").replace("https:/","https://")};var D=function t(t){this._$AN!==void 0?(rX(this),this._$AM=t,rZ(this)):this._$AM=t};var ex=function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;var r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(r))for(var o=n;o<r.length;o++)rY(r[o],!1),rX(r[o]);else r!=null&&(rY(r,!1),rX(r));else rY(this,t)};var eC=function t(t,e){var n,r=q({},e);return function(e,r){var i=e.connectedCallback,o=e.disconnectedCallback;e.connectedCallback=function(){var e=this;i.call(this);var o=function(n){var i=Array.from(e.querySelectorAll(t));var o=true,a=false,s=undefined;try{for(var l=n[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;var d=Array.from(c.addedNodes).map(function(t){return t}),h=Array.from(c.addedNodes).map(function(t){return t});c.type==="childList"&&d.find(function(t){return i.includes(t)})&&e[r](d,h)}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}};n=new MutationObserver(o),n.observe(this,{childList:!0,subtree:!0});var a;var s=(a=this.querySelectorAll(t))!==null&&a!==void 0?a:[];this[r](Array.from(s),[])},e.disconnectedCallback=function(){o.call(this),n.disconnect()}}};var eE=function t(t){return function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculateChildren",value:function t(t){return t.map(function(t){var e=t;if(!e.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var n=e.calculate();if(typeof n=="string")if(n==="true")n=!0;else if(n==="false")n=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return n}).every(function(t){return typeof t=="boolean"&&t})}}]);return n}(t)};var eA=function t(t,e,n,r){switch(t){case"circle":{var i=S(e,3),o=i[0],a=i[1],s=i[2],l=o/n.width*100,u=a/n.height*100,c=s/n.width*100;r.style.left=l-c+"%",r.style.top=u-c+"%",r.style.width=r.style.height=4*c+"px",r.style.borderRadius="9999px"}break;case"rect":{var d=S(e,4),h=d[0],p=d[1],f=d[2],v=d[3],g=h/n.width*100,y=p/n.height*100,m=f/n.width*100,b=v/n.height*100;r.style.left=g+"%",r.style.top=y+"%",r.style.width=m-g+"%",r.style.height=b-y+"%"}break;case"poly":{var q,k,w,x;var C=e.reduce(function(t,e,n,r){if(n%2===1){var i=t.pop();t[t.length]={x:i,y:r[n]}}else t.push(e);return t},[]),E=(q=Math).min.apply(q,I(C.map(function(t){return t.x}))),A=(k=Math).max.apply(k,I(C.map(function(t){return t.x}))),_=(w=Math).min.apply(w,I(C.map(function(t){return t.y}))),R=(x=Math).max.apply(x,I(C.map(function(t){return t.y}))),T=E/n.width*100,O=_/n.height*100,P=A/n.width*100,M=R/n.height*100;r.style.left=E/n.width*100+"%",r.style.top=_/n.height*100+"%",r.style.width=P-T+"%",r.style.height=M-O+"%";var D=C.map(function(t){return{x:(t.x-E)/(A-E)*100,y:(t.y-_)/(R-_)*100}}).map(function(t){return Math.round(t.x)+"% "+Math.round(t.y)+"%"}).join(",");r.style.clipPath="polygon(".concat(D,")")}break;default:break}};var eS,e_;var eR=Object.defineProperty;var eT=Object.getOwnPropertyDescriptor;var eI=Object.getOwnPropertyNames;var eO=Object.prototype.hasOwnProperty;var eP=function(t){throw TypeError(t)};var eM=function(t,e){for(var n in e)eR(t,n,{get:e[n],enumerable:!0})},eD=function(t,e,n,r){var i=true,o=false,a=undefined;if(e&&(typeof e==="undefined"?"undefined":O(e))=="object"||typeof e=="function")try{var s=function(){var i=u.value;!eO.call(t,i)&&i!==n&&eR(t,i,{get:function(){return e[i]},enumerable:!(r=eT(e,i))||r.enumerable})};for(var l=eI(e)[Symbol.iterator](),u;!(i=(u=l.next()).done);i=true)s()}catch(t){o=true;a=t}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(o){throw a}}}return t};var e$=function(t){return eD(eR({},"__esModule",{value:!0}),t)},eL=function(t,e,n,r){for(var i=r>1?void 0:r?eT(e,n):e,o=t.length-1,a;o>=0;o--)(a=t[o])&&(i=(r?a(e,n,i):a(i))||i);return r&&i&&eR(e,n,i),i};var eN=function(t,e,n){return e.has(t)||eP("Cannot "+n)};var eV=function(t,e,n){return eN(t,e,"read from private field"),n?n.call(t):e.get(t)},eH=function(t,e,n){return e.has(t)?eP("Cannot add the same private member more than once"):f(e,WeakSet)?e.add(t):e.set(t,n)},ez=function(t,e,n,r){return eN(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n};var eU={};eM(eU,{ActiveElementMixin:function(){return _},Interaction:function(){return rD},QtiAnd:function(){return ix},QtiAssessmentItem:function(){return ru},QtiAssessmentStimulusRef:function(){return rg},QtiAssociableHotspot:function(){return of},QtiAssociateInteraction:function(){return i1},QtiBaseValue:function(){return iC},QtiChoiceInteraction:function(){return io},QtiCompanionMaterialsInfo:function(){return rE},QtiConditionExpression:function(){return iw},QtiContains:function(){return iE},QtiContentBody:function(){return rA},QtiCorrect:function(){return iA},QtiCustomInteraction:function(){return i2},QtiCustomOperator:function(){return op},QtiEndAttemptInteraction:function(){return i5},QtiEqual:function(){return iR},QtiEqualRounded:function(){return iS},QtiExpression:function(){return ik},QtiExtendedTextInteraction:function(){return r5},QtiFeedbackBlock:function(){return rI},QtiFeedbackInline:function(){return rO},QtiGap:function(){return ov},QtiGapImg:function(){return og},QtiGapMatchInteraction:function(){return i3},QtiGapText:function(){return oy},QtiGraphicAssociateInteraction:function(){return i7},QtiGraphicGapMatchInteraction:function(){return i8},QtiGraphicOrderInteraction:function(){return i9},QtiGt:function(){return iT},QtiGte:function(){return iI},QtiHotspotChoice:function(){return om},QtiHotspotInteraction:function(){return ot},QtiHottext:function(){return ob},QtiHottextInteraction:function(){return r6},QtiInlineChoice:function(){return oq},QtiInlineChoiceInteraction:function(){return r9},QtiIsNull:function(){return iO},QtiItem:function(){return oE},QtiLookupOutcomeValue:function(){return ip},QtiLt:function(){return iP},QtiLte:function(){return iM},QtiMapResponse:function(){return iD},QtiMapping:function(){return i$},QtiMatch:function(){return iL},QtiMatchInteraction:function(){return or},QtiMediaInteraction:function(){return oi},QtiMember:function(){return iN},QtiModalFeedback:function(){return rP},QtiMultiple:function(){return iV},QtiNot:function(){return iH},QtiOr:function(){return iz},QtiOrderInteraction:function(){return oo},QtiOrdered:function(){return iU},QtiOutcomeDeclaration:function(){return rx},QtiOutcomeProcessing:function(){return ia},QtiOutcomeProcessingProcessor:function(){return is},QtiPortableCustomInteraction:function(){return iX},QtiPositionObjectStage:function(){return os},QtiPrintedVariable:function(){return ij},QtiProduct:function(){return iB},QtiPrompt:function(){return rq},QtiResponseCondition:function(){return iv},QtiResponseDeclaration:function(){return rC},QtiResponseElse:function(){return im},QtiResponseElseIf:function(){return iq},QtiResponseIf:function(){return ib},QtiResponseProcessing:function(){return id},QtiRubricBlock:function(){return rS},QtiRule:function(){return ih},QtiSPositionObjectInteraction:function(){return oa},QtiSelectPointInteraction:function(){return od},QtiSetOutcomeValue:function(){return ig},QtiSetOutcomeValueRule:function(){return iy},QtiSimpleAssociableChoice:function(){return oe},QtiSimpleChoice:function(){return ok},QtiSliderInteraction:function(){return oh},QtiStringMatch:function(){return iQ},QtiStylesheet:function(){return rk},QtiSum:function(){return iF},QtiSumExpression:function(){return iW},QtiTextEntryInteraction:function(){return r3},QtiVariable:function(){return iY},getAssessmentData:function(){return o_},getItemByIndex:function(){return oS},getItemByUri:function(){return oR},itemContext:function(){return rl},itemContextVariables:function(){return rs},qtiAndMixin:function(){return eE},qtiTransformItem:function(){return rd},qtiTransformManifest:function(){return rh},qtiTransformTest:function(){return rp}});var ej=function(t){"use strict";p(n,t);var e=$(n);function n(t,r,i){a(this,n);var o;o=e.call(this,"context-request",{bubbles:!0,composed:!0}),o.context=t,o.callback=r,o.subscribe=i!==null&&i!==void 0?i:!1;return x(o)}return n}(M(Event));var eB=function(){"use strict";function t(e,n,r,i){var o=this;a(this,t);if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=function(t,e){o.unsubscribe&&(o.unsubscribe!==e&&(o.provided=!1,o.unsubscribe()),o.subscribe||o.unsubscribe()),o.value=t,o.host.requestUpdate(),o.provided&&!o.subscribe||(o.provided=!0,o.callback&&o.callback(t,e)),o.unsubscribe=e},this.host=e,n.context!==void 0){var s=n;var l;this.context=s.context,this.callback=s.callback,this.subscribe=(l=s.subscribe)!==null&&l!==void 0?l:!1}else this.context=n,this.callback=r,this.subscribe=i!==null&&i!==void 0?i:!1;this.host.addController(this)}u(t,[{key:"hostConnected",value:function t(){this.dispatchRequest()}},{key:"hostDisconnected",value:function t(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}},{key:"dispatchRequest",value:function t(){this.host.dispatchEvent(new ej(this.context,this.t,this.subscribe))}}]);return t}();var eQ=function(){"use strict";function t(e){var n=this;a(this,t);this.subscriptions=new Map,this.updateObservers=function(){var t=true,e=false,r=undefined;try{for(var i=n.subscriptions[Symbol.iterator](),o;!(t=(o=i.next()).done);t=true){var a=S(o.value,2),s=a[0],l=a[1],u=l.disposer;s(n.o,u)}}catch(t){e=true;r=t}finally{try{if(!t&&i.return!=null){i.return()}}finally{if(e){throw r}}}},e!==void 0&&(this.value=e)}u(t,[{key:"value",get:function t(){return this.o},set:function t(t){this.setValue(t)}},{key:"setValue",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}},{key:"addCallback",value:function t(t,e,n){var r=this;if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:function(){r.subscriptions.delete(t)},consumerHost:e});var i=this.subscriptions.get(t),o=i.disposer;t(this.value,o)}},{key:"clearCallbacks",value:function t(){this.subscriptions.clear()}}]);return t}();var eF=function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;r=e.call(this,"context-provider",{bubbles:!0,composed:!0}),r.context=t;return x(r)}return n}(M(Event)),eW=function(t){"use strict";p(n,t);var e=$(n);function n(t,i,o){a(this,n);var s;var l,u;s=e.call(this,i.context!==void 0?i.initialValue:o),s.onContextRequest=function(t){var e=t.composedPath()[0];t.context===s.context&&e!==s.host&&(t.stopPropagation(),s.addCallback(t.callback,e,t.subscribe))},s.onProviderRequest=function(t){var e=t.composedPath()[0];if(t.context!==s.context||e===s.host)return;var n=new Set;var r=true,i=false,o=undefined;try{for(var a=s.subscriptions[Symbol.iterator](),l;!(r=(l=a.next()).done);r=true){var u=S(l.value,2),c=u[0],d=u[1],h=d.consumerHost;n.has(c)||(n.add(c),h.dispatchEvent(new ej(s.context,c,!0)))}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}t.stopPropagation()},s.host=t,i.context!==void 0?s.context=i.context:s.context=i,s.attachListeners(),(l=(u=s.host).addController)===null||l===void 0?void 0:l.call(u,r(s));return x(s)}u(n,[{key:"attachListeners",value:function t(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}},{key:"hostConnected",value:function t(){this.host.dispatchEvent(new eF(this.context))}}]);return n}(eQ);var eY=function(){"use strict";function t(e){a(this,t);this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=e}u(t,[{key:"shadowRoot",get:function t(){return this.__host.__shadowRoot}},{key:"checkValidity",value:function t(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}},{key:"reportValidity",value:function t(){return!0}},{key:"setFormValue",value:function t(){}},{key:"setValidity",value:function t(){}}]);return t}();var eX=new WeakMap,eZ=function(t){var e=eX.get(t);return e===void 0&&eX.set(t,e=new Map),e},eG=function(){"use strict";function t(){a(this,t);this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}u(t,[{key:"attributes",get:function t(){return Array.from(eZ(this)).map(function(t){var e=S(t,2),n=e[0],r=e[1];return{name:n,value:r}})}},{key:"shadowRoot",get:function t(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}},{key:"setAttribute",value:function t(t,e){eZ(this).set(t,String(e))}},{key:"removeAttribute",value:function t(t){eZ(this).delete(t)}},{key:"toggleAttribute",value:function t(t,e){if(this.hasAttribute(t)){if(e===void 0||!e)return this.removeAttribute(t),!1}else return e===void 0||e?(this.setAttribute(t,""),!0):!1;return!0}},{key:"hasAttribute",value:function t(t){return eZ(this).has(t)}},{key:"attachShadow",value:function t(t){var e={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=e),e}},{key:"attachInternals",value:function t(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");var t=new eY(this);return this.__internals=t,t}},{key:"getAttribute",value:function t(t){var e;return(e=eZ(this).get(t))!==null&&e!==void 0?e:null}}]);return t}();var eK=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(eG),eJ=eK;var e0=function(){"use strict";function t(){a(this,t);this.__definitions=new Map}u(t,[{key:"define",value:function t(t,e){if(this.__definitions.has(t))throw new Error("Failed to execute 'define' on 'CustomElementRegistry': the name \"".concat(t,'" has already been used with this registry'));var n;this.__definitions.set(t,{ctor:e,observedAttributes:(n=e.observedAttributes)!==null&&n!==void 0?n:[]})}},{key:"get",value:function t(t){var e;return(e=this.__definitions.get(t))===null||e===void 0?void 0:e.ctor}}]);return t}(),e1=e0;var e2=new e1;var e5=globalThis,e3=e5.ShadowRoot&&(e5.ShadyCSS===void 0||e5.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e4=Symbol(),e6=new WeakMap,e7=function(){"use strict";function t(e,n,r){a(this,t);if(this._$cssResult$=!0,r!==e4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=n}u(t,[{key:"styleSheet",get:function t(){var t=this.o,e=this.t;if(e3&&t===void 0){var n=e!==void 0&&e.length===1;n&&(t=e6.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&e6.set(e,t))}return t}},{key:"toString",value:function t(){return this.cssText}}]);return t}(),e8=function(t){return new e7(typeof t=="string"?t:t+"",void 0,e4)},e9=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}var i=t.length===1?t[0]:n.reduce(function(e,n,r){return e+function(t){if(t._$cssResult$===!0)return t.cssText;if(typeof t=="number")return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+t[r+1]},t[0]);return new e7(i,t,e4)},nt=function(t,e){var n=true,r=false,i=undefined;if(e3)t.adoptedStyleSheets=e.map(function(t){return f(t,CSSStyleSheet)?t:t.styleSheet});else try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;var l=document.createElement("style"),u=e5.litNonce;u!==void 0&&l.setAttribute("nonce",u),l.textContent=s.cssText,t.appendChild(l)}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}},ne=e3||e5.CSSStyleSheet===void 0?function(t){return t}:function(t){return f(t,CSSStyleSheet)?function(t){var e="";var n=true,r=false,i=undefined;try{for(var o=t.cssRules[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;e+=s.cssText}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}return e8(e)}(t):t};var nn=Object.is,nr=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,no=Object.getOwnPropertyNames,na=Object.getOwnPropertySymbols,ns=Object.getPrototypeOf,nl=globalThis;var nu;(nu=nl.customElements)!==null&&nu!==void 0?nu:nl.customElements=e2;var nc=nl.trustedTypes,nd=nc?nc.emptyScript:"",nh=nl.reactiveElementPolyfillSupport,np=function(t,e){return t},nf={toAttribute:function t(t,e){switch(e){case Boolean:t=t?nd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute:function t(t,e){var n=t;switch(e){case Boolean:n=t!==null;break;case Number:n=t===null?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},nv=function(t,e){return!nn(t,e)},ng={attribute:!0,type:String,converter:nf,reflect:!1,hasChanged:nv};var ny,nm;(ny=Symbol.metadata)!==null&&ny!==void 0?ny:Symbol.metadata=Symbol("metadata"),(nm=nl.litPropertyMetadata)!==null&&nm!==void 0?nm:nl.litPropertyMetadata=new WeakMap;var nb;var nq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t._$Ep=void 0,t.isUpdatePending=!1,t.hasUpdated=!1,t._$Em=null,t._$Ev();return x(t)}u(n,[{key:"_$Ev",value:function t(){var t=this;var e;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0?void 0:e.forEach(function(e){return e(t)})}},{key:"addController",value:function t(t){var e;var n;((n=this._$EO)!==null&&n!==void 0?n:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)===null||e===void 0?void 0:e.call(t))}},{key:"removeController",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.delete(t)}},{key:"_$E_",value:function t(){var t=new Map,e=this.constructor.elementProperties;var n=true,r=false,i=undefined;try{for(var o=e.keys()[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s])}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}t.size>0&&(this._$Ep=t)}},{key:"createRenderRoot",value:function t(){var t;var e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return nt(e,this.constructor.elementStyles),e}},{key:"connectedCallback",value:function t(){var t;var e;(e=this.renderRoot)!==null&&e!==void 0?e:this.renderRoot=this.createRenderRoot(),this.enableUpdating(!0),(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostConnected)===null||e===void 0?void 0:e.call(t)})}},{key:"enableUpdating",value:function t(t){}},{key:"disconnectedCallback",value:function t(){var t;(t=this._$EO)===null||t===void 0?void 0:t.forEach(function(t){var e;return(e=t.hostDisconnected)===null||e===void 0?void 0:e.call(t)})}},{key:"attributeChangedCallback",value:function t(t,e,n){this._$AK(t,n)}},{key:"_$EC",value:function t(t,e){var n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){var i;var o=(((i=n.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?n.converter:nf).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}},{key:"_$AK",value:function t(t,e){var n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){var i;var o=n.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:nf;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}},{key:"requestUpdate",value:function t(t,e,n){if(t!==void 0){var r;if(n!==null&&n!==void 0?n:n=this.constructor.getPropertyOptions(t),!((r=n.hasChanged)!==null&&r!==void 0?r:nv)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}},{key:"P",value:function t(t,e,n){var r;this._$AL.has(t)||this._$AL.set(t,e),n.reflect===!0&&this._$Em!==t&&((r=this._$Ej)!==null&&r!==void 0?r:this._$Ej=new Set).add(t)}},{key:"_$ET",value:function t(){var t=this;return o(function(){var e,n,r;return L(this,function(i){switch(i.label){case 0:t.isUpdatePending=!0;i.label=1;case 1:i.trys.push([1,3,,4]);return[4,t._$ES];case 2:i.sent();return[3,4];case 3:e=i.sent();Promise.reject(e);return[3,4];case 4:n=t.scheduleUpdate();r=n!=null;if(!r)return[3,6];return[4,n];case 5:r=i.sent();i.label=6;case 6:return[2,(r,!t.isUpdatePending)]}})})()}},{key:"scheduleUpdate",value:function t(){return this.performUpdate()}},{key:"performUpdate",value:function t(){if(!this.isUpdatePending)return;if(!this.hasUpdated){var t;if((t=this.renderRoot)!==null&&t!==void 0?t:this.renderRoot=this.createRenderRoot(),this._$Ep){var e=true,n=false,r=undefined;try{for(var i=this._$Ep[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=S(o.value,2),s=a[0],l=a[1];this[s]=l}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}this._$Ep=void 0}var u=this.constructor.elementProperties;var c=true,d=false,h=undefined;if(u.size>0)try{for(var p=u[Symbol.iterator](),f;!(c=(f=p.next()).done);c=true){var v=S(f.value,2),g=v[0],y=v[1];y.wrapped!==!0||this._$AL.has(g)||this[g]===void 0||this.P(g,this[g],y)}}catch(t){d=true;h=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(d){throw h}}}}var m=!1,b=this._$AL;try{var q;m=this.shouldUpdate(b),m?(this.willUpdate(b),(q=this._$EO)===null||q===void 0?void 0:q.forEach(function(t){var e;return(e=t.hostUpdate)===null||e===void 0?void 0:e.call(t)}),this.update(b)):this._$EU()}catch(t){throw m=!1,this._$EU(),t}m&&this._$AE(b)}},{key:"willUpdate",value:function t(t){}},{key:"_$AE",value:function t(t){var e;(e=this._$EO)===null||e===void 0?void 0:e.forEach(function(t){var e;return(e=t.hostUpdated)===null||e===void 0?void 0:e.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}},{key:"_$EU",value:function t(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function t(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function t(){return this._$ES}},{key:"shouldUpdate",value:function t(t){return!0}},{key:"update",value:function t(t){var e=this;this._$Ej&&(this._$Ej=this._$Ej.forEach(function(t){return e._$EC(t,e[t])})),this._$EU()}},{key:"updated",value:function t(t){}},{key:"firstUpdated",value:function t(t){}}],[{key:"addInitializer",value:function t(t){var e;this._$Ei(),((e=this.l)!==null&&e!==void 0?e:this.l=[]).push(t)}},{key:"observedAttributes",get:function t(){return this.finalize(),this._$Eh&&I(this._$Eh.keys())}},{key:"createProperty",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ng;if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){var n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&nr(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function t(t,e,n){var r;var i=(r=ni(this.prototype,t))!==null&&r!==void 0?r:{get:function t(){return this[e]},set:function t(t){this[e]=t}},o=i.get,a=i.set;return{get:function t(){return o===null||o===void 0?void 0:o.call(this)},set:function e(e){var r=o===null||o===void 0?void 0:o.call(this);a.call(this,e),this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function t(t){var e;return(e=this.elementProperties.get(t))!==null&&e!==void 0?e:ng}},{key:"_$Ei",value:function t(){if(this.hasOwnProperty(np("elementProperties")))return;var t=ns(this);t.finalize(),t.l!==void 0&&(this.l=I(t.l)),this.elementProperties=new Map(t.elementProperties)}},{key:"finalize",value:function t(){if(this.hasOwnProperty(np("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(np("properties"))){var t=this.properties,e=I(no(t)).concat(I(na(t)));var n=true,r=false,i=undefined;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;this.createProperty(s,t[s])}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}}var l=this[Symbol.metadata];if(l!==null){var u=litPropertyMetadata.get(l);var c=true,d=false,h=undefined;if(u!==void 0)try{for(var p=u[Symbol.iterator](),f;!(c=(f=p.next()).done);c=true){var v=S(f.value,2),g=v[0],y=v[1];this.elementProperties.set(g,y)}}catch(t){d=true;h=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(d){throw h}}}}this._$Eh=new Map;var m=true,b=false,q=undefined;try{for(var k=this.elementProperties[Symbol.iterator](),w;!(m=(w=k.next()).done);m=true){var x=S(w.value,2),C=x[0],E=x[1];var A=this._$Eu(C,E);A!==void 0&&this._$Eh.set(A,C)}}catch(t){b=true;q=t}finally{try{if(!m&&k.return!=null){k.return()}}finally{if(b){throw q}}}this.elementStyles=this.finalizeStyles(this.styles)}},{key:"finalizeStyles",value:function t(t){var e=[];if(Array.isArray(t)){var n=new Set(t.flat(1/0).reverse());var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;e.unshift(ne(l))}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}else t!==void 0&&e.push(ne(t));return e}},{key:"_$Eu",value:function t(t,e){var n=e.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}}]);return n}((nb=globalThis.HTMLElement)!==null&&nb!==void 0?nb:eJ);var nk;nq.elementStyles=[],nq.shadowRootOptions={mode:"open"},nq[np("elementProperties")]=new Map,nq[np("finalized")]=new Map,nh===null||nh===void 0?void 0:nh({ReactiveElement:nq}),((nk=nl.reactiveElementVersions)!==null&&nk!==void 0?nk:nl.reactiveElementVersions=[]).push("2.0.4");var nw=globalThis,nx=nw.trustedTypes,nC=nx?nx.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,nE="$lit$",nA="lit$".concat(Math.random().toFixed(9).slice(2),"$"),nS="?"+nA,n_="<".concat(nS,">"),nR=nw.document===void 0?{createTreeWalker:function(){return{}}}:document,nT=function(){return nR.createComment("")},nI=function(t){return t===null||(typeof t==="undefined"?"undefined":O(t))!="object"&&typeof t!="function"},nO=Array.isArray,nP=function(t){return nO(t)||typeof(t===null||t===void 0?void 0:t[Symbol.iterator])=="function"},nM="[ \n\f\r]",nD=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,n$=/-->/g,nL=/>/g,nN=RegExp(">|".concat(nM,"(?:([^\\s\"'>=/]+)(").concat(nM,"*=").concat(nM,"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),nV=/'/g,nH=/"/g,nz=/^(?:script|style|textarea|title)$/i,nU=function(t){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{_$litType$:t,strings:e,values:r}}},nj=nU(1),nB=nU(2),nQ=nU(3),nF=Symbol.for("lit-noChange"),nW=Symbol.for("lit-nothing"),nY=new WeakMap,nX=nR.createTreeWalker(nR,129);var nZ=function(t,e){var r=t.length-1,i=[],o,a=e===2?"<svg>":e===3?"<math>":"",s=nD;for(var l=0;l<r;l++){var u=t[l],c=void 0,d=void 0,h=-1,p=0;for(;p<u.length&&(s.lastIndex=p,d=s.exec(u),d!==null);)p=s.lastIndex,s===nD?d[1]==="!--"?s=n$:d[1]!==void 0?s=nL:d[2]!==void 0?(nz.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=nN):d[3]!==void 0&&(s=nN):s===nN?d[0]===">"?(s=o!==null&&o!==void 0?o:nD,h=-1):d[1]===void 0?h=-2:(h=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?nN:d[3]==='"'?nH:nV):s===nH||s===nV?s=nN:s===n$||s===nL?s=nD:(s=nN,o=void 0);var f=s===nN&&t[l+1].startsWith("/>")?" ":"";a+=s===nD?u+n_:h>=0?(i.push(c),u.slice(0,h)+nE+u.slice(h)+nA+f):u+nA+(h===-2?l:f)}return[n(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},nG=function(){"use strict";function t(e,n){var r=e.strings,i=e._$litType$;a(this,t);var o;this.parts=[];var s=0,l=0,u=r.length-1,c=this.parts,d=S(nZ(r,i),2),h=d[0],p=d[1];if(this.el=t.createElement(h,n),nX.currentNode=this.el.content,i===2||i===3){var f;var v=this.el.content.firstChild;(f=v).replaceWith.apply(f,I(v.childNodes))}for(;(o=nX.nextNode())!==null&&c.length<u;){if(o.nodeType===1){var g=true,y=false,m=undefined;if(o.hasAttributes())try{for(var b=o.getAttributeNames()[Symbol.iterator](),q;!(g=(q=b.next()).done);g=true){var k=q.value;if(k.endsWith(nE)){var w=p[l++],x=o.getAttribute(k).split(nA),C=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:C[2],strings:x,ctor:C[1]==="."?n2:C[1]==="?"?n5:C[1]==="@"?n3:n1}),o.removeAttribute(k)}else k.startsWith(nA)&&(c.push({type:6,index:s}),o.removeAttribute(k))}}catch(t){y=true;m=t}finally{try{if(!g&&b.return!=null){b.return()}}finally{if(y){throw m}}}if(nz.test(o.tagName)){var E=o.textContent.split(nA),A=E.length-1;if(A>0){o.textContent=nx?nx.emptyScript:"";for(var _=0;_<A;_++)o.append(E[_],nT()),nX.nextNode(),c.push({type:2,index:++s});o.append(E[A],nT())}}}else if(o.nodeType===8)if(o.data===nS)c.push({type:2,index:s});else{var R=-1;for(;(R=o.data.indexOf(nA,R+1))!==-1;)c.push({type:7,index:s}),R+=nA.length-1}s++}}u(t,null,[{key:"createElement",value:function t(t,e){var n=nR.createElement("template");return n.innerHTML=t,n}}]);return t}();function nK(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0;var i,o;if(e===nF)return e;var a=r!==void 0?(i=n.o)===null||i===void 0?void 0:i[r]:n.l,s=nI(e)?void 0:e._$litDirective$;var l;return(a===null||a===void 0?void 0:a.constructor)!==s&&(a===null||a===void 0?void 0:(o=a._$AO)===null||o===void 0?void 0:o.call(a,!1),s===void 0?a=void 0:(a=new s(t),a._$AT(t,n,r)),r!==void 0?((l=n.o)!==null&&l!==void 0?l:n.o=[])[r]=a:n.l=a),a!==void 0&&(e=nK(t,a._$AS(t,e.values),a,r)),e}var nJ=function(){"use strict";function t(e,n){a(this,t);this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}u(t,[{key:"parentNode",get:function t(){return this._$AM.parentNode}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"u",value:function t(t){var e;var n=this._$AD,r=n.el,i=r.content,o=n.parts,a=((e=t===null||t===void 0?void 0:t.creationScope)!==null&&e!==void 0?e:nR).importNode(i,!0);nX.currentNode=a;var s=nX.nextNode(),l=0,u=0,c=o[0];for(;c!==void 0;){if(l===c.index){var d=void 0;c.type===2?d=new n0(s,s.nextSibling,this,t):c.type===1?d=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(d=new n4(s,this,t)),this._$AV.push(d),c=o[++u]}l!==(c===null||c===void 0?void 0:c.index)&&(s=nX.nextNode(),l++)}return nX.currentNode=nR,a}},{key:"p",value:function t(t){var e=0;var n=true,r=false,i=undefined;try{for(var o=this._$AV[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}}}]);return t}(),n0=function(){"use strict";function t(e,n,r,i){a(this,t);var o;this.type=2,this._$AH=nW,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=i,this.v=(o=i===null||i===void 0?void 0:i.isConnected)!==null&&o!==void 0?o:!0}u(t,[{key:"_$AU",get:function t(){var t;var e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this.v}},{key:"parentNode",get:function t(){var t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t===null||t===void 0?void 0:t.nodeType)===11&&(t=e.parentNode),t}},{key:"startNode",get:function t(){return this._$AA}},{key:"endNode",get:function t(){return this._$AB}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;t=nK(this,t,e),nI(t)?t===nW||t==null||t===""?(this._$AH!==nW&&this._$AR(),this._$AH=nW):t!==this._$AH&&t!==nF&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):nP(t)?this.k(t):this._(t)}},{key:"O",value:function t(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"T",value:function t(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}},{key:"_",value:function t(t){this._$AH!==nW&&nI(this._$AH)?this._$AA.nextSibling.data=t:this.T(nR.createTextNode(t)),this._$AH=t}},{key:"$",value:function t(t){var e;var r=t.values,i=t._$litType$,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nG.createElement(n(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(r);else{var a=new nJ(o,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}},{key:"_$AC",value:function t(t){var e=nY.get(t.strings);return e===void 0&&nY.set(t.strings,e=new nG(t)),e}},{key:"k",value:function e(e){nO(this._$AH)||(this._$AH=[],this._$AR());var n=this._$AH,r,i=0;var o=true,a=false,s=undefined;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;i===n.length?n.push(r=new t(this.O(nT()),this.O(nT()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._$AA.nextSibling,e=arguments.length>1?arguments[1]:void 0;var n,r;for((n=(r=this)._$AP)===null||n===void 0?void 0:n.call(r,!1,!0,e);t&&t!==this._$AB;){var i=t.nextSibling;t.remove(),t=i}}},{key:"setConnected",value:function t(t){var e,n;this._$AM===void 0&&(this.v=t,(e=(n=this)._$AP)===null||e===void 0?void 0:e.call(n,t))}}]);return t}(),n1=function(){"use strict";function t(e,n,r,i,o){a(this,t);this.type=1,this._$AH=nW,this._$AN=void 0,this.element=e,this.name=n,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=nW}u(t,[{key:"tagName",get:function t(){return this.element.tagName}},{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var i=this.strings,o=!1;if(i===void 0)t=nK(this,t,e,0),o=!nI(t)||t!==this._$AH&&t!==nF,o&&(this._$AH=t);else{var a=t,s,l;for(t=i[0],s=0;s<i.length-1;s++)l=nK(this,a[n+s],e,s),l===nF&&(l=this._$AH[s]),o||(o=!nI(l)||l!==this._$AH[s]),l===nW?t=nW:t!==nW&&(t+=(l!==null&&l!==void 0?l:"")+i[s+1]),this._$AH[s]=l}o&&!r&&this.j(t)}},{key:"j",value:function t(t){t===nW?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!==null&&t!==void 0?t:"")}}]);return t}(),n2=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.type=3;return x(t)}u(n,[{key:"j",value:function t(t){this.element[this.name]=t===nW?void 0:t}}]);return n}(n1),n5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.type=4;return x(t)}u(n,[{key:"j",value:function t(t){this.element.toggleAttribute(this.name,!!t&&t!==nW)}}]);return n}(n1),n3=function(t){"use strict";p(n,t);var e=$(n);function n(t,r,i,o,s){a(this,n);var l;l=e.call(this,t,r,i,o,s),l.type=5;return x(l)}u(n,[{key:"_$AI",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this;var n;if((t=(n=nK(this,t,e,0))!==null&&n!==void 0?n:nW)===nF)return;var r=this._$AH,i=t===nW&&r!==nW||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==nW&&(r===nW||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}},{key:"handleEvent",value:function t(t){var e;var n;typeof this._$AH=="function"?this._$AH.call((n=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}}]);return n}(n1),n4=function(){"use strict";function t(e,n,r){a(this,t);this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}u(t,[{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AI",value:function t(t){nK(this,t)}}]);return t}(),n6={M:nE,P:nA,A:nS,C:1,L:nZ,R:nJ,D:nP,V:nK,I:n0,H:n1,N:n5,U:n3,B:n2,F:n4},n7=nw.litHtmlPolyfillSupport;var n8;n7===null||n7===void 0?void 0:n7(nG,n0),((n8=nw.litHtmlVersions)!==null&&n8!==void 0?n8:nw.litHtmlVersions=[]).push("3.2.0");var n9=function(t,e,n){var r;var i=(r=n===null||n===void 0?void 0:n.renderBefore)!==null&&r!==void 0?r:e,o=i._$litPart$;if(o===void 0){var a;var s=(a=n===null||n===void 0?void 0:n.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=o=new n0(e.insertBefore(nT(),s),s,void 0,n!==null&&n!==void 0?n:{})}return o._$AI(t),o};var rt=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t.renderOptions={host:r(t)},t.o=void 0;return x(t)}u(n,[{key:"createRenderRoot",value:function t(){var t;var e=d(h(n.prototype),"createRenderRoot",this).call(this);var r;return(r=(t=this.renderOptions).renderBefore)!==null&&r!==void 0?r:t.renderBefore=e.firstChild,e}},{key:"update",value:function t(t){var e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),d(h(n.prototype),"update",this).call(this,t),this.o=n9(e,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function t(){var t;d(h(n.prototype),"connectedCallback",this).call(this),(t=this.o)===null||t===void 0?void 0:t.setConnected(!0)}},{key:"disconnectedCallback",value:function t(){var t;d(h(n.prototype),"disconnectedCallback",this).call(this),(t=this.o)===null||t===void 0?void 0:t.setConnected(!1)}},{key:"render",value:function t(){return nF}}]);return n}(nq);rt._$litElement$=!0,rt.finalized=!0,(eS=(e_=globalThis).litElementHydrateSupport)===null||eS===void 0?void 0:eS.call(e_,{LitElement:rt});var re=globalThis.litElementPolyfillSupport;re===null||re===void 0?void 0:re({LitElement:rt});var rn;((rn=globalThis.litElementVersions)!==null&&rn!==void 0?rn:globalThis.litElementVersions=[]).push("4.1.0");var rr=function(t){return function(e,n){n!==void 0?n.addInitializer(function(){customElements.define(t,e)}):customElements.define(t,e)}};var ri={attribute:!0,type:String,converter:nf,reflect:!1,hasChanged:nv},ro=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ri,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;var r=n.kind,i=n.metadata,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,t),r==="accessor"){var a=n.name;return{set:function n(n){var r=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,r,t)},init:function e(e){return e!==void 0&&this.P(a,void 0,t),e}}}if(r==="setter"){var s=n.name;return function n(n){var r=this[s];e.call(this,n),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+r)};var ra=function(t,e,n){return n.configurable=!0,n.enumerable=!0,Reflect.decorate&&(typeof e==="undefined"?"undefined":O(e))!="object"&&Object.defineProperty(t,e,n),n};var rs=[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"unknown",type:"outcome"},{identifier:"numAttempts",cardinality:"single",baseType:"integer",value:"0",type:"response"}],rl="item";var ru=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.identifier="";t.adaptive="false";t.timeDependent=null;t._handleDisabledChange=function(e,n){t._interactionElements.forEach(function(t){return t.disabled=n})};t._handleReadonlyChange=function(e,n){return t._interactionElements.forEach(function(t){return t.readonly=n})};t._context={identifier:t.getAttribute("identifier"),variables:rs};t._initialContext=w(q({},t._context),{variables:t._context.variables});t._feedbackElements=[];t._interactionElements=[];t.addEventListener("qti-register-variable",function(e){t._context=w(q({},t._context),{variables:I(t._context.variables).concat([e.detail.variable])}),t._initialContext=t._context,e.stopPropagation()}),t.addEventListener("qti-register-feedback",function(e){e.stopPropagation();var n=e.detail;t._feedbackElements.push(n),n.checkShowFeedback(n.outcomeIdentifier)}),t.addEventListener("qti-register-interaction",function(e){e.stopPropagation(),t._interactionElements.push(e.target)}),t.addEventListener("end-attempt",function(e){var n=e.detail,r=n.responseIdentifier,i=n.countAttempt;t.updateResponseVariable(r,"true"),t.processResponse(i)}),t.addEventListener("qti-set-outcome-value",function(e){var n=e.detail,r=n.outcomeIdentifier,i=n.value;t.updateOutcomeVariable(r,i),e.stopPropagation()}),t.addEventListener("qti-interaction-response",t.handleUpdateResponseVariable);return t}u(n,[{key:"variables",get:function t(){return this._context.variables.map(function(t){return q({identifier:t.identifier,value:t.value,type:t.type},t.type==="outcome"&&t.identifier==="SCORE"?{externalScored:t.externalScored}:{})})},set:function t(t){var e=this;if(!Array.isArray(t)||t.some(function(t){return!("identifier"in t)})){console.warn("variables property should be an array of VariableDeclaration");return}this._context=w(q({},this._context),{variables:this._context.variables.map(function(e){var n=t.find(function(t){return t.identifier===e.identifier});return n?q({},e,n):e})}),this._context.variables.forEach(function(t){if(t.type==="response"){var n=e._interactionElements.find(function(e){return e.responseIdentifier===t.identifier});n&&(n.response=t.value)}t.type==="outcome"&&e._feedbackElements.forEach(function(e){return e.checkShowFeedback(t.identifier)})})}},{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){return L(this,function(t){switch(t.label){case 0:r().call(e);return[4,e.updateComplete];case 1:t.sent(),e._emit("qti-assessment-item-connected",e);return[2]}})})()}},{key:"responses",set:function t(t){var e=true,n=false,r=undefined;if(t)try{var i,o=function(){var t=s.value;i.getResponse(t.responseIdentifier)&&i.updateResponseVariable(t.responseIdentifier,t.response);var e=i._interactionElements.find(function(e){return e.getAttribute("response-identifier")===t.responseIdentifier});e&&(e.response=t.response)};for(var a=t[Symbol.iterator](),s;!(e=(s=a.next()).done);e=true)i=this,o()}catch(t){n=true;r=t}finally{try{if(!e&&a.return!=null){a.return()}}finally{if(n){throw r}}}}},{key:"render",value:function t(){return nj(V())}},{key:"showCorrectResponse",value:function t(t){var e=this._context.variables.filter(function(t){return"correctResponse"in t&&t.correctResponse}).map(function(t){return{responseIdentifier:t.identifier,response:t.correctResponse}});var n=true,r=false,i=undefined;try{var o,a=function(){var e=l.value;var n=o._interactionElements.find(function(t){return t.getAttribute("response-identifier")===e.responseIdentifier});n&&(n.correctResponse=t?e.response:"")};for(var s=e[Symbol.iterator](),l;!(n=(l=s.next()).done);n=true)o=this,a()}catch(t){r=true;i=t}finally{try{if(!n&&s.return!=null){s.return()}}finally{if(r){throw i}}}}},{key:"processResponse",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e;var n=this.querySelector("qti-response-processing");return!n||!n.process?!1:(n.process(),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus()),t&&this.updateOutcomeVariable("numAttempts",(+((e=this._context.variables.find(function(t){return t.identifier==="numAttempts"}))===null||e===void 0?void 0:e.value)+1).toString()),this._emit("qti-response-processed"),!0)}},{key:"resetResponses",value:function t(){this._context=this._initialContext}},{key:"getResponse",value:function t(t){return this.getVariable(t)}},{key:"getOutcome",value:function t(t){return this.getVariable(t)}},{key:"getVariable",value:function t(t){return this._context.variables.find(function(e){return e.identifier===t})||null}},{key:"handleUpdateResponseVariable",value:function t(t){var e=t.detail,n=e.responseIdentifier,r=e.response;this.updateResponseVariable(n,r)}},{key:"updateResponseVariable",value:function t(t,e){this._context=w(q({},this._context),{variables:this._context.variables.map(function(n){return n.identifier!==t?n:w(q({},n),{value:e})})}),this._emit("qti-interaction-changed",{item:this.identifier,responseIdentifier:t,response:Array.isArray(e)?I(e):e}),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus())}},{key:"updateOutcomeVariable",value:function t(t,e){var n;var r=this.getOutcome(t);if(!r){console.warn("Can not set qti-outcome-identifier: ".concat(t,", it is not available"));return}this._context=w(q({},this._context),{variables:this._context.variables.map(function(n){return n.identifier!==t?n:w(q({},n),{value:r.cardinality==="single"?e:I(n.value).concat([e])})})}),this._feedbackElements.forEach(function(e){return e.checkShowFeedback(t)}),this._emit("qti-outcome-changed",{item:this.identifier,outcomeIdentifier:t,value:(n=this._context.variables.find(function(e){return e.identifier===t}))===null||n===void 0?void 0:n.value})}},{key:"_getCompletionStatus",value:function t(){return this._interactionElements.every(function(t){return t.validate()})?"completed":this._interactionElements.some(function(t){return t.validate()})?"incomplete":"not_attempted"}},{key:"_emit",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e}))}}]);return n}(rt);eL([i({type:String})],ru.prototype,"title",2),eL([i({type:String})],ru.prototype,"identifier",2),eL([i({type:String})],ru.prototype,"adaptive",2),eL([i({type:String})],ru.prototype,"timeDependent",2),eL([i({type:Boolean})],ru.prototype,"disabled",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],ru.prototype,"_handleDisabledChange",2),eL([i({type:Boolean})],ru.prototype,"readonly",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],ru.prototype,"_handleReadonlyChange",2),eL([t({context:rl})],ru.prototype,"_context",2),ru=eL([rr("qti-assessment-item")],ru);var rc=String.raw,rd=function(){var t,e={load:function n(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return o(function(){return L(this,function(i){return[2,new Promise(function(i,o){y(n,r).then(function(n){return t=n,i(e)})})]})})()},parse:function n(n){return t=m(n),e},path:function(n){return k(t,n),e},fn:function n(n){return n(t),e},pciHooks:function n(n){var r=["hook","module"],i=n.substring(0,n.lastIndexOf("/"));var o=true,a=false,s=undefined;try{var l=function(){var e=c.value;t.querySelectorAll("["+e+"]").forEach(function(t){var r=t.getAttribute(e);!r.startsWith("data:")&&!r.startsWith("http")&&(t.setAttribute("base-url",n),t.setAttribute("module",i+"/"+encodeURI(r+(r.endsWith(".js")?"":".js"))))})};for(var u=r[Symbol.iterator](),c;!(o=(c=u.next()).done);o=true)l()}catch(t){a=true;s=t}finally{try{if(!o&&u.return!=null){u.return()}}finally{if(a){throw s}}}return e},customInteraction:function n(n,r){var i=t.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",n),i.setAttribute("data-base-item",n+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),e},convertCDATAtoComment:function n(){return C(t),e},stripStyleSheets:function n(){return A(t),e},html:function e(){return new XMLSerializer().serializeToString(b(t))},xml:function e(){return new XMLSerializer().serializeToString(t)},htmldoc:function e(){return b(t)},xmldoc:function e(){return t}};return e},rh=function(){var t,e={load:function n(n){return o(function(){return L(this,function(r){return[2,new Promise(function(r,i){y(n).then(function(n){return t=n,r(e)})})]})})()},parse:function e(e){t=m(e)},assessmentTest:function e(){var e=t.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return e},rp=function(){var t,e={load:function n(n){return o(function(){return L(this,function(r){return[2,new Promise(function(r,i){y(n).then(function(n){return t=n,r(e)})})]})})()},parse:function n(n){return t=m(n),e},fn:function n(n){return n(t),e},items:function e(){return g(t)},html:function e(){return new XMLSerializer().serializeToString(b(t))},xml:function e(){return new XMLSerializer().serializeToString(t)},htmldoc:function e(){return b(t)},xmldoc:function e(){return t}};return e},rf=rc(H());var rv=null;var rg=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.identifier="";t.href="";return t}u(n,[{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){var t,n,i;return L(this,function(o){switch(o.label){case 0:r().call(e);t=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(!e.dispatchEvent(t))return[3,4];n=e.closest("qti-assessment-item").querySelector("[data-stimulus-idref=".concat(e.identifier,"]"));if(!n)return[3,2];return[4,e.updateStimulusRef(n)];case 1:i=o.sent();return[3,3];case 2:i=console.warn("Stimulus with data-stimulus-idref ".concat(e.identifier," not found"));o.label=3;case 3:i;o.label=4;case 4:return[2]}})})()}},{key:"updateStimulusRef",value:function t(t){var e=this;return o(function(){var n,r,i,o;return L(this,function(a){switch(a.label){case 0:n=e.href.substring(0,e.href.lastIndexOf("/"));return[4,rd().load(e.href).then(function(t){return t.path(n).htmldoc()})];case 1:r=a.sent();if(r){;o=r.querySelectorAll("qti-stimulus-body, qti-stylesheet");t.innerHTML="",(i=t).append.apply(i,I(o))}return[2]}})})()}}]);return n}(rt);eL([i({type:String})],rg.prototype,"identifier",2),eL([i({type:String})],rg.prototype,"href",2),rg=eL([rr("qti-assessment-stimulus-ref")],rg);var ry={toAttribute:function(t){return t?"true":"false"},fromAttribute:function(t){return t==="true"}};var rm=e9(z());var rb=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(U())}}]);return n}(rt);rb.styles=rm,rb=eL([rr("qti-item-body")],rb);var rq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(j())}},{key:"connectedCallback",value:function t(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}}]);return n}(rt);rq=eL([rr("qti-prompt")],rq);var rk=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"firstUpdated",value:function t(t){d(h(n.prototype),"firstUpdated",this).call(this,t);var e=this,r=this.getAttribute("href");if(r!==null){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.media="screen",i.href=r,e.appendChild(i),this.styleLink=i}if(this.textContent!==null){var o=document.createElement("style");o.media="screen",o.textContent=this.textContent,e.appendChild(o),this.styleLink=o}}},{key:"disconnectedCallback",value:function t(){if(this.styleLink)try{this.styleLink.remove()}catch(t){console.log("could not remove stylesheet")}}}]);return n}(rt);rk=eL([rr("qti-stylesheet")],rk);var rw=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(B())}},{key:"defaultValues",value:function t(t){var e=Array.from(this.querySelectorAll("qti-default-value > qti-value"));if(e.length===0)return null;var n=e.map(function(t){return t.innerHTML.trim()});return n.length>1||t.cardinality==="multiple"||t.cardinality==="ordered"?n:n[0]}}]);return n}(rt);rw=eL([rr("qti-variabledeclaration")],rw);var rx=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.externalScored=null;return t}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(Q(),JSON.stringify(r,null,2))}},{key:"interpolationTable",get:function t(){var t=this.querySelector("qti-interpolation-table");if(t){var e=new Map;var n=true,r=false,i=undefined;try{for(var o=t.querySelectorAll("qti-interpolation-table-entry")[Symbol.iterator](),a;!(n=(a=o.next()).done);n=true){var s=a.value;!s.getAttribute("source-value")&&s.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");var l=parseInt(s.getAttribute("source-value")),u=parseInt(s.getAttribute("target-value"));(isNaN(l)||isNaN(u))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),e.set(l,u)}}catch(t){r=true;i=t}finally{try{if(!n&&o.return!=null){o.return()}}finally{if(r){throw i}}}return e}return null}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this);var t={identifier:this.identifier,cardinality:this.cardinality,baseType:this.baseType,type:"outcome",value:null,interpolationTable:this.interpolationTable,externalScored:this.externalScored};t.value=this.defaultValues(t),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:t}}))}}]);return n}(rw);rx.styles=[e9(F())],eL([i({type:String,attribute:"base-type"})],rx.prototype,"baseType",2),eL([i({type:String,attribute:"external-scored"})],rx.prototype,"externalScored",2),eL([i({type:String})],rx.prototype,"identifier",2),eL([i({type:String})],rx.prototype,"cardinality",2),eL([e({context:rl,subscribe:!0}),s()],rx.prototype,"itemContext",2),rx=eL([rr("qti-outcome-declaration")],rx);var rC=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(W(),JSON.stringify(r,null,2))}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this);var t={baseType:this.baseType,identifier:this.identifier,correctResponse:this.correctResponse,cardinality:this.cardinality||"single",mapping:this.mapping,value:null,type:"response",candidateResponse:null};t.value=this.defaultValues(t),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:t}}))}},{key:"correctResponse",get:function t(){var t,e=this.querySelector("qti-correct-response");if(e){var n=e.querySelectorAll("qti-value");if(this.cardinality==="single"&&n.length>0)t=n[0].textContent,n[0].remove();else if(this.cardinality!=="single"){t=[];for(var r=0;r<n.length;r++)t.push(n[r].textContent),n[r].remove()}}return t}},{key:"mapping",get:function t(){return this.querySelector("qti-mapping")}}]);return n}(rw);rC.styles=[e9(Y())],eL([i({type:String,attribute:"base-type"})],rC.prototype,"baseType",2),eL([i({type:String})],rC.prototype,"identifier",2),eL([i({type:String})],rC.prototype,"cardinality",2),eL([e({context:rl,subscribe:!0}),s()],rC.prototype,"itemContext",2),rC=eL([rr("qti-response-declaration")],rC);var rE=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(rt);rE=eL([rr("qti-companion-materials-info")],rE);var rA=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(X())}}]);return n}(rt);rA=eL([rr("qti-content-body")],rA);var rS=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;this.classNames.split(" ").forEach(function(t){switch(t){case"qti-rubric-discretionary-placement":n.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":n.setAttribute("slot","");break;default:break}})}},{key:"render",value:function t(){return nj(Z())}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-rubric-block")}}]);return n}(rt);rS.styles=e9(G()),eL([i({type:String})],rS.prototype,"id",2),eL([i({type:String})],rS.prototype,"use",2),eL([i({type:String})],rS.prototype,"view",2),eL([i({type:String,attribute:"class"})],rS.prototype,"classNames",2),eL([v("classNames",{waitUntilFirstUpdate:!0})],rS.prototype,"handleclassNamesChange",1),rS=eL([rr("qti-rubric-block")],rS);var r_=function(){return new Intl.NumberFormat().format(.1).replace(/\d/g,"")},rR=function(t){if(typeof t=="string")return t;var e=r_();return e==="."?t.toLocaleString():t.toString().replace(".","").replace(e,".")};var rT=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-feedback",{bubbles:!0,composed:!0,detail:this}))}},{key:"checkShowFeedback",value:function t(t){var e=this.closest("qti-assessment-item").getOutcome(t);if(this.outcomeIdentifier!==t||!e)return;var n=!1;Array.isArray(e.value)?n=e.value.includes(this.identifier):n=!R(this.identifier)&&!R(e===null||e===void 0?void 0:e.value)&&this.identifier===e.value||!1,this.showFeedback(n)}},{key:"showFeedback",value:function t(t){this.showStatus=t&&this.showHide==="show"||!t&&this.showHide==="hide"?"on":"off"}}]);return n}(rt);eL([i({type:String,attribute:"show-hide"})],rT.prototype,"showHide",2),eL([i({type:String,attribute:"outcome-identifier"})],rT.prototype,"outcomeIdentifier",2),eL([i({type:String})],rT.prototype,"identifier",2),eL([i({type:String,attribute:!1})],rT.prototype,"showStatus",2);var rI=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(K(),this.showStatus)}},{key:"firstUpdated",value:function t(t){this.checkShowFeedback(this.outcomeIdentifier)}}]);return n}(rT);rI.styles=e9(J()),rI=eL([rr("qti-feedback-block")],rI);var rO=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tt(),t.showStatus)};return t}return n}(rT);rO.styles=e9(te()),rO=eL([rr("qti-feedback-inline")],rO);var rP=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tn(),t.showStatus)};return t}return n}(rT);rP.styles=e9(tr()),rP=eL([rr("qti-modal-feedback")],rP);var rM=function(t){return t!==null&&t!==void 0?t:nW};var rD=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.responseIdentifier="";t.disabled=!1;t.readonly=!1;return t}u(n,[{key:"correctResponse",set:function t(t){console.warn("correctResponse is not implemented")}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"saveResponse",value:function t(t){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:Array.isArray(t)?I(t):t}}))}}]);return n}(rt);eL([i({attribute:"response-identifier"})],rD.prototype,"responseIdentifier",2),eL([i({reflect:!0,type:Boolean})],rD.prototype,"disabled",2),eL([i({reflect:!0,type:Boolean})],rD.prototype,"readonly",2);var r$=n6.I;var rL=function(t){return t.strings===void 0},rN=function(){return document.createComment("")},rV=function(t,e,n){var r=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(n===void 0){var o=r.insertBefore(rN(),i),a=r.insertBefore(rN(),i);n=new r$(o,a,t,t.options)}else{var s=n._$AB.nextSibling,l=n._$AM,u=l!==t;if(u){var c;var d;(c=n._$AQ)===null||c===void 0?void 0:c.call(n,t),n._$AM=t,n._$AP!==void 0&&(d=t._$AU)!==l._$AU&&n._$AP(d)}if(s!==i||u){var h=n._$AA;for(;h!==s;){var p=h.nextSibling;r.insertBefore(h,i),h=p}}}return n},rH=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;return t._$AI(e,n),t},rz={},rU=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rz;return t._$AH=e},rj=function(t){return t._$AH},rB=function(t){var e;(e=t._$AP)===null||e===void 0?void 0:e.call(t,!1,!0);var n=t._$AA,r=t._$AB.nextSibling;for(;n!==r;){var i=n.nextSibling;n.remove(),n=i}};var rQ={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rF=function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++){n[r]=arguments[r]}return{_$litDirective$:t,values:n}}},rW=function(){"use strict";function t(e){a(this,t)}u(t,[{key:"_$AU",get:function t(){return this._$AM._$AU}},{key:"_$AT",value:function t(t,e,n){this.t=t,this._$AM=e,this.i=n}},{key:"_$AS",value:function t(t,e){return this.update(t,e)}},{key:"update",value:function t(t,e){return this.render.apply(this,I(e))}}]);return t}();var rY=function(t,e){var n;var r=t._$AN;if(r===void 0)return!1;var i=true,o=false,a=undefined;try{for(var s=r[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var u=l.value;(n=u._$AO)===null||n===void 0?void 0:n.call(u,e,!1),rY(u,e)}}catch(t){o=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(o){throw a}}}return!0},rX=function(t){var e,n;do{if((e=t._$AM)===void 0)break;n=e._$AN,n.delete(t),t=e}while((n===null||n===void 0?void 0:n.size)===0)},rZ=function(t){for(var e;e=t._$AM;t=e){var n=e._$AN;if(n===void 0)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),rG(e)}};var rG=function(t){var e,n;t.type==rQ.CHILD&&((e=t._$AP)!==null&&e!==void 0?e:t._$AP=ex,(n=t._$AQ)!==null&&n!==void 0?n:t._$AQ=D)},rK=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments))),t._$AN=void 0;return x(t)}u(n,[{key:"_$AT",value:function t(t,e,r){d(h(n.prototype),"_$AT",this).call(this,t,e,r),rZ(this),this.isConnected=t._$AU}},{key:"_$AO",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;var n,r,i,o;t!==this.isConnected&&(this.isConnected=t,t?(n=(r=this).reconnected)===null||n===void 0?void 0:n.call(r):(i=(o=this).disconnected)===null||i===void 0?void 0:i.call(o)),e&&(rY(this,t),rX(this))}},{key:"setValue",value:function t(t){if(rL(this.t))this.t._$AI(t,this);else{var e=I(this.t._$AH);e[this.i]=t,this.t._$AI(e,this,0)}}},{key:"disconnected",value:function t(){}},{key:"reconnected",value:function t(){}}]);return n}(rW);var rJ=function(){return new r0},r0=function t(){"use strict";a(this,t)},r1=new WeakMap,r2=rF(function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(t){return nW}},{key:"update",value:function t(t,e){var n=S(e,1),r=n[0];var i;var o=r!==this.Y;return o&&this.Y!==void 0&&this.rt(void 0),(o||this.lt!==this.ct)&&(this.Y=r,this.ht=(i=t.options)===null||i===void 0?void 0:i.host,this.rt(this.ct=t.element)),nW}},{key:"rt",value:function t(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){var e;var n=(e=this.ht)!==null&&e!==void 0?e:globalThis,r=r1.get(n);r===void 0&&(r=new WeakMap,r1.set(n,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}},{key:"lt",get:function t(){var t,e;var n;return typeof this.Y=="function"?(t=r1.get((n=this.ht)!==null&&n!==void 0?n:globalThis))===null||t===void 0?void 0:t.get(this.Y):(e=this.Y)===null||e===void 0?void 0:e.value}},{key:"disconnected",value:function t(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function t(){this.rt(this.ct)}}]);return n}(rK));var r5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.textareaRef=rJ();t._value="";return t}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;this.classNames.split(" ").forEach(function(t){if(t.startsWith("qti-height-lines")){var e=t.replace("qti-height-lines-","");n.textareaRef&&(n.textareaRef.value.rows=parseInt(e))}})}},{key:"response",set:function t(t){this._value=t!==void 0?t:""}},{key:"validate",value:function t(){return this._value!==""}},{key:"render",value:function t(){var t=this;return nj(to(),r2(this.textareaRef),function(t){return t.stopImmediatePropagation()},this.textChanged,this.textChanged,function(e){var n=e.target;n.checkValidity()?n.setCustomValidity(""):(n.setCustomValidity(t.dataset.patternmaskMessage||"Invalid input"),n.reportValidity())},rM(this.placeholderText?this.placeholderText:void 0),rM(this.expectedLength?this.expectedLength:void 0),rM(this.patternMask?this.patternMask:void 0),this.disabled,this.readonly,this._value)}},{key:"textChanged",value:function t(t){if(this.disabled||this.readonly)return;var e=t.target;this.setEmptyAttribute(e.value),this._value!==e.value&&(this._value=e.value,this.saveResponse(e.value))}},{key:"reset",value:function t(){this._value=""}},{key:"setEmptyAttribute",value:function t(t){this.setAttribute("empty",t===""?"true":"false")}}],[{key:"styles",get:function t(){return[e9(ti())]}}]);return n}(rD);eL([i({type:Number,attribute:"expected-length"})],r5.prototype,"expectedLength",2),eL([i({type:String,attribute:"pattern-mask"})],r5.prototype,"patternMask",2),eL([i({type:String,attribute:"placeholder-text"})],r5.prototype,"placeholderText",2),eL([s()],r5.prototype,"_value",2),eL([i({type:String,attribute:"class"})],r5.prototype,"classNames",2),eL([v("classNames",{waitUntilFirstUpdate:!0})],r5.prototype,"handleclassNamesChange",1),r5=eL([rr("qti-extended-text-interaction")],r5);var r3=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._value="";t._correctValue="";t._size=5;t.inputRef=rJ();return t}u(n,[{key:"handleclassNamesChange",value:function t(t,e){var n=this;e.split(" ").forEach(function(t){if(t.startsWith("qti-input-width")){var e=t.replace("qti-input-width-","");n._size=parseInt(e)}})}},{key:"response",set:function t(t){this._value=t!==void 0?t:""}},{key:"validate",value:function t(){return this._value!==""}},{key:"correctResponse",set:function t(t){this._correctValue=t}},{key:"render",value:function t(){var t=this;return nj(ts(),function(e){var n=e.target;n.checkValidity()?n.setCustomValidity(""):(n.setCustomValidity(t.dataset.patternmaskMessage||"Invalid input"),n.reportValidity())},function(t){return t.stopImmediatePropagation()},this.textChanged,this.textChanged,this.patternMask=="[0-9]*"?"number":"text",rM(this.placeholderText?this.placeholderText:void 0),this._value,this._size,rM(this.patternMask?this.patternMask:void 0),this.disabled,this.readonly,this._correctValue)}},{key:"textChanged",value:function t(t){if(this.disabled||this.readonly)return;var e=t.target;this.setEmptyAttribute(e.value),this._value!==e.value&&(this._value=e.value,this.saveResponse(e.value))}},{key:"reset",value:function t(){this._value=""}},{key:"setEmptyAttribute",value:function t(t){this.setAttribute("empty",t===""?"true":"false")}}],[{key:"styles",get:function t(){return[e9(ta())]}}]);return n}(rD);eL([i({type:Number,attribute:"expected-length"})],r3.prototype,"expectedLength",2),eL([i({type:String,attribute:"pattern-mask"})],r3.prototype,"patternMask",2),eL([i({type:String,attribute:"placeholder-text"})],r3.prototype,"placeholderText",2),eL([s()],r3.prototype,"_value",2),eL([s()],r3.prototype,"_correctValue",2),eL([s()],r3.prototype,"_size",2),eL([i({type:String,attribute:"class"})],r3.prototype,"classNames",2),eL([v("classNames")],r3.prototype,"handleclassNamesChange",1),r3=eL([rr("qti-text-entry-interaction")],r3);var r4=function(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++){e[i]=arguments[i]}a(this,r);var o;o=n.call.apply(n,[this].concat(I(e)));o._choiceElements=[];o.responseIdentifier="";o.minChoices=0;o.maxChoices=1;o.disabled=!1;o._handleDisabledChange=function(t,e){o._choiceElements.forEach(function(t){return t.disabled=e})};o.readonly=!1;o._handleReadonlyChange=function(t,e){o._choiceElements.forEach(function(t){return t.readonly=e})};return o}u(r,[{key:"_handleMaxChoicesChange",value:function t(t,e){this._determineInputType()}},{key:"validate",value:function t(){var t=this;var e=this._choiceElements.filter(function(e){return t._getChoiceChecked(e)}).length;return this.maxChoices!==0&&e>this.maxChoices?!1:e>=this.minChoices}},{key:"response",set:function t(t){var e=this;var n=Array.isArray(t)?t:[t];this._choiceElements.forEach(function(t){e._setChoiceChecked(t,n.includes(t.identifier))})}},{key:"correctResponse",set:function t(t){var e=Array.isArray(t)?t:[t];if(e.length===0){this._choiceElements.forEach(function(t){t.removeAttribute("data-correct-response")});return}this._choiceElements.forEach(function(t){t.setAttribute("data-correct-response",e.includes(t.identifier)?"true":"false")})}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.addEventListener("register-".concat(e),this._registerChoiceElement),this.addEventListener("unregister-".concat(e),this._unregisterChoiceElement),this.addEventListener("activate-".concat(e),this._choiceElementSelectedHandler),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0}))}},{key:"disconnectedCallback",value:function t(){d(h(r.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("register-".concat(e),this._registerChoiceElement),this.removeEventListener("unregister-".concat(e),this._unregisterChoiceElement),this.removeEventListener("activate-".concat(e),this._choiceElementSelectedHandler)}},{key:"_registerChoiceElement",value:function t(t){t.stopPropagation();var e=t.target;e.disabled=this.disabled,this._choiceElements.push(e),this._setInputType(e)}},{key:"_unregisterChoiceElement",value:function t(t){t.stopPropagation();var e=t.target;this._choiceElements=this._choiceElements.filter(function(t){return t!==e})}},{key:"_determineInputType",value:function t(){var t=this;this._choiceElements.forEach(function(e){t._setInputType(e)})}},{key:"_setInputType",value:function t(t){t.setAttribute("role",this.maxChoices===1?"radio":"checkbox")}},{key:"_choiceElementSelectedHandler",value:function t(t){var e=this;this._toggleChoiceChecked(t.target),this.maxChoices===1&&this._choiceElements.forEach(function(n){n.identifier!==t.detail.identifier&&e._setChoiceChecked(n,!1)}),this._handleChoiceSelection()}},{key:"_setChoiceChecked",value:function t(t,e){t.setAttribute("aria-checked",e.toString())}},{key:"_getChoiceChecked",value:function t(t){return t.getAttribute("aria-checked")==="true"}},{key:"_toggleChoiceChecked",value:function t(t){var e=this._getChoiceChecked(t);this._setChoiceChecked(t,!e)}},{key:"_handleChoiceSelection",value:function t(){var t=this;var e=this._choiceElements.filter(function(e){return t._getChoiceChecked(e)}),n=e.map(function(t){return t.identifier});if(this.maxChoices>1&&this.maxChoices!==0){var r=e.length>=this.maxChoices;this._choiceElements.forEach(function(e){t._getChoiceChecked(e)||(e.disabled=r)})}var i=this.maxChoices===1?n[0]||void 0:n;this._saveResponse(i)}},{key:"_saveResponse",value:function t(t){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:t}}))}}]);return r}(t);return eL([i({attribute:"response-identifier"})],n.prototype,"responseIdentifier",2),eL([i({type:Number,attribute:"min-choices"})],n.prototype,"minChoices",2),eL([i({type:Number,attribute:"max-choices"})],n.prototype,"maxChoices",2),eL([v("maxChoices",{waitUntilFirstUpdate:!0})],n.prototype,"_handleMaxChoicesChange",1),eL([i({reflect:!0,type:Boolean})],n.prototype,"disabled",2),eL([v("disabled",{waitUntilFirstUpdate:!0})],n.prototype,"_handleDisabledChange",2),eL([i({reflect:!0,type:Boolean})],n.prototype,"readonly",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],n.prototype,"_handleReadonlyChange",2),n};var r6=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.render=function(){return nj(tl())};return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("qti-hottext-interaction","")}}]);return n}(r4(rt,"qti-hottext"));r6=eL([rr("qti-hottext-interaction")],r6);var r7=function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;if(r=e.call(this,t),r.it=nW,t.type!==rQ.CHILD)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return x(r)}u(n,[{key:"render",value:function t(t){if(t===nW||t==null)return this._t=void 0,this.it=t;if(t===nF)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;var e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}]);return n}(rW);r7.directiveName="unsafeHTML",r7.resultType=1;var r8=rF(r7);var r9=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.options=[];t.correctOption="";t.dataPrompt="select";return t}u(n,[{key:"render",value:function t(){return nj(td(),this.choiceSelected,this.disabled,this.readonly,this.options.map(function(t){return nj(tc(),t.value,t.selected,r8(t.textContent))}),r8(this.correctOption))}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("on-dropdown-selected",this.choiceSelected);var t=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:this.dataPrompt,value:"",selected:!1}].concat(I(t.map(function(t){return{textContent:t.innerHTML,value:t.getAttribute("identifier"),selected:!1}})))}},{key:"disconnectedCallback",value:function t(){this.removeEventListener("on-dropdown-selected",this.choiceSelected)}},{key:"validate",value:function t(){var t=this.options.find(function(t){return t.selected});return t?t.value!=="":!1}},{key:"reset",value:function t(){this.options=this.options.map(function(t,e){return w(q({},t),{selected:e===0})})}},{key:"response",set:function t(t){this.options=this.options.map(function(e){return t===e.value&&(e.selected=!0),e})}},{key:"correctResponse",set:function t(t){if(t===""){this.correctOption="";return}this.correctOption='<span part="correct-option">'.concat(this.options.find(function(e){return t===e.value}).textContent,"</span>")}},{key:"choiceSelected",value:function t(t){var e=t.target.value;this.options=this.options.map(function(t){return w(q({},t),{selected:t.value===e})}),this.saveResponse(e)}}],[{key:"styles",get:function t(){return[e9(tu())]}}]);return n}(rD);r9.inputWidthClass=["","qti-input-width-2","qti-input-width-1","qti-input-width-3","qti-input-width-4","qti-input-width-6","qti-input-width-10","qti-input-width-15","qti-input-width-20","qti-input-width-72"],eL([s()],r9.prototype,"options",2),eL([s()],r9.prototype,"correctOption",2),eL([i({attribute:"data-prompt",type:String})],r9.prototype,"dataPrompt",2),r9=eL([rr("qti-inline-choice-interaction")],r9);var it=function(t,e){var n=function(t){"use strict";p(r,t);var n=$(r);function r(){a(this,r);var t;t=n.call.apply(n,[this].concat(Array.prototype.slice.call(arguments)));t._shuffle=!1;return t}u(r,[{key:"shuffle",get:function t(){return this._shuffle},set:function t(t){var e=this._shuffle;this._shuffle=t,t?this._shuffleChoices():this._resetShuffleChoices(),this.requestUpdate("shuffle",e)}},{key:"connectedCallback",value:function t(){d(h(r.prototype),"connectedCallback",this).call(this),this.shuffle?this._shuffleChoices():this._resetShuffleChoices()}},{key:"_shuffleChoices",value:function t(){var t=Array.from(this.querySelectorAll(e)),n=[],r=[];if(t.forEach(function(t,e){t.hasAttribute("fixed")?n.push({element:t,index:e}):r.push(t)}),r.length<=1){console.warn("Shuffling is not possible with fewer than 2 non-fixed elements.");return}var i=!1,o=10,a=0,s=I(r);for(;!i&&a<o;){a++;for(var l=r.length-1;l>0;l--){var u=Math.floor(Math.random()*(l+1));var c;c=[r[u],r[l]],r[l]=c[0],r[u]=c[1],c}if(i=!r.every(function(t,e){return t===s[e]}),i)break}i||console.warn("Failed to shuffle the choices after multiple attempts.");var d=1;t.forEach(function(t,e){t.hasAttribute("fixed")?t.style.setProperty("order",String(d++)):r.shift().style.setProperty("order",String(d++))})}},{key:"_resetShuffleChoices",value:function t(){Array.from(this.querySelectorAll("qti-simple-choice")).forEach(function(t,e){t.style.setProperty("order","initial")})}}]);return r}(t);return eL([i({type:String,reflect:!0,converter:ie})],n.prototype,"shuffle",1),n},ie={fromAttribute:function t(t){return t==="true"},toAttribute:function t(t){return t?"true":"false"}};var ir=function(t,e){var n=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._classes=[];t._allLabels=["qti-labels-decimal","qti-labels-lower-alpha","qti-labels-upper-alpha"];t._allLabelSuffixes=["qti-labels-suffix-period","qti-labels-suffix-parenthesis"];return t}u(n,[{key:"class",get:function t(){var t;return((t=this._classes)===null||t===void 0?void 0:t.join(" "))||""},set:function t(t){t&&(this._classes=t.split(" "),this._addLabels())}},{key:"updated",value:function t(t){d(h(n.prototype),"updated",this).call(this,t),t.has("shuffle")&&this._addLabels()}},{key:"_addLabels",value:function t(){var t=this;var e=this._classes.some(function(e){return t._allLabels.includes(e)||t._allLabelSuffixes.includes(e)}),n=function(t){return!isNaN(+t)};if(e){var r=Array.from(this.querySelectorAll("qti-simple-choice")).map(function(t){return t}).map(function(t,e){return{el:t,order:n(t.style.order)?+t.style.order:e+1}}).sort(function(t,e){return t.order-e.order}).map(function(t){return t.el});for(var i=0;i<r.length;i++)r[i].marker=this._getLabel(i+1)}}},{key:"_getLabel",value:function t(t){var e=this;var n=this._classes.filter(function(t){return e._allLabels.includes(t)}).pop(),r=this._classes.filter(function(t){return e._allLabelSuffixes.includes(t)}).pop();!n&&r&&(n="qti-labels-upper-alpha");var i="";switch(n){case"qti-labels-decimal":i="".concat(t);break;case"qti-labels-lower-alpha":i="".concat(String.fromCharCode(97+t-1));break;case"qti-labels-upper-alpha":i="".concat(String.fromCharCode(65+t-1));break}return r==="qti-labels-suffix-period"?i+=".":r==="qti-labels-suffix-parenthesis"&&(i+=")"),i}}]);return n}(t);return eL([i({type:String,reflect:!0})],n.prototype,"class",1),n};var ii=e9(th());var io=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tp())}}]);return n}(ir(it(r4(rt,"qti-simple-choice"),"qti-simple-choice"),"qti-simple-choice"));io.styles=ii,eL([i({type:String})],io.prototype,"orientation",2),io=eL([rr("qti-choice-interaction")],io);var ia=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tf())}},{key:"process",value:function t(){var t=new is,e=I(this.children);t.process(e)}}]);return n}(rt);ia.styles=[e9(tv())],ia=eL([rr("qti-outcome-processing")],ia);var is=function(){"use strict";function t(){a(this,t)}u(t,[{key:"process",value:function t(t){var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;a.process()}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}}}]);return t}();var il='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-match>\n <qti-variable identifier="RESPONSE"></qti-variable>\n <qti-correct identifier="RESPONSE"></qti-correct>\n </qti-match>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">1</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>',iu='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier="RESPONSE"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0.0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-map-response identifier="RESPONSE"> </qti-map-response>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>',ic='<qti-response-processing>\n <qti-response-condition>\n <qti-response-if>\n <qti-is-null>\n <qti-variable identifier="RESPONSE"></qti-variable>\n </qti-is-null>\n <qti-set-outcome-value identifier="SCORE">\n <qti-base-value base-type="float">0</qti-base-value>\n </qti-set-outcome-value>\n </qti-response-if>\n <qti-response-else>\n <qti-set-outcome-value identifier="SCORE">\n <qti-map-response-point identifier="RESPONSE"></qti-map-response-point>\n </qti-set-outcome-value>\n </qti-response-else>\n </qti-response-condition>\n</qti-response-processing>';var id=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tg())}},{key:"process",value:function t(){var t=I(this.children);var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;a.process()}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}}},{key:"firstUpdated",value:function t(t){if(this.getAttribute("template")){var e=this.getAttribute("template").split("/"),n=e[e.length-1].replace(".xml","");switch(this.innerHTML="",n){case"map_response":{this.appendChild(this.fragmentFromString(iu).firstElementChild.firstElementChild);break}case"map_response_point":{this.appendChild(this.fragmentFromString(ic).firstElementChild.firstElementChild);break}case"match_correct":this.appendChild(this.fragmentFromString(il).firstElementChild.firstElementChild);break}}}},{key:"fragmentFromString",value:function t(t){return document.createRange().createContextualFragment(t)}}]);return n}(rt);id.styles=[e9(ty())],id=eL([rr("qti-response-processing")],id);var ih=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tm())}},{key:"process",value:function t(){throw new Error("Not implemented")}}]);return n}(rt);ih=eL([rr("qti-rule")],ih);var ip=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"childExpression",get:function t(){return this.firstElementChild}},{key:"process",value:function t(){var t=this.getAttribute("identifier"),e=this.closest("qti-assessment-item").getVariable(t),n;return e.interpolationTable&&(n=e.interpolationTable.get(parseInt(this.childExpression.calculate()))),n==null?(console.warn("lookupOutcomeValue: value is null or undefined"),0):(this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:this.identifier,value:rR(n)}})),n)}}]);return n}(ih);eL([i({type:String})],ip.prototype,"identifier",2);customElements.define("qti-lookup-outcome-value",ip);var iv=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tb())}},{key:"process",value:function t(){var t=I(this.children);for(var e=0;e<t.length;e++){var n=t[e];if(n.calculate()){n.process();return}}}}]);return n}(ih);customElements.define("qti-response-condition",iv);var ig=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"process",value:function t(){var t=this.getAttribute("identifier"),e=this.firstElementChild,n=new iy(e).process();this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:t,value:Array.isArray(n)?n.map(function(t){return rR(t)}):rR(n)}}))}}]);return n}(ih),iy=function(){"use strict";function t(e){a(this,t);this.expression=e}u(t,[{key:"process",value:function t(){var t=this.expression?this.expression.calculate():null;if(t==null){console.warn("setOutcomeValue: value is null or undefined");return}return t}}]);return t}();customElements.define("qti-set-outcome-value",ig);var im=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tq())}},{key:"calculate",value:function t(){return!0}},{key:"getSubRules",value:function t(){return I(this.children)}},{key:"process",value:function t(){var t=this.getSubRules();for(var e=0;e<t.length;e++)t[e].process()}}]);return n}(rt);customElements.define("qti-response-else",im);var ib=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.firstElementChild.calculate()}},{key:"getSubRules",value:function t(){var t=[];for(var e=1;e<this.children.length;e++)t.push(this.children[e]);return t}}]);return n}(im);customElements.define("qti-response-if",ib);var iq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tk(),d(h(n.prototype),"render",this).call(this))}}]);return n}(ib);customElements.define("qti-response-else-if",iq);var ik=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.getVariables=function(){return Array.from(t.children).map(function(e){switch(e.tagName.toLowerCase()){case"qti-base-value":return{baseType:e.getAttribute("base-type"),value:e.textContent.trim(),cardinality:"single"};case"qti-variable":{var n=e.getAttribute("identifier")||"";return t.assessmentItem.getVariable(n)}case"qti-multiple":{var r=e.getResult();return r.length>0?{identifier:"",baseType:r[0].baseType,value:r.map(function(t){return t.value}),cardinality:"multiple",type:"response"}:null}case"qti-correct":{var i=e.getAttribute("identifier")||"",o=t.assessmentItem.getResponse(i);return{baseType:o.baseType,value:o.correctResponse,cardinality:o.cardinality}}default:{try{return{baseType:"integer",value:e.getResult().toString(),cardinality:"single"}}catch(t){console.warn("default not sufficient")}return null}}}).filter(function(t){return t!==null})};return t}u(n,[{key:"render",value:function t(){return nj(tw(),JSON.stringify(this.result,null,2))}},{key:"calculate",value:function t(){return this.result=this.getResult(),this.result}},{key:"getResult",value:function t(){throw new Error("Not implemented")}},{key:"assessmentItem",get:function t(){return this.closest("qti-assessment-item")}}]);return n}(rt);ik.styles=e9(tx()),eL([s()],ik.prototype,"result",2);var iw=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.result=this.getResult(),this.result}},{key:"getResult",value:function t(){throw new Error("Not implemented")}}]);return n}(ik);var ix=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"calculate",value:function t(){return this.calculateChildren(Array.from(this.children))}}]);return n}(eE(iw));customElements.define("qti-and",ix);var iC=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.baseType="string";return t}u(n,[{key:"getResult",value:function t(){return this.textContent.trim()}}]);return n}(ik);eL([i({type:String,attribute:"base-type"})],iC.prototype,"baseType",2);customElements.define("qti-base-value",iC);var iE=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(this.children.length===2){var e=t[0],n=t[1];if(e.baseType==="directedPair"&&n.baseType==="directedPair"&&e.cardinality==="multiple"){var r=e.value,i=n.value;return r.filter(function(t){return i.includes(t)}).length>0}else if(e.baseType==="directedPair"&&n.baseType==="directedPair"&&e.cardinality==="single"){var o=e.value;return n.value.includes(o)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}}]);return n}(iw);customElements.define("qti-contains",iE);var iA=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"interpretation",get:function t(){return this.getAttribute("interpretation")||""}},{key:"getResult",value:function t(){var t=this.getAttribute("identifier")||"",e=this.closest("qti-assessment-item").getResponse(t);return e.correctResponse,e.cardinality!=="single"?e.correctResponse.length>0?e.correctResponse[0]:"":e.correctResponse}}]);return n}(ik);customElements.define("qti-correct",iA);var iS=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.roundingMode="significantFigures";return t}u(n,[{key:"figures",get:function t(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;var t=parseInt(this.getAttribute("figures")||"0");return isNaN(t)?(console.error("figures attribute is not a number"),null):t<0?(console.error("figures attribute is negative"),null):t<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):t}},{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(this.roundingMode===null)return null;if(e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value))return console.error("unexpected cardinality in qti equal"),!1;switch(t[0].baseType){case"integer":case"float":{var r=parseFloat(e.value),i=parseFloat(n.value);if(!isNaN(r)&&!isNaN(i))return this.roundingMode==="significantFigures"?r.toPrecision(this.figures)===i.toPrecision(this.figures):Math.round(r*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(i*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error("value cannot be casted to numeric value in equalRounded operator: ".concat(r,", ").concat(i));break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}}]);return n}(ik);eL([i({type:String})],iS.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",iS);var i_=function(){"use strict";function t(){a(this,t)}u(t,null,[{key:"compareSingleValues",value:function t(t,e,n){switch(n){case"identifier":case"string":return t===e;case"integer":{var r=parseInt(t,10),i=parseInt(e,10);if(!isNaN(r)&&!isNaN(i))return r===i;console.error("Cannot convert ".concat(t," and/or ").concat(e," to int."));break}case"float":{var o=parseFloat(t),a=parseFloat(e);if(!isNaN(o)&&!isNaN(a))return o===a;console.error("couldn't convert ".concat(t," and/or ").concat(e," to float."));break}case"pair":case"directedPair":{var s=t.split(" ").sort(),l=e.split(" ").sort();if(s.length===2&&l.length===2)return n==="pair"&&(s.sort(),l.sort()),s.join(" ")===l.join(" ");console.error("compared two pair but one of the values does not have 2 values: 1: ".concat(t," 2: ").concat(e));break}}return!1}}]);return t}();var iR=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.toleranceMode="exact";return t}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value)?(console.error("unexpected cardinality in qti equal"),!1):i_.compareSingleValues(e.value,n.value,e.baseType)}return console.error("unexpected number of children in qti-equal"),null}}]);return n}(ik);eL([i({type:String})],iR.prototype,"toleranceMode",2);customElements.define("qti-equal",iR);var iT=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float"))return+e.value>+n.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}}]);return n}(ik);customElements.define("qti-gt",iT);var iI=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float")?+e.value>=+n.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}}]);return n}(iw);customElements.define("qti-gte",iI);var iO=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===1){var t=this.getVariables();if(!t)return!0;var e=t[0].value;return e==null||e==null||e===""}return console.error("unexpected number of children in qti Null"),null}}]);return n}(ik);customElements.define("qti-is-null",iO);var iP=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float"))return+e.value<+n.value;console.error("unexpected baseType or cardinality in qti lt")}return console.error("unexpected number of children in lt"),null}}]);return n}(ik);customElements.define("qti-lt",iP);var iM=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];return e.baseType===n.baseType&&(e.baseType==="integer"||e.baseType==="float")?+e.value<=+n.value:(console.error("unexpected baseType or cardinality in qti lte"),null)}return console.log("unexpected number of children in lte"),null}}]);return n}(iw);customElements.define("qti-lte",iM);var iD=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.assessmentItem.getResponse(this.identifier);if(!t)return console.warn("Response ".concat(this.identifier," can not be found")),null;var e=t.mapping,n=Array.isArray(t.value)?t.value:[t.value],r=0;var i=true,o=false,a=undefined;try{var s=function(){var n=u.value;var i=e.mapEntries.find(function(e){return i_.compareSingleValues(e.mapKey,n,t.baseType)});i==null||i.mappedValue==null?r+=e.defaultValue:r+=i.mappedValue};for(var l=n[Symbol.iterator](),u;!(i=(u=l.next()).done);i=true)s()}catch(t){o=true;a=t}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(o){throw a}}}return e.lowerBound!=null&&(r=Math.max(e.lowerBound,r)),e.upperBound!=null&&(r=Math.min(e.upperBound,r)),r}}]);return n}(ik);eL([i({type:String})],iD.prototype,"identifier",2);customElements.define("qti-map-response",iD);var i$=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.defaultValue=0;return t}u(n,[{key:"mapEntries",get:function t(){return Array.from(this.querySelectorAll("qti-map-entry")).map(function(t){return{mapKey:t.getAttribute("map-key"),mappedValue:+t.getAttribute("mapped-value")}})}}]);return n}(rt);eL([i({attribute:"default-value",type:Number})],i$.prototype,"defaultValue",2),eL([i({attribute:"lower-bound",type:Number})],i$.prototype,"lowerBound",2),eL([i({attribute:"upper-bound",type:Number})],i$.prototype,"upperBound",2);customElements.define("qti-mapping",i$);var iL=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],r=t[1];return n.match(e,r)}return console.error("unexpected number of children in match"),null}}],[{key:"match",value:function t(t,e){switch(e.cardinality){case"single":var n;return t.value===null?!1:Array.isArray(t.value)||Array.isArray(e.value)?(console.error("unexpected cardinality in qti match"),!1):i_.compareSingleValues((n=t.value)===null||n===void 0?void 0:n.toString(),e.value.toString(),e.baseType);case"ordered":{if(!Array.isArray(t.value)||!Array.isArray(e.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==e.value.length)return!1;for(var r=0;r<t.value.length;r++)if(!i_.compareSingleValues(e.value[r],t.value[r],e.baseType))return!1;return!0}case"multiple":{if(!Array.isArray(t.value)||!Array.isArray(e.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==e.value.length)return!1;var i=0;var o=true,a=false,s=undefined;try{for(var l=e.value[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;var d=null,h=I(t.value);var p=true,f=false,v=undefined;try{for(var g=h[Symbol.iterator](),y;!(p=(y=g.next()).done);p=true){var m=y.value;if(i_.compareSingleValues(c,m,e.baseType)){d=m;break}}}catch(t){f=true;v=t}finally{try{if(!p&&g.return!=null){g.return()}}finally{if(f){throw v}}}if(d!==null)h.splice(h.indexOf(d),1);else return!1;i++}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}return!0}default:return console.error("unexpected cardinality in qti match"),!1}}}]);return n}(ik);customElements.define("qti-match",iL);var iN=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();this.children.length!==2&&console.warn("The member operator takes two sub-expressions");var e=S(t,2),n=e[0],r=e[1];if(n.baseType!==r.baseType&&console.warn("Which must both have the same base-type"),r.cardinality==="multiple"||r.cardinality==="ordered"||console.warn("and the second must be a multiple or ordered container"),(n.baseType==="float"||r.baseType==="float")&&console.warn("The member operator should not be used on sub-expressions with a base-type of float"),(n.baseType==="duration"||r.baseType==="duration")&&console.warn("It must not be used on sub-expressions with a base-type of duration"),n.value===null||r.value===null)return null;var i=n.value;return r.value.includes(i)}}]);return n}(ik);customElements.define("qti-member",iN);var iV=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;if(a.cardinality!=="multiple"&&a.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[]}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}return t}}]);return n}(ik);customElements.define("qti-multiple",iV);var iH=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tC(),d(h(n.prototype),"render",this).call(this))}},{key:"getResult",value:function t(){return!this.firstElementChild.calculate()}}]);return n}(ik);customElements.define("qti-not",iH);var iz=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){return Array.from(this.children).map(function(t){var e=t;if(!e.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var n=e.calculate();if(typeof n=="string")if(n==="true")n=!0;else if(n==="false")n=!1;else return console.error("unexpected value in qti-or, expected boolean"),null;return n}).some(function(t){return typeof t=="boolean"&&t})}}]);return n}(iw);customElements.define("qti-or",iz);var iU=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;var e=true,n=false,r=undefined;try{for(var i=t[Symbol.iterator](),o;!(e=(o=i.next()).done);e=true){var a=o.value;if(a.cardinality!=="ordered"&&a.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[]}}catch(t){n=true;r=t}finally{try{if(!e&&i.return!=null){i.return()}}finally{if(n){throw r}}}return t}}]);return n}(ik);customElements.define("qti-ordered",iU);var ij=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){var t=this;var e,n;var r=(n=this.itemContext)===null||n===void 0?void 0:(e=n.variables.find(function(e){return e.identifier===t.identifier}))===null||e===void 0?void 0:e.value;return nj(tE(),JSON.stringify(r,null,2))}},{key:"calculate",value:function t(){var t=this.closest("qti-assessment-item"),e=this.identifier;return t.getVariable(e).value}}]);return n}(rt);eL([i({type:String})],ij.prototype,"identifier",2),eL([e({context:rl,subscribe:!0}),s()],ij.prototype,"itemContext",2);customElements.define("qti-printed-variable",ij);var iB=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){return this.getVariables().reduce(function(t,e){if(e.baseType=="float"||e.baseType=="integer")try{return t*parseInt(e.value.toString())}catch(t){console.warn("can not convert to number")}else console.warn("has another baseType ".concat(e.baseType));return t},1)}}]);return n}(ik);customElements.define("qti-product",iB);var iQ=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.caseSensitive="true";return t}u(n,[{key:"getResult",value:function t(){if(this.children.length===2){var t=this.getVariables(),e=t[0],n=t[1];if(e.cardinality!=="single"||n.cardinality!=="single"||Array.isArray(e.value)||Array.isArray(n.value))return console.error("unexpected cardinality in qti string-match"),!1;var r=this.caseSensitive==="true"?e.value:e.value.toLowerCase(),i=this.caseSensitive==="true"?n.value:n.value.toLowerCase();return i_.compareSingleValues(r,i,e.baseType)}return console.error("unexpected number of children in qti-string-match"),null}}]);return n}(ik);eL([i({type:String,attribute:"case-sensitive"})],iQ.prototype,"caseSensitive",2);customElements.define("qti-string-match",iQ);var iF=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t._expression=new iW(Array.from(t.children));return x(t)}u(n,[{key:"getResult",value:function t(){return this._expression.calculate()}}]);return n}(ik),iW=function(){"use strict";function t(e){a(this,t);this.expressions=e}u(t,[{key:"calculate",value:function t(){return this.expressions.map(function(t){if(!t.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;var e=t.calculate();return Number.isNaN(e)?(console.error("unexpected value in qti-sum, expected number"),null):Number(e)}).reduce(function(t,e){return t+e},0)}}]);return t}();customElements.define("qti-sum",iF);var iY=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"getResult",value:function t(){var t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariable(t).value}}]);return n}(ik);customElements.define("qti-variable",iY);var iX=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t._errorMessage=null;var i=r(t);t.loadConfig=function(){var t=o(function(t,e){var n,r,o,a;return L(this,function(o){switch(o.label){case 0:t=i.removeDoubleSlashes(t);o.label=1;case 1:o.trys.push([1,5,,6]);return[4,fetch(t)];case 2:n=o.sent();if(!n.ok)return[3,4];return[4,n.json()];case 3:r=o.sent();for(var s in r.paths)e&&(r.paths[s]=i.getResolvablePath(r.paths[s],e));return[2,r];case 4:return[3,6];case 5:a=o.sent();return[3,6];case 6:return[2,null]}})});return function(e,n){return t.apply(this,arguments)}}();t.getResolvablePathString=function(e,n){return e=e.replace(/\.js$/,""),(e===null||e===void 0?void 0:e.toLocaleLowerCase().startsWith("http"))||!n?e:t.removeDoubleSlashes("".concat(n,"/").concat(e))};t.getResolvablePath=function(e,n){return Array.isArray(e)?e.map(function(e){return t.getResolvablePathString(e,n)}):t.getResolvablePathString(e,n)};return t}u(n,[{key:"convertQtiVariableJSON",value:function t(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if(n){for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];if(Array.isArray(i))return i.map(String);if(i!=null)return String(i)}}}return null}},{key:"startChecking",value:function t(){var t=this;this.intervalId=setInterval(function(){var e=t.pci.getResponse(),n=t.pci.getResponse(),r=JSON.stringify(e);if(r!==t.rawResponse){t.rawResponse=r;var i=t.convertQtiVariableJSON(n);t.response=i,t.saveResponse(i)}},200)}},{key:"stopChecking",value:function t(){this.intervalId!==void 0&&clearInterval(this.intervalId)}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"getTAOConfig",value:function t(t){var e=t.querySelectorAll("properties"),n={},r=function(t){var e={},n=t.getAttribute("key");if(n){var r=Array.from(t.children),o=r.map(function(t){return t.getAttribute("key")});o.length>0&&!o.find(function(t){return!Number.isInteger(+t)})?e[n]=r.map(function(t){return i(t)}):e[n]=t.textContent}return e},i=function(t){if(t){var e={};var n=true,i=false,o=undefined;try{for(var a=t.children[Symbol.iterator](),s;!(n=(s=a.next()).done);n=true){var l=s.value;e=q({},e,r(l))}}catch(t){i=true;o=t}finally{try{if(!n&&a.return!=null){a.return()}}finally{if(i){throw o}}}return e}};var o=true,a=false,s=undefined;try{for(var l=e[Symbol.iterator](),u;!(o=(u=l.next()).done);o=true){var c=u.value;return c.getAttribute("key")||(n=q({},n,i(c))),n}}catch(t){a=true;s=t}finally{try{if(!o&&l.return!=null){l.return()}}finally{if(a){throw s}}}return console.log("Can not find qti-custom-interaction config"),null}},{key:"register",value:function t(t){this.pci=t;var e=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",n=e=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");n.classList.add("qti-customInteraction"),e=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");var r=e=="IMS"?{properties:this.dataset,onready:function(){console.log("onready")}}:this.getTAOConfig(this);e=="IMS"?t.getInstance(n,r,void 0):t.initialize(this.customInteractionTypeIdentifier,n.firstElementChild,r),e=="TAO"&&Array.from(this.querySelectorAll("link")).map(function(t){return t.getAttribute("href")}).forEach(function(t){var e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="screen",e.href=t,n.appendChild(e)}),this.startChecking()}},{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this),define("qtiCustomInteractionContext",function(){return{register:function(e){t.register(e)},notifyReady:function(){}}});var e=this.buildRequireConfig();requirejs.config(e)(["require"],function(e){e([t.module])})}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),requirejs.undef(this.customInteractionTypeIdentifier);var t=requirejs.s.contexts;delete t[this.customInteractionTypeIdentifier],this.stopChecking()}},{key:"buildRequireConfig",value:function t(){var t={context:this.customInteractionTypeIdentifier,catchError:!0,paths:window.requirePaths||{},shim:window.requireShim||{}};if(!globalThis.require)return this._errorMessage="RequireJS not found. Please load it via CDN: https://cdnjs.com/libraries/require.js",null;var e=this.getAttribute("data-base-url"),n=this.querySelector("qti-interaction-modules");if(n){var r=n.querySelectorAll("qti-interaction-module");var i=true,o=false,a=undefined;try{for(var s=r[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var u=l.value;var c=u.getAttribute("id"),d=u.getAttribute("primary-path"),h=u.getAttribute("fallback-path");if(c&&d){var p=h?this.combineRequireResolvePaths(this.getResolvablePath(d,e),this.getResolvablePath(h,e)):this.getResolvablePath(d,e),f=t.paths[c]||[];t.paths[c]=this.combineRequireResolvePaths(f,p)}}}catch(t){o=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(o){throw a}}}}return t}},{key:"combineRequireResolvePaths",value:function t(t,e){var n=Array.isArray(t)?t:[t],r=Array.isArray(e)?e:[e];return n.concat(r)}},{key:"removeDoubleSlashes",value:function t(t){return t.replace(/([^:]\/)\/+/g,"$1").replace(/\/\//g,"/").replace("http:/","http://").replace("https:/","https://")}},{key:"render",value:function t(){return nj(tS(),this._errorMessage&&nj(tA(),this._errorMessage))}}]);return n}(rD);eL([i({type:String,attribute:"response-identifier"})],iX.prototype,"responseIdentifier",2),eL([i({type:String,attribute:"module"})],iX.prototype,"module",2),eL([i({type:String,attribute:"custom-interaction-type-identifier"})],iX.prototype,"customInteractionTypeIdentifier",2),eL([s()],iX.prototype,"_errorMessage",2),iX=eL([rr("qti-portable-custom-interaction")],iX);var iZ=function(){"use strict";function t(){a(this,t);this.touchStartTime=0;this.touchStartPoint=null;this.lastClickTime=0;this.isDraggable=!1;this.dragSource=null;this.dragClone=null;this.touchEndTriggered=!1;this.isDragging=!1;this.initialTransform="";this.hasDispatchedDragStart=!1;this.rootNode=null;this.focusedElement=null;this.focusableDropZones=[];this.currentDropZoneIndex=-1;this.dataTransfer={data:{},setData:function t(t,e){this.data[t]=e},getData:function t(t){return this.data[t]},effectAllowed:"move"};this.cloneOffset={x:0,y:0};this.lastTarget=null;this.currentDropTarget=null;this.allowClick=!0;this.copyStylesForDragClone=!0;this.dragOnClickEnabled=!1;this.useDragClone=!1;this.MIN_DRAG_DISTANCE=5;this.DRAG_CLONE_OPACITY=1;if(t.instance)return t.instance;t.instance=this,document.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!1}),document.addEventListener("mousemove",this.handleTouchMove.bind(this),{passive:!1}),document.addEventListener("touchend",this.handleTouchEnd.bind(this),{passive:!1}),document.addEventListener("mouseup",this.handleTouchEnd.bind(this),{passive:!1}),document.addEventListener("touchcancel",this.handleTouchCancel.bind(this),{passive:!1}),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("keyup",this.handleKeyUp.bind(this))}u(t,[{key:"addDraggableElements",value:function t(t){var e=this;t.forEach(function(t){t.setAttribute("tabindex","0"),t.addEventListener("focus",function(){return e.focusedElement=t}),t.addEventListener("blur",function(){return e.focusedElement=null}),t.addEventListener("touchstart",e.handleTouchStart.bind(e),{passive:!1}),t.addEventListener("mousedown",e.handleTouchStart.bind(e),{passive:!1})})}},{key:"handleTouchStart",value:function t(t){this.touchStartTime=Date.now();var e=this.getEventCoordinates(t),n=e.x,r=e.y;if(this.touchStartPoint={x:n,y:r},this.dragSource=t.currentTarget,this.isDraggable=!0,this.rootNode=this.dragSource.getRootNode(),this.dragOnClickEnabled&&(this.isDragging=!0,this.createDragClone(t,{clientX:n,clientY:r})),!this.useDragClone){var i=window.getComputedStyle(this.dragSource);this.initialTransform=i.transform==="none"?"":i.transform,this.initialTransition=i.transition||"",this.dragSource.style.transition="none";var o=this.dragSource.getBoundingClientRect();this.cloneOffset.x=n-o.left,this.cloneOffset.y=r-o.top,this.dragSource.style.zIndex="9999",this.dragSource.focus()}t.preventDefault()}},{key:"handleTouchMove",value:function t(t){if(this.isDraggable&&this.dragSource){var e=this.getEventCoordinates(t),n=e.x,r=e.y,i={clientX:n,clientY:r};this.calculateDragDistance(i)>=this.MIN_DRAG_DISTANCE&&(this.dragSource.style.pointerEvents="none",this.isDragging=!0),this.createDragClone(t,i),t.preventDefault()}}},{key:"createDragClone",value:function t(t,e){if(!this.isDragging)return;if(this.useDragClone){if(!this.dragClone){if(this.dragSource.style.opacity=this.DRAG_CLONE_OPACITY.toString(),this.dragClone=this.dragSource.cloneNode(!0),this.copyStylesForDragClone){var n=window.getComputedStyle(this.dragSource);var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;this.dragClone.style[l]=n.getPropertyValue(l)}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}f(this.rootNode,ShadowRoot)?this.rootNode.host.appendChild(this.dragClone):f(this.rootNode,Document)&&document.body.appendChild(this.dragClone),this.calculateClonePosition(e),this.setDragCloneStyles(e),this.dispatchCustomEvent(this.dragSource,"dragstart")}this.updateDragClonePosition(e)}else if(this.touchStartPoint){var u=e.clientX-this.touchStartPoint.x,c=e.clientY-this.touchStartPoint.y;this.dragSource.style.transform="".concat(this.initialTransform," translate(").concat(u,"px, ").concat(c,"px)"),this.hasDispatchedDragStart||(this.dispatchCustomEvent(this.dragSource,"dragstart"),this.hasDispatchedDragStart=!0)}var d=this.findDropTarget(t);d!==this.lastTarget&&(this.dispatchCustomEvent(d,"dragenter"),this.dispatchCustomEvent(this.lastTarget,"dragleave"),this.lastTarget=d),this.currentDropTarget=d,this.currentDropTarget&&this.dispatchCustomEvent(d,"dragover")}},{key:"handleTouchEnd",value:function t(t){this.touchEndTriggered=!0,this.isDraggable=!1;var e=!1;if(this.currentDropTarget)this.dispatchCustomEvent(this.currentDropTarget,"drop"),this.dispatchCustomEvent(this.dragSource,"dragend"),e=!0;else if(this.isDragging){var n;var r=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});r.dataTransfer={dropEffect:"none"},(n=this.dragSource)===null||n===void 0?void 0:n.dispatchEvent(r)}this.resetDragState(e)}},{key:"handleTouchCancel",value:function t(t){this.resetDragState()}},{key:"findDropTarget",value:function t(t){var e=this.getEventCoordinates(t),n=e.x,r=e.y;return this.getDropTargetAtPoint(document,n,r)}},{key:"getDropTargetAtPoint",value:function t(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(r>2)return null;var i=t.elementFromPoint(e,n);if(!i)return null;if(i.hasAttribute("dropzone"))return i;var o=i.parentElement;for(;o;){if(o.hasAttribute("dropzone"))return o;o=o.parentElement}if(i.shadowRoot&&r<2){var a=this.getDropTargetAtPoint(i.shadowRoot,e,n,r+1);if(a)return a}return null}},{key:"handleKeyDown",value:function t(t){this.focusedElement&&(t.key===" "&&!this.isDragging?(t.preventDefault(),this.isDraggable=!0,this.dragSource=this.focusedElement,this.isDragging=!0,this.collectDropZones(),this.dispatchCustomEvent(this.dragSource,"dragstart")):t.key==="Tab"&&this.isDragging&&(t.preventDefault(),this.moveToNextDropZone()))}},{key:"handleKeyUp",value:function t(t){t.key===" "&&this.isDragging&&this.currentDropTarget&&(t.preventDefault(),this.dispatchCustomEvent(this.currentDropTarget,"drop"),this.dispatchCustomEvent(this.dragSource,"dragend"),this.resetDragState(!0))}},{key:"collectDropZones",value:function t(){this.focusableDropZones=Array.from(document.querySelectorAll("[dropzone]")),this.currentDropZoneIndex=-1}},{key:"moveToNextDropZone",value:function t(){if(this.focusableDropZones.length===0)return;this.currentDropZoneIndex=(this.currentDropZoneIndex+1)%this.focusableDropZones.length;var t=this.focusableDropZones[this.currentDropZoneIndex];t.focus(),this.currentDropTarget=t,this.dispatchCustomEvent(t,"dragenter")}},{key:"getEventCoordinates",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n=t.touches?t.touches[0]:t;return{x:e?n.pageX:n.clientX,y:e?n.pageY:n.clientY}}},{key:"calculateClonePosition",value:function t(t){var e=this.dragSource.getBoundingClientRect();this.cloneOffset.x=t.clientX-e.left,this.cloneOffset.y=t.clientY-e.top}},{key:"setDragCloneStyles",value:function t(t){this.dragClone.style.position="fixed",this.dragClone.style.top="".concat(t.clientY-this.cloneOffset.y,"px"),this.dragClone.style.left="".concat(t.clientX-this.cloneOffset.x,"px"),this.dragClone.style.pointerEvents="none",this.dragClone.style.zIndex="999999"}},{key:"updateDragClonePosition",value:function t(t){var e=this;requestAnimationFrame(function(){if(e.touchEndTriggered||!e.dragClone)return;var n=t.clientX-e.cloneOffset.x,r=t.clientY-e.cloneOffset.y,i=e.applyBoundaries(n,r,e.dragClone),o=i.newLeft,a=i.newTop;e.dragClone.style.left="".concat(o,"px"),e.dragClone.style.top="".concat(a,"px")})}},{key:"applyTransformBoundaries",value:function t(t,e){var n;f(this.rootNode,ShadowRoot)?n=this.rootNode.host.getBoundingClientRect():f(this.rootNode,Document)?n=document.documentElement.getBoundingClientRect():n=new DOMRect(0,0,window.innerWidth,window.innerHeight);var r=this.dragSource.getBoundingClientRect(),i=r.width,o=r.height,a=r.left+t,s=r.top+e,l=Math.max(n.left,Math.min(a,n.right-i)),u=Math.max(n.top,Math.min(s,n.bottom-o)),c=l-r.left,d=u-r.top;return{boundedDeltaX:c,boundedDeltaY:d}}},{key:"applyBoundaries",value:function t(t,e,n){var r;f(this.rootNode,ShadowRoot)?r=this.rootNode.host.getBoundingClientRect():f(this.rootNode,Document)?r=document.documentElement.getBoundingClientRect():r=new DOMRect(0,0,window.innerWidth,window.innerHeight);var i=n.getBoundingClientRect(),o=i.width,a=i.height,s=Math.max(r.left,Math.min(t,r.right-o)),l=Math.max(r.top,Math.min(e,r.bottom-a));return{newLeft:s,newTop:l}}},{key:"calculateDragDistance",value:function t(t){var e=Math.abs(t.clientX-this.touchStartPoint.x),n=Math.abs(t.clientY-this.touchStartPoint.y);return e+n}},{key:"dispatchCustomEvent",value:function t(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t)return;var r=new CustomEvent(e,{bubbles:n,cancelable:!0});r.dataTransfer=this.dataTransfer,t.dispatchEvent(r)}},{key:"resetDragState",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;var e;this.isDragging&&(this.useDragClone?(this.dragSource.style.opacity="1.0",(e=this.dragClone)===null||e===void 0?void 0:e.parentElement.removeChild(this.dragClone)):(t||(this.dragSource.style.transform="translate(0, 0)"),this.dragSource.style.zIndex="",this.dragSource.style.pointerEvents="",this.dragSource.style.transition=this.initialTransition,this.initialTransition="")),this.isDragging=!1,this.dragSource=null,this.dragClone=null,this.isDraggable=!1,this.touchStartTime=0,this.touchStartPoint=null,this.touchEndTriggered=!1,this.dataTransfer={data:{},setData:function t(t,e){this.data[t]=e},getData:function t(t){return this.data[t]},effectAllowed:"move"},this.cloneOffset={x:0,y:0},this.lastTarget=null,this.currentDropTarget=null,this.allowClick=!0,this.initialTransform="",this.hasDispatchedDragStart=!1,this.rootNode=null}}]);return t}();var iG=function(t,e,n){var r=function(t){"use strict";p(i,t);var r=$(i);function i(){a(this,i);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.disabled=!1;return t}u(i,[{key:"firstUpdated",value:function t(t){var e=this;if(this.isMatchTabular())return;d(h(i.prototype),"firstUpdated",this).call(this,t);var n=this.getDroppableElements();this.initializeEventHandlers(),n.forEach(function(t){e.prepareDroppable(t),e.observeDroppableAttributes(t)})}},{key:"isMatchTabular",value:function t(){return this.classList.contains("qti-match-tabular")}},{key:"getDroppableElements",value:function t(){return Array.from(e?this.shadowRoot.querySelectorAll(n):this.querySelectorAll(n))}},{key:"initializeEventHandlers",value:function t(){this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dragenterHandler=this.dragenterHandler.bind(this),this.dropHandler=this.dropHandler.bind(this)}},{key:"prepareDroppable",value:function t(t){t.setAttribute("dropzone","move"),t.addEventListener("dragleave",this.dragleaveHandler),this.attachEventListeners(t)}},{key:"observeDroppableAttributes",value:function t(t){var e=this;this.observer=new MutationObserver(function(n){n.forEach(function(n){var r=n.attributeName;r==="disabled"&&e.toggleDroppableHandlers(t)})}),this.observer.observe(t,{attributes:!0})}},{key:"toggleDroppableHandlers",value:function t(t){t.hasAttribute("disabled")?this.removeEventListeners(t):this.attachEventListeners(t)}},{key:"attachEventListeners",value:function t(t){t.addEventListener("dragover",this.dragoverHandler),t.addEventListener("dragenter",this.dragenterHandler),t.addEventListener("drop",this.dropHandler)}},{key:"removeEventListeners",value:function t(t){t.removeEventListener("dragover",this.dragoverHandler),t.removeEventListener("dragenter",this.dragenterHandler),t.removeEventListener("drop",this.dropHandler)}},{key:"disconnectedCallback",value:function t(){var t;this.isMatchTabular()||(d(h(i.prototype),"disconnectedCallback",this).call(this),(t=this.observer)===null||t===void 0?void 0:t.disconnect())}},{key:"dragenterHandler",value:function t(t){t.preventDefault()}},{key:"dragoverHandler",value:function t(t){return t.preventDefault(),this.activateDroppable(t.currentTarget),t.dataTransfer.dropEffect="move",!1}},{key:"activateDroppable",value:function t(t){t.setAttribute("active","")}},{key:"dropHandler",value:function t(t){var e=this;return o(function(){var n,r,i,o,a;return L(this,function(s){switch(s.label){case 0:t.preventDefault();n=t.currentTarget,r=t.dataTransfer.getData("text"),i=e.findDraggable(r);if(!i)return[3,4];if(!(i&&!e.isValidDrop(n,i)))return[3,1];a=(i.style.transform="translate(0, 0)",!1);return[3,3];case 1:return[4,e.moveDraggableToDroppable(i,n)];case 2:a=(s.sent(),e.deactivateDroppable(n),!1);s.label=3;case 3:o=a;return[3,5];case 4:o=!1;s.label=5;case 5:return[2,o]}})})()}},{key:"findDraggable",value:function t(t){return t?this.querySelector("[identifier=".concat(t,"]"))||this.shadowRoot.querySelector("[identifier=".concat(t,"]")):null}},{key:"isValidDrop",value:function t(t,e){return e.parentElement.getAttribute("identifier")!==t.getAttribute("identifier")}},{key:"moveDraggableToDroppable",value:function t(t,e){var n=this;return o(function(){var r;return L(this,function(i){switch(i.label){case 0:r=function(){t.style.transform="translate(0, 0)",e.appendChild(t),n.checkMaxAssociations(),n.saveResponse()};if(!document.startViewTransition){r();return[2]}return[4,document.startViewTransition(r).finished];case 1:i.sent();return[2]}})})()}},{key:"deactivateDroppable",value:function t(t){t.removeAttribute("active")}},{key:"dragleaveHandler",value:function t(t){return t.preventDefault(),this.deactivateDroppable(t.currentTarget),t.dataTransfer.dropEffect="none",!1}}]);return i}(t);return eL([i({type:Boolean,reflect:!0})],r.prototype,"disabled",2),r};var iK=function(t,e,n){var r=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(t);return r};var iJ=function(t,e,n,s){var l=function(t){"use strict";p(i,t);var e=$(i);function i(){a(this,i);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.draggables=new Map;t.droppables=[];t.responseIdentifier="";t.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};t.disabled=!1;t.readonly=!1;t.minAssociations=1;t.maxAssociations=1;t.handleDragStart=function(e){var n=e.currentTarget;e.dataTransfer.setData("text",n.getAttribute("identifier")),n.setAttribute("dragging",""),t.activateDroppables()};var n=r(t);t.handleDragEnd=function(){var t=o(function(t){var e;return L(this,function(r){switch(r.label){case 0:t.preventDefault(),n.deactivateDroppables();e=t.currentTarget;e.removeAttribute("dragging");return[4,n.wasDropped(t)];case 1:r.sent()||n.configuration.dragCanBePlacedBack&&n.restoreInitialDraggablePosition(e);return[2]}})});return function(e){return t.apply(this,arguments)}}();t.checkForMoveTestItem=function(t){return t.dataTransfer.items?new Promise(function(e){var n=!1,r=Array.from(t.dataTransfer.items),i=r.length;if(i===0){e(!1);return}r.forEach(function(t){t.kind==="string"&&t.type==="text"?t.getAsString(function(t){t==="move-test"&&(n=!0),i===0&&e(n)}):i===0&&e(n)})}):Promise.resolve(!1)};return t}u(i,[{key:"handleDraggablesChange",value:function t(t,e){if(this.isMatchTabular())return;var n=this.filterExistingDraggables(t);n.length>0&&this.addNewDraggables(n)}},{key:"firstUpdated",value:function t(t){d(h(i.prototype),"firstUpdated",this).call(this,t),this.initializeDroppables()}},{key:"connectedCallback",value:function t(){d(h(i.prototype),"connectedCallback",this).call(this),this.initializeDragDropApi()}},{key:"initializeDragDropApi",value:function t(){this.dragDropApi=new iZ,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}},{key:"isMatchTabular",value:function t(){return this.classList.contains("qti-match-tabular")}},{key:"filterExistingDraggables",value:function t(t){var e=this;return t.filter(function(t){return!e.draggables.has(t)})}},{key:"addNewDraggables",value:function t(t){var e=this;this.dragDropApi.addDraggableElements(t),t.forEach(function(t){return e.storeDraggable(t)})}},{key:"storeDraggable",value:function t(t){var e=Array.from(t.parentNode.children).indexOf(t);this.draggables.set(t,{parent:t.parentElement,index:e}),t.style.viewTransitionName="drag-".concat(e,"-").concat(this.getAttribute("identifier")),t.setAttribute("qti-draggable","true"),t.addEventListener("dragstart",this.handleDragStart),t.addEventListener("dragend",this.handleDragEnd)}},{key:"initializeDroppables",value:function t(){this.droppables=Array.from(n?this.shadowRoot.querySelectorAll(s):this.querySelectorAll(s))}},{key:"activateDroppables",value:function t(){this.droppables.forEach(function(t){return t.setAttribute("enabled","")})}},{key:"deactivateDroppables",value:function t(){this.droppables.forEach(function(t){return t.removeAttribute("enabled")})}},{key:"wasDropped",value:function t(t){var e=this;return o(function(){var n;return L(this,function(r){switch(r.label){case 0:return[4,e.checkForMoveTestItem(t)];case 1:n=r.sent();return[2,t.dataTransfer.dropEffect!=="none"||n]}})})()}},{key:"wasMoved",value:function t(t){return t.dataTransfer.dropEffect==="move"}},{key:"restoreInitialDraggablePosition",value:function t(t){var e=this;return o(function(){var n,r,i,o,a,s;return L(this,function(l){n=e.draggables.get(t),r=n.parent,i=n.index,o=Math.min(i,r.children.length),a=function(t,n,r){var i=Math.min(r,n.children.length);n.insertBefore(t,n.children[i]),t.style.transform="translate(0, 0)",e.checkMaxAssociations()};if(!document.startViewTransition){a(t,r,i);return[2]}s=document.startViewTransition(function(){t.style.transform="",a(t,r,i)});return[2]})})()}},{key:"checkMaxAssociations",value:function t(){var t=this;this.droppables.forEach(function(e,n){var r=+(e.getAttribute("match-max")||1);e.querySelectorAll('[qti-draggable="true"]').length>=r?t.disableDroppable(e):t.enableDroppable(e)})}},{key:"disableDroppable",value:function t(t){t.setAttribute("disabled",""),t.removeAttribute("dropzone")}},{key:"enableDroppable",value:function t(t){t.removeAttribute("disabled"),t.setAttribute("dropzone","move")}},{key:"response",get:function t(){return this.collectResponseData()},set:function t(t){var e=this;this.isMatchTabular()||(this.resetDroppables(),t===null||t===void 0?void 0:t.forEach(function(t){return e.placeResponse(t)}))}},{key:"placeResponse",value:function t(t){var e=this;var n=T(t.split(" ").reverse()),r=n[0],i=n.slice(1),o=this.findDroppableById(r);i.forEach(function(t){return e.placeDraggableInDroppable(t,o)})}},{key:"findDroppableById",value:function t(t){return this.droppables.find(function(e){return e.getAttribute("identifier")===t})}},{key:"placeDraggableInDroppable",value:function t(t,e){var n=this;return o(function(){var r,i,o;return L(this,function(a){switch(a.label){case 0:r=n.querySelector("[identifier=".concat(t,"]"));if(!e||!r){console.error("Cannot find draggable or droppable with the given identifier: ".concat(t));return[2]}i=function(){r.style.transform="translate(0, 0)",e.appendChild(r),n.checkMaxAssociations()};if(!document.startViewTransition)return[3,2];return[4,document.startViewTransition(i).finished];case 1:o=a.sent();return[3,3];case 2:o=i();a.label=3;case 3:o;return[2]}})})()}},{key:"validate",value:function t(){var t=this.getValidAssociations();return this.minAssociations<=0||this.minAssociations<=t}},{key:"getValidAssociations",value:function t(){return this.droppables.filter(function(t){return t.childElementCount>0}).length}},{key:"saveResponse",value:function t(){var t=this.collectResponseData();this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:t}}))}},{key:"collectResponseData",value:function t(){return this.droppables.map(function(t){var e=t.querySelectorAll('[qti-draggable="true"]'),n=Array.from(e).map(function(t){return t.getAttribute("identifier")}),r=t.getAttribute("identifier");return n.map(function(t){return"".concat(t," ").concat(r)})}).flat()}},{key:"reset",value:function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.resetDroppables(),t&&this.saveResponse()}},{key:"resetDroppables",value:function t(){var t=this;return o(function(){var e;return L(this,function(n){switch(n.label){case 0:e=function(t,e,n){t.style.transform="translate(0, 0)";var r=Math.min(n,e.children.length);e.insertBefore(t,e.children[r])};if(!document.startViewTransition){t.draggables.forEach(function(t,n){var r=t.parent,i=t.index;e(n,r,i)});return[2]}return[4,document.startViewTransition(function(){t.draggables.forEach(function(t,n){var r=t.parent,i=t.index;e(n,r,i)})}).finished];case 1:n.sent();return[2]}})})()}}]);return i}(iK(iG(t,n,s),s,e));return eL([i({type:String,attribute:"response-identifier"})],l.prototype,"responseIdentifier",2),eL([i({attribute:!1,type:Object})],l.prototype,"configuration",2),eL([i({type:Boolean,reflect:!0})],l.prototype,"disabled",2),eL([i({type:Boolean,reflect:!0})],l.prototype,"readonly",2),eL([i({type:Number,reflect:!0,attribute:"min-associations"})],l.prototype,"minAssociations",2),eL([i({type:Number,reflect:!0,attribute:"max-associations"})],l.prototype,"maxAssociations",2),eL([eC(e)],l.prototype,"handleDraggablesChange",1),l};var i0=e9(t_());var i1=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t._childrenMap=[];t.addEventListener("register-qti-simple-associable-choice",function(e){var n=e.target;t._childrenMap.push(n)});return t}u(n,[{key:"render",value:function t(){return nj(tT(),this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map(function(t,e){return nj(tR(),e,e,e,e)}))}}]);return n}(iJ(rt,"qti-simple-associable-choice",!0,".dl"));i1.styles=i0,eL([s()],i1.prototype,"_childrenMap",2),i1=eL([rr("qti-associate-interaction")],i1);var i2=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t._errorMessage=null;t.handlePostMessage=t.handlePostMessage.bind(r(t));return t}u(n,[{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this);var e=this.data.startsWith("http")?this.data:P(this.baseItemUrl+"/"+this.data);fetch(e).then(function(t){return t.json()}).then(function(e){t.manifest=e,t.setupCES()}).catch(function(e){t._errorMessage=e})}},{key:"setupCES",value:function t(){var t=this.shadowRoot.querySelector("#pciContainer"),e=t.contentWindow||t,n=t.contentDocument;window.addEventListener("message",this.handlePostMessage),n.open(),n.write("\n <html>\n <head>\n <link href='".concat(P("".concat(this.baseRefUrl,"/").concat(this.manifest.style[0])),"' rel=\"stylesheet\" />\n <script src='").concat(P("".concat(this.baseRefUrl,"/").concat(this.manifest.script[0])),"'></script>\n </head>\n <body></body>\n </html>\n ")),n.close()}},{key:"getIFrames",value:function t(){var t=this.shadowRoot.querySelectorAll("iframe"),e=this.querySelectorAll("iframe"),n=I(t).concat(I(e));var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;var u=l.src;if(new URL(u,window.location.href).origin===window.location.origin)try{var c=l.contentDocument||l.contentWindow.document;c&&this.getInnerIFrames(c,n)}catch(t){console.error("Error accessing nested iframe:",t)}}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}return n.forEach(function(t,e){n.indexOf(t)!==e&&n.splice(e,1)}),n}},{key:"getInnerIFrames",value:function t(t){var e=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.querySelectorAll("iframe").forEach(function(t){n.push(t);var r=t.src;if(new URL(r,window.location.href).origin===window.location.origin)try{var i=t.contentDocument||t.contentWindow.document;e.getInnerIFrames(i,n)}catch(t){console.error("Error accessing nested iframe:",t)}else console.warn("Skipped cross-origin iframe:",r)}),n}},{key:"postToWindowAndIframes",value:function t(t,e){window.postMessage({type:t,data:e},"*");var n=this.getIFrames();var r=true,i=false,o=undefined;try{for(var a=n[Symbol.iterator](),s;!(r=(s=a.next()).done);r=true){var l=s.value;l.contentWindow&&l.contentWindow.postMessage({type:t,data:e},"*")}}catch(t){i=true;o=t}finally{try{if(!r&&a.return!=null){a.return()}}finally{if(i){throw o}}}}},{key:"handlePostMessage",value:function t(t){var e=this;var n=t.data,r=n.type,i=n.data;switch(r){case"setResponse":this.rawResponse=i,this.saveResponse(i);break;case"getResponse":{this.postToWindowAndIframes("responseData",this.rawResponse);break}case"getMedia":{var o=this.manifest.media.map(function(t){return t.startsWith("http")?t:P(e.baseRefUrl+"/"+t)});this.postToWindowAndIframes("mediaData",o);break}case"setStageHeight":console.log("setStageHeight not implemented");break}}},{key:"validate",value:function t(){return this.rawResponse!==""}},{key:"response",set:function t(t){this.rawResponse=t}},{key:"disconnectedCallback",value:function t(){window.removeEventListener("message",this.handlePostMessage),d(h(n.prototype),"disconnectedCallback",this).call(this)}},{key:"render",value:function t(){return nj(tO(),this.getAttribute("width"),this.getAttribute("height"),this._errorMessage&&nj(tI(),this._errorMessage))}}]);return n}(rD);eL([i({type:String,attribute:"response-identifier"})],i2.prototype,"responseIdentifier",2),eL([i({type:String,attribute:"data"})],i2.prototype,"data",2),eL([i({type:String,attribute:"data-base-item"})],i2.prototype,"baseItemUrl",2),eL([i({type:String,attribute:"data-base-ref"})],i2.prototype,"baseRefUrl",2),eL([i({type:String,attribute:"id"})],i2.prototype,"id",2),eL([s()],i2.prototype,"_errorMessage",2),i2=eL([rr("qti-custom-interaction")],i2);var i5=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.countAttempt="true";return t}u(n,[{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"render",value:function t(){return nj(tP(),this.disabled,this.endAttempt,this.title)}},{key:"endAttempt",value:function t(t){this.dispatchEvent(new CustomEvent("end-attempt",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,countAttempt:this.countAttempt==="true"}}))}}]);return n}(rD);eL([i({type:String,attribute:"count-attempt"})],i5.prototype,"countAttempt",2),eL([i({type:String})],i5.prototype,"title",2),i5=eL([rr("qti-end-attempt-interaction")],i5);var i3=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tM())}},{key:"correctResponse",set:function t(t){var e=this;var n=[],r=Array.isArray(t)?t:[t];r&&(n=r.map(function(t){var e=t.split(" ");return{text:e[0],gap:e[1]}})),this.querySelectorAll("qti-gap").forEach(function(t,r){var i,o,a;var s=t.getAttribute("identifier"),l=(i=n.find(function(t){return t.gap===s}))===null||i===void 0?void 0:i.text,u=(o=e.querySelector('qti-gap-text[identifier="'.concat(l,'"]')))===null||o===void 0?void 0:o.textContent.trim();if(l&&u){var c;if(!((c=t.nextElementSibling)===null||c===void 0?void 0:c.classList.contains("correct-option"))){var d=document.createElement("span");d.classList.add("correct-option"),d.textContent=u,t.insertAdjacentElement("afterend",d)}}else((a=t.nextElementSibling)===null||a===void 0?void 0:a.classList.contains("correct-option"))&&t.nextElementSibling.remove()})}}]);return n}(iJ(rt,"qti-gap-text",!1,"qti-gap"));i3.styles=[e9(tD())],i3=eL([rr("qti-gap-match-interaction")],i3);var i4=function(t,e,n){var r=new Map;for(var i=e;i<=n;i++)r.set(t[i],i);return r},i6=rF(function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;if(r=e.call(this,t),t.type!==rQ.CHILD)throw Error("repeat() can only be used in text expressions");return x(r)}u(n,[{key:"dt",value:function t(t,e,n){var r;n===void 0?n=e:e!==void 0&&(r=e);var i=[],o=[],a=0;var s=true,l=false,u=undefined;try{for(var c=t[Symbol.iterator](),d;!(s=(d=c.next()).done);s=true){var h=d.value;i[a]=r?r(h,a):a,o[a]=n(h,a),a++}}catch(t){l=true;u=t}finally{try{if(!s&&c.return!=null){c.return()}}finally{if(l){throw u}}}return{values:o,keys:i}}},{key:"render",value:function t(t,e,n){return this.dt(t,e,n).values}},{key:"update",value:function t(t,e){var n=S(e,3),r=n[0],i=n[1],o=n[2];var a=rj(t),s=this.dt(r,i,o),l=s.values,u=s.keys;if(!Array.isArray(a))return this.ut=u,l;var c;var d=(c=this.ut)!==null&&c!==void 0?c:this.ut=[],h=[],p,f,v=0,g=a.length-1,y=0,m=l.length-1;for(;v<=g&&y<=m;)if(a[v]===null)v++;else if(a[g]===null)g--;else if(d[v]===u[y])h[y]=rH(a[v],l[y]),v++,y++;else if(d[g]===u[m])h[m]=rH(a[g],l[m]),g--,m--;else if(d[v]===u[m])h[m]=rH(a[v],l[m]),rV(t,h[m+1],a[v]),v++,m--;else if(d[g]===u[y])h[y]=rH(a[g],l[y]),rV(t,a[v],a[g]),g--,y++;else if(p===void 0&&(p=i4(u,y,m),f=i4(d,v,g)),p.has(d[v]))if(p.has(d[g])){var b=f.get(u[y]),q=b!==void 0?a[b]:null;if(q===null){var k=rV(t,a[v]);rH(k,l[y]),h[y]=k}else h[y]=rH(q,l[y]),rV(t,a[v],q),a[b]=null;y++}else rB(a[g]),g--;else rB(a[v]),v++;for(;y<=m;){var w=rV(t,h[m+1]);rH(w,l[y]),h[y++]=w}for(;v<=g;){var x=a[v++];x!==null&&rB(x)}return this.ut=u,rU(t,h),nF}}]);return n}(rW));var i7=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.startPoint=null;t.endPoint=null;t._lines=[];t.addEventListener("qti-register-hotspot",t.positionHotspotOnRegister);return t}u(n,[{key:"reset",value:function t(){this._lines=[]}},{key:"validate",value:function t(){return this._lines.length>0}},{key:"response",set:function t(t){Array.isArray(t)&&(this._lines=t)}},{key:"render",value:function t(){var t=this;var e,n,r,i;return nj(tN(),rM((e=this.grImage[0])===null||e===void 0?void 0:e.width),rM((n=this.grImage[0])===null||n===void 0?void 0:n.height),(r=this.grImage[0])===null||r===void 0?void 0:r.width,(i=this.grImage[0])===null||i===void 0?void 0:i.height,i6(this._lines,function(t){return t},function(e,n){return nB(t$(),parseInt(t.querySelector("[identifier="+e.split(" ")[0]+"]").style.left),parseInt(t.querySelector("[identifier="+e.split(" ")[0]+"]").style.top),parseInt(t.querySelector("[identifier="+e.split(" ")[1]+"]").style.left),parseInt(t.querySelector("[identifier="+e.split(" ")[1]+"]").style.top),function(e){e.stopPropagation(),t._lines=t._lines.filter(function(t,e){return e!==n}),t.saveResponse(t._lines)})}),this.startPoint&&nB(tL(),this.startCoord.x,this.startCoord.y,this.mouseCoord.x,this.mouseCoord.y))}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eA(i,o,e,n)}},{key:"firstUpdated",value:function t(t){var e=this;d(h(n.prototype),"firstUpdated",this).call(this,t),this.hotspots=this.querySelectorAll("qti-associable-hotspot"),document.addEventListener("mousemove",function(t){e.mouseCoord={x:t.clientX-e.grImage[0].getBoundingClientRect().left,y:t.clientY-e.grImage[0].getBoundingClientRect().top}}),this.hotspots.forEach(function(t){t.style.left=t.getAttribute("coords").split(",")[0]+"px",t.style.top=t.getAttribute("coords").split(",")[1]+"px",t.addEventListener("click",function(t){e.startPoint?e.endPoint||(e.endPoint=t.target,e._lines=I(e._lines).concat([e.startPoint.getAttribute("identifier")+" "+e.endPoint.getAttribute("identifier")]),e.saveResponse(e._lines),e.startPoint=null,e.endPoint=null):(e.startPoint=t.target,e.startCoord={x:e.startPoint.getAttribute("coords").split(",")[0],y:e.startPoint.getAttribute("coords").split(",")[1]})})})}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}}]);return n}(rD);i7.styles=[e9(tV())],eL([s()],i7.prototype,"_lines",2),eL([s()],i7.prototype,"startCoord",2),eL([s()],i7.prototype,"mouseCoord",2),eL([l("svg")],i7.prototype,"svgContainer",2),eL([c({selector:"img"})],i7.prototype,"grImage",2),i7=eL([rr("qti-graphic-associate-interaction")],i7);var i8=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tH())}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});switch(i){case"circle":{var a=S(o,3),s=a[0],l=a[1],u=a[2];n.style.left=s-u+"px",n.style.top=l-u+"px",n.style.width=n.style.height=2*u+"px"}break;case"rect":{var c=S(o,4),d=c[0],h=c[1],p=c[2],f=c[3];n.style.left=d+"px",n.style.top=h+"px",n.style.width=p-d+"px",n.style.height=f-h+"px"}break;default:break}}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}}]);return n}(iJ(rt,"qti-gap-img",!1,"qti-associable-hotspot"));i8.styles=e9(tz()),i8=eL([rr("qti-graphic-gap-match-interaction")],i8);var i9=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tU())}},{key:"setHotspotOrder",value:function t(t){var e=t.detail,n=e.identifier,r=this._choiceElements.find(function(t){return t.getAttribute("identifier")===n}),i=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,r.order==null){if(this._choiceElements.filter(function(t){return t.order>0}).length>=i){this.choiceOrdering=!1;return}r.order=this._choiceElements.filter(function(t){return!!t.order}).length+1,this.choiceOrdering=!1;return}else this._choiceElements.forEach(function(t){return t.order>t.order&&t.order--,t}),r.order=null;this.choiceOrdering=!1}}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eA(i,o,e,n)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("activate-qti-hotspot-choice",this.setHotspotOrder),this.addEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("activate-qti-hotspot-choice",this.setHotspotOrder),this.removeEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}}]);return n}(r4(rt,"qti-hotspot-choice"));i9.styles=[e9(tj())],i9=eL([rr("qti-graphic-order-interaction")],i9);var ot=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(tB())}},{key:"positionHotspotOnRegister",value:function t(t){var e=this.querySelector("img"),n=t.target,r=n.getAttribute("coords"),i=n.getAttribute("shape"),o=r.split(",").map(function(t){return parseInt(t)});eA(i,o,e,n)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("register-qti-hotspot-choice",this.positionHotspotOnRegister)}}]);return n}(r4(rt,"qti-hotspot-choice"));ot.styles=[e9(tQ())],ot=eL([rr("qti-hotspot-interaction")],ot);var oe=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.matchMin=0;t.matchMax=1;t.fixed=!1;return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}},{key:"render",value:function t(){return nj(tF())}}]);return n}(_(rt,"qti-simple-associable-choice"));oe.styles=e9(tW()),eL([i({type:Number,attribute:"match-min"})],oe.prototype,"matchMin",2),eL([i({type:Number,attribute:"match-max"})],oe.prototype,"matchMax",2),eL([i({type:Boolean,attribute:"fixed"})],oe.prototype,"fixed",2),oe=eL([rr("qti-simple-associable-choice")],oe);var on=e9(tY());var or=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.lastCheckedRadio=null;t._response=[];t.correctOptions=[];t.responseIdentifier="";t.handleRadioClick=function(e){var n=e.target;t.lastCheckedRadio===n?(n.checked=!1,t.lastCheckedRadio=null,t.handleRadioChange(e)):t.lastCheckedRadio=n};t.handleRadioChange=function(e){var n=e.target,r=n.value,i=n.name,o=n.type;n.checked?(t.response?t.response.indexOf(r)===-1&&(o==="radio"&&(t.response=t.response.filter(function(t){return t.indexOf(i)===-1})),t.response=I(t.response).concat([r])):t.response=[r],t.lastCheckedRadio=n):(t.response=t.response.filter(function(t){return t!==r}),t.lastCheckedRadio=null),t.requestUpdate(),t.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:t.responseIdentifier,response:Array.isArray(t.response)?I(t.response):t.response}}))};return t}u(n,[{key:"response",get:function t(){return this.classList.contains("qti-match-tabular")?this._response:d(h(n.prototype),"response",this)},set:function t(t){this.classList.contains("qti-match-tabular")?this._response=t:E(h(n.prototype),"response",t,this,true)}},{key:"connectedCallback",value:function t(){var t=this;var e=this,r=function(){return d(h(n.prototype),"connectedCallback",t)};return o(function(){return L(this,function(t){r().call(e),e.rows=Array.from(e.querySelectorAll("qti-simple-match-set:first-of-type qti-simple-associable-choice")),e.cols=Array.from(e.querySelectorAll("qti-simple-match-set:last-of-type qti-simple-associable-choice")),e.response=[];return[2]})})()}},{key:"correctResponse",set:function t(t){if(t===""){this.correctOptions=[];return}else Array.isArray(t)&&(this.correctOptions=t)}},{key:"render",value:function t(){var t=this;return this.classList.contains("qti-match-tabular")?nj(tK(),this.cols.map(function(t,e){return nj(tX(),r8(t.innerHTML))}),this.rows.map(function(e,n){return nj(tG(),r8(e.innerHTML),t.cols.map(function(n,r){var i=e.getAttribute("identifier"),o=n.getAttribute("identifier"),a="".concat(i," ").concat(o),s=t.response.filter(function(t){return t.split(" ")[0]===i}).length||0,l=t.response.includes(a),u="rb ".concat(l?"rb-checked":""," ").concat(t.correctOptions.includes(a)?"rb-correct":""),c=t.correctOptions.length>0?!0:e.matchMax===1?!1:s>=e.matchMax&&!l;return nj(tZ(),e.matchMax===1?"radio":"checkbox",u,i,a,c,function(e){return t.handleRadioChange(e)},function(n){return e.matchMax===1?t.handleRadioClick(n):null})}))})):nj(tJ())}}]);return n}(iJ(rt,"qti-simple-match-set:first-of-type qti-simple-associable-choice",!1,"qti-simple-match-set:last-of-type qti-simple-associable-choice"));or.styles=on,eL([s()],or.prototype,"_response",2),eL([s()],or.prototype,"correctOptions",2),eL([i({type:String,attribute:"response-identifier"})],or.prototype,"responseIdentifier",2),or=eL([rr("qti-match-interaction")],or);var oi=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.value=0;return t}u(n,[{key:"reset",value:function t(){}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){}},{key:"render",value:function t(){return nj(t0())}},{key:"connectedCallback",value:function t(){var t=this;d(h(n.prototype),"connectedCallback",this).call(this);var e=this.querySelector("audio")||this.querySelector("video")||this.querySelector("object");e&&e.addEventListener("ended",function(){t.value++,t.saveResponse(t.value.toString())})}}],[{key:"properties",get:function t(){return w(q({},rD.properties),{step:{type:Number,attribute:"step",default:10}})}}]);return n}(rD);oi.styles=[e9(t1())],oi=eL([rr("qti-media-interaction")],oi);var oo=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.nrChoices=0;t.correctResponses=[];t.showCorrectResponses=!1;return t}u(n,[{key:"render",value:function t(){var t=this;var e=Array.from(this.querySelectorAll("qti-simple-choice"));return this.nrChoices<e.length&&(this.nrChoices=e.length),nj(t5(),Array.from(Array(this.nrChoices)).map(function(e,n){return nj(t2(),n,t.showCorrectResponses&&t.correctResponses.length>n?r8("<span part='correct-response'>".concat(t.correctResponses[n],"</span>")):"")}))}},{key:"correctResponse",set:function t(t){var e=this;if(t===""){this.showCorrectResponses=!1;return}this.correctResponses.length===0&&(Array.isArray(t)?t:[t]).forEach(function(t,n){var r=e.querySelector('qti-simple-choice[identifier="'.concat(t,'"]'));r||(r=e.shadowRoot.querySelector('qti-simple-choice[identifier="'.concat(t,'"]')));var i=r===null||r===void 0?void 0:r.textContent.trim();e.correctResponses=I(e.correctResponses).concat([i])}),this.showCorrectResponses=!0}},{key:"getResponse",value:function t(){return Array.from(this.shadowRoot.querySelectorAll("drop-list")).map(function(t){var e=t.querySelectorAll('[qti-draggable="true"]');return I(Array.from(e).map(function(t){return t.getAttribute("identifier")})).join(" ")})}},{key:"firstUpdated",value:function t(t){var e=this;var r=this,i=function(){return d(h(n.prototype),"firstUpdated",e)};return o(function(){return L(this,function(e){i().call(r,t),r.childrenMap=Array.from(r.querySelectorAll("qti-simple-choice")),r.childrenMap.forEach(function(t){return t.setAttribute("part","qti-simple-choice")});return[2]})})()}}]);return n}(it(iJ(rt,"qti-simple-choice",!0,"drop-list"),"qti-simple-choice"));oo.styles=[e9(t3())],eL([s()],oo.prototype,"nrChoices",2),eL([s()],oo.prototype,"correctResponses",2),eL([s()],oo.prototype,"showCorrectResponses",2),eL([i({type:String})],oo.prototype,"orientation",2),oo=eL([rr("qti-order-interaction")],oo);var oa=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(t4())}}]);return n}(rt);oa.styles=[e9(t6())];customElements.define("qti-position-object-interaction",oa);var os=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this),t.removeMoveListener=t.removeMoveListener.bind(r(t)),t.dragElementHandler=t.dragElementHandler.bind(r(t));return x(t)}u(n,[{key:"render",value:function t(){return nj(t7())}},{key:"dragElementHandler",value:function t(t){t.preventDefault();var e=t.clientX-this.startX,n=t.clientY-this.startY;this.dragElement.style.left=this.dragElement.offsetLeft+e+"px",this.dragElement.style.top=this.dragElement.offsetTop+n+"px",this.startX=t.clientX,this.startY=t.clientY}},{key:"firstUpdated",value:function t(t){var e=this;d(h(n.prototype),"firstUpdated",this).call(this,t),this.dragElement=this.querySelector("qti-position-object-interaction>img"),this.startX=0,this.startY=0,this.dragElement.addEventListener("mousedown",function(t){e.startX=t.clientX,e.startY=t.clientY,document.addEventListener("mousemove",e.dragElementHandler,!0)}),document.addEventListener("mouseup",this.removeMoveListener)}},{key:"removeMoveListener",value:function t(t){document.removeEventListener("mousemove",this.dragElementHandler,!0)}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("mousemove",this.dragElementHandler),document.removeEventListener("mouseup",this.removeMoveListener)}}]);return n}(rt);os.styles=[e9(t8())],os=eL([rr("qti-position-object-stage")],os);var ol="important",ou=" !"+ol,oc=rF(function(t){"use strict";p(n,t);var e=$(n);function n(t){a(this,n);var r;var i;if(r=e.call(this,t),t.type!==rQ.ATTRIBUTE||t.name!=="style"||((i=t.strings)===null||i===void 0?void 0:i.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return x(r)}u(n,[{key:"render",value:function t(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r==null?e:e+"".concat(n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase(),":").concat(r,";")},"")}},{key:"update",value:function t(t,e){var n=S(e,1),r=n[0];var i=t.element,o=i.style;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);var a=true,s=false,l=undefined;try{for(var u=this.ft[Symbol.iterator](),c;!(a=(c=u.next()).done);a=true){var d=c.value;r[d]==null&&(this.ft.delete(d),d.includes("-")?o.removeProperty(d):o[d]=null)}}catch(t){s=true;l=t}finally{try{if(!a&&u.return!=null){u.return()}}finally{if(s){throw l}}}for(var h in r){var p=r[h];if(p!=null){this.ft.add(h);var f=typeof p=="string"&&p.endsWith(ou);h.includes("-")||f?o.setProperty(h,f?p.slice(0,-11):p,f?ol:""):o[h]=p}}return nF}}]);return n}(rW));var od=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.maxChoices=1/0;t.minChoices=0;t._points=[];t._imgElement=null;t._onImageClick=function(e){if(t._points.length<t.maxChoices){var n=e.offsetX,r=e.offsetY;t._points=I(t._points).concat(["".concat(n," ").concat(r)]),t.saveResponse(t._points)}};return t}u(n,[{key:"render",value:function t(){var t=this;return nj(et(),i6(this._points,function(t){return t},function(e,n){return nj(t9(),oc({position:"absolute",transform:"translate(-50%, -50%)",left:"".concat(e.split(" ")[0],"px"),top:"".concat(e.split(" ")[1],"px")}),e,function(e){e.stopPropagation(),t._points=t._points.filter(function(t,e){return e!==n}),t.saveResponse(t._points)})}))}},{key:"reset",value:function t(){this._points=[]}},{key:"validate",value:function t(){return this._points.length>=this.minChoices&&this._points.length<=this.maxChoices}},{key:"response",set:function t(t){this._points=Array.isArray(t)?t:[t]}},{key:"firstUpdated",value:function t(){this._imgElement=this.querySelector("img"),this._imgElement?this._imgElement.addEventListener("click",this._onImageClick):console.warn("No <img> element found in <qti-select-point-interaction>")}},{key:"disconnectedCallback",value:function t(){d(h(n.prototype),"disconnectedCallback",this).call(this),this._imgElement&&this._imgElement.removeEventListener("click",this._onImageClick)}}]);return n}(rD);od.styles=[e9(ee())],eL([i({type:Number,attribute:"max-choices"})],od.prototype,"maxChoices",2),eL([i({type:Number,attribute:"min-choices"})],od.prototype,"minChoices",2),eL([s()],od.prototype,"_points",2),od=eL([rr("qti-select-point-interaction")],od);var oh=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call(this);t.stepLabel=!1;t.reverse=!1;t._handleDisabledChange=function(t,e){};t._handleReadonlyChange=function(t,e){};t.csLive=getComputedStyle(r(t));return t}u(n,[{key:"min",get:function t(){return this._min},set:function t(t){this._min=t,this.value=t,this.style.setProperty("--min","".concat(this._min))}},{key:"max",get:function t(){return this._max},set:function t(t){this._max=t,this.style.setProperty("--max","".concat(this._max))}},{key:"step",get:function t(){return this._step},set:function t(t){this._step=t,this.style.setProperty("--step","".concat(this._step))}},{key:"reset",value:function t(){}},{key:"validate",value:function t(){return!0}},{key:"response",set:function t(t){if(Array.isArray(t)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}var e=parseInt(t);if(Number.isNaN(e)){console.error("QtiSliderInteraction: response is not a number");return}this.value=e}},{key:"render",value:function t(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);var t=(this.value-this.min)/(this.max-this.min)*100;return this.style.setProperty("--value-percentage","".concat(t,"%")),this.setAttribute("aria-valuenow",this.value.toString()),nj(eo(),this.csLive.getPropertyValue("--show-bounds")=="true"?nj(en(),this._min,this._max):nW,this.csLive.getPropertyValue("--show-ticks")=="true"?nj(er()):nW,this._onMouseDown,this._onTouchMove,this.csLive.getPropertyValue("--show-value")=="true"?nj(ei(),this.value):nW)}},{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}},{key:"_onTouchMove",value:function t(t){var e=this;var n=function(t){var n=e.getPositionFromEvent(t),r=n.x,i=r-e._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;e.calculateValue(i),t.stopPropagation()},r=function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),e.saveResponse(e.value.toString())};document.addEventListener("touchmove",n),document.addEventListener("touchend",r);var i=this.getPositionFromEvent(t),o=i.x,a=o-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(a),t.stopPropagation()}},{key:"_onMouseDown",value:function t(t){var e=this;var n=function(t){var n=t.pageX-e._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;e.calculateValue(n),t.preventDefault(),t.stopPropagation()},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),e.saveResponse(e.value.toString())};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r);var i=t.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(i),t.preventDefault(),t.stopPropagation()}},{key:"calculateValue",value:function t(t){var e=this.min+(this.max-this.min)*t/this._rail.getBoundingClientRect().width,n=this.min+Math.round((e-this.min)/this._step)*this._step;this.value=n}},{key:"getPositionFromEvent",value:function t(t){var e;if(t.type=="touchstart"||t.type=="touchmove"||t.type=="touchend"||t.type=="touchcancel"){var n=O(t.originalEvent)>"u"?t:t.originalEvent,r=n.touches[0]||n.changedTouches[0];e={x:r.pageX,y:r.pageY}}else(t.type=="mousedown"||t.type=="mouseup"||t.type=="mousemove"||t.type=="mouseover"||t.type=="mouseout"||t.type=="mouseenter"||t.type=="mouseleave")&&(e={x:t.clientX,y:t.clientY});return e}}]);return n}(rD);oh.styles=[e9(ea())],eL([l("#knob")],oh.prototype,"_knob",2),eL([l("#rail")],oh.prototype,"_rail",2),eL([i({type:Number})],oh.prototype,"value",2),eL([i({type:Boolean,attribute:"step-label"})],oh.prototype,"stepLabel",2),eL([i({type:Boolean})],oh.prototype,"reverse",2),eL([i({type:Number,attribute:"lower-bound"})],oh.prototype,"min",1),eL([i({type:Number,attribute:"upper-bound"})],oh.prototype,"max",1),eL([i({type:Number,attribute:"step"})],oh.prototype,"step",1),eL([v("disabled",{waitUntilFirstUpdate:!0})],oh.prototype,"_handleDisabledChange",2),eL([v("readonly",{waitUntilFirstUpdate:!0})],oh.prototype,"_handleReadonlyChange",2),oh=eL([rr("qti-slider-interaction")],oh);var op=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(es(),this.handleSlotChange)}},{key:"handleSlotChange",value:function t(t){var e;var n;var r=Array.from((n=(e=this.firstElementChild)===null||e===void 0?void 0:e.childNodes)!==null&&n!==void 0?n:[]).find(function(t){return t.nodeType===Node.COMMENT_NODE});try{var i;this.operatorFunction=new Function("context","fn","item",(i=r.textContent)!==null&&i!==void 0?i:"")}catch(t){console.error("custom-operator contains invalid javascript code",t)}}},{key:"calculate",value:function t(){var t=this;var e={variable:function(e){var n,r;var i;return(i=(r=t._context)===null||r===void 0?void 0:(n=r.variables.find(function(t){return t.identifier===e}))===null||n===void 0?void 0:n.value)!==null&&i!==void 0?i:""},correct:function(e){var n,r;var i;return(i=(r=t._context)===null||r===void 0?void 0:(n=r.variables.find(function(t){return t.identifier===e}))===null||n===void 0?void 0:n.correctResponse)!==null&&i!==void 0?i:""}},n={getVariable:function(e){var n;return(n=t._context)===null||n===void 0?void 0:n.variables.find(function(t){return t.identifier===e})},updateOutcomeVariable:function(e,n){t.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:e,value:n}}))},updateResponseVariable:function(e,n){t.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:e,response:n}}))}};return this.operatorFunction(this._context,e,n)}}]);return n}(rt);eL([e({context:rl,subscribe:!0}),s()],op.prototype,"_context",2),op=eL([rr("qti-custom-operator")],op);var of=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("qti-register-hotspot",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"render",value:function t(){return nj(el())}}]);return n}(rt);of.styles=e9(eu()),of=eL([rr("qti-associable-hotspot")],of);var ov=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"render",value:function t(){return nj(ec())}}]);return n}(rt);ov.styles=e9(ed()),eL([i({type:Number,reflect:!0})],ov.prototype,"tabindex",2),ov=eL([rr("qti-gap")],ov);var og=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"connectedCallback",value:function t(){this.setAttribute("slot","qti-gap-img")}}]);return n}(rt);og.styles=e9(eh()),eL([i({type:Number,reflect:!0})],og.prototype,"tabindex",2),og=eL([rr("qti-gap-img")],og);var oy=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.tabindex=0;return t}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.setAttribute("slot","qti-gap-text")}},{key:"render",value:function t(){return nj(ep())}}]);return n}(_(rt,"qti-gap-text"));oy.styles=e9(ef()),eL([i({type:Number,reflect:!0})],oy.prototype,"tabindex",2),oy=eL([rr("qti-gap-text")],oy);var om=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}return n}(_(rt,"qti-hotspot-choice"));om.styles=e9(ev()),eL([i({attribute:"aria-ordervalue",type:Number,reflect:!0})],om.prototype,"order",2),om=eL([rr("qti-hotspot-choice")],om);var ob=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(eg())}}]);return n}(_(rt,"qti-hottext"));ob.styles=e9(ey()),ob=eL([rr("qti-hottext")],ob);var oq=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"connectedCallback",value:function t(){d(h(n.prototype),"connectedCallback",this).call(this),this.addEventListener("click",this._onSelectInlineChoice),this.dispatchEvent(new CustomEvent("qti-inline-choice-register",{bubbles:!0,cancelable:!1,composed:!0}))}},{key:"disconnectedCallback",value:function t(){this.removeEventListener("click",this._onSelectInlineChoice)}},{key:"render",value:function t(){return nj(eb())}},{key:"_onSelectInlineChoice",value:function t(){this.dispatchEvent(new CustomEvent("qti-inline-choice-select",{bubbles:!0,cancelable:!1,composed:!0,detail:{identifier:this.identifier}}))}}],[{key:"styles",get:function t(){return[e9(em())]}}]);return n}(rt);eL([i({type:String})],oq.prototype,"identifier",2),oq=eL([rr("qti-inline-choice")],oq);var ok=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);return e.apply(this,arguments)}u(n,[{key:"render",value:function t(){return nj(ek(),this.marker?nj(eq(),this.marker):nW)}}]);return n}(_(rt,"qti-simple-choice"));ok.styles=e9(ew()),eL([i({type:String,attribute:!1})],ok.prototype,"marker",2),ok=eL([rr("qti-simple-choice")],ok);console.log("%cC\xbfTO%cLab%c: qti-components loaded","font-weight:bold; color:green",'font-family: "PT Sans", font-weight:bold; color:green; font-size: smaller;vertical-align: sub',"font-weight:unset");var ow="@layer qti-base, qti-components, qti-utilities, qti-variants, qti-extended;\n\n/* \nBase variables on PNP \nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.x51afjl5r8gl\nfont-face\nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.r3hufj74r1do\nline-spacing\nhttps://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl\n*/\n\n:root,\n:host {\n /* Primary colors */\n --qti-primary-light: #ffeaea;\n --qti-primary: #f86d70;\n --qti-primary-dark: #a1616a;\n\n /* Secondary colors */\n --qti-secondary-light: #bed4ff;\n --qti-secondary: #6daef8;\n --qti-secondary-dark: #3a449d;\n\n /* Background colors */\n --qti-bg-gray-50: #f9fafb;\n --qti-bg-gray-100: #f3f4f6;\n --qti-bg-white: white;\n --qti-bg-primary: var(--qti-primary);\n\n /* Text colors */\n --qti-text-gray-500: #45484f;\n --qti-text-white: white;\n\n /* Border properties */\n --qti-border-thickness: 1.5px;\n --qti-border-style: solid;\n --qti-border-color-gray: #c6cad0; /* Corresponding to border-gray-400 */\n --qti-border-radius-md: 0.375rem;\n --qti-border-radius-lg: 0.5rem;\n --qti-border-radius-full: 9999px;\n\n /* Padding */\n --qti-padding-sm: 0.125rem; /* py-0.5 */\n --qti-padding-md: 0.5rem; /* py-2 */\n --qti-padding-lg: 0.75rem; /* p-3 */\n --qti-padding-xl: 1rem; /* pl-4 */\n\n /* Form & layout */\n --qti-form-size: 1rem;\n --qti-gap-size: 0.5rem;\n\n /* Typography */\n --qti-font-weight-semibold: 600;\n --qti-line-height: 2.5;\n\n /* Focus & active states */\n --qti-active: blue;\n --qti-focus-color: #bddcff7e;\n --qti-focus-border-width: 5px;\n\n /* Correct/Incorrect feedback */\n --qti-correct: rgb(74 222 128);\n --qti-correct-light: rgb(220 252 231);\n --qti-incorrect: rgb(248 113 113);\n --qti-incorrect-light: rgb(254 226 226);\n\n /* ---- */\n --box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 7.5%);\n --box-shadow-lg: 0 0.5rem 1rem rgb(0 0 0 / 15%);\n --table-border-color: var(--qti-border-color-gray);\n --foreground: var(--qti-bg-gray-50);\n --well-bg: var(--qti-bg-gray-50);\n --well-border: var(--qti-border-color-gray);\n --well-box-shadow: var(--box-shadow);\n}\n\n.chevron {\n background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px;\n}\n\n.handle {\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n background-repeat: repeat-y;\n background-position: left center;\n background-size: 14px 8px;\n}\n\n.check-mask {\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n}\n\n.bordered {\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.borderinvisible {\n border-color: transparent;\n}\n\n.form {\n\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.p-lg {\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl); /* Padding shorthand */\n}\n\n.button {\n\n border-radius: var(--qti-border-radius-md);\n padding: var(--qti-padding-md) var(--qti-padding-md);\n font-weight: var(--qti-font-weight-semibold);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.select {\n\n border-radius: var(--qti-border-radius-md);\n position: relative;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n padding: var(--qti-padding-md) 1.75rem var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */ border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray); outline: none; background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px;\n}\n\n.text {\n\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg); /* Equal padding on all sides */\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.spot {\n\n width: 100%;\n height: 100%;\n background-color: transparent;\n padding: 0;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n/* qti-select-point-interaction */\n\n.point {\n\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem; /* w-6 */\n height: 1.5rem;\n background-color: transparent;\n padding: 0;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.drag {\n\n transition:\n transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl); /* Padding shorthand */\n border-radius: var(--qti-border-radius-md);\n cursor: grab;\n background-color: white;\n font-weight: var(--qti-font-weight-semibold);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n background-repeat: repeat-y;\n background-position: left center;\n background-size: 14px 8px;\n}\n\n.dragging {\n pointer-events: none;\n rotate: -2deg;\n box-shadow:\n 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n}\n\n.drop {\n\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n}\n\n.dropping {\n background-color: var(--qti-primary-light);\n}\n\n.order {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem; /* w-6 */\n height: 1.5rem;\n color: var(--qti-text-white);\n}\n\n.check-size {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n}\n\n.check {\n /* display: flex; */\n\n /* align-items: center; */\n gap: 0.5rem;\n padding: var(--qti-padding-md) var(--qti-padding-md); /* Padding shorthand */\n outline: none;\n border-radius: var(--qti-border-radius-md);\n cursor: pointer;\n}\n\n.check-radio {\n\n border-radius: var(--qti-border-radius-full);\n\n width: var(--qti-form-size);\n\n height: var(--qti-form-size);\n\n align-self: 1;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n}\n\n.check-radio-checked {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n}\n\n.check-checkbox {\n\n border-radius: var(--qti-border-radius-md);\n\n width: var(--qti-form-size);\n\n height: var(--qti-form-size);\n\n align-self: 1;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n}\n\n.check-checkbox-checked {\n\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask); /* check-mask */ -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\"); mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n}\n\n.hov {\n /* background-color: var(--qti-bg-gray-50); */\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n}\n\n.foc {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n}\n\n.act {\n border-color: var(--qti-bg-primary); /* border-primary */\n}\n\n.rdo {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n}\n\n.dis {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n\n /* outline-color: var(--qti-text-gray-50); */\n}\n\n/* base */\n\n/* ============================\n QTI 3 shared css\n 1. Display\n 2. Special Flex styles\n 3. Margin\n 4. Padding\n 5. Horizontal Alignment styles\n 6. Vertical Alignment styles\n 7. Height\n 8. Width\n 9. Text-Indent\n 10. List Style\n 11. Layout\n 12. Other QTI 3 presentation utilities\n ============================ */\n\n/* ==========\n Display css\n =========== */\n\n.qti-display-inline {\n display: inline;\n}\n\n.qti-display-inline-block {\n display: inline-block;\n}\n\n.qti-display-block {\n display: block;\n}\n\n.qti-display-flex {\n display: flexbox;\n display: flex;\n}\n\n.qti-display-inline-flex {\n display: inline-flex;\n}\n\n.qti-display-grid {\n display: grid;\n}\n\n.qti-display-inline-grid {\n display: inline-grid;\n}\n\n.qti-display-table {\n display: table;\n}\n\n.qti-display-table-cell {\n display: table-cell;\n}\n\n.qti-display-table-row {\n display: table-row;\n}\n\n.qti-display-list-item {\n display: list-item;\n}\n\n.qti-display-inherit {\n display: inherit;\n}\n\n/* \n * hidden to screen readers and sighted\n */\n\n.qti-hidden {\n display: none;\n}\n\n/*\n * visible to screen readers, hidden to sighted\n */\n\n.qti-visually-hidden {\n position: fixed !important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n height: 1px;\n width: 1px;\n border: 0;\n margin: -1px;\n}\n\n/* =============================\n Special flex styles\n ============================= */\n\n.qti-flex-direction-column {\n flex-direction: column;\n}\n\n.qti-flex-direction-row {\n flex-direction: row;\n}\n\n.qti-flex-grow-1 {\n flex-grow: 1;\n}\n\n.qti-flex-grow-0 {\n flex-grow: 0;\n}\n\n/* =========\n Margin css\n ========== */\n\n/**\n * For margin Top and Bottom and Left and Right\n */\n\n.qti-margin-0 {\n margin: 0 !important;\n}\n\n.qti-margin-1 {\n margin: 0.25rem !important;\n}\n\n.qti-margin-2 {\n margin: 0.5rem !important;\n}\n\n.qti-margin-3 {\n margin: 1rem !important;\n}\n\n.qti-margin-4 {\n margin: 1.5rem !important;\n}\n\n.qti-margin-5 {\n margin: 3rem !important;\n}\n\n.qti-margin-auto {\n margin: auto !important;\n}\n\n/*\n For margin Left and Right\n */\n\n.qti-margin-x-0 {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n\n.qti-margin-x-1 {\n margin-right: 0.25rem !important;\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-x-2 {\n margin-right: 0.5rem !important;\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-x-3 {\n margin-right: 1rem !important;\n margin-left: 1rem !important;\n}\n\n.qti-margin-x-4 {\n margin-right: 1.5rem !important;\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-x-5 {\n margin-right: 3rem !important;\n margin-left: 3rem !important;\n}\n\n.qti-margin-x-auto {\n margin-right: auto !important;\n margin-left: auto !important;\n}\n\n/*\n For margin Top and Bottom\n */\n\n.qti-margin-y-0 {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n}\n\n.qti-margin-y-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-y-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-y-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-y-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-y-5 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-y-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n/*\n For margin Top\n */\n\n.qti-margin-t-0 {\n margin-top: 0 !important;\n}\n\n.qti-margin-t-1 {\n margin-top: 0.25rem !important;\n}\n\n.qti-margin-t-2 {\n margin-top: 0.5rem !important;\n}\n\n.qti-margin-t-3 {\n margin-top: 1rem !important;\n}\n\n.qti-margin-t-4 {\n margin-top: 1.5rem !important;\n}\n\n.qti-margin-t-5 {\n margin-top: 3rem !important;\n}\n\n.qti-margin-t-auto {\n margin-top: auto !important;\n}\n\n/* \n For margin Bottom\n */\n\n.qti-margin-b-0 {\n margin-bottom: 0 !important;\n}\n\n.qti-margin-b-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.qti-margin-b-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.qti-margin-b-3 {\n margin-bottom: 1rem !important;\n}\n\n.qti-margin-b-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.qti-margin-b-5 {\n margin-bottom: 3rem !important;\n}\n\n.qti-margin-b-auto {\n margin-bottom: auto !important;\n}\n\n/*\n For margin Start LTR\n */\n\n.qti-margin-s-0 {\n margin-left: 0 !important;\n}\n\n.qti-margin-s-1 {\n margin-left: 0.25rem !important;\n}\n\n.qti-margin-s-2 {\n margin-left: 0.5rem !important;\n}\n\n.qti-margin-s-3 {\n margin-left: 1rem !important;\n}\n\n.qti-margin-s-4 {\n margin-left: 1.5rem !important;\n}\n\n.qti-margin-s-5 {\n margin-left: 3rem !important;\n}\n\n.qti-margin-s-auto {\n margin-left: auto !important;\n}\n\n/* \n For margin End LTR\n */\n\n.qti-margin-e-0 {\n margin-right: 0 !important;\n}\n\n.qti-margin-e-1 {\n margin-right: 0.25rem !important;\n}\n\n.qti-margin-e-2 {\n margin-right: 0.5rem !important;\n}\n\n.qti-margin-e-3 {\n margin-right: 1rem !important;\n}\n\n.qti-margin-e-4 {\n margin-right: 1.5rem !important;\n}\n\n.qti-margin-e-5 {\n margin-right: 3rem !important;\n}\n\n.qti-margin-e-auto {\n margin-right: auto !important;\n}\n\n/* =========\n Padding css\n ========== */\n\n/*\n For padding Top and Bottom and Left and Right\n */\n\n.qti-padding-0 {\n padding: 0 !important;\n}\n\n.qti-padding-1 {\n padding: 0.25rem !important;\n}\n\n.qti-padding-2 {\n padding: 0.5rem !important;\n}\n\n.qti-padding-3 {\n padding: 1rem !important;\n}\n\n.qti-padding-4 {\n padding: 1.5rem !important;\n}\n\n.qti-padding-5 {\n padding: 3rem !important;\n}\n\n/*\n For padding Left and Right\n */\n\n.qti-padding-x-0 {\n padding-right: 0 !important;\n padding-left: 0 !important;\n}\n\n.qti-padding-x-1 {\n padding-right: 0.25rem !important;\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-x-2 {\n padding-right: 0.5rem !important;\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-x-3 {\n padding-right: 1rem !important;\n padding-left: 1rem !important;\n}\n\n.qti-padding-x-4 {\n padding-right: 1.5rem !important;\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-x-5 {\n padding-right: 3rem !important;\n padding-left: 3rem !important;\n}\n\n/*\n For padding Top and Bottom\n */\n\n.qti-padding-y-0 {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.qti-padding-y-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-y-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-y-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-y-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-y-5 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Top\n */\n\n.qti-padding-t-0 {\n padding-top: 0 !important;\n}\n\n.qti-padding-t-1 {\n padding-top: 0.25rem !important;\n}\n\n.qti-padding-t-2 {\n padding-top: 0.5rem !important;\n}\n\n.qti-padding-t-3 {\n padding-top: 1rem !important;\n}\n\n.qti-padding-t-4 {\n padding-top: 1.5rem !important;\n}\n\n.qti-padding-t-5 {\n padding-top: 3rem !important;\n}\n\n/*\n For padding Bottom\n */\n\n.qti-padding-b-0 {\n padding-bottom: 0 !important;\n}\n\n.qti-padding-b-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.qti-padding-b-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.qti-padding-b-3 {\n padding-bottom: 1rem !important;\n}\n\n.qti-padding-b-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.qti-padding-b-5 {\n padding-bottom: 3rem !important;\n}\n\n/*\n For padding Start LTR\n */\n\n.qti-padding-s-0 {\n padding-left: 0 !important;\n}\n\n.qti-padding-s-1 {\n padding-left: 0.25rem !important;\n}\n\n.qti-padding-s-2 {\n padding-left: 0.5rem !important;\n}\n\n.qti-padding-s-3 {\n padding-left: 1rem !important;\n}\n\n.qti-padding-s-4 {\n padding-left: 1.5rem !important;\n}\n\n.qti-padding-s-5 {\n padding-left: 3rem !important;\n}\n\n/*\n For padding End LTR\n */\n\n.qti-padding-e-0 {\n padding-right: 0 !important;\n}\n\n.qti-padding-e-1 {\n padding-right: 0.25rem !important;\n}\n\n.qti-padding-e-2 {\n padding-right: 0.5rem !important;\n}\n\n.qti-padding-e-3 {\n padding-right: 1rem !important;\n}\n\n.qti-padding-e-4 {\n padding-right: 1.5rem !important;\n}\n\n.qti-padding-e-5 {\n padding-right: 3rem !important;\n}\n\n/* ====================\n Horizontal alignment\n ==================== */\n\n.qti-align-left {\n text-align: left;\n}\n\n.qti-align-center {\n text-align: center;\n}\n\n.qti-align-right {\n text-align: right;\n}\n\n/* ==================\n Vertical alignment\n ================== */\n\n.qti-valign-top {\n vertical-align: top;\n}\n\n.qti-valign-middle {\n vertical-align: middle;\n}\n\n.qti-valign-baseline {\n vertical-align: baseline;\n}\n\n.qti-valign-bottom {\n vertical-align: bottom;\n}\n\n/* =============\n Height styles\n ============= */\n\n.qti-height-0 {\n height: 0;\n}\n\n.qti-height-px {\n height: 1px;\n}\n\n.qti-height-0p5 {\n height: 0.125rem;\n}\n\n.qti-height-1 {\n height: 0.25rem;\n}\n\n.qti-height-1p5 {\n height: 0.375rem;\n}\n\n.qti-height-2 {\n height: 0.5rem;\n}\n\n.qti-height-2p5 {\n height: 0.625rem;\n}\n\n.qti-height-3 {\n height: 0.75rem;\n}\n\n.qti-height-3p5 {\n height: 0.875rem;\n}\n\n.qti-height-4 {\n height: 1rem;\n}\n\n.qti-height-5 {\n height: 1.25rem;\n}\n\n.qti-height-6 {\n height: 1.5rem;\n}\n\n.qti-height-7 {\n height: 1.75rem;\n}\n\n.qti-height-8 {\n height: 2rem;\n}\n\n.qti-height-9 {\n height: 2.25rem;\n}\n\n.qti-height-10 {\n height: 2.5rem;\n}\n\n.qti-height-11 {\n height: 2.75rem;\n}\n\n.qti-height-12 {\n height: 3rem;\n}\n\n.qti-height-14 {\n height: 3.5rem;\n}\n\n.qti-height-16 {\n height: 4rem;\n}\n\n.qti-height-20 {\n height: 5rem;\n}\n\n.qti-height-24 {\n height: 6rem;\n}\n\n.qti-height-28 {\n height: 7rem;\n}\n\n.qti-height-32 {\n height: 8rem;\n}\n\n.qti-height-36 {\n height: 9rem;\n}\n\n.qti-height-40 {\n height: 10rem;\n}\n\n.qti-height-44 {\n height: 11rem;\n}\n\n.qti-height-48 {\n height: 12rem;\n}\n\n.qti-height-52 {\n height: 13rem;\n}\n\n.qti-height-56 {\n height: 14rem;\n}\n\n.qti-height-60 {\n height: 15rem;\n}\n\n.qti-height-64 {\n height: 16rem;\n}\n\n.qti-height-72 {\n height: 18rem;\n}\n\n.qti-height-80 {\n height: 20rem;\n}\n\n.qti-height-96 {\n height: 24rem;\n}\n\n.qti-height-1-2 {\n height: 50%;\n}\n\n.qti-height-1-3 {\n height: 33.333333%;\n}\n\n.qti-height-2-3 {\n height: 66.666667%;\n}\n\n.qti-height-1-4 {\n height: 25%;\n}\n\n.qti-height-2-4 {\n height: 50%;\n}\n\n.qti-height-3-4 {\n height: 75%;\n}\n\n.qti-height-1-5 {\n height: 20%;\n}\n\n.qti-height-2-5 {\n height: 40%;\n}\n\n.qti-height-3-5 {\n height: 60%;\n}\n\n.qti-height-4-5 {\n height: 80%;\n}\n\n.qti-height-1-6 {\n height: 16.666667%;\n}\n\n.qti-height-2-6 {\n height: 33.333333%;\n}\n\n.qti-height-3-6 {\n height: 50%;\n}\n\n.qti-height-4-6 {\n height: 66.666667%;\n}\n\n.qti-height-5-6 {\n height: 83.333333%;\n}\n\n.qti-height-auto {\n height: auto;\n}\n\n.qti-height-full {\n height: 100%;\n}\n\n/* ============\n Width styles\n ============ */\n\n.qti-width-0 {\n width: 0;\n}\n\n.qti-width-px {\n width: 1px;\n}\n\n.qti-width-0p5 {\n width: 0.125rem;\n}\n\n.qti-width-1 {\n width: 0.25rem;\n}\n\n.qti-width-1p5 {\n width: 0.375rem;\n}\n\n.qti-width-2 {\n width: 0.5rem;\n}\n\n.qti-width-2p5 {\n width: 0.625rem;\n}\n\n.qti-width-3 {\n width: 0.75rem;\n}\n\n.qti-width-3p5 {\n width: 0.875rem;\n}\n\n.qti-width-4 {\n width: 1rem;\n}\n\n.qti-width-5 {\n width: 1.25rem;\n}\n\n.qti-width-6 {\n width: 1.5rem;\n}\n\n.qti-width-7 {\n width: 1.75rem;\n}\n\n.qti-width-8 {\n width: 2rem;\n}\n\n.qti-width-9 {\n width: 2.25rem;\n}\n\n.qti-width-10 {\n width: 2.5rem;\n}\n\n.qti-width-11 {\n width: 2.75rem;\n}\n\n.qti-width-12 {\n width: 3rem;\n}\n\n.qti-width-14 {\n width: 3.5rem;\n}\n\n.qti-width-16 {\n width: 4rem;\n}\n\n.qti-width-20 {\n width: 5rem;\n}\n\n.qti-width-24 {\n width: 6rem;\n}\n\n.qti-width-28 {\n width: 7rem;\n}\n\n.qti-width-32 {\n width: 8rem;\n}\n\n.qti-width-36 {\n width: 9rem;\n}\n\n.qti-width-40 {\n width: 10rem;\n}\n\n.qti-width-44 {\n width: 11rem;\n}\n\n.qti-width-48 {\n width: 12rem;\n}\n\n.qti-width-52 {\n width: 13rem;\n}\n\n.qti-width-56 {\n width: 14rem;\n}\n\n.qti-width-60 {\n width: 15rem;\n}\n\n.qti-width-64 {\n width: 16rem;\n}\n\n.qti-width-72 {\n width: 18rem;\n}\n\n.qti-width-80 {\n width: 20rem;\n}\n\n.qti-width-96 {\n width: 24rem;\n}\n\n.qti-width-auto {\n width: auto;\n}\n\n.qti-width-1-2 {\n width: 50%;\n}\n\n.qti-width-1-3 {\n width: 33.333333%;\n}\n\n.qti-width-2-3 {\n width: 66.666667%;\n}\n\n.qti-width-1-4 {\n width: 25%;\n}\n\n.qti-width-2-4 {\n width: 50%;\n}\n\n.qti-width-3-4 {\n width: 75%;\n}\n\n.qti-width-1-5 {\n width: 20%;\n}\n\n.qti-width-2-5 {\n width: 40%;\n}\n\n.qti-width-3-5 {\n width: 60%;\n}\n\n.qti-width-4-5 {\n width: 80%;\n}\n\n.qti-width-1-6 {\n width: 16.666667%;\n}\n\n.qti-width-2-6 {\n width: 33.333333%;\n}\n\n.qti-width-3-6 {\n width: 50%;\n}\n\n.qti-width-4-6 {\n width: 66.666667%;\n}\n\n.qti-width-5-6 {\n width: 83.333333%;\n}\n\n.qti-width-1-12 {\n width: 8.333333%;\n}\n\n.qti-width-2-12 {\n width: 16.666667%;\n}\n\n.qti-width-3-12 {\n width: 25%;\n}\n\n.qti-width-4-12 {\n width: 33.333333%;\n}\n\n.qti-width-5-12 {\n width: 41.666667%;\n}\n\n.qti-width-6-12 {\n width: 50%;\n}\n\n.qti-width-7-12 {\n width: 58.333333%;\n}\n\n.qti-width-8-12 {\n width: 66.666667%;\n}\n\n.qti-width-9-12 {\n width: 75%;\n}\n\n.qti-width-10-12 {\n width: 83.333333%;\n}\n\n.qti-width-11-12 {\n width: 91.666667%;\n}\n\n.qti-width-full,\n.qti-fullwidth {\n width: 100%;\n}\n\n/* ==================\n Text Indent styles\n ================== */\n\n.qti-text-indent-0 {\n text-indent: 0;\n}\n\n.qti-text-indent-px {\n text-indent: 1px;\n}\n\n.qti-text-indent-0p5 {\n text-indent: 0.125rem;\n}\n\n.qti-text-indent-1 {\n text-indent: 0.25rem;\n}\n\n.qti-text-indent-1p5 {\n text-indent: 0.375rem;\n}\n\n.qti-text-indent-2 {\n text-indent: 0.5rem;\n}\n\n.qti-text-indent-2p5 {\n text-indent: 0.625rem;\n}\n\n.qti-text-indent-3 {\n text-indent: 0.75rem;\n}\n\n.qti-text-indent-3p5 {\n text-indent: 0.875rem;\n}\n\n.qti-text-indent-4 {\n text-indent: 1rem;\n}\n\n.qti-text-indent-5 {\n text-indent: 1.25rem;\n}\n\n.qti-text-indent-6 {\n text-indent: 1.5rem;\n}\n\n.qti-text-indent-7 {\n text-indent: 1.75rem;\n}\n\n.qti-text-indent-8 {\n text-indent: 2rem;\n}\n\n.qti-text-indent-12 {\n text-indent: 3rem;\n}\n\n.qti-text-indent-16 {\n text-indent: 4rem;\n}\n\n.qti-text-indent-20 {\n text-indent: 5rem;\n}\n\n.qti-text-indent-24 {\n text-indent: 6rem;\n}\n\n.qti-text-indent-28 {\n text-indent: 7rem;\n}\n\n.qti-text-indent-32 {\n text-indent: 8rem;\n}\n\n/* =================\n List Style styles\n ================= */\n\n.qti-list-style-type-none {\n list-style-type: none;\n}\n\n.qti-list-style-type-disc {\n list-style-type: disc;\n}\n\n.qti-list-style-type-circle {\n list-style-type: circle;\n}\n\n.qti-list-style-type-square {\n list-style-type: square;\n}\n\n.qti-list-style-type-decimal {\n list-style-type: decimal;\n}\n\n.qti-list-style-type-decimal-leading-zero {\n list-style-type: decimal-leading-zero;\n}\n\n.qti-list-style-type-lower-alpha {\n list-style-type: lower-alpha;\n}\n\n.qti-list-style-type-upper-alpha {\n list-style-type: upper-alpha;\n}\n\n.qti-list-style-type-lower-roman {\n list-style-type: lower-roman;\n}\n\n.qti-list-style-type-upper-roman {\n list-style-type: upper-roman;\n}\n\n.qti-list-style-type-lower-latin {\n list-style-type: lower-latin;\n}\n\n.qti-list-style-type-upper-latin {\n list-style-type: upper-latin;\n}\n\n.qti-list-style-type-lower-greek {\n list-style-type: lower-greek;\n}\n\n.qti-list-style-type-arabic-indic {\n list-style-type: arabic-indic;\n}\n\n.qti-list-style-type-armenian {\n list-style-type: armenian;\n}\n\n.qti-list-style-type-lower-armenian {\n list-style-type: lower-armenian;\n}\n\n.qti-list-style-type-upper-armenian {\n list-style-type: upper-armenian;\n}\n\n.qti-list-style-type-bengali {\n list-style-type: bengali;\n}\n\n.qti-list-style-type-cambodian {\n list-style-type: cambodian;\n}\n\n.qti-list-style-type-simp-chinese-formal {\n list-style-type: simp-chinese-formal;\n}\n\n.qti-list-style-type-simp-chinese-informal {\n list-style-type: simp-chinese-informal;\n}\n\n.qti-list-style-type-trad-chinese-formal {\n list-style-type: trad-chinese-formal;\n}\n\n.qti-list-style-type-trad-chinese-informal {\n list-style-type: trad-chinese-informal;\n}\n\n.qti-list-style-type-cjk-ideographic {\n list-style-type: cjk-ideographic;\n}\n\n.qti-list-style-type-cjk-heavenly-stem {\n list-style-type: cjk-heavenly-stem;\n}\n\n.qti-list-style-type-cjk-earthly-branch {\n list-style-type: cjk-earthly-branch;\n}\n\n.qti-list-style-type-devanagari {\n list-style-type: devanagari;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-er {\n list-style-type: ethiopic-halehame-ti-er;\n}\n\n.qti-list-style-type-ethiopic-halehame-ti-et {\n list-style-type: ethiopic-halehame-ti-et;\n}\n\n.qti-list-style-type-ethiopic-halehame-am {\n list-style-type: ethiopic-halehame-am;\n}\n\n.qti-list-style-type-ethiopic-halehame {\n list-style-type: ethiopic-halehame;\n}\n\n.qti-list-style-type-georgian {\n list-style-type: georgian;\n}\n\n.qti-list-style-type-gujarati {\n list-style-type: gujarati;\n}\n\n.qti-list-style-type-gurmukhi {\n list-style-type: gurmukhi;\n}\n\n.qti-list-style-type-hangul {\n list-style-type: hangul;\n}\n\n.qti-list-style-type-hangul-consonant {\n list-style-type: hangul-consonant;\n}\n\n.qti-list-style-type-hebrew {\n list-style-type: hebrew;\n}\n\n.qti-list-style-type-hiragana {\n list-style-type: hiragana;\n}\n\n.qti-list-style-type-hiragana-iroha {\n list-style-type: hiragana-iroha;\n}\n\n.qti-list-style-type-khmer {\n list-style-type: khmer;\n}\n\n.qti-list-style-type-korean-hangul-formal {\n list-style-type: korean-hangul-formal;\n}\n\n.qti-list-style-type-korean-hanja-formal {\n list-style-type: korean-hanja-formal;\n}\n\n.qti-list-style-type-korean-hanja-informal {\n list-style-type: korean-hanja-informal;\n}\n\n.qti-list-style-type-lao {\n list-style-type: lao;\n}\n\n.qti-list-style-type-malayalam {\n list-style-type: malayalam;\n}\n\n.qti-list-style-type-mongolian {\n list-style-type: mongolian;\n}\n\n.qti-list-style-type-myanmar {\n list-style-type: myanmar;\n}\n\n.qti-list-style-type-oriya {\n list-style-type: oriya;\n}\n\n.qti-list-style-type-persian {\n list-style-type: persian;\n}\n\n.qti-list-style-type-thai {\n list-style-type: thai;\n}\n\n.qti-list-style-type-tibetan {\n list-style-type: tibetan;\n}\n\n.qti-list-style-type-telugu {\n list-style-type: telugu;\n}\n\n.qti-list-style-type-urdu {\n list-style-type: urdu;\n}\n\n/* =========================\n Other QTI 3 Presentation Utilities\n ========================= */\n\n.qti-bordered {\n border: 1px solid var(--table-border-color);\n}\n\n.qti-underline {\n text-decoration: underline;\n text-decoration-color: var(--foreground);\n}\n\n.qti-italic {\n font-style: italic;\n}\n\n.qti-well {\n min-height: 20px;\n padding: 19px;\n margin-bottom: 20px;\n background-color: var(--well-bg);\n border: var(--well-border);\n border-radius: 4px;\n box-shadow: var(--well-box-shadow);\n}\n\n/* Set writing-mode to vertical-rl \n Typical for CJK vertical text */\n\n.qti-writing-mode-vertical-rl {\n writing-mode: vertical-rl;\n}\n\n/* Set writing-mode to vertical-lr\n Typical for Mongolian vertical text */\n\n.qti-writing-mode-vertical-lr {\n writing-mode: vertical-lr;\n}\n\n/* Set writing-mode to horizontal-tb \n Browser default */\n\n.qti-writing-mode-horizontal-tb {\n writing-mode: horizontal-tb;\n}\n\n/* Float an element left */\n\n.qti-float-left {\n float: left;\n}\n\n/* Float an element right */\n\n.qti-float-right {\n float: right;\n}\n\n/* Remove a float */\n\n.qti-float-none {\n float: none;\n}\n\n/* Clearfix Hack to apply to a container of \n floated content that overflows the container. */\n\n.qti-float-clearfix::after {\n content: '';\n clear: both;\n display: table;\n}\n\n.qti-float-clear-left\n .qti-float-clear-right\n .qti-float-clear-both\n \n /* Set text-orientation to upright */\n .qti-text-orientation-upright {\n text-orientation: upright;\n}\n\n@layer qti-base {\n .qti-layout-row {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n gap: 2.1276595745%;\n }\n\n .qti-layout-row [class*='qti-layout-col'] {\n box-sizing: border-box;\n }\n\n .qti-layout-col1 {\n width: 6.3829787234%;\n }\n\n .qti-layout-col2 {\n width: 14.8936170213%;\n }\n\n .qti-layout-col3 {\n width: 23.4042553191%;\n }\n\n .qti-layout-col4 {\n width: 31.914893617%;\n }\n\n .qti-layout-col5 {\n width: 40.4255319149%;\n }\n\n .qti-layout-col6 {\n width: 48.9361702128%;\n }\n\n .qti-layout-col7 {\n width: 57.4468085106%;\n }\n\n .qti-layout-col8 {\n width: 65.9574468085%;\n }\n\n .qti-layout-col9 {\n width: 74.4680851064%;\n }\n\n .qti-layout-col10 {\n width: 82.9787234043%;\n }\n\n .qti-layout-col11 {\n width: 91.4893617021%;\n }\n\n .qti-layout-col12 {\n width: 100%;\n }\n\n .qti-layout-offset1 {\n margin-left: 8.5106382979%;\n }\n\n .qti-layout-offset2 {\n margin-left: 17.0212765957%;\n }\n\n .qti-layout-offset3 {\n margin-left: 25.5319148936%;\n }\n\n .qti-layout-offset4 {\n margin-left: 34.0425531915%;\n }\n\n .qti-layout-offset5 {\n margin-left: 42.5531914894%;\n }\n\n .qti-layout-offset6 {\n margin-left: 51.0638297872%;\n }\n\n .qti-layout-offset7 {\n margin-left: 59.5744680851%;\n }\n\n .qti-layout-offset8 {\n margin-left: 68.085106383%;\n }\n\n .qti-layout-offset9 {\n margin-left: 76.5957446809%;\n }\n\n .qti-layout-offset10 {\n margin-left: 85.1063829787%;\n }\n\n .qti-layout-offset11 {\n margin-left: 93.6170212766%;\n }\n\n .qti-layout-offset12 {\n margin-left: 102.1276595745%;\n }\n\n @media (width <= 767px) {\n [class*='qti-layout-col'] {\n width: 100%;\n }\n }\n}\n\n[view],\nqti-outcome-declaration,\nqti-response-declaration {\n display: none;\n}\n\n[view].show {\n display: block;\n}\n\n:host {\n box-sizing: border-box;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: inherit;\n}\n\n[popover] {\n position: fixed;\n inset: 0;\n margin: auto;\n border: solid;\n padding: 0.25em;\n overflow: auto;\n color: CanvasText;\n background-color: Canvas;\n}\n\n[popovertarget] {\n all: unset;\n cursor: pointer;\n}\n\n/* components */\n\n@layer qti-components {\n qti-choice-interaction {\n &.qti-input-control-hidden {\n & qti-simple-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n &:not(.qti-input-control-hidden) {\n & qti-simple-choice {\n\n &:not([aria-disabled='true'], [aria-readonly='true']):hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n &::part(cha) {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n }\n\n &[role='radio']::part(ch) {\n border-radius: var(--qti-border-radius-full);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='radio'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n }\n\n &[role='checkbox']::part(ch) {\n border-radius: var(--qti-border-radius-md);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='checkbox'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask);\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n }\n\n gap: 0.5rem;\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n outline: none;\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: pointer\n }\n }\n\n & qti-simple-choice {\n &[data-correct-response='true'] {\n &::after {\n content: '\\02714';\n color: #16a34a; /* text-green-600 */\n }\n }\n }\n\n & qti-simple-choice > p {\n margin: 0;\n padding: 0;\n }\n }\n\n qti-text-entry-interaction {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus-within {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(input) {\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg);\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n }\n\n qti-extended-text-interaction {\n &::part(textarea) {\n border-radius: 0;\n cursor: text;\n padding: var(--qti-padding-lg);\n background: unset;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus-within {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n }\n\n qti-gap-match-interaction {\n & qti-gap-text {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n & qti-gap {\n\n display: inline-flex;\n width: 8rem; /* w-32 */\n &:empty::after {\n padding: var(--qti-padding-md) var(--qti-padding-lg); /* Padding shorthand */\n content: '\\0000a0'; /* when empty, put a space in it */\n }\n\n &:not(:empty) {\n display: inline-flex;\n padding: 0;\n width: auto;\n }\n\n &:not(:empty) > * {\n flex: 1;\n transform: rotate(0); /* rotate-0 */\n box-shadow: 0 0 0 1px #e5e7eb; /* ring-gray-200 */\n }\n\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n\n border-radius: var(--qti-border-radius-lg);\n\n position: relative;\n\n background-color: var(--qti-bg-white);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n qti-hotspot-interaction {\n & qti-hotspot-choice {\n &[shape='circle'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='rect'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='poly'] {\n &:hover::after {\n\n content: '';\n width: 100%;\n height: 100%;\n background: repeating-linear-gradient(\n 45deg,\n var(--qti-primary),\n var(--qti-primary) 5px,\n transparent 5px,\n transparent 10px\n );\n display: block;\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-checked='true']::after {\n\n content: '';\n width: 100%;\n height: 100%;\n background: repeating-linear-gradient(\n 45deg,\n transparent,\n transparent 5px,\n var(--qti-primary) 5px,\n var(--qti-primary) 10px\n );\n display: block;\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n }\n }\n\n qti-hottext-interaction {\n /* &:not(.qti-input-control-hidden),\n &:not(.qti-unselected-hidden) { */\n qti-hottext {\n display: inline-flex;\n align-items: center;\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(cha) {\n width: calc(var(--qti-form-size) - 4px);\n height: calc(var(--qti-form-size) - 4px);\n }\n\n &[role='radio']::part(ch) {\n border-radius: var(--qti-border-radius-full);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='radio'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n }\n\n &[role='checkbox']::part(ch) {\n border-radius: var(--qti-border-radius-md);\n width: var(--qti-form-size);\n height: var(--qti-form-size);\n align-self: 1;\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &[role='checkbox'][aria-checked='true']::part(cha) {\n background-color: var(--qti-bg-primary);\n -webkit-mask-image: var(--check-mask);\n mask-image: var(--check-mask);\n -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E\");\n }\n\n gap: 0.5rem;\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n outline: none;\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: pointer\n }\n\n /* } */\n\n &.qti-input-control-hidden {\n qti-hottext {\n /* --qti-padding-md: 0.1rem;\n --qti-padding-lg: 0.2rem;\n --qti-border-radius-md: 0.3rem;\n --qti-border-thickness: 1px;\n --qti-font-weight-semibold: 400; */\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n /* @layer qti-variants { */\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n padding: var(--qti-padding-md) var(--qti-padding-md);\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n /* } */\n }\n\n &.qti-unselected-hidden {\n qti-hottext {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n cursor: pointer;\n\n &::part(ch) {\n display: none;\n }\n\n &[aria-checked='true'] {\n background-color: var(--qti-primary-light); /* bg-blue-200 */\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n }\n }\n\n qti-inline-choice-interaction {\n &::part(select) {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n border-radius: var(--qti-border-radius-md);\n\n position: relative;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n\n padding: var(--qti-padding-md) 1.75rem var(--qti-padding-md) var(--qti-padding-lg);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background: url(\"data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E\")\n no-repeat center right 6px\n }\n }\n\n qti-match-interaction:not(.qti-match-tabular) {\n /* The draggables */\n & qti-simple-match-set:first-of-type {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start; /* Prevents children from stretching */\n gap: var(--qti-gap-size);\n\n & qti-simple-associable-choice {\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n }\n\n /* The droppables */\n & qti-simple-match-set:last-of-type {\n display: grid;\n grid-auto-columns: 1fr; /* auto-cols-fr */\n grid-auto-flow: column; /* grid-flow-col */\n gap: var(--qti-gap-size); /* gap-2 */\n width: 100%; /* w-full */\n\n & qti-simple-associable-choice {\n display: flex;\n flex-direction: column;\n }\n\n & > qti-simple-associable-choice {\n /* a droppable qti-simple-associable-choice */\n box-sizing: border-box;\n display: grid;\n grid-row: 2 / 4;\n grid-template-rows: subgrid;\n\n & img {\n max-width: 100%;\n height: auto;\n }\n\n &[enabled] {\n &::part(dropslot) {\n background-color: var(--qti-primary-light);\n }\n }\n\n &[disabled] {\n &::part(dropslot) {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n }\n\n &[active] {\n &::part(dropslot) {\n border-color: var(--qti-bg-primary);\n }\n }\n\n &::part(dropslot) {\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n min-height: 6rem;\n gap: var(--qti-gap-size);\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n & > *:not(qti-simple-associable-choice) {\n pointer-events: none;\n }\n\n & > qti-simple-associable-choice {\n\n &::part(dropslot) {\n display: none;\n }\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n flex-basis: fit-content;\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px;\n }\n }\n }\n }\n\n qti-order-interaction {\n &::part(qti-simple-choice),\n & qti-simple-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n &::part(qti-simple-choice) {\n display: flex;\n overflow: hidden;\n align-items: center;\n width: 100%;\n text-overflow: ellipsis;\n }\n\n &::part(drops) {\n gap: 0.5rem; /* gap-2 */\n }\n\n &::part(drags) {\n gap: 0.5rem; /* gap-2 */\n }\n\n &::part(drop-list) {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n display: flex;\n min-height: 4rem;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &::part(active) {\n border-color: var(--qti-bg-primary);\n }\n }\n\n qti-associate-interaction {\n & qti-simple-associable-choice, /* drags when in lightdom */\n &::part(qti-simple-associable-choice) /* drags when in shadowdom */ {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[dragging] {\n pointer-events: none;\n rotate: -2deg;\n box-shadow: 0 8px 12px rgb(0 0 0 / 20%),\n 0 4px 8px rgb(0 0 0 / 10%);\n }\n\n transition: transform 200ms ease-out,\n box-shadow 200ms ease-out,\n rotate 200ms ease-out;\n\n padding: var(--qti-padding-md) var(--qti-padding-lg) var(--qti-padding-md) var(--qti-padding-xl);\n\n border-radius: var(--qti-border-radius-md);\n\n cursor: grab;\n\n background-color: white;\n\n font-weight: var(--qti-font-weight-semibold);\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n\n background-image: radial-gradient(\n circle at center,\n rgb(0 0 0 / 10%) 0,\n rgb(0 0 0 / 20%) 2px,\n rgb(255 255 255 / 0%) 2px,\n rgb(255 255 255 / 0%) 100%\n );\n\n background-repeat: repeat-y;\n\n background-position: left center;\n\n background-size: 14px 8px\n }\n\n /* display: flex;\n overflow: hidden;\n align-items: center; */\n\n /* &::part(drop-container) {\n display: flex;\n flex-direction: column;\n gap: var(--qti-gap-size);\n } */\n\n &::part(drop-list) {\n\n display: grid;\n height: 3rem;\n min-width: 10rem;\n background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><circle cx=\"10\" cy=\"10\" r=\"7\" stroke=\"%23CCCCCC\" stroke-width=\"1\" fill=\"transparent\" /></svg>')\n center no-repeat;\n border-radius: var(--qti-border-radius-lg);\n position: relative;\n background-color: var(--qti-bg-white);\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n outline: none;\n }\n\n &::part(drop-list):focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &::part(drop-list)[dragging] {\n border-color: var(--qti-bg-primary);\n }\n\n /* &::part(drop-list) {\n @apply act;\n } */\n }\n\n qti-graphic-order-interaction {\n & qti-hotspot-choice {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n &[aria-ordervalue] {\n\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: var(--qti-bg-primary);\n border-radius: var(--qti-border-radius-full);\n width: 1.5rem;\n height: 1.5rem;\n color: var(--qti-text-white);\n }\n\n &[aria-ordervalue]::after {\n content: attr(aria-ordervalue) !important;\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n\n qti-graphic-associate-interaction {\n position: relative;\n display: block;\n\n & qti-associable-hotspot {\n &[shape='circle'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n\n &[shape='square'] {\n\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n &[aria-checked='true'] {\n border-color: var(--qti-bg-primary);\n }\n\n &[aria-readonly='true'] {\n cursor: pointer;\n background-color: white;\n outline: 0;\n border: none;\n }\n\n &[aria-disabled='true'] {\n cursor: not-allowed;\n background-color: var(--qti-bg-gray-100);\n color: var(--qti-text-gray-500);\n border-color: var(--qti-border-color-gray);\n outline: 4px solid var(--qti-bg-gray-100);\n }\n\n width: 100%;\n\n height: 100%;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none\n }\n }\n }\n\n qti-graphic-gap-match-interaction {\n position: relative;\n\n & img {\n margin: 0;\n padding: 0;\n }\n }\n\n qti-slider-interaction {\n display: block;\n\n --qti-tick-color: rgb(229 231 235 / 100%);\n --qti-tick-width: 1px;\n\n &::part(slider) {\n margin-left: 2rem; /* mx-8 */\n margin-right: 2rem;\n padding-bottom: 1rem; /* pb-4 */\n padding-top: 1.25rem; /* pt-5 */\n }\n\n --show-bounds: true;\n\n &::part(bounds) {\n display: flex;\n width: 100%;\n justify-content: space-between;\n margin-bottom: 0.5rem; /* mb-2 */\n }\n\n --show-ticks: true;\n\n &::part(ticks) {\n margin-left: 0.125rem; /* mx-0.5 */\n margin-right: 0.125rem;\n margin-bottom: 0.25rem; /* mb-1 */\n height: 0.5rem; /* h-2 */\n background-position: 0 center;\n background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x;\n background-size: calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;\n }\n\n &::part(rail) {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: 0.375rem; /* h-1.5 */\n width: 100%;\n cursor: pointer;\n border-radius: 9999px; /* rounded-full */\n border: 1px solid #d1d5db; /* border-gray-300 */\n background-color: #e5e7eb; /* bg-gray-200 */\n }\n\n &::part(knob) {\n background-color: var(--qti-primary);\n position: relative;\n height: 1rem; /* h-4 */\n width: 1rem; /* w-4 */\n transform-origin: center;\n transform: translateX(-50%);\n cursor: pointer;\n border-radius: 9999px; /* rounded-full */\n left: var(--value-percentage);\n }\n\n --show-value: true;\n\n &::part(value) {\n position: absolute;\n bottom: 2rem; /* bottom-8 */\n left: 0.5rem; /* left-2 */\n transform: translateX(-50%);\n cursor: pointer;\n border-radius: 0.25rem; /* rounded */\n background-color: #f3f4f6; /* bg-gray-100 */\n padding: 0.25rem 0.5rem; /* px-2 py-1 */\n text-align: center;\n color: #6b7280; /* text-gray-500 */\n }\n }\n\n qti-select-point-interaction {\n &::part(point) {\n &:hover {\n box-shadow: 0 2px 4px rgb(0 0 0 / 20%);\n }\n\n &:focus {\n outline: var(--qti-focus-border-width) solid var(--qti-focus-color);\n }\n\n border-radius: var(--qti-border-radius-full);\n\n width: 1.5rem;\n\n height: 1.5rem;\n\n background-color: transparent;\n\n padding: 0;\n\n border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);\n\n outline: none;\n }\n }\n\n qti-position-object-stage {\n & qti-position-object-interaction {\n /* no styles necessary, only layout styles, defined in the component */\n }\n }\n\n qti-prompt {\n margin: 0.5rem 0; /* my-2 */\n display: block;\n width: 100%;\n }\n}\n\n/* utilities */\n\n/* @import './styles/qti-utilities/qti-styles'; */\n\n/* variants */\n\n/* @import './styles/qti-variants/qti-input-width'; */\n\n/* @import './styles/qti-variants/qti-interactions'; */\n";var ox,oC,oE=function(t){"use strict";p(n,t);var e=$(n);function n(){a(this,n);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));eH(r(t),ox,null);eH(r(t),oC,null);return t}u(n,[{key:"xmlDoc",set:function t(t){var e=this;if(!eV(this,ox)){ez(this,ox,this.attachShadow({mode:"open"}));var n=new CSSStyleSheet;n.replaceSync(ow),eV(this,ox).adoptedStyleSheets=[n],eV(this,ox).innerHTML="",eV(this,ox).addEventListener("qti-assessment-item-connected",function(t){var n=t.target;return ez(e,oC,n)})}eV(this,ox).innerHTML="",eV(this,ox).appendChild(t.cloneNode(!0))}},{key:"processResponse",value:function t(){var t;((t=eV(this,oC))===null||t===void 0?void 0:t.processResponse())||console.warn("No qti-assessment-item found")}},{key:"variables",get:function t(){var t;return((t=eV(this,oC))===null||t===void 0?void 0:t.variables)||console.warn("No qti-assessment-item found")},set:function t(t){eV(this,oC).variables=t}},{key:"attributeChangedCallback",value:function t(t,e,n){switch(t){case"view":break;default:e!==n&&(this[t]=n);break}}}]);return n}(M(HTMLElement));ox=new WeakMap,oC=new WeakMap;customElements.define("qti-item",oE);var oA=function(t){return t.endsWith("/")?t:"".concat(t,"/")},oS=function(){var t=o(function(t,e){var n,r,i,o,a,s;var l=arguments;return L(this,function(u){switch(u.label){case 0:n=l.length>2&&l[2]!==void 0?l[2]:!0;r=oA(t);return[4,rh().load("".concat(r,"imsmanifest.xml")).then(function(t){return t.assessmentTest()})];case 1:i=u.sent();return[4,rp().load("".concat(r).concat(i.href)).then(function(t){return t.items()})];case 2:o=u.sent(),a="".concat(r).concat(i.href.substring(0,i.href.lastIndexOf("/")),"/").concat(o[e].href);return[4,rd().load(a,n).then(function(t){return t.path(a.substring(0,a.lastIndexOf("/"))).stripStyleSheets()})];case 3:s=u.sent();return[2,{itemHTMLDoc:s.htmldoc(),itemHTML:s.html(),items:o}]}})});return function e(e,n){return t.apply(this,arguments)}}(),o_=function(){var t=o(function(t){var e,n,r,i,o,a;return L(this,function(s){switch(s.label){case 0:e=oA(t);return[4,rh().load("".concat(e,"imsmanifest.xml")).then(function(t){return t.assessmentTest()})];case 1:n=s.sent();return[4,rp().load("".concat(e).concat(n.href)).then(function(t){return t.htmldoc()})];case 2:r=s.sent();return[4,rp().load("".concat(e).concat(n.href)).then(function(t){return t.items()})];case 3:i=s.sent(),o="".concat(e.substring(0,e.lastIndexOf("/")),"/").concat(n.href.substring(0,n.href.lastIndexOf("/"))),a="".concat(o,"/").concat(i[0].href.substring(0,i[0].href.lastIndexOf("/")));return[2,{assessmentXML:r,itemLocation:a,assessmentLocation:o,items:i,testIdentifier:n.identifier}]}})});return function e(e){return t.apply(this,arguments)}}(),oR=function(){var t=o(function(t){var e;var n=arguments;return L(this,function(r){e=n.length>1&&n[1]!==void 0?n[1]:!0;return[2,rd().load(t,e).then(function(e){return e.path(t.substring(0,t.lastIndexOf("/"))).stripStyleSheets().html()})]})});return function e(e){return t.apply(this,arguments)}}();return e$(eU)}();/*! Bundled license information:
|
|
2
2
|
|
|
3
3
|
@lit/context/lib/context-request-event.js:
|
|
4
4
|
(**
|