@pie-element/mc-populated-blank 0.2.13 → 0.3.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/configure.js +2 -0
  3. package/dist/author/index.d.ts +0 -1
  4. package/dist/author/index.js +1235 -1092
  5. package/dist/author/index.js.map +1 -1
  6. package/dist/browser/author/index.js +50 -0
  7. package/dist/browser/author/index.js.map +1 -0
  8. package/dist/browser/client-BAfWqkS6.js +2358 -0
  9. package/dist/browser/client-BAfWqkS6.js.map +1 -0
  10. package/dist/browser/controller/index.js +219 -0
  11. package/dist/browser/controller/index.js.map +1 -0
  12. package/dist/browser/delivery/index.js +1059 -0
  13. package/dist/browser/delivery/index.js.map +1 -0
  14. package/dist/browser/layoutLimits-ATKOwLHb.js +42 -0
  15. package/dist/browser/layoutLimits-ATKOwLHb.js.map +1 -0
  16. package/dist/browser/print/index.js +125 -0
  17. package/dist/browser/print/index.js.map +1 -0
  18. package/dist/controller/defaults.d.ts +0 -2
  19. package/dist/controller/index.d.ts +0 -3
  20. package/dist/controller/index.js +0 -2
  21. package/dist/controller/index.js.map +1 -1
  22. package/dist/delivery/computeAudioMode.d.ts +0 -1
  23. package/dist/delivery/computeChoiceCorrectness.d.ts +0 -1
  24. package/dist/delivery/computeDisplayState.d.ts +0 -1
  25. package/dist/delivery/computeLayoutProfile.d.ts +0 -1
  26. package/dist/delivery/computeLayoutStyle.d.ts +0 -2
  27. package/dist/delivery/index.d.ts +0 -1
  28. package/dist/delivery/index.js +1527 -1584
  29. package/dist/delivery/index.js.map +1 -1
  30. package/dist/delivery/variant-css-map.d.ts +0 -1
  31. package/dist/index.d.ts +0 -1
  32. package/dist/index.iife.d.ts +0 -3
  33. package/dist/index.iife.js +14 -15
  34. package/dist/index.js +1527 -1584
  35. package/dist/index.js.map +1 -1
  36. package/dist/print/index.d.ts +0 -1
  37. package/dist/print/index.js +1414 -1270
  38. package/dist/print/index.js.map +1 -1
  39. package/dist/runtime-support.d.ts +12 -0
  40. package/dist/runtime-support.js +14 -0
  41. package/dist/runtime-support.js.map +1 -0
  42. package/dist/shared/layoutLimits.d.ts +0 -1
  43. package/dist/shared/types.d.ts +9 -2
  44. package/module/print.js +2312 -0
  45. package/module/print.js.map +1 -0
  46. package/package.json +40 -8
  47. package/dist/author/index.d.ts.map +0 -1
  48. package/dist/controller/defaults.d.ts.map +0 -1
  49. package/dist/controller/index.d.ts.map +0 -1
  50. package/dist/delivery/computeAudioMode.d.ts.map +0 -1
  51. package/dist/delivery/computeChoiceCorrectness.d.ts.map +0 -1
  52. package/dist/delivery/computeDisplayState.d.ts.map +0 -1
  53. package/dist/delivery/computeLayoutProfile.d.ts.map +0 -1
  54. package/dist/delivery/computeLayoutStyle.d.ts.map +0 -1
  55. package/dist/delivery/index.d.ts.map +0 -1
  56. package/dist/delivery/variant-css-map.d.ts.map +0 -1
  57. package/dist/index.d.ts.map +0 -1
  58. package/dist/index.iife.d.ts.map +0 -1
  59. package/dist/print/index.d.ts.map +0 -1
  60. package/dist/shared/layoutLimits.d.ts.map +0 -1
  61. package/dist/shared/types.d.ts.map +0 -1
@@ -7,4 +7,3 @@ export type VariantCssConfig = {
7
7
  export declare const getVariantCssConfig: (customType: unknown) => VariantCssConfig | undefined;
8
8
  export declare const getVariantRootClass: (customType: unknown) => string;
9
9
  export declare const ensureVariantCssInjected: (config?: VariantCssConfig) => void;
10
- //# sourceMappingURL=variant-css-map.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
1
  export { default } from './delivery/index';
2
- //# sourceMappingURL=index.d.ts.map
@@ -70,7 +70,6 @@ declare const controller: {
70
70
  completeAudioEnabled: boolean;
71
71
  audioUrl: string;
72
72
  audioTranscript: string;
73
- showVisibleTranscript: boolean;
74
73
  useFeatureButtonAudio?: boolean;
75
74
  locale: string;
76
75
  shuffle?: boolean;
@@ -141,7 +140,6 @@ declare const controller: {
141
140
  completeAudioEnabled: boolean;
142
141
  audioUrl: string;
143
142
  audioTranscript: string;
144
- showVisibleTranscript: boolean;
145
143
  useFeatureButtonAudio?: boolean;
146
144
  locale: string;
147
145
  shuffle?: boolean;
@@ -159,4 +157,3 @@ declare const controller: {
159
157
  };
160
158
  export { controller };
161
159
  export default Element;
162
- //# sourceMappingURL=index.iife.d.ts.map
@@ -1,6 +1,6 @@
1
- (function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var r={},i=Symbol(),a=`http://www.w3.org/1999/xhtml`,o=`http://www.w3.org/2000/svg`,s=`http://www.w3.org/1998/Math/MathML`,c=Array.isArray,l=Array.prototype.indexOf,u=Array.prototype.includes,d=Array.from,f=Object.keys,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.prototype,_=Array.prototype,v=Object.getPrototypeOf,y=Object.isExtensible,b=()=>{};function x(e){for(var t=0;t<e.length;t++)e[t]()}function S(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var C=1024,w=2048,T=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(){throw Error(`https://svelte.dev/e/hydration_failed`)}function we(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Te(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Oe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ke(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ae(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function je(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw Ae(),r;return O=e}function Me(){return k(Qt(O))}function A(e){if(E){if(Qt(O)!==null)throw Ae(),r;O=e}}function Ne(e=1){if(E){for(var t=e,n=O;t--;)n=Qt(n);O=n}}function Pe(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Qt(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Ae(),r;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var ze=!1,Be=!1,j=null;function Ve(e){j=e}function He(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:K,l:Be&&!t?{s:null,u:null,$:[]}:null}}function Ue(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function We(){return!Be||j!==null&&j.l===null}var Ge=[];function Ke(){var e=Ge;Ge=[],x(e)}function M(e){if(Ge.length===0&&!at){var t=Ge;queueMicrotask(()=>{t===Ge&&Ke()})}Ge.push(e)}function qe(){for(;Ge.length>0;)Ke()}function Je(e){var t=K;if(t===null)return G.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Xe=~(w|T|C);function N(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?N(e,C):N(e,T)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),N(e,C)}var et=!1,tt=!1;function nt(e){var t=tt;try{return tt=!1,[e(),tt]}finally{tt=t}}var rt=new Set,P=null,F=null,it=null,at=!1,ot=!1,st=null,ct=null,lt=0,ut=1,dt=class e{id=ut++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Set;#r=new Map;#i=new Map;#a=null;#o=[];#s=[];#c=new Set;#l=new Set;#u=new Map;#d=new Set;is_fork=!1;#f=!1;#p=new Set;#m(){return this.is_fork||this.#i.size>0}#h(){for(let n of this.#p)for(let r of n.#i.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#u.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#u.has(e)||this.#u.set(e,{d:[],m:[]}),this.#d.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#u.get(e);if(n){this.#u.delete(e);for(var r of n.d)N(r,w),t(r);for(r of n.m)N(r,T),t(r)}this.#d.add(e)}#g(){if(lt++>1e3&&(rt.delete(this),ft()),!this.#m()){for(let e of this.#c)this.#l.delete(e),N(e,w),this.schedule(e);for(let e of this.#l)N(e,T),this.schedule(e)}let t=this.#o;this.#o=[],this.apply();var n=st=[],r=[],i=ct=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw yt(e),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(st=null,ct=null,this.#m()||this.#h()){this.#v(r),this.#v(n);for(let[e,t]of this.#u)vt(e,t)}else{this.#r.size===0&&rt.delete(this),this.#c.clear(),this.#l.clear();for(let e of this.#e)e(this);this.#e.clear(),mt(r),mt(n),this.#a?.resolve()}var o=P;if(this.#o.length>0){let e=o??=this;e.#o.push(...this.#o.filter(t=>!e.#o.includes(t)))}o!==null&&(rt.add(o),o.#g()),ze&&!rt.has(this)&&this.#y()}#_(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#u.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):ze&&i&16777224?n.push(r):Xn(r)&&(i&16&&this.#l.add(r),tr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#c,this.#l)}capture(e,t,n=!1){e.v!==i&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{ot=!0,P=this,this.#g()}finally{lt=0,it=null,st=null,ct=null,ot=!1,P=null,F=null,Lt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),this.#n.clear(),rt.delete(this)}register_created_effect(e){this.#s.push(e)}#y(){for(let l of rt){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#d)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#v([e])});l.activate();var i=new Set,a=new Map;for(var o of t)ht(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#s)!(e.f&155648)&&gt(e,s,a)&&(e.f&4194320?(N(e,w),l.schedule(e)):l.#c.add(e));if(l.#o.length>0){l.apply();for(var c of l.#o)l.#_(c,[],[]);l.#o=[]}l.deactivate()}}for(let e of rt)e.#p.has(this)&&(e.#p.delete(this),e.#p.size===0&&!e.#m()&&(e.activate(),e.#g()))}increment(e,t){let n=this.#r.get(t)??0;if(this.#r.set(t,n+1),e){let e=this.#i.get(t)??0;this.#i.set(t,e+1)}}decrement(e,t,n){let r=this.#r.get(t)??0;if(r===1?this.#r.delete(t):this.#r.set(t,r-1),e){let e=this.#i.get(t)??0;e===1?this.#i.delete(t):this.#i.set(t,e-1)}this.#f||n||(this.#f=!0,M(()=>{this.#f=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#c.add(t);for(let e of t)this.#l.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}on_fork_commit(e){this.#n.add(e)}run_fork_commit_callbacks(){for(let e of this.#n)e(this);this.#n.clear()}settled(){return(this.#a??=S()).promise}static ensure(){if(P===null){let t=P=new e;ot||(rt.add(P),at||M(()=>{P===t&&t.flush()}))}return P}apply(){if(!ze||!this.is_fork&&rt.size===1){F=null;return}F=new Map;for(let[e,[t]]of this.current)F.set(e,t);for(let n of rt)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#p.add(n);else for(let[e,t]of n.previous)F.has(e)||F.set(e,t)}}schedule(e){if(it=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(st!==null&&t===K&&(ze||(G===null||!(G.f&2))&&!et))return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#o.push(t)}};function I(e){var t=at;at=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(qe(),P===null)return n;P.flush()}}finally{at=t}}function ft(){try{Se()}catch(e){Ye(e,it)}}var pt=null;function mt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Xn(r)&&(pt=new Set,tr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&En(r),pt?.size>0)){Lt.clear();for(let e of pt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)pt.has(n)&&(pt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||tr(n)}}pt.clear()}}pt=null}}function ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ht(i,t,n,r):e&4194320&&!(e&2048)&&gt(i,t,r)&&(N(i,w),_t(i))}}function gt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(u.call(t,r))return!0;if(r.f&2&&gt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function _t(e){P.schedule(e)}function vt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,C);for(var n=e.first;n!==null;)vt(n,t),n=n.next}}function yt(e){N(e,C);for(var t=e.first;t!==null;)yt(t),t=t.next}function bt(e){let t=0,n=zt(0),r;return()=>{dn()&&(q(n),yn(()=>(t===0&&(r=ir(()=>e(()=>Ut(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,Ut(n))})})))}}var xt=ie|ae;function St(e,t,n,r){new Ct(e,t,n,r)}var Ct=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=bt(()=>(this.#m=zt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(E){let e=this.#t;Me();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},xt),E&&(this.#e=O)}#g(){try{this.#a=xn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=xn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=xn(()=>e(this.#e)),M(()=>{var e=this.#c=document.createDocumentFragment(),t=Zt();e.append(t),this.#a=this.#x(()=>xn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Dn(this.#o,()=>{this.#o=null}),this.#b(P))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=xn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();jn(this.#a,e);let t=this.#n.pending;this.#o=xn(()=>t(this.#e))}else this.#b(P)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=G,r=j;Rn(this.#i),Ln(this.#i),Ve(this.#i.ctx);try{return dt.ensure(),e()}catch(e){return Je(e),null}finally{Rn(t),Ln(n),Ve(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Dn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&Vt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),q(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(W(this.#a),null),this.#o&&=(W(this.#o),null),this.#s&&=(W(this.#s),null),E&&(k(this.#t),Ne(),k(Pe()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){je();return}r=!0,i&&Oe(),this.#s!==null&&Dn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return xn(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};M(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function wt(e,t,n,r){let i=We()?Ot:At;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=Tt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ye(e,o)}Et()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Dt();function d(){Promise.all(n.map(e=>kt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Et()}):d()}function Tt(){var e=K,t=G,n=j,r=P;return function(i=!0){Rn(e),Ln(t),Ve(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Et(e=!0){Rn(null),Ln(null),Ve(null),e&&P?.deactivate()}function Dt(){var e=K,t=e.b,n=P,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ot(e){var t=2|w;return K!==null&&(K.f|=ae),{ctx:j,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:i,wv:0,parent:K,ac:null}}function kt(e,t,n){let r=K;r===null&&_e();var a=void 0,o=zt(i),s=!G,c=new Map;return vn(()=>{var t=K,n=S();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Et)}catch(e){n.reject(e),Et()}var i=P;if(s){if(t.f&32768)var l=Dt();if(r.b.is_rendered())c.get(i)?.reject(he),c.delete(i);else{for(let e of c.values())e.reject(he);c.clear()}c.set(i,n)}let u=(e,n=void 0)=>{if(l&&l(n===he),!(n===he||t.f&16384)){if(i.activate(),n)o.f|=de,Vt(o,n);else{o.f&8388608&&(o.f^=de),Vt(o,e);for(let[e,t]of c){if(c.delete(e),e===i)break;t.reject(he)}}i.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of c.values())e.reject(he)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function L(e){let t=Ot(e);return ze||Bn(t),t}function At(e){let t=Ot(e);return t.equals=Re,t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)W(t[n])}}function Mt(e){var t,n=K,r=e.parent;if(!Pn&&r!==null&&r.f&24576)return ke(),e.v;Rn(r);try{e.f&=~ce,jt(e),t=Qn(e)}finally{Rn(n)}return t}function Nt(e){var t=Mt(e);if(!e.equals(t)&&(e.wv=Yn(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:P.capture(e,t,!0),e.deps===null))){N(e,C);return}Pn||(F===null?Ze(e):(dn()||P?.is_fork)&&F.set(e,t))}function Pt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=b,t.ac=null,er(t,0),Cn(t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&tr(t)}var It=new Set,Lt=new Map,Rt=!1;function zt(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function R(e,t){let n=zt(e,t);return Bn(n),n}function Bt(e,t=!1,n=!0){let r=zt(e);return t||(r.equals=Re),Be&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function z(e,t,n=!1){return G!==null&&(!In||G.f&131072)&&We()&&G.f&4325394&&(zn===null||!u.call(zn,e))&&De(),Vt(e,n?Gt(t):t,ct)}function Vt(e,t,n=null){if(!e.equals(t)){Lt.set(e,Pn?t:e.v);var r=dt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Mt(t),F===null&&Ze(t)}e.wv=Yn(),Wt(e,w,n),We()&&K!==null&&K.f&1024&&!(K.f&96)&&(Un===null?Wn([e]):Un.push(e)),!r.is_fork&&It.size>0&&!Rt&&Ht()}return t}function Ht(){Rt=!1;for(let e of It)e.f&1024&&N(e,T),Xn(e)&&tr(e);It.clear()}function Ut(e){z(e,e.v+1)}function Wt(e,t,n){var r=e.reactions;if(r!==null)for(var i=We(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&w)===0;if(l&&N(s,t),c&2){var u=s;F?.delete(u),c&65536||(c&512&&(K===null||!(K.f&2097152))&&(s.f|=ce),Wt(u,T,n))}else if(l){var d=s;c&16&&pt!==null&&pt.add(d),n===null?_t(d):n.push(d)}}}}function Gt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=v(e);if(t!==g&&t!==_)return e;var n=new Map,r=c(e),a=R(0),o=null,s=qn,l=e=>{if(qn===s)return e();var t=G,n=qn;Ln(null),Jn(s);var r=e();return Ln(t),Jn(n),r};return r&&n.set(`length`,R(e.length,o)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Te();var i=n.get(t);return i===void 0?l(()=>{var e=R(r.value,o);return n.set(t,e),e}):z(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=l(()=>R(i,o));n.set(t,e),Ut(a)}}else z(r,i),Ut(a);return!0},get(t,r,a){if(r===fe)return e;var s=n.get(r),c=r in t;if(s===void 0&&(!c||m(t,r)?.writable)&&(s=l(()=>R(Gt(c?t[r]:i),o)),n.set(r,s)),s!==void 0){var u=q(s);return u===i?void 0:u}return Reflect.get(t,r,a)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var a=n.get(t);a&&(r.value=q(a))}else if(r===void 0){var o=n.get(t),s=o?.v;if(o!==void 0&&s!==i)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,t){if(t===fe)return!0;var r=n.get(t),a=r!==void 0&&r.v!==i||Reflect.has(e,t);return(r!==void 0||K!==null&&(!a||m(e,t)?.writable))&&(r===void 0&&(r=l(()=>R(a?Gt(e[t]):i,o)),n.set(t,r)),q(r)===i)?!1:a},set(e,t,s,c){var u=n.get(t),d=t in e;if(r&&t===`length`)for(var f=s;f<u.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=l(()=>R(i,o)),n.set(f+``,p)):z(p,i)}if(u===void 0)(!d||m(e,t)?.writable)&&(u=l(()=>R(void 0,o)),z(u,Gt(s)),n.set(t,u));else{d=u.v!==i;var h=l(()=>Gt(s));z(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,s),!d){if(r&&typeof t==`string`){var _=n.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&z(_,v+1)}Ut(a)}return!0},ownKeys(e){q(a);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==i});for(var[r,o]of n)o.v!==i&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ee()}})}var Kt,qt,Jt,Yt;function Xt(){if(Kt===void 0){Kt=window,qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Jt=m(t,`firstChild`).get,Yt=m(t,`nextSibling`).get,y(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),y(n)&&(n.__t=void 0)}}function Zt(e=``){return document.createTextNode(e)}function B(e){return Jt.call(e)}function Qt(e){return Yt.call(e)}function V(e,t){if(!E)return B(e);var n=B(O);if(n===null)n=O.appendChild(Zt());else if(t&&n.nodeType!==3){var r=Zt();return n?.before(r),k(r),r}return t&&rn(n),k(n),n}function $t(e,t=!1){if(!E){var n=B(e);return n instanceof Comment&&n.data===``?Qt(n):n}if(t){if(O?.nodeType!==3){var r=Zt();return O?.before(r),k(r),r}rn(O)}return O}function H(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=Qt(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=Zt();return r===null?i?.after(a):r.before(a),k(a),a}rn(r)}return k(r),r}function en(e){e.textContent=``}function tn(){return!ze||pt!==null?!1:(K.f&ne)!==0}function nn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function rn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var an=!1;function on(){an||(an=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function sn(e){var t=G,n=K;Ln(null),Rn(null);try{return e()}finally{Ln(t),Rn(n)}}function cn(e){K===null&&(G===null&&xe(e),be()),Pn&&ye(e)}function ln(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function un(e,t){var n=K;n!==null&&n.f&8192&&(e|=ee);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)st===null?dt.ensure().schedule(r):st.push(r);else if(t!==null){try{tr(r)}catch(e){throw W(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&ln(i,n),G!==null&&G.f&2&&!(e&64))){var a=G;(a.effects??=[]).push(i)}return r}function dn(){return G!==null&&!In}function fn(e){let t=un(8,null);return N(t,C),t.teardown=e,t}function pn(e){cn(`$effect`);var t=K.f;if(!G&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return un(4|oe,e)}function hn(e){dt.ensure();let t=un(64|ae,e);return()=>{W(t)}}function gn(e){dt.ensure();let t=un(64|ae,e);return(e={})=>new Promise(n=>{e.outro?Dn(t,()=>{W(t),n(void 0)}):(W(t),n(void 0))})}function _n(e){return un(4,e)}function vn(e){return un(ue|ae,e)}function yn(e,t=0){return un(8|t,e)}function U(e,t=[],n=[],r=[]){wt(r,t,n,t=>{un(8,()=>e(...t.map(q)))})}function bn(e,t=0){return un(16|t,e)}function xn(e){return un(32|ae,e)}function Sn(e){var t=e.teardown;if(t!==null){let e=Pn,n=G;Fn(!0),Ln(null);try{t.call(null)}finally{Fn(e),Ln(n)}}}function Cn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&sn(()=>{e.abort(he)});var r=n.next;n.f&64?n.parent=null:W(n,t),n=r}}function wn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||W(t),t=n}}function W(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Tn(e.nodes.start,e.nodes.end),n=!0),N(e,re),Cn(e,t&&!n),er(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Sn(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&En(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Tn(e,t){for(;e!==null;){var n=e===t?null:Qt(e);e.remove(),e=n}}function En(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Dn(e,t,n=!0){var r=[];On(e,r,!0);var i=()=>{n&&W(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function On(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;On(i,t,o?n:!1)}i=a}}}function kn(e){An(e,!0)}function An(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(N(e,w),dt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;An(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function jn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Qt(n);t.append(n),n=i}}var Mn=null,Nn=!1,Pn=!1;function Fn(e){Pn=e}var G=null,In=!1;function Ln(e){G=e}var K=null;function Rn(e){K=e}var zn=null;function Bn(e){G!==null&&(!ze||G.f&2)&&(zn===null?zn=[e]:zn.push(e))}var Vn=null,Hn=0,Un=null;function Wn(e){Un=e}var Gn=1,Kn=0,qn=Kn;function Jn(e){qn=e}function Yn(){return++Gn}function Xn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Xn(a)&&Nt(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,C)}return!1}function Zn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!ze&&zn!==null&&u.call(zn,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Zn(a,t,!1):t===a&&(n?N(a,w):a.f&1024&&N(a,T),_t(a))}}function Qn(e){var t=Vn,n=Hn,r=Un,i=G,a=zn,o=j,s=In,c=qn,l=e.f;Vn=null,Hn=0,Un=null,G=l&96?null:e,zn=null,Ve(e.ctx),In=!1,qn=++Kn,e.ac!==null&&(sn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=P?.is_fork;if(Vn!==null){var m;if(p||er(e,Hn),f!==null&&Hn>0)for(f.length=Hn+Vn.length,m=0;m<Vn.length;m++)f[Hn+m]=Vn[m];else e.deps=f=Vn;if(dn()&&e.f&512)for(m=Hn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Hn<f.length&&(er(e,Hn),f.length=Hn);if(We()&&Un!==null&&!In&&f!==null&&!(e.f&6146))for(m=0;m<Un.length;m++)Zn(Un[m],e);if(i!==null&&i!==e){if(Kn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Kn;if(t!==null)for(let e of t)e.rv=Kn;Un!==null&&(r===null?r=Un:r.push(...Un))}return e.f&8388608&&(e.f^=de),d}catch(e){return Je(e)}finally{e.f^=le,Vn=t,Hn=n,Un=r,G=i,zn=a,Ve(o),In=s,qn=c}}function $n(e,t){let n=t.reactions;if(n!==null){var r=l.call(n,e);if(r!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[r]=n[a],n.pop())}}if(n===null&&t.f&2&&(Vn===null||!u.call(Vn,t))){var o=t;o.f&512&&(o.f^=512,o.f&=~ce),o.v!==i&&Ze(o),Pt(o),er(o,0)}}function er(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)$n(e,n[r])}function tr(e){var t=e.f;if(!(t&16384)){N(e,C);var n=K,r=Nn;K=e,Nn=!0;try{t&16777232?wn(e):Cn(e),Sn(e);var i=Qn(e);e.teardown=typeof i==`function`?i:null,e.wv=Gn}finally{Nn=r,K=n}}}function q(e){var t=(e.f&2)!=0;if(Mn?.add(e),G!==null&&!In&&!(K!==null&&K.f&16384)&&(zn===null||!u.call(zn,e))){var n=G.deps;if(G.f&2097152)e.rv<Kn&&(e.rv=Kn,Vn===null&&n!==null&&n[Hn]===e?Hn++:Vn===null?Vn=[e]:Vn.push(e));else{(G.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[G]:u.call(r,G)||r.push(G)}}if(Pn&&Lt.has(e))return Lt.get(e);if(t){var i=e;if(Pn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||rr(i))&&(a=Mt(i)),Lt.set(i,a),a}var o=(i.f&512)==0&&!In&&G!==null&&(Nn||(G.f&512)!=0),s=(i.f&ne)===0;Xn(i)&&(o&&(i.f|=512),Nt(i)),o&&!s&&(Ft(i),nr(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function nr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ft(t),nr(t))}function rr(e){if(e.v===i)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Lt.has(t)||t.f&2&&rr(t))return!0;return!1}function ir(e){var t=In;try{return In=!0,e()}finally{In=t}}var ar=Symbol(`events`),or=new Set,sr=new Set,cr=null;function lr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;cr=e;var o=0,s=cr===e&&e[ar];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[ar]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){p(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=G,d=K;Ln(null),Rn(null);try{for(var f,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[ar]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){f?m.push(e):f=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(f){for(let e of m)queueMicrotask(()=>{throw e});throw f}}finally{e[ar]=t,delete e.currentTarget,Ln(u),Rn(d)}}}var ur=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function dr(e){return ur?.createHTML(e)??e}function fr(e){var t=nn(`template`);return t.innerHTML=dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function pr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return pr(O,null),O;i===void 0&&(i=fr(a?e:`<!>`+e),n||(i=B(i)));var t=r||qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=B(t),s=t.lastChild;pr(o,s)}else pr(t,t);return t}}function mr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return pr(O,null),O;if(!o){var e=B(fr(a));if(i)for(o=document.createDocumentFragment();B(e);)o.appendChild(B(e));else o=B(e)}var t=o.cloneNode(!0);if(i){var n=B(t),r=t.lastChild;pr(n,r)}else pr(t,t);return t}}function hr(e,t){return mr(e,t,`svg`)}function gr(){if(E)return pr(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=Zt();return e.append(t,n),pr(t,n),e}function Y(e,t){if(E){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Me();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var _r=[`touchstart`,`touchmove`];function vr(e){return _r.includes(e)}function yr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function br(e,t){return Cr(e,t)}function xr(e,t){Xt(),t.intro=t.intro??!1;let n=t.target,i=E,a=O;try{for(var o=B(n);o&&(o.nodeType!==8||o.data!==`[`);)o=Qt(o);if(!o)throw r;D(!0),k(o);let i=Cr(e,{...t,anchor:o});return D(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==r&&console.warn(`Failed to hydrate: `,i),t.recover===!1&&Ce(),Xt(),en(n),D(!1),br(e,t)}finally{D(i),k(a)}}var Sr=new Map;function Cr(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){Xt();var l=void 0,u=gn(()=>{var s=n??t.appendChild(Zt());St(s,{pending:()=>{}},t=>{He({});var n=j;if(o&&(n.c=o),a&&(i.$$events=a),E&&pr(t,null),l=e(t,i)||{},E&&(K.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Ae(),r;Ue()},c);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=vr(r);for(let e of[t,document]){var a=Sr.get(e);a===void 0&&(a=new Map,Sr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,lr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(d(or)),sr.add(f),()=>{for(var e of u)for(let n of[t,document]){var r=Sr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,lr),r.delete(e),r.size===0&&Sr.delete(n)):r.set(e,i)}sr.delete(f),s!==n&&s.parentNode?.removeChild(s)}});return wr.set(l,u),l}var wr=new WeakMap;function Tr(e,t){let n=wr.get(e);return n?(wr.delete(e),n(t)):Promise.resolve()}var Er=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)kn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(W(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();jn(r,t),t.append(Zt()),this.#n.set(e,{effect:r,fragment:t})}else W(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Dn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(W(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=tn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Zt();i.append(a),this.#n.set(e,{effect:xn(()=>t(a)),fragment:i})}else this.#t.set(e,xn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function Dr(e,t,n=!1){var r;E&&(r=O,Me());var i=new Er(e),a=n?ie:0;function o(e,t){if(E){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}bn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Or(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Dn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;kr(e,d(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;en(u),u.append(l),e.items.clear()}kr(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function kr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,jn(a,document.createDocumentFragment())):W(t[i],n)}}var Ar;function jr(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var l=e;o=E?k(B(l)):l.appendChild(Zt())}E&&Me();var u=null,f=At(()=>{var e=n();return c(e)?e:e==null?[]:d(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=u,Nr(v,p,o,t,r),u!==null&&(p.length===0?u.f&33554432?(u.f^=se,Fr(u,null,o)):kn(u):Dn(u,()=>{u=null})))}function _(e){v.pending.delete(e)}var v={effect:bn(()=>{p=q(f);var e=p.length;let c=!1;E&&Fe(o)===`[!`!=(e===0)&&(o=Pe(),k(o),D(!1),c=!0);for(var l=new Set,d=P,v=tn(),y=0;y<e;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,D(!1));var b=p[y],x=r(b,y),S=h?null:s.get(x);S?(S.v&&Vt(S.v,b),S.i&&Vt(S.i,y),v&&d.unskip_effect(S.e)):(S=Pr(s,h?o:Ar??=Zt(),b,x,y,i,t,n),h||(S.e.f|=se),s.set(x,S)),l.add(x)}if(e===0&&a&&!u&&(h?u=xn(()=>a(o)):(u=xn(()=>a(Ar??=Zt())),u.f|=se)),e>l.size&&ve(``,``,``),E&&e>0&&k(Pe()),!h)if(m.set(d,l),v){for(let[e,t]of s)l.has(e)||d.skip_effect(t.e);d.oncommit(g),d.ondiscard(_)}else g(d);c&&D(!0),q(f)}),flags:t,items:s,pending:m,outrogroups:null,fallback:u};h=!1,E&&(o=O)}function Mr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Nr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Mr(e.effect.first),l,u=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(kn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===c)Fr(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ir(e,u,_),Ir(e,_,y),Fr(_,y,n),u=_,p=[],m=[],c=Mr(u.next);continue}if(_!==c){if(l!==void 0&&l.has(_)){if(p.length<m.length){var b=m[0],x;u=b.prev;var S=p[0],C=p[p.length-1];for(x=0;x<p.length;x+=1)Fr(p[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);Ir(e,S.prev,C.next),Ir(e,u,S),Ir(e,C,b),c=b,u=C,--v,p=[],m=[]}else l.delete(_),Fr(_,c,n),Ir(e,_.prev,_.next),Ir(e,_,u===null?e.effect.first:u.next),Ir(e,u,_),u=_;continue}for(p=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=Mr(c.next);if(c===null)continue}_.f&33554432||p.push(_),u=_,c=Mr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(kr(e,d(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var w=[];if(l!==void 0)for(_ of l)_.f&8192||w.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&w.push(c),c=Mr(c.next);var T=w.length;if(T>0){var ee=r&4&&o===0?n:null;if(a){for(v=0;v<T;v+=1)w[v].nodes?.a?.measure();for(v=0;v<T;v+=1)w[v].nodes?.a?.fix()}Or(e,w,ee)}}a&&M(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Pr(e,t,n,r,i,a,o,s){var c=o&1?o&16?zt(n):Bt(n,!1,!1):null,l=o&2?zt(i):null;return{v:c,i:l,e:xn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Fr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Qt(r);if(a.before(r),r===i)return;r=o}}function Ir(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Lr(e,t,n=!1,i=!1,a=!1,c=!1){var l=e,u=``;if(n){var d=e;E&&(l=k(B(d)))}U(()=>{var e=K;if(u===(u=t()??``)){E&&Me();return}if(n&&!E){e.nodes=null,d.innerHTML=u,u!==``&&pr(B(d),d.lastChild);return}if(e.nodes!==null&&(Tn(e.nodes.start,e.nodes.end),e.nodes=null),u!==``){if(E){for(var c=O.data,f=Me(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=Qt(f);if(f===null)throw Ae(),r;pr(O,p),l=k(f);return}var m=nn(i?`svg`:a?`math`:`template`,i?o:a?s:void 0);m.innerHTML=u;var h=i||a?m:m.content;if(pr(B(h),h.lastChild),i||a)for(;B(h);)l.before(B(h));else l.before(h)}})}function Rr(e,t){_n(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=nn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var zr=[...`
3
- \r\f\xA0\v`];function Br(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||zr.includes(r[o-1]))&&(s===r.length||zr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Vr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Hr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Ur(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Hr)),i&&c.push(...Object.keys(i).map(Hr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Hr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Vr(r)),i&&(n+=Vr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Wr(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Br(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Gr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Kr(e,t,n,r){var i=e.__style;if(E||i!==t){var a=Ur(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Gr(e,n?.[0],r[0]),Gr(e,n?.[1],r[1],`important`)):Gr(e,n,r));return r}var qr=Symbol(`is custom element`),Jr=Symbol(`is html`),Yr=ge?`link`:`LINK`,Xr=ge?`progress`:`PROGRESS`;function Zr(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;X(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;X(e,`checked`,null),e.checked=r}}};e.__on_r=n,M(n),on()}}function Qr(e,t){var n=ei(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Xr)||(e.value=t??``)}function $r(e,t){var n=ei(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function X(e,t,n,r){var i=ei(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Yr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ni(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ei(e){return e.__attributes??={[qr]:e.nodeName.includes(`-`),[Jr]:e.namespaceURI===a}}var ti=new Map;function ni(e){var t=e.getAttribute(`is`)||e.nodeName,n=ti.get(t);if(n)return n;ti.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=h(i),r)r[o].set&&n.push(o);i=v(i)}return n}function ri(e,t){return e===t||e?.[fe]===t}function ii(e={},t,n,r){var i=j.r,a=K;return _n(()=>{var o,s;return yn(()=>{o=s,s=r?.()||[],ir(()=>{e!==n(...s)&&(t(e,...s),o&&ri(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ri(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Z(e,t,n,r){var i=!Be||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?ir(r):r),s);let u;if(a){var d=fe in e||pe in e;u=m(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=nt(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&we(t),u(f)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(u){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||p)&&u(t?h():e),e):h()})}var _=!1,v=(n&1?Ot:At)(()=>(_=!1,h()));a&&q(v);var y=K;return(function(e,t){if(arguments.length>0){let n=t?q(v):i&&a?Gt(e):e;return z(v,n),_=!0,s!==void 0&&(s=n),e}return Pn&&_||y.f&16384?v.v:q(v)})}function ai(e){return new oi(e)}var oi=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Bt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return z(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?xr:br)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!ze&&(!e?.props?.$$host||e.sync===!1)&&I(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||p(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Tr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},si;typeof HTMLElement==`function`&&(si=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=nn(`slot`);e!==`default`&&(n.name=e),Y(t,n)}}let t={},n=li(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=ci(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=ai({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=hn(()=>{yn(()=>{this.$$r=!0;for(let e of f(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=ci(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ci(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return f(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ci(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function li(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ui(e,t,n,r,i,a){let o=class extends si{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return f(t).map(e=>(t[e].attribute||e).toLowerCase())}};return f(t).forEach(e=>{p(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ci(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(m(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{p(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var di={50:`#e8f5e9`,500:`#4caf50`},fi={200:`#9fa8da`,500:`#3f51b5`,800:`#283593`},pi={500:`#ff9800`},mi={200:`#f48fb1`,900:`#880e4f`,A400:`#f50057`},hi={50:`#ffebee`,700:`#d32f2f`},Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,CORRECT:di[500],CORRECT_SECONDARY:di[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:pi[500],INCORRECT_SECONDARY:hi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:hi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:fi[500],PRIMARY_LIGHT:fi[200],PRIMARY_DARK:fi[800],SECONDARY:mi.A400,SECONDARY_LIGHT:mi[200],SECONDARY_DARK:mi[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`};Object.freeze(Q);var $=(e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)})(`pie`),gi={text:()=>$(`text`,Q.TEXT),disabled:()=>$(`disabled`,Q.DISABLED),disabledSecondary:()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),correct:()=>$(`correct`,Q.CORRECT),correctSecondary:()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),correctTertiary:()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),correctWithIcon:()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),incorrect:()=>$(`incorrect`,Q.INCORRECT),incorrectWithIcon:()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),incorrectSecondary:()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),missing:()=>$(`missing`,Q.MISSING),missingWithIcon:()=>$(`missing-icon`,Q.MISSING_WITH_ICON),primary:()=>$(`primary`,Q.PRIMARY),primaryLight:()=>$(`primary-light`,Q.PRIMARY_LIGHT),primaryDark:()=>$(`primary-dark`,Q.PRIMARY_DARK),primaryText:()=>$(`primary-text`,`text`,Q.TEXT),fadedPrimary:()=>$(`faded-primary`,Q.FADED_PRIMARY),secondary:()=>$(`secondary`,Q.SECONDARY),secondaryLight:()=>$(`secondary-light`,Q.SECONDARY_LIGHT),secondaryDark:()=>$(`secondary-dark`,Q.SECONDARY_DARK),secondaryText:()=>$(`secondary-text`,`text`,Q.TEXT),background:()=>$(`background`,Q.BACKGROUND),backgroundDark:()=>$(`background-dark`,Q.BACKGROUND_DARK),secondaryBackground:()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),dropdownBackground:()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),tertiary:()=>$(`tertiary`,Q.TERTIARY),tertiaryLight:()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),border:()=>$(`border`,Q.BORDER),borderLight:()=>$(`border-light`,Q.BORDER_LIGHT),borderDark:()=>$(`border-dark`,Q.BORDER_DARK),borderGray:()=>$(`border-gray`,Q.BORDER_GRAY),black:()=>$(`black`,Q.BLACK),white:()=>$(`white`,Q.WHITE),transparent:()=>Q.TRANSPARENT,focusChecked:()=>$(`focus-checked`,Q.FOCUS_CHECKED),focusCheckedBorder:()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),focusUnchecked:()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),focusUncheckedBorder:()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),blueGrey100:()=>$(`blue-grey-100`,Q.BLUE_GREY100),blueGrey300:()=>$(`blue-grey-300`,Q.BLUE_GREY300),blueGrey600:()=>$(`blue-grey-600`,Q.BLUE_GREY600),blueGrey900:()=>$(`blue-grey-900`,Q.BLUE_GREY900)},_i=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},vi=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},yi=e=>{let t=e;return t?typeof t.onSessionChange==`function`||typeof t.onAudioStarted==`function`||typeof t.onAudioEnded==`function`:!1};function bi(e,t={}){let n=t.hostPredicate??yi,r=e;for(;r;){if(n(r))return r;r=r.parentElement}if(typeof document<`u`&&t.fallbackSelector){let e=document.querySelector(t.fallbackSelector);if(n(e))return e}return null}function xi({sourceEl:e,fallbackSelector:t,component:n,complete:r,session:i}){let a=bi(e,{fallbackSelector:t});return a?typeof a.onSessionChange==`function`?(a.onSessionChange(i),a):(a.dispatchEvent(new vi(n,r)),a):null}function Si(e){return e.hasAudio?e.audioUrl?e.useFeatureButtonAudio?`feature-button`:`controls`:`error`:`none`}var Ci=J(`<audio class="sr-only pie-audio-player svelte-ypdwb3" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-ypdwb3" type="button"><img/> <img/></button>`,1),wi=J(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`),Ti=J(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`,1),Ei=J(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`),Di=J(`<div class="mb-4 audio-container pie-audio-container"><!></div>`),Oi={hash:`svelte-ypdwb3`,code:`.listen-button.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);border:0;padding:0;background-color:transparent;cursor:pointer;z-index:1;}.listen-button.svelte-ypdwb3:hover {background-color:#e2f1fe;}.listen-feature-icon.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);object-fit:contain;display:none;}.listen-feature-icon.listen-active.svelte-ypdwb3 {display:block;}.sr-only.svelte-ypdwb3 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}`};function ki(e,t){He(t,!0),Rr(e,Oi);let n={IDLE:`idle`,PLAYING:`playing`,BLOCKED:`blocked`,PAUSED:`paused`},r=Z(t,`hasAudio`,7,!1),i=Z(t,`audioUrl`,7),a=Z(t,`useFeatureButtonAudio`,7,!1),o=Z(t,`autoplayEnabled`,7,!1),s=Z(t,`audioTranscript`,7),c=Z(t,`showVisibleTranscript`,7),l=Z(t,`transcriptId`,7),u=Z(t,`featureAudioSkin`,7),d=Z(t,`uiText`,7),f=Z(t,`locale`,7,``),p=Z(t,`onaudiostarted`,7),m=Z(t,`onaudioended`,7),h=R(null),g=R(null),_=R(null),v=R(Gt(n.IDLE)),y=L(()=>Si({hasAudio:r(),audioUrl:i(),useFeatureButtonAudio:a()})),b=L(()=>q(v)===n.PLAYING),x=L(()=>q(v)===n.BLOCKED),S=L(()=>q(y)===`error`?d().audioResourceUnavailable:``);pn(()=>{i(),z(v,n.IDLE,!0)});function C(){q(y)!==`none`&&q(y)!==`error`&&q(h)&&q(h).play().catch(()=>{})}function w(){q(y)!==`none`&&q(y)!==`error`&&q(h)&&q(h).play().finally(()=>{q(v)===n.BLOCKED&&z(v,n.PAUSED,!0)})}function T(e,t,n){pn(()=>{let r=e();if(r)return r.addEventListener(t,n),()=>r.removeEventListener(t,n)})}T(()=>q(h),`playing`,()=>{z(v,n.PLAYING,!0),p()?.()}),T(()=>q(h),`ended`,()=>{z(v,n.PAUSED,!0),m()?.()}),T(()=>q(g),`click`,()=>C()),T(()=>q(_),`click`,()=>w()),pn(()=>{!o()||q(y)===`none`||q(y)===`error`||q(v)===n.IDLE&&q(h)&&i()&&(z(v,n.PAUSED,!0),q(h).play().catch(()=>{z(v,n.BLOCKED,!0)}))});function ee(e=``){return e.toLowerCase().startsWith(`es`)?`Escuchar`:`Listen`}function te(e=``){return e.toLowerCase().startsWith(`es`)?d().listenSilentAltEs??`Escuchar. Repetir las instrucciones.`:d().listenSilentAlt??`Repeat instructions`}function ne(e=``){return e.toLowerCase().startsWith(`es`)?d().listenPlayingAltEs??`Escuchar. Estas son las instrucciones.`:d().listenPlayingAlt??`Instructions are playing`}var re={get hasAudio(){return r()},set hasAudio(e=!1){r(e),I()},get audioUrl(){return i()},set audioUrl(e){i(e),I()},get useFeatureButtonAudio(){return a()},set useFeatureButtonAudio(e=!1){a(e),I()},get autoplayEnabled(){return o()},set autoplayEnabled(e=!1){o(e),I()},get audioTranscript(){return s()},set audioTranscript(e){s(e),I()},get showVisibleTranscript(){return c()},set showVisibleTranscript(e){c(e),I()},get transcriptId(){return l()},set transcriptId(e){l(e),I()},get featureAudioSkin(){return u()},set featureAudioSkin(e){u(e),I()},get uiText(){return d()},set uiText(e){d(e),I()},get locale(){return f()},set locale(e=``){f(e),I()},get onaudiostarted(){return p()},set onaudiostarted(e){p(e),I()},get onaudioended(){return m()},set onaudioended(e){m(e),I()}},ie=gr(),ae=$t(ie),oe=e=>{var t=Di(),n=V(t),r=e=>{var t=Ci(),n=$t(t);ii(n,e=>z(h,e),()=>q(h));var r=H(n,2),a=V(r),o=H(a,2);A(r),ii(r,e=>z(g,e),()=>q(g)),U((e,t,s)=>{X(n,`src`,i()),X(r,`aria-label`,e),Wr(a,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${q(b)?``:`listen-active`}`,`svelte-ypdwb3`),X(a,`src`,u().silentUrl),X(a,`alt`,t),Wr(o,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${q(b)?`listen-active`:``}`,`svelte-ypdwb3`),X(o,`src`,u().playingUrl),X(o,`alt`,s)},[()=>ee(f()),()=>te(f()),()=>ne(f())]),Y(e,t)},a=e=>{var t=Ti(),n=$t(t);ii(n,e=>z(h,e),()=>q(h));var r=H(n,2),a=e=>{var t=wi(),n=V(t,!0);A(t),ii(t,e=>z(_,e),()=>q(_)),U(()=>yr(n,d().clickToEnableAutoplay)),Y(e,t)};Dr(r,e=>{q(x)&&e(a)}),U(()=>{X(n,`src`,i()),X(n,`aria-describedby`,s()?l():void 0)}),Y(e,t)},o=e=>{var t=Ei(),n=V(t,!0);A(t),U(()=>yr(n,q(S))),Y(e,t)};Dr(n,e=>{q(y)===`feature-button`?e(r):q(y)===`controls`?e(a,1):q(y)===`error`&&e(o,2)}),A(t),Y(e,t)};return Dr(ae,e=>{q(y)!==`none`&&e(oe)}),Y(e,ie),Ue(re)}ui(ki,{hasAudio:{},audioUrl:{},useFeatureButtonAudio:{},autoplayEnabled:{},audioTranscript:{},showVisibleTranscript:{},transcriptId:{},featureAudioSkin:{},uiText:{},locale:{},onaudiostarted:{},onaudioended:{}},[],[],{mode:`open`});var Ai=J(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`),ji=J(`<span class="cloze-marker-value pie-blank-value svelte-d9l5tb"></span>`),Mi=J(`<span class="cloze-marker-empty svelte-d9l5tb" aria-hidden="true">&nbsp;</span>`),Ni=J(`<span role="status" aria-live="polite" aria-atomic="true"><!></span>`),Pi={hash:`svelte-d9l5tb`,code:`.cloze-marker.svelte-d9l5tb {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.cloze-marker.svelte-d9l5tb:focus-within {outline:2px solid var(--pie-focus, #2563eb);outline-offset:2px;}.cloze-marker-standalone.svelte-d9l5tb {width:var(--mpb-blank-standalone-width, 7rem);}.cloze-marker-empty.svelte-d9l5tb {display:inline-block;min-width:4ch;}.cloze-marker-value.svelte-d9l5tb {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.cloze-marker-value.svelte-d9l5tb p {margin:0;}`};function Fi(e,t){He(t,!0),Rr(e,Pi);let n=Z(t,`choiceMode`,7,`text`),r=Z(t,`displayChoice`,7,void 0),i=Z(t,`displayChoiceLabelHtml`,7,``),a=Z(t,`isStandalone`,7,!1),o=Z(t,`blankWidth`,7),s=Z(t,`blankBorderWidth`,7),c=Z(t,`ariaLabel`,7);var l={get choiceMode(){return n()},set choiceMode(e=`text`){n(e),I()},get displayChoice(){return r()},set displayChoice(e=void 0){r(e),I()},get displayChoiceLabelHtml(){return i()},set displayChoiceLabelHtml(e=``){i(e),I()},get isStandalone(){return a()},set isStandalone(e=!1){a(e),I()},get blankWidth(){return o()},set blankWidth(e){o(e),I()},get blankBorderWidth(){return s()},set blankBorderWidth(e){s(e),I()},get ariaLabel(){return c()},set ariaLabel(e){c(e),I()}},u=Ni(),d=V(u),f=e=>{var t=Ai();U(()=>{X(t,`src`,r().imageUrl),X(t,`alt`,r().imageAlt||`Selected answer image`)}),Y(e,t)},p=e=>{var t=ji();Lr(t,i,!0),A(t),Y(e,t)},m=e=>{Y(e,Mi())};return Dr(d,e=>{n()===`image`&&r()?.imageUrl?e(f):i()?e(p,1):e(m,-1)}),A(u),U(()=>{Wr(u,1,`inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline cloze-marker pie-blank-slot ${a()?`cloze-marker-standalone pie-blank-slot-standalone`:``}`,`svelte-d9l5tb`),Kr(u,`width:${o()};border-bottom-width:${s()};`),X(u,`aria-label`,c())}),Y(e,u),Ue(l)}ui(Fi,{choiceMode:{},displayChoice:{},displayChoiceLabelHtml:{},isStandalone:{},blankWidth:{},blankBorderWidth:{},ariaLabel:{}},[],[],{mode:`open`});var Ii=J(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Li=J(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`),Ri=J(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-8xu1pt"><span class="choice-tile-content pie-choice-tile-content svelte-8xu1pt"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-8xu1pt"/></label>`),zi=J(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Bi=J(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`),Vi=J(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-8xu1pt"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap svelte-8xu1pt"><!></label>`,1),Hi=J(`<span aria-hidden="true"> </span>`),Ui=J(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`),Wi={hash:`svelte-8xu1pt`,code:`.choice-row-horizontal.svelte-8xu1pt {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));min-height:var(--mpb-choice-tile-min-height, 11rem);gap:0;}.choice-tile.svelte-8xu1pt {display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:var(--mpb-choice-tile-min-height, 11rem);padding:0.8rem 0.65rem 0.5rem;border-radius:8px;background:transparent;transition:background-color 120ms ease-in-out;}.choice-tile-content.svelte-8xu1pt {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-hover-bg, var(--pie-correct-answer-choice-hover-bg, #f2f2f2));}.pie-choice-horizontal.svelte-8xu1pt:not(.is-selected):not(:hover) .pie-choice-tile:where(.svelte-8xu1pt) {background:transparent;}.choice-row-horizontal.is-selected.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-correct-answer-choice-selected-bg, #fcfcd3));}.choice-row-horizontal.is-selected.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-correct-answer-choice-selected-bg, #fcfcd3));}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-hover-bg, #ececec);}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):not(.is-selected):not(:hover) .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:transparent;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);border-radius:6px;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt:hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);}.pie-choice.choice-correct.svelte-8xu1pt {border-left:3px solid var(--pie-correct-answer-choice-correct-border, #0ea449);}.pie-choice.choice-incorrect.svelte-8xu1pt {border-left:3px solid var(--pie-correct-answer-choice-incorrect-border, #bf0d00);}.pie-choice-horizontal.choice-correct.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-correct-bg, #e8f5e9);}.pie-choice-horizontal.choice-incorrect.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-answer-choice-incorrect-bg, #ffebee);}.pie-choice-feedback-badge.svelte-8xu1pt {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:9999px;font-size:0.72rem;line-height:1;font-weight:700;color:var(--pie-correct-answer-feedback-glyph-color, #fff);}.pie-choice-feedback-correct.svelte-8xu1pt {background:var(--pie-correct-answer-feedback-correct-bg, #087d38);}.pie-choice-feedback-incorrect.svelte-8xu1pt {background:var(--pie-correct-answer-feedback-incorrect-bg, #bf0d00);}.choice-row-horizontal.svelte-8xu1pt p {margin:0;text-align:center;}.choice-html.svelte-8xu1pt p {margin:0;}.choice-html.svelte-8xu1pt {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.choice-radio-bottom.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);padding:var(--mpb-choice-radio-padding, 0px);}.choice-radio-inline.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}`};function Gi(e,t){He(t,!0),Rr(e,Wi);let n=Z(t,`choice`,7),r=Z(t,`choiceMode`,7,`text`),i=Z(t,`isHorizontal`,7,!1),a=Z(t,`isSelected`,7,!1),o=Z(t,`isDisabled`,7,!1),s=Z(t,`correctness`,7,void 0),c=Z(t,`isEvaluateMode`,7,!1),l=Z(t,`instanceId`,7),u=Z(t,`radioGroupName`,7);var d={get choice(){return n()},set choice(e){n(e),I()},get choiceMode(){return r()},set choiceMode(e=`text`){r(e),I()},get isHorizontal(){return i()},set isHorizontal(e=!1){i(e),I()},get isSelected(){return a()},set isSelected(e=!1){a(e),I()},get isDisabled(){return o()},set isDisabled(e=!1){o(e),I()},get correctness(){return s()},set correctness(e=void 0){s(e),I()},get isEvaluateMode(){return c()},set isEvaluateMode(e=!1){c(e),I()},get instanceId(){return l()},set instanceId(e){l(e),I()},get radioGroupName(){return u()},set radioGroupName(e){u(e),I()}},f=Ui(),p=V(f),m=e=>{var t=Ri(),i=V(t),s=V(i),c=e=>{var t=Ii();U(()=>{X(t,`src`,n().imageUrl),X(t,`alt`,n().imageAlt||`Choice ${n().id}`)}),Y(e,t)},d=e=>{var t=Li();Lr(t,()=>n().labelHtml||``,!0),A(t),Y(e,t)};Dr(s,e=>{r()===`image`&&n().imageUrl?e(c):e(d,-1)}),A(i);var f=H(i,2);Zr(f),A(t),U(()=>{X(t,`for`,`${l()}-opt-${n().id}`),X(f,`name`,u()),X(f,`id`,`${l()}-opt-${n().id}`),Qr(f,n().id),$r(f,a()),f.disabled=o()}),Y(e,t)},h=e=>{var t=Vi(),i=$t(t);Zr(i);var s=H(i,2),c=V(s),d=e=>{var t=zi();U(()=>{X(t,`src`,n().imageUrl),X(t,`alt`,n().imageAlt||`Choice ${n().id}`)}),Y(e,t)},f=e=>{var t=Bi();Lr(t,()=>n().labelHtml||``,!0),A(t),Y(e,t)};Dr(c,e=>{r()===`image`&&n().imageUrl?e(d):e(f,-1)}),A(s),U(()=>{X(i,`name`,u()),X(i,`id`,`${l()}-opt-${n().id}`),Qr(i,n().id),$r(i,a()),i.disabled=o(),X(s,`for`,`${l()}-opt-${n().id}`)}),Y(e,t)};Dr(p,e=>{i()?e(m):e(h,-1)});var g=H(p,2),_=e=>{var t=Hi(),n=V(t,!0);A(t),U(()=>{Wr(t,1,`pie-choice-feedback-badge ${s()===`correct`?`pie-choice-feedback-correct`:`pie-choice-feedback-incorrect`}`,`svelte-8xu1pt`),yr(n,s()===`correct`?`✓`:`✕`)}),Y(e,t)};return Dr(g,e=>{c()&&s()&&e(_)}),A(f),U(()=>Wr(f,1,`flex items-start choice-row pie-choice ${i()?`choice-row-horizontal pie-choice-horizontal`:``} ${a()?`is-selected pie-choice-selected`:``} ${s()?`choice-${s()} pie-choice-${s()}`:``}`,`svelte-8xu1pt`)),Y(e,f),Ue(d)}ui(Gi,{choice:{},choiceMode:{},isHorizontal:{},isSelected:{},isDisabled:{},correctness:{},isEvaluateMode:{},instanceId:{},radioGroupName:{}},[],[],{mode:`open`});function Ki(e){let t=new Map,{isEvaluateMode:n,correctChoiceId:r,selectedId:i,showCorrectAnswer:a}=e;return!n||!r?t:a?(t.set(r,`correct`),t):i?i===r?(t.set(r,`correct`),t):(t.set(i,`incorrect`),t.set(r,`incorrect`),t):(t.set(r,`incorrect`),t)}var qi=`{{blank}}`,Ji=new Set([`audio_blank_only`,`stimulus_image_blank`,`token_sequence`]);function Yi(e){let{interactionMode:t=``,template:n=``,choiceLayout:r,layoutProfile:i=``,hasAudio:a=!1,useFeatureButtonAudio:o}=e,s=t===`audio_mc_only`,c=n?n.replace(/<[^>]+>/g,``).replace(/&nbsp;/g,` `).trim()===qi:!1,l=r===`horizontal`||r===`vertical`?r:s||c?`horizontal`:`vertical`;return{isAudioOnlyMode:s,isBlankOnlyTemplate:c,choiceLayout:l,isHorizontalChoices:l===`horizontal`,hasInlineSentenceAudioLayout:i===`inline_sentence`&&a,useFeatureButtonAudio:typeof o==`boolean`?o:a&&Ji.has(i)}}var Xi={blankStandaloneWidthRem:7,blankWideWidthRem:10,blankUnderlineWidthPx:2,blankUnderlineWideWidthPx:4,horizontalChoiceWidthPx:170,horizontalChoiceWidthVw:30,horizontalChoiceTileMinHeightRem:11,horizontalChoiceContentMinHeightRem:7.5,selectedImageMaxHeightRem:4,choiceImageMaxHeightRem:5,listenButtonSizePx:128,stimulusMinColumnPx:210,textMinColumnPx:260,legendMaxChars:120,choiceGroupGapRem:.5,choiceRowGapRem:.5,toggleButtonGapRem:.5,horizontalChoiceRadioTopMarginRem:.5,audioBlankTemplateMarginTopRem:.8,audioBlankTemplateMarginBottomRem:1.8,audioInstructionsMaxWidthPx:875,narrowHorizontalChoiceMaxWidthPx:230,stimulusGridColumnGapRem:2,stimulusGridRowGapRem:.7,stimulusSentenceMarginTopRem:.2,stimulusChoicesMarginTopRem:.9,tokenGridColumnGapRem:1.5,tokenGridRowGapRem:.8,tokenTemplateMarginTopRem:.6,tokenInlineTokenGapRem:.35,tokenChoicesMarginTopRem:.2,inlineGridColumnGapRem:1.5,inlineGridRowGapRem:.65,inlineTemplateMarginTopRem:.45,inlineChoicesMarginTopRem:.25},Zi={blankStandaloneWidthRem:{varName:`--mpb-blank-standalone-width`,unit:`rem`},blankWideWidthRem:{varName:`--mpb-blank-wide-width`,unit:`rem`},blankUnderlineWidthPx:{varName:`--mpb-blank-underline-width`,unit:`px`},blankUnderlineWideWidthPx:{varName:`--mpb-blank-underline-wide-width`,unit:`px`},horizontalChoiceWidthPx:{varName:`--mpb-choice-width-px`,unit:`px`},horizontalChoiceWidthVw:{varName:`--mpb-choice-width-vw`,unit:`vw`},horizontalChoiceTileMinHeightRem:{varName:`--mpb-choice-tile-min-height`,unit:`rem`},horizontalChoiceContentMinHeightRem:{varName:`--mpb-choice-content-min-height`,unit:`rem`},choiceImageMaxHeightRem:{varName:`--mpb-choice-image-max-height`,unit:`rem`},selectedImageMaxHeightRem:{varName:`--mpb-selected-image-max-height`,unit:`rem`},choiceGroupGapRem:{varName:`--mpb-choice-group-gap`,unit:`rem`},choiceRowGapRem:{varName:`--mpb-choice-row-gap`,unit:`rem`},horizontalChoiceRadioTopMarginRem:{varName:`--mpb-horizontal-choice-radio-top-margin`,unit:`rem`},narrowHorizontalChoiceMaxWidthPx:{varName:`--mpb-narrow-choice-max-width`,unit:`px`},toggleButtonGapRem:{varName:`--mpb-toggle-button-gap`,unit:`rem`},listenButtonSizePx:{varName:`--mpb-listen-button-size`,unit:`px`},audioBlankTemplateMarginTopRem:{varName:`--mpb-audio-blank-template-margin-top`,unit:`rem`},audioBlankTemplateMarginBottomRem:{varName:`--mpb-audio-blank-template-margin-bottom`,unit:`rem`},audioInstructionsMaxWidthPx:{varName:`--mpb-audio-instructions-max-width`,unit:`px`},stimulusMinColumnPx:{varName:`--mpb-stimulus-min-column`,unit:`px`},textMinColumnPx:{varName:`--mpb-text-min-column`,unit:`px`},stimulusGridColumnGapRem:{varName:`--mpb-stimulus-grid-column-gap`,unit:`rem`},stimulusGridRowGapRem:{varName:`--mpb-stimulus-grid-row-gap`,unit:`rem`},stimulusSentenceMarginTopRem:{varName:`--mpb-stimulus-sentence-margin-top`,unit:`rem`},stimulusChoicesMarginTopRem:{varName:`--mpb-stimulus-choices-margin-top`,unit:`rem`},tokenGridColumnGapRem:{varName:`--mpb-token-grid-column-gap`,unit:`rem`},tokenGridRowGapRem:{varName:`--mpb-token-grid-row-gap`,unit:`rem`},tokenTemplateMarginTopRem:{varName:`--mpb-token-template-margin-top`,unit:`rem`},tokenInlineTokenGapRem:{varName:`--mpb-token-inline-token-gap`,unit:`rem`},tokenChoicesMarginTopRem:{varName:`--mpb-token-choices-margin-top`,unit:`rem`},inlineGridColumnGapRem:{varName:`--mpb-inline-grid-column-gap`,unit:`rem`},inlineGridRowGapRem:{varName:`--mpb-inline-grid-row-gap`,unit:`rem`},inlineTemplateMarginTopRem:{varName:`--mpb-inline-template-margin-top`,unit:`rem`},inlineChoicesMarginTopRem:{varName:`--mpb-inline-choices-margin-top`,unit:`rem`}},Qi={audio_blank_only:{blankWideWidthRem:10,blankUnderlineWideWidthPx:6,horizontalChoiceTileMinHeightRem:11.25,horizontalChoiceContentMinHeightRem:9.375,choiceGroupGapRem:1,audioBlankTemplateMarginBottomRem:1.875},stimulus_image_blank:{blankWideWidthRem:10,blankUnderlineWideWidthPx:6},token_sequence:{blankStandaloneWidthRem:7,blankUnderlineWideWidthPx:6}};function $i(e){let{layoutProfile:t,isBlankOnlyTemplate:n,correctAnswerStyleVars:r}=e,i=e.configuredLimits&&typeof e.configuredLimits==`object`?e.configuredLimits:{},a=e.customProfilePresets&&typeof e.customProfilePresets==`object`?e.customProfilePresets:{},o=a[t]&&typeof a[t]==`object`?a[t]:{},s={...Qi[t]??{},...o},c={...Xi,...i,...s},l=[`audio_blank_only`,`stimulus_image_blank`],u=[`audio_blank_only`,`stimulus_image_blank`,`token_sequence`],d=l.includes(t)?`${c.blankWideWidthRem}rem`:n?`${c.blankStandaloneWidthRem}rem`:`auto`,f=u.includes(t)?`${c.blankUnderlineWideWidthPx}px`:`${c.blankUnderlineWidthPx}px`;return{rootStyle:[...Object.keys(Zi).map(e=>`${Zi[e].varName}:${c[e]}${Zi[e].unit}`),r].join(`;`),blankWidth:d,blankBorderWidth:f,legendMaxChars:c.legendMaxChars}}var ea={default:{silentUrl:`https://assets.learnosity.com/organisations/844/0c9f2aa3-3cd5-4de7-93ef-541c24ca35da.svg`,playingUrl:`https://assets.learnosity.com/organisations/844/231dfdc2-c113-4be5-91fb-e75a0ca5994b.svg`},es:{silentUrl:`https://assets.learnosity.com/organisations/844/27a9d5b5-d873-4bd5-b9ba-22748782d8ba.svg`,playingUrl:`https://assets.learnosity.com/organisations/844/120f216d-96b7-4560-94b8-1d90710216b7.svg`}};function ta(e){let t=String(e.locale||``).toLowerCase(),n=t.slice(0,2),r=e.audioButtonSkinsByLocale&&typeof e.audioButtonSkinsByLocale==`object`?e.audioButtonSkinsByLocale:{},i=e.audioButtonSkin&&typeof e.audioButtonSkin==`object`?e.audioButtonSkin:null,a=t.startsWith(`es`)?ea.es:ea.default;return r[t]||r[n]||r.default||i||a}function na(e){let{selectedId:t,isEvaluateMode:n,showCorrectAnswer:r,alwaysShowCorrect:i,correctChoiceId:a}=e;return i&&a||n&&r&&a?a:t}function ra(e){let{isEvaluateMode:t,showCorrectAnswer:n,isCorrect:r,isIncorrect:i,selectedId:a}=e;return!t||n?``:r?`Correct answer selected`:i&&a?`Incorrect answer selected`:``}function ia(e){let{prompt:t,legendMaxChars:n,answerChoicesLabel:r}=e,i=t.replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim(),a=Math.max(8,n);return i?i.length>a?`${i.slice(0,Math.max(1,a-1))}…`:i:r}var aa=`/* Shared base styles for all sel_r1-*_plusggg variants.
1
+ (function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r};typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var r={},i=Symbol(`uninitialized`),a=`http://www.w3.org/1999/xhtml`,o=`http://www.w3.org/2000/svg`,s=`http://www.w3.org/1998/Math/MathML`,c=Array.isArray,l=Array.prototype.indexOf,u=Array.prototype.includes,d=Array.from,f=Object.keys,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.prototype,_=Array.prototype,v=Object.getPrototypeOf,y=Object.isExtensible,ee=()=>{};function b(e){for(var t=0;t<e.length;t++)e[t]()}function x(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var S=1024,C=2048,w=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,oe=1<<19,se=1<<20,ce=1<<25,le=65536,ue=1<<21,de=1<<22,fe=1<<23,pe=Symbol(`$state`),me=Symbol(`legacy props`),he=Symbol(``),ge=Symbol(`attributes`),_e=Symbol(`class`),ve=Symbol(`style`),ye=Symbol(`text`),be=Symbol(`form reset`),xe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Se=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ce(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function we(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Te(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ee(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function De(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Oe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ke(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ae(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function je(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Me(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ne(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Pe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Fe(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ie(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Le(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function Re(e){T=e}var E;function D(e){if(e===null)throw Ie(),r;return E=e}function ze(){return D(un(E))}function O(e){if(T){if(un(E)!==null)throw Ie(),r;E=e}}function Be(e=1){if(T){for(var t=e,n=E;t--;)n=un(n);E=n}}function Ve(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=un(n);e&&n.remove(),n=i}}function He(e){if(!e||e.nodeType!==8)throw Ie(),r;return e.data}function Ue(e){return e===this.v}function We(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ge(e){return!We(e,this.v)}var k=null;function Ke(e){k=e}function qe(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:W,l:null}}function Je(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)Sn(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function Ye(){return!0}var Xe=[];function Ze(){var e=Xe;Xe=[],b(e)}function Qe(e){if(Xe.length===0&&!Mt){var t=Xe;queueMicrotask(()=>{t===Xe&&Ze()})}Xe.push(e)}function $e(){for(;Xe.length>0;)Ze()}function et(e){var t=W;if(t===null)return H.f|=fe,e;if(!(t.f&32768)&&!(t.f&4))throw e;tt(e,t)}function tt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var nt=~(C|w|S);function A(e,t){e.f=e.f&nt|t}function rt(e){e.f&512||e.deps===null?A(e,S):A(e,w)}function it(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,it(t.deps))}function at(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),it(e.deps),A(e,S)}var ot=!1;function st(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}var ct=!1;function lt(){ct||(ct=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[be]?.()})},{capture:!0}))}function ut(e){var t=H,n=W;U(null),Wn(null);try{return e()}finally{U(t),Wn(n)}}function dt(e){let t=0,n=Xt(0),r;return()=>{yn()&&(J(n),Dn(()=>(t===0&&(r=sr(()=>e(()=>en(n)))),t+=1,()=>{Qe(()=>{--t,t===0&&(r?.(),r=void 0,en(n))})})))}}var ft=ae|oe;function pt(e,t,n,r){new mt(e,t,n,r)}var mt=class{parent;is_pending=!1;transform_error;#e;#t=T?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=dt(()=>(this.#m=Xt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=On(()=>{if(T){let e=this.#t;ze();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},ft),T&&(this.#e=E)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Qe(r),t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){Le();return}t=!0,n&&Pe(),this.#s!==null&&Pn(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){tt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),Qe(()=>{var e=this.#c=document.createDocumentFragment(),t=ln();e.append(t),this.#a=this.#S(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Pn(this.#o,()=>{this.#o=null}),this.#x(M))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Rn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#x(M)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){at(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=W,n=H,r=k;Wn(this.#i),U(this.#i),Ke(this.#i.ctx);try{return Rt.ensure(),e()}catch(e){return et(e),null}finally{Wn(t),U(n),Ke(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Pn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Qe(()=>{this.#d=!1,this.#m&&Qt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),J(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;M?.is_fork?(this.#a&&M.skip_effect(this.#a),this.#o&&M.skip_effect(this.#o),this.#s&&M.skip_effect(this.#s),M.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),T&&(D(this.#t),Be(),D(Ve()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return B(()=>{var r=W;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return tt(e,this.#i.parent),null}}))};Qe(()=>{var t;try{t=this.transform_error(e)}catch(e){tt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>tt(e,this.#i&&this.#i.parent)):n(t)})}};function ht(e,t,n,r){let i=Ye()?yt:St;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=W,c=gt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){tt(e,s)}_t()}}var d=vt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>xt(e))).then(u).catch(e=>tt(e,s)).finally(d)}l?l.then(()=>{c(),f(),_t()}):f()}function gt(){var e=W,t=H,n=k,r=M;return function(i=!0){Wn(e),U(t),Ke(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function _t(e=!0){Wn(null),U(null),Ke(null),e&&M?.deactivate()}function vt(){var e=W,t=e.b,n=M,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function yt(e){var t=2|C;return W!==null&&(W.f|=oe),{ctx:k,deps:null,effects:null,equals:Ue,f:t,fn:e,reactions:null,rv:0,v:i,wv:0,parent:W,ac:null}}var bt=Symbol(`obsolete`);function xt(e,t,n){let r=W;r===null&&Ce();var a=void 0,o=Xt(i),s=!H,c=new Set;return En(()=>{var t=W,n=x();a=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==xe&&n.reject(e)}).finally(_t)}catch(e){n.reject(e),_t()}var i=M;if(s){if(t.f&32768)var l=vt();if(r.b?.is_rendered())i.async_deriveds.get(t)?.reject(bt);else for(let e of c.values())e.reject(bt);c.add(n),i.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),c.delete(n),t!==bt&&(i.activate(),t?(o.f|=fe,Qt(o,t)):(o.f&8388608&&(o.f^=fe),Qt(o,e)),i.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),bn(()=>{for(let e of c)e.reject(bt)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function j(e){let t=yt(e);return Kn(t),t}function St(e){let t=yt(e);return t.equals=Ge,t}function Ct(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function wt(e){var t,n=W,r=e.parent;if(!Vn&&r!==null&&e.v!==i&&r.f&24576)return Fe(),e.v;Wn(r);try{e.f&=~le,Ct(e),t=tr(e)}finally{Wn(n)}return t}function Tt(e){var t=wt(e);if(!e.equals(t)&&(e.wv=Qn(),(!M?.is_fork||e.deps===null)&&(M===null?e.v=t:(M.capture(e,t,!0),kt?.capture(e,t,!0)),e.deps===null))){A(e,S);return}Vn||(At===null?rt(e):(yn()||M?.is_fork)&&At.set(e,t))}function Et(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&ut(()=>{t.ac.abort(xe),t.ac=null}),t.fn!==null&&(t.teardown=ee),rr(t,0),An(t))}function Dt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&ir(t)}var Ot=null,M=null,kt=null,At=null,jt=null,Mt=!1,Nt=!1,Pt=null,Ft=null,It=0,Lt=1,Rt=class e{id=Lt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Ot===null?Ot=this:(Ot.#n=this,this.#t=Ot),Ot=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)A(r,C),t(r);for(r of n.m)A(r,w),t(r)}this.#p.add(e)}#g(){this.#e=!0,It++>1e3&&(this.#x(),zt());for(let e of this.#u)this.#d.delete(e),A(e,C),this.schedule(e);for(let e of this.#d)A(e,w),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Pt=[],r=[],i=Ft=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Kt(e),this.#h()||this.discard(),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Pt=null,Ft=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Gt(e,t);i.length>0&&M.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),kt=this,Vt(r),Vt(n),kt=null,this.#s?.resolve();var s=M;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0)if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this;s!==null&&s.#g()}#_(e,t,n){e.f^=S;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=S:i&4?t.push(r):$n(r)&&(i&16&&this.#d.add(r),ir(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),A(i,C),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),M=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)at(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==i&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),At?.set(e,t)),this.is_fork||(e.v=t)}activate(){M=this}deactivate(){M=null,At=null}flush(){try{Nt=!0,M=this,this.#g()}finally{It=0,jt=null,Pt=null,Ft=null,Nt=!1,M=null,At=null,Jt.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(bt);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Qe(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=x()).promise}static ensure(){if(M===null){let t=M=new e;!Nt&&!Mt&&Qe(()=>{t.#e||t.flush()})}return M}apply(){At=null}schedule(e){if(jt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Pt!==null&&t===W&&(H===null||!(H.f&2)))return;if(n&96){if(!(n&1024))return;t.f^=S}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Ot=e:t.#t=e,this.linked=!1}}};function N(e){var t=Mt;Mt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if($e(),M===null)return n;M.flush()}}finally{Mt=t}}function zt(){try{Oe()}catch(e){tt(e,jt)}}var Bt=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&$n(r)&&(Bt=new Set,ir(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Nn(r),Bt?.size>0)){Jt.clear();for(let e of Bt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Bt.has(n)&&(Bt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ir(n)}}Bt.clear()}}Bt=null}}function Ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Ht(i,t,n,r):e&4194320&&!(e&2048)&&Ut(i,t,r)&&(A(i,C),Wt(i))}}function Ut(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(u.call(t,r))return!0;if(r.f&2&&Ut(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Wt(e){M.schedule(e)}function Gt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,S);for(var n=e.first;n!==null;)Gt(n,t),n=n.next}}function Kt(e){A(e,S);for(var t=e.first;t!==null;)Kt(t),t=t.next}var qt=new Set,Jt=new Map,Yt=!1;function Xt(e,t){return{f:0,v:e,reactions:null,equals:Ue,rv:0,wv:0}}function P(e,t){let n=Xt(e,t);return Kn(n),n}function Zt(e,t=!1,n=!0){let r=Xt(e);return t||(r.equals=Ge),r}function F(e,t,n=!1){return H!==null&&(!Un||H.f&131072)&&Ye()&&H.f&4325394&&(Gn===null||!Gn.has(e))&&Ne(),Qt(e,n?nn(t):t,Ft)}function Qt(e,t,n=null){if(!e.equals(t)){Jt.set(e,Vn?t:e.v);var r=Rt.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&wt(t),At===null&&rt(t)}e.wv=Qn(),tn(e,C,n),Ye()&&W!==null&&W.f&1024&&!(W.f&96)&&(q===null?qn([e]):q.push(e)),!r.is_fork&&qt.size>0&&!Yt&&$t()}return t}function $t(){Yt=!1;for(let e of qt){e.f&1024&&A(e,w);let t;try{t=$n(e)}catch{t=!0}t&&ir(e)}qt.clear()}function en(e){F(e,e.v+1)}function tn(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ye(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&C)===0;if(l&&A(s,t),c&131072)qt.add(s);else if(c&2){var u=s;At?.delete(u),c&65536||(c&512&&(W===null||!(W.f&2097152))&&(s.f|=le),tn(u,w,n))}else if(l){var d=s;c&16&&Bt!==null&&Bt.add(d),n===null?Wt(d):n.push(d)}}}}function nn(e){if(typeof e!=`object`||!e||pe in e)return e;let t=v(e);if(t!==g&&t!==_)return e;var n=new Map,r=c(e),a=P(0),o=null,s=Xn,l=e=>{if(Xn===s)return e();var t=H,n=Xn;U(null),Zn(s);var r=e();return U(t),Zn(n),r};return r&&n.set(`length`,P(e.length,o)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&je();var i=n.get(t);return i===void 0?l(()=>{var e=P(r.value,o);return n.set(t,e),e}):F(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=l(()=>P(i,o));n.set(t,e),en(a)}}else F(r,i),en(a);return!0},get(t,r,a){if(r===pe)return e;var s=n.get(r),c=r in t;if(s===void 0&&(!c||m(t,r)?.writable)&&(s=l(()=>P(nn(c?t[r]:i),o)),n.set(r,s)),s!==void 0){var u=J(s);return u===i?void 0:u}return Reflect.get(t,r,a)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var a=n.get(t);a&&(r.value=J(a))}else if(r===void 0){var o=n.get(t),s=o?.v;if(o!==void 0&&s!==i)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return r},has(e,t){if(t===pe)return!0;var r=n.get(t),a=r!==void 0&&r.v!==i||Reflect.has(e,t);return(r!==void 0||W!==null&&(!a||m(e,t)?.writable))&&(r===void 0&&(r=l(()=>P(a?nn(e[t]):i,o)),n.set(t,r)),J(r)===i)?!1:a},set(e,t,s,c){var u=n.get(t),d=t in e;if(r&&t===`length`)for(var f=s;f<u.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=l(()=>P(i,o)),n.set(f+``,p)):F(p,i)}if(u===void 0)(!d||m(e,t)?.writable)&&(u=l(()=>P(void 0,o)),F(u,nn(s)),n.set(t,u));else{d=u.v!==i;var h=l(()=>nn(s));F(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,s),!d){if(r&&typeof t==`string`){var _=n.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&F(_,v+1)}en(a)}return!0},ownKeys(e){J(a);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==i});for(var[r,o]of n)o.v!==i&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Me()}})}var rn,an,on,sn;function cn(){if(rn===void 0){rn=window,an=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;on=m(t,`firstChild`).get,sn=m(t,`nextSibling`).get,y(e)&&(e[_e]=void 0,e[ge]=null,e[ve]=void 0,e.__e=void 0),y(n)&&(n[ye]=void 0)}}function ln(e=``){return document.createTextNode(e)}function I(e){return on.call(e)}function un(e){return sn.call(e)}function L(e,t){if(!T)return I(e);var n=I(E);if(n===null)n=E.appendChild(ln());else if(t&&n.nodeType!==3){var r=ln();return n?.before(r),D(r),r}return t&&hn(n),D(n),n}function dn(e,t=!1){if(!T){var n=I(e);return n instanceof Comment&&n.data===``?un(n):n}if(t){if(E?.nodeType!==3){var r=ln();return E?.before(r),D(r),r}hn(E)}return E}function R(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=un(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=ln();return r===null?i?.after(a):r.before(a),D(a),a}hn(r)}return D(r),r}function fn(e){e.textContent=``}function pn(){return!1}function mn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function hn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function gn(e){W===null&&(H===null&&De(e),Ee()),Vn&&Te(e)}function _n(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function vn(e,t){var n=W;n!==null&&n.f&8192&&(e|=te);var r={ctx:k,deps:null,nodes:null,f:e|C|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};M?.register_created_effect(r);var i=r;if(e&4)Pt===null?Rt.ensure().schedule(r):Pt.push(r);else if(t!==null){try{ir(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&_n(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function yn(){return H!==null&&!Un}function bn(e){let t=vn(8,null);return A(t,S),t.teardown=e,t}function xn(e){gn(`$effect`);var t=W.f;if(!H&&t&32&&k!==null&&!k.i){var n=k;(n.e??=[]).push(e)}else return Sn(e)}function Sn(e){return vn(4|se,e)}function Cn(e){Rt.ensure();let t=vn(64|oe,e);return()=>{V(t)}}function wn(e){Rt.ensure();let t=vn(64|oe,e);return(e={})=>new Promise(n=>{e.outro?Pn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function Tn(e){return vn(4,e)}function En(e){return vn(de|oe,e)}function Dn(e,t=0){return vn(8|t,e)}function z(e,t=[],n=[],r=[]){ht(r,t,n,t=>{vn(8,()=>{e(...t.map(J))})})}function On(e,t=0){return vn(16|t,e)}function B(e){return vn(32|oe,e)}function kn(e){var t=e.teardown;if(t!==null){let e=Vn,n=H;Hn(!0),U(null);try{t.call(null)}finally{Hn(e),U(n)}}}function An(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&ut(()=>{e.abort(xe)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function jn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Mn(e.nodes.start,e.nodes.end),n=!0),e.f|=ie,An(e,t&&!n),rr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();kn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&Nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Mn(e,t){for(;e!==null;){var n=e===t?null:un(e);e.remove(),e=n}}function Nn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Pn(e,t,n=!0){var r=[];Fn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Fn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Fn(i,t,o?n:!1)}i=a}}}function In(e){Ln(e,!0)}function Ln(e,t){if(e.f&8192){e.f^=te,e.f&1024||(A(e,C),Rt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Ln(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Rn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:un(n);t.append(n),n=i}}var zn=null,Bn=!1,Vn=!1;function Hn(e){Vn=e}var H=null,Un=!1;function U(e){H=e}var W=null;function Wn(e){W=e}var Gn=null;function Kn(e){H!==null&&(Gn??=new Set).add(e)}var G=null,K=0,q=null;function qn(e){q=e}var Jn=1,Yn=0,Xn=Yn;function Zn(e){Xn=e}function Qn(){return++Jn}function $n(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if($n(a)&&Tt(a),a.wv>e.wv)return!0}t&512&&At===null&&A(e,S)}return!1}function er(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Gn!==null&&Gn.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?er(a,t,!1):t===a&&(n?A(a,C):a.f&1024&&A(a,w),Wt(a))}}function tr(e){var t=G,n=K,r=q,i=H,a=Gn,o=k,s=Un,c=Xn,l=e.f;G=null,K=0,q=null,H=l&96?null:e,Gn=null,Ke(e.ctx),Un=!1,Xn=++Yn,e.ac!==null&&(ut(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=M?.is_fork;if(G!==null){var m;if(p||rr(e,K),f!==null&&K>0)for(f.length=K+G.length,m=0;m<G.length;m++)f[K+m]=G[m];else e.deps=f=G;if(yn()&&e.f&512)for(m=K;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&K<f.length&&(rr(e,K),f.length=K);if(Ye()&&q!==null&&!Un&&f!==null&&!(e.f&6146))for(m=0;m<q.length;m++)er(q[m],e);if(i!==null&&i!==e){if(Yn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Yn;if(t!==null)for(let e of t)e.rv=Yn;q!==null&&(r===null?r=q:r.push(...q))}return e.f&8388608&&(e.f^=fe),d}catch(e){return et(e)}finally{e.f^=ue,G=t,K=n,q=r,H=i,Gn=a,Ke(o),Un=s,Xn=c}}function nr(e,t){let n=t.reactions;if(n!==null){var r=l.call(n,e);if(r!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[r]=n[a],n.pop())}}if(n===null&&t.f&2&&(G===null||!u.call(G,t))){var o=t;o.f&512&&(o.f^=512,o.f&=~le),o.v!==i&&rt(o),o.ac!==null&&ut(()=>{o.ac.abort(xe),o.ac=null,A(o,C)}),Et(o),rr(o,0)}}function rr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)nr(e,n[r])}function ir(e){var t=e.f;if(!(t&16384)){A(e,S);var n=W,r=Bn;W=e,Bn=(t&96)==0;try{t&16777232?jn(e):An(e),kn(e);var i=tr(e);e.teardown=typeof i==`function`?i:null,e.wv=Jn}finally{Bn=r,W=n}}}function J(e){var t=(e.f&2)!=0;if(zn?.add(e),H!==null&&!Un&&!(W!==null&&W.f&16384)&&(Gn===null||!Gn.has(e))){var n=H.deps;if(H.f&2097152)e.rv<Yn&&(e.rv=Yn,G===null&&n!==null&&n[K]===e?K++:G===null?G=[e]:G.push(e));else{H.deps??=[],u.call(H.deps,e)||H.deps.push(e);var r=e.reactions;r===null?e.reactions=[H]:u.call(r,H)||r.push(H)}}if(Vn&&Jt.has(e))return Jt.get(e);if(t){var i=e;if(Vn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||or(i))&&(a=wt(i)),Jt.set(i,a),a}var o=(i.f&512)==0&&!Un&&H!==null&&(Bn||(H.f&512)!=0),s=(i.f&re)===0;$n(i)&&(o&&(i.f|=512),Tt(i)),o&&!s&&(Dt(i),ar(i))}if(At?.has(e))return At.get(e);if(e.f&8388608)throw e.v;return e.v}function ar(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Dt(t),ar(t))}function or(e){if(e.v===i)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Jt.has(t)||t.f&2&&or(t))return!0;return!1}function sr(e){var t=Un;try{return Un=!0,e()}finally{Un=t}}var cr=Symbol(`events`),lr=new Set,ur=new Set,dr=null;function fr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;dr=e;var o=0,s=dr===e&&e[cr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[cr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){p(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=H,d=W;U(null),Wn(null);try{for(var f,m=[];a!==null&&a!==t;){try{var h=a[cr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?m.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of m)queueMicrotask(()=>{throw e});throw f}}finally{e[cr]=t,delete e.currentTarget,U(u),Wn(d)}}}var pr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function mr(e){return pr?.createHTML(e)??e}function hr(e){var t=mn(`template`);return t.innerHTML=mr(e.replaceAll(`<!>`,`<!---->`)),t.content}function gr(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Y(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return gr(E,null),E;i===void 0&&(i=hr(a?e:`<!>`+e),n||(i=I(i)));var t=r||an?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=I(t),s=t.lastChild;gr(o,s)}else gr(t,t);return t}}function _r(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(T)return gr(E,null),E;if(!o){var e=I(hr(a));if(i)for(o=document.createDocumentFragment();I(e);)o.appendChild(I(e));else o=I(e)}var t=o.cloneNode(!0);if(i){var n=I(t),r=t.lastChild;gr(n,r)}else gr(t,t);return t}}function vr(e,t){return _r(e,t,`svg`)}function yr(){if(T)return gr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=ln();return e.append(t,n),gr(t,n),e}function X(e,t){if(T){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),ze();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var br=[`touchstart`,`touchmove`];function xr(e){return br.includes(e)}function Sr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[ye]??=e.nodeValue)&&(e[ye]=n,e.nodeValue=`${n}`)}function Cr(e,t){return Er(e,t)}function wr(e,t){cn(),t.intro=t.intro??!1;let n=t.target,i=T,a=E;try{for(var o=I(n);o&&(o.nodeType!==8||o.data!==`[`);)o=un(o);if(!o)throw r;Re(!0),D(o);let i=Er(e,{...t,anchor:o});return Re(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==r&&console.warn(`Failed to hydrate: `,i),t.recover===!1&&ke(),cn(),fn(n),Re(!1),Cr(e,t)}finally{Re(i),D(a)}}var Tr=new Map;function Er(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){cn();var l=void 0,u=wn(()=>{var s=n??t.appendChild(ln());pt(s,{pending:()=>{}},t=>{qe({});var n=k;if(o&&(n.c=o),a&&(i.$$events=a),T&&gr(t,null),l=e(t,i)||{},T&&(W.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Ie(),r;Je()},c);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=xr(r);for(let e of[t,document]){var a=Tr.get(e);a===void 0&&(a=new Map,Tr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,fr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(d(lr)),ur.add(f),()=>{for(var e of u)for(let n of[t,document]){var r=Tr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,fr),r.delete(e),r.size===0&&Tr.delete(n)):r.set(e,i)}ur.delete(f),s!==n&&s.parentNode?.removeChild(s)}});return Dr.set(l,u),l}var Dr=new WeakMap;function Or(e,t){let n=Dr.get(e);return n?(Dr.delete(e),n(t)):Promise.resolve()}var kr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)In(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(In(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Rn(r,t),t.append(ln()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Pn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,r=pn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=ln();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=E),this.#a(n)}};function Z(e,t,n=!1){var r;T&&(r=E,ze());var i=new kr(e),a=n?ae:0;function o(e,t){if(T){var n=He(r);if(e!==parseInt(n.substring(1))){var a=Ve();D(a),i.anchor=a,Re(!1),i.ensure(e,t),Re(!0);return}}i.ensure(e,t)}On(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Ar(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Pn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;jr(e,d(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;fn(u),u.append(l),e.items.clear()}jr(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function jr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ce,Rn(a,document.createDocumentFragment())):V(t[i],n)}}var Mr;function Nr(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var l=e;o=T?D(I(l)):l.appendChild(ln())}T&&ze();var u=null,f=St(()=>{var e=n();return c(e)?e:e==null?[]:d(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=u,Fr(v,p,o,t,r),u!==null&&(p.length===0?u.f&33554432?(u.f^=ce,Lr(u,null,o)):In(u):Pn(u,()=>{u=null})))}function _(e){v.pending.delete(e)}var v={effect:On(()=>{p=J(f);var e=p.length;let c=!1;T&&He(o)===`[!`!=(e===0)&&(o=Ve(),D(o),Re(!1),c=!0);for(var l=new Set,d=M,v=pn(),y=0;y<e;y+=1){T&&E.nodeType===8&&E.data===`]`&&(o=E,c=!0,Re(!1));var ee=p[y],b=r(ee,y),x=h?null:s.get(b);x?(x.v&&Qt(x.v,ee),x.i&&Qt(x.i,y),v&&d.unskip_effect(x.e)):(x=Ir(s,h?o:Mr??=ln(),ee,b,y,i,t,n),h||(x.e.f|=ce),s.set(b,x)),l.add(b)}if(e===0&&a&&!u&&(h?u=B(()=>a(o)):(u=B(()=>a(Mr??=ln())),u.f|=ce)),e>l.size&&we(``,``,``),T&&e>0&&D(Ve()),!h)if(m.set(d,l),v){for(let[e,t]of s)l.has(e)||d.skip_effect(t.e);d.oncommit(g),d.ondiscard(_)}else g(d);c&&Re(!0),J(f)}),flags:t,items:s,pending:m,outrogroups:null,fallback:u};h=!1,T&&(o=E)}function Pr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Fr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Pr(e.effect.first),l,u=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(In(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ce,_===c)Lr(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Rr(e,u,_),Rr(e,_,y),Lr(_,y,n),u=_,p=[],m=[],c=Pr(u.next);continue}if(_!==c){if(l!==void 0&&l.has(_)){if(p.length<m.length){var ee=m[0],b;u=ee.prev;var x=p[0],S=p[p.length-1];for(b=0;b<p.length;b+=1)Lr(p[b],ee,n);for(b=0;b<m.length;b+=1)l.delete(m[b]);Rr(e,x.prev,S.next),Rr(e,u,x),Rr(e,S,ee),c=ee,u=S,--v,p=[],m=[]}else l.delete(_),Lr(_,c,n),Rr(e,_.prev,_.next),Rr(e,_,u===null?e.effect.first:u.next),Rr(e,u,_),u=_;continue}for(p=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=Pr(c.next);if(c===null)continue}_.f&33554432||p.push(_),u=_,c=Pr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(jr(e,d(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(_ of l)_.f&8192||C.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=Pr(c.next);var w=C.length;if(w>0){var te=r&4&&o===0?n:null;if(a){for(v=0;v<w;v+=1)C[v].nodes?.a?.measure();for(v=0;v<w;v+=1)C[v].nodes?.a?.fix()}Ar(e,C,te)}}a&&Qe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ir(e,t,n,r,i,a,o,s){var c=o&1?o&16?Xt(n):Zt(n,!1,!1):null,l=o&2?Xt(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Lr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=un(r);if(a.before(r),r===i)return;r=o}}function Rr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function zr(e,t,n=!1,i=!1,a=!1,c=!1){var l=e,u=``;if(n){var d=e;T&&(l=D(I(d)))}z(()=>{var e=W;if(u===(u=t()??``)){T&&ze();return}if(n&&!T){e.nodes=null,d.innerHTML=u,u!==``&&gr(I(d),d.lastChild);return}if(e.nodes!==null&&(Mn(e.nodes.start,e.nodes.end),e.nodes=null),u!==``){if(T){for(var c=E.data,f=ze(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=un(f);if(f===null)throw Ie(),r;gr(E,p),l=D(f);return}var m=mn(i?`svg`:a?`math`:`template`,i?o:a?s:void 0);m.innerHTML=u;var h=i||a?m:m.content;if(gr(I(h),h.lastChild),i||a)for(;I(h);)l.before(I(h));else l.before(h)}})}function Br(e,t){Tn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=mn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Vr=[...`
3
+ \r\f\xA0\v`];function Hr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Vr.includes(r[o-1]))&&(s===r.length||Vr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ur(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Wr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Gr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Wr)),i&&c.push(...Object.keys(i).map(Wr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Wr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ur(r)),i&&(n+=Ur(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Kr(e,t,n,r,i,a){var o=e[_e];if(T||o!==n||o===void 0){var s=Hr(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[_e]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function qr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Jr(e,t,n,r){var i=e[ve];if(T||i!==t){var a=Gr(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ve]=t}else r&&(Array.isArray(r)?(qr(e,n?.[0],r[0]),qr(e,n?.[1],r[1],`important`)):qr(e,n,r));return r}var Yr=Symbol(`is custom element`),Xr=Symbol(`is html`),Zr=Se?`link`:`LINK`,Qr=Se?`progress`:`PROGRESS`;function $r(e){if(T){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Q(e,`checked`,null),e.checked=r}}};e[be]=n,Qe(n),lt()}}function ei(e,t){var n=ni(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Qr)||(e.value=t??``)}function ti(e,t){var n=ni(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Q(e,t,n,r){var i=ni(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Zr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ii(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ni(e){return e[ge]??={[Yr]:e.nodeName.includes(`-`),[Xr]:e.namespaceURI===a}}var ri=new Map;function ii(e){var t=e.getAttribute(`is`)||e.nodeName,n=ri.get(t);if(n)return n;ri.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=h(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=v(i)}return n}function ai(e,t){return e===t||e?.[pe]===t}function oi(e={},t,n,r){var i=k.r,a=W;return Tn(()=>{var o,s;return Dn(()=>{o=s,s=r?.()||[],sr(()=>{ai(n(...s),e)||(t(e,...s),o&&ai(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ai(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function $(e,t,n,r){var i=!0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=yt(r),J(l)):(c&&(c=!1,s=o?sr(r):r),s);let d;if(a){var f=pe in e||me in e;d=m(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,h=!1;a?[p,h]=st(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ae(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?yt:St)(()=>(v=!1,g()));a&&J(y);var ee=W;return(function(e,t){if(arguments.length>0){let n=t?J(y):i&&a?nn(e):e;return F(y,n),v=!0,s!==void 0&&(s=n),e}return Vn&&v||ee.f&16384?y.v:J(y)})}function si(e){return new ci(e)}var ci=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Zt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return J(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:(J(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?wr:Cr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&N(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||p(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Or(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},li;typeof HTMLElement==`function`&&(li=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=mn(`slot`);e!=="default"&&(n.name=e),X(t,n)}}let t={},n=di(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=ui(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=si({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Cn(()=>{Dn(()=>{this.$$r=!0;for(let e of f(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=ui(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ui(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return f(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ui(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function di(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function fi(e,t,n,r,i,a){let o=class extends li{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return f(t).map(e=>(t[e].attribute||e).toLowerCase())}};return f(t).forEach(e=>{p(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ui(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(m(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{p(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var pi=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},mi=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},hi=e=>{let t=e;return t?typeof t.onSessionChange==`function`||typeof t.onAudioStarted==`function`||typeof t.onAudioEnded==`function`:!1};function gi(e,t={}){let n=t.hostPredicate??hi,r=e;for(;r;){if(n(r))return r;r=r.parentElement}if(typeof document<`u`&&t.fallbackSelector){let e=document.querySelector(t.fallbackSelector);if(n(e))return e}return null}function _i({sourceEl:e,fallbackSelector:t,component:n,complete:r,session:i}){let a=gi(e,{fallbackSelector:t});return a?typeof a.onSessionChange==`function`?(a.onSessionChange(i),a):(a.dispatchEvent(new mi(n,r)),a):null}function vi(e){return e.hasAudio?e.audioUrl?e.useFeatureButtonAudio?`feature-button`:`controls`:`error`:`none`}var yi=Y(`<audio class="sr-only pie-audio-player svelte-ypdwb3" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-ypdwb3" type="button"><img/> <img/></button>`,1),bi=Y(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`),xi=Y(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`,1),Si=Y(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`),Ci=Y(`<div class="mb-4 audio-container pie-audio-container"><!></div>`),wi={hash:`svelte-ypdwb3`,code:`.listen-button.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);border:0;padding:0;background-color:transparent;cursor:pointer;z-index:1;}.listen-button.svelte-ypdwb3:hover {background-color:#e2f1fe;}.listen-feature-icon.svelte-ypdwb3 {width:var(--mpb-listen-button-size, 128px);height:var(--mpb-listen-button-size, 128px);object-fit:contain;display:none;}.listen-feature-icon.listen-active.svelte-ypdwb3 {display:block;}.sr-only.svelte-ypdwb3 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}`};function Ti(e,t){qe(t,!0),Br(e,wi);let n={IDLE:`idle`,PLAYING:`playing`,BLOCKED:`blocked`,PAUSED:`paused`},r=$(t,`hasAudio`,7,!1),i=$(t,`audioUrl`,7),a=$(t,`useFeatureButtonAudio`,7,!1),o=$(t,`autoplayEnabled`,7,!1),s=$(t,`featureAudioSkin`,7),c=$(t,`uiText`,7),l=$(t,`locale`,7,``),u=$(t,`onaudiostarted`,7),d=$(t,`onaudioended`,7),f=P(null),p=P(null),m=P(null),h=P(nn(n.IDLE)),g=j(()=>vi({hasAudio:r(),audioUrl:i(),useFeatureButtonAudio:a()})),_=j(()=>J(h)===n.PLAYING),v=j(()=>J(h)===n.BLOCKED),y=j(()=>J(g)===`error`?c().audioResourceUnavailable:``);xn(()=>{i(),F(h,n.IDLE,!0)});function ee(){J(g)!==`none`&&J(g)!==`error`&&J(f)&&J(f).play().catch(()=>{})}function b(){J(g)!==`none`&&J(g)!==`error`&&J(f)&&J(f).play().finally(()=>{J(h)===n.BLOCKED&&F(h,n.PAUSED,!0)})}function x(e,t,n){xn(()=>{let r=e();if(r)return r.addEventListener(t,n),()=>r.removeEventListener(t,n)})}x(()=>J(f),`playing`,()=>{F(h,n.PLAYING,!0),u()?.()}),x(()=>J(f),`ended`,()=>{F(h,n.PAUSED,!0),d()?.()}),x(()=>J(p),`click`,()=>ee()),x(()=>J(m),`click`,()=>b()),xn(()=>{!o()||J(g)===`none`||J(g)===`error`||J(h)===n.IDLE&&J(f)&&i()&&(F(h,n.PAUSED,!0),J(f).play().catch(()=>{F(h,n.BLOCKED,!0)}))});function S(e=``){return e.toLowerCase().startsWith(`es`)?`Escuchar`:`Listen`}function C(e=``){return e.toLowerCase().startsWith(`es`)?c().listenSilentAltEs??`Escuchar. Repetir las instrucciones.`:c().listenSilentAlt??`Repeat instructions`}function w(e=``){return e.toLowerCase().startsWith(`es`)?c().listenPlayingAltEs??`Escuchar. Estas son las instrucciones.`:c().listenPlayingAlt??`Instructions are playing`}var te={get hasAudio(){return r()},set hasAudio(e=!1){r(e),N()},get audioUrl(){return i()},set audioUrl(e){i(e),N()},get useFeatureButtonAudio(){return a()},set useFeatureButtonAudio(e=!1){a(e),N()},get autoplayEnabled(){return o()},set autoplayEnabled(e=!1){o(e),N()},get featureAudioSkin(){return s()},set featureAudioSkin(e){s(e),N()},get uiText(){return c()},set uiText(e){c(e),N()},get locale(){return l()},set locale(e=``){l(e),N()},get onaudiostarted(){return u()},set onaudiostarted(e){u(e),N()},get onaudioended(){return d()},set onaudioended(e){d(e),N()}},ne=yr(),re=dn(ne),ie=e=>{var t=Ci(),n=L(t),r=e=>{var t=yi(),n=dn(t);oi(n,e=>F(f,e),()=>J(f));var r=R(n,2),a=L(r),o=R(a,2);O(r),oi(r,e=>F(p,e),()=>J(p)),z((e,t,c)=>{Q(n,`src`,i()),Q(r,`aria-label`,e),Kr(a,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${J(_)?``:`listen-active`}`,`svelte-ypdwb3`),Q(a,`src`,s().silentUrl),Q(a,`alt`,t),Kr(o,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${J(_)?`listen-active`:``}`,`svelte-ypdwb3`),Q(o,`src`,s().playingUrl),Q(o,`alt`,c)},[()=>S(l()),()=>C(l()),()=>w(l())]),X(e,t)},a=e=>{var t=xi(),n=dn(t);oi(n,e=>F(f,e),()=>J(f));var r=R(n,2),a=e=>{var t=bi(),n=L(t,!0);O(t),oi(t,e=>F(m,e),()=>J(m)),z(()=>Sr(n,c().clickToEnableAutoplay)),X(e,t)};Z(r,e=>{J(v)&&e(a)}),z(()=>Q(n,`src`,i())),X(e,t)},o=e=>{var t=Si(),n=L(t,!0);O(t),z(()=>Sr(n,J(y))),X(e,t)};Z(n,e=>{J(g)===`feature-button`?e(r):J(g)===`controls`?e(a,1):J(g)===`error`&&e(o,2)}),O(t),X(e,t)};return Z(re,e=>{J(g)!==`none`&&e(ie)}),X(e,ne),Je(te)}fi(Ti,{hasAudio:{},audioUrl:{},useFeatureButtonAudio:{},autoplayEnabled:{},featureAudioSkin:{},uiText:{},locale:{},onaudiostarted:{},onaudioended:{}},[],[],{mode:`open`});var Ei=Y(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`),Di=Y(`<span class="cloze-marker-value pie-blank-value svelte-d9l5tb"></span>`),Oi=Y(`<span class="cloze-marker-empty svelte-d9l5tb" aria-hidden="true">&nbsp;</span>`),ki=Y(`<span role="status" aria-live="polite" aria-atomic="true"><!></span>`),Ai={hash:`svelte-d9l5tb`,code:`.cloze-marker.svelte-d9l5tb {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.cloze-marker.svelte-d9l5tb:focus-within {outline:2px solid var(--mpb-focus-ring, #1565c0);outline-offset:2px;}.cloze-marker-standalone.svelte-d9l5tb {width:var(--mpb-blank-standalone-width, 7rem);}.cloze-marker-empty.svelte-d9l5tb {display:inline-block;min-width:4ch;}.cloze-marker-value.svelte-d9l5tb {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.cloze-marker-value.svelte-d9l5tb p {margin:0;}`};function ji(e,t){qe(t,!0),Br(e,Ai);let n=$(t,`choiceMode`,7,`text`),r=$(t,`displayChoice`,7,void 0),i=$(t,`displayChoiceLabelHtml`,7,``),a=$(t,`isStandalone`,7,!1),o=$(t,`blankWidth`,7),s=$(t,`blankBorderWidth`,7),c=$(t,`ariaLabel`,7);var l={get choiceMode(){return n()},set choiceMode(e=`text`){n(e),N()},get displayChoice(){return r()},set displayChoice(e=void 0){r(e),N()},get displayChoiceLabelHtml(){return i()},set displayChoiceLabelHtml(e=``){i(e),N()},get isStandalone(){return a()},set isStandalone(e=!1){a(e),N()},get blankWidth(){return o()},set blankWidth(e){o(e),N()},get blankBorderWidth(){return s()},set blankBorderWidth(e){s(e),N()},get ariaLabel(){return c()},set ariaLabel(e){c(e),N()}},u=ki(),d=L(u),f=e=>{var t=Ei();z(()=>{Q(t,`src`,r().imageUrl),Q(t,`alt`,r().imageAlt||`Selected answer image`)}),X(e,t)},p=e=>{var t=Di();zr(t,i,!0),O(t),X(e,t)},m=e=>{X(e,Oi())};return Z(d,e=>{n()===`image`&&r()?.imageUrl?e(f):i()?e(p,1):e(m,-1)}),O(u),z(()=>{Kr(u,1,`inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline cloze-marker pie-blank-slot ${a()?`cloze-marker-standalone pie-blank-slot-standalone`:``}`,`svelte-d9l5tb`),Jr(u,`width:${o()};border-bottom-width:${s()};`),Q(u,`aria-label`,c())}),X(e,u),Je(l)}fi(ji,{choiceMode:{},displayChoice:{},displayChoiceLabelHtml:{},isStandalone:{},blankWidth:{},blankBorderWidth:{},ariaLabel:{}},[],[],{mode:`open`});var Mi=Y(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Ni=Y(`<span class="choice-html pie-choice-label svelte-8xu1pt"></span>`),Pi=Y(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-8xu1pt"><span class="choice-tile-content pie-choice-tile-content svelte-8xu1pt"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-8xu1pt"/></label>`),Fi=Y(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-8xu1pt"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap svelte-8xu1pt"><!></label>`,1),Ii=Y(`<span aria-hidden="true"> </span>`),Li=Y(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`),Ri={hash:`svelte-8xu1pt`,code:`.choice-row-horizontal.svelte-8xu1pt {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));min-height:var(--mpb-choice-tile-min-height, 11rem);gap:0;}.choice-tile.svelte-8xu1pt {display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:var(--mpb-choice-tile-min-height, 11rem);padding:0.8rem 0.65rem 0.5rem;border-radius:8px;background:transparent;transition:background-color 120ms ease-in-out;}.choice-tile-content.svelte-8xu1pt {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-hover-bg, var(--pie-background-dark, #ecedf1));}.pie-choice-horizontal.svelte-8xu1pt:not(.is-selected):not(:hover) .pie-choice-tile:where(.svelte-8xu1pt) {background:transparent;}.choice-row-horizontal.is-selected.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-secondary-background, rgba(241, 241, 241, 1)));}.choice-row-horizontal.is-selected.svelte-8xu1pt:hover .choice-tile:where(.svelte-8xu1pt) {background:var(--mpb-choice-selected-bg, var(--pie-secondary-background, rgba(241, 241, 241, 1)));}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-background-dark, #ecedf1);}.pie-choice.svelte-8xu1pt:not(.pie-choice-horizontal):not(.is-selected):not(:hover) .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:transparent;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-secondary-background, rgba(241, 241, 241, 1));border-radius:6px;}.pie-choice:not(.pie-choice-horizontal).is-selected.svelte-8xu1pt:hover .pie-choice-label-wrap:where(.svelte-8xu1pt) {background:var(--pie-secondary-background, rgba(241, 241, 241, 1));}.pie-choice.choice-correct.svelte-8xu1pt {border-left:3px solid var(--pie-correct-tertiary, #0ea449);}.pie-choice.choice-incorrect.svelte-8xu1pt {border-left:3px solid var(--pie-incorrect-icon, #bf0d00);}.pie-choice-horizontal.choice-correct.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-correct-secondary, #e8f5e9);}.pie-choice-horizontal.choice-incorrect.svelte-8xu1pt .choice-tile:where(.svelte-8xu1pt) {background:var(--pie-incorrect-secondary, #ffebee);}.pie-choice-feedback-badge.svelte-8xu1pt {margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:9999px;font-size:0.72rem;line-height:1;font-weight:700;color:var(--pie-white, #ffffff);}.pie-choice-feedback-correct.svelte-8xu1pt {background:var(--pie-correct-icon, #087d38);}.pie-choice-feedback-incorrect.svelte-8xu1pt {background:var(--pie-incorrect-icon, #bf0d00);}.choice-row-horizontal.svelte-8xu1pt p {margin:0;text-align:center;}.choice-html.svelte-8xu1pt p {margin:0;}.choice-html.svelte-8xu1pt {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.choice-radio-bottom.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);padding:var(--mpb-choice-radio-padding, 0px);}.choice-radio-inline.svelte-8xu1pt {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}`};function zi(e,t){qe(t,!0),Br(e,Ri);let n=$(t,`choice`,7),r=$(t,`choiceMode`,7,`text`),i=$(t,`isHorizontal`,7,!1),a=$(t,`isSelected`,7,!1),o=$(t,`isDisabled`,7,!1),s=$(t,`correctness`,7,void 0),c=$(t,`isEvaluateMode`,7,!1),l=$(t,`instanceId`,7),u=$(t,`radioGroupName`,7);var d={get choice(){return n()},set choice(e){n(e),N()},get choiceMode(){return r()},set choiceMode(e=`text`){r(e),N()},get isHorizontal(){return i()},set isHorizontal(e=!1){i(e),N()},get isSelected(){return a()},set isSelected(e=!1){a(e),N()},get isDisabled(){return o()},set isDisabled(e=!1){o(e),N()},get correctness(){return s()},set correctness(e=void 0){s(e),N()},get isEvaluateMode(){return c()},set isEvaluateMode(e=!1){c(e),N()},get instanceId(){return l()},set instanceId(e){l(e),N()},get radioGroupName(){return u()},set radioGroupName(e){u(e),N()}},f=Li(),p=L(f),m=e=>{var t=Pi(),i=L(t),s=L(i),c=e=>{var t=Mi();z(()=>{Q(t,`src`,n().imageUrl),Q(t,`alt`,n().imageAlt||`Choice ${n().id}`)}),X(e,t)},d=e=>{var t=Ni();zr(t,()=>n().labelHtml||``,!0),O(t),X(e,t)};Z(s,e=>{r()===`image`&&n().imageUrl?e(c):e(d,-1)}),O(i);var f=R(i,2);$r(f),O(t),z(()=>{Q(t,`for`,`${l()}-opt-${n().id}`),Q(f,`name`,u()),Q(f,`id`,`${l()}-opt-${n().id}`),ei(f,n().id),ti(f,a()),f.disabled=o()}),X(e,t)},h=e=>{var t=Fi(),i=dn(t);$r(i);var s=R(i,2),c=L(s),d=e=>{var t=Mi();z(()=>{Q(t,`src`,n().imageUrl),Q(t,`alt`,n().imageAlt||`Choice ${n().id}`)}),X(e,t)},f=e=>{var t=Ni();zr(t,()=>n().labelHtml||``,!0),O(t),X(e,t)};Z(c,e=>{r()===`image`&&n().imageUrl?e(d):e(f,-1)}),O(s),z(()=>{Q(i,`name`,u()),Q(i,`id`,`${l()}-opt-${n().id}`),ei(i,n().id),ti(i,a()),i.disabled=o(),Q(s,`for`,`${l()}-opt-${n().id}`)}),X(e,t)};Z(p,e=>{i()?e(m):e(h,-1)});var g=R(p,2),_=e=>{var t=Ii(),n=L(t,!0);O(t),z(()=>{Kr(t,1,`pie-choice-feedback-badge ${s()===`correct`?`pie-choice-feedback-correct`:`pie-choice-feedback-incorrect`}`,`svelte-8xu1pt`),Sr(n,s()===`correct`?`✓`:`✕`)}),X(e,t)};return Z(g,e=>{c()&&s()&&e(_)}),O(f),z(()=>Kr(f,1,`flex items-start choice-row pie-choice ${i()?`choice-row-horizontal pie-choice-horizontal`:``} ${a()?`is-selected pie-choice-selected`:``} ${s()?`choice-${s()} pie-choice-${s()}`:``}`,`svelte-8xu1pt`)),X(e,f),Je(d)}fi(zi,{choice:{},choiceMode:{},isHorizontal:{},isSelected:{},isDisabled:{},correctness:{},isEvaluateMode:{},instanceId:{},radioGroupName:{}},[],[],{mode:`open`});function Bi(e){let t=new Map,{isEvaluateMode:n,correctChoiceId:r,selectedId:i,showCorrectAnswer:a}=e;return!n||!r?t:a?(t.set(r,`correct`),t):i?i===r?(t.set(r,`correct`),t):(t.set(i,`incorrect`),t.set(r,`incorrect`),t):(t.set(r,`incorrect`),t)}var Vi=`{{blank}}`,Hi=new Set([`audio_blank_only`,`stimulus_image_blank`,`token_sequence`]);function Ui(e){let{interactionMode:t=``,template:n=``,choiceLayout:r,layoutProfile:i=``,hasAudio:a=!1,useFeatureButtonAudio:o}=e,s=t===`audio_mc_only`,c=n?n.replace(/<[^>]+>/g,``).replace(/&nbsp;/g,` `).trim()===Vi:!1,l=r===`horizontal`||r===`vertical`?r:s||c?`horizontal`:`vertical`;return{isAudioOnlyMode:s,isBlankOnlyTemplate:c,choiceLayout:l,isHorizontalChoices:l===`horizontal`,hasInlineSentenceAudioLayout:i===`inline_sentence`&&a,useFeatureButtonAudio:typeof o==`boolean`?o:a&&Hi.has(i)}}var Wi={blankStandaloneWidthRem:7,blankWideWidthRem:10,blankUnderlineWidthPx:2,blankUnderlineWideWidthPx:4,horizontalChoiceWidthPx:170,horizontalChoiceWidthVw:30,horizontalChoiceTileMinHeightRem:11,horizontalChoiceContentMinHeightRem:7.5,selectedImageMaxHeightRem:4,choiceImageMaxHeightRem:5,listenButtonSizePx:128,stimulusMinColumnPx:210,textMinColumnPx:260,legendMaxChars:120,choiceGroupGapRem:.5,choiceRowGapRem:.5,toggleButtonGapRem:.5,horizontalChoiceRadioTopMarginRem:.5,audioBlankTemplateMarginTopRem:.8,audioBlankTemplateMarginBottomRem:1.8,audioInstructionsMaxWidthPx:875,narrowHorizontalChoiceMaxWidthPx:230,stimulusGridColumnGapRem:2,stimulusGridRowGapRem:.7,stimulusSentenceMarginTopRem:.2,stimulusChoicesMarginTopRem:.9,tokenGridColumnGapRem:1.5,tokenGridRowGapRem:.8,tokenTemplateMarginTopRem:.6,tokenInlineTokenGapRem:.35,tokenChoicesMarginTopRem:.2,inlineGridColumnGapRem:1.5,inlineGridRowGapRem:.65,inlineTemplateMarginTopRem:.45,inlineChoicesMarginTopRem:.25},Gi={blankStandaloneWidthRem:{varName:`--mpb-blank-standalone-width`,unit:`rem`},blankWideWidthRem:{varName:`--mpb-blank-wide-width`,unit:`rem`},blankUnderlineWidthPx:{varName:`--mpb-blank-underline-width`,unit:`px`},blankUnderlineWideWidthPx:{varName:`--mpb-blank-underline-wide-width`,unit:`px`},horizontalChoiceWidthPx:{varName:`--mpb-choice-width-px`,unit:`px`},horizontalChoiceWidthVw:{varName:`--mpb-choice-width-vw`,unit:`vw`},horizontalChoiceTileMinHeightRem:{varName:`--mpb-choice-tile-min-height`,unit:`rem`},horizontalChoiceContentMinHeightRem:{varName:`--mpb-choice-content-min-height`,unit:`rem`},choiceImageMaxHeightRem:{varName:`--mpb-choice-image-max-height`,unit:`rem`},selectedImageMaxHeightRem:{varName:`--mpb-selected-image-max-height`,unit:`rem`},choiceGroupGapRem:{varName:`--mpb-choice-group-gap`,unit:`rem`},choiceRowGapRem:{varName:`--mpb-choice-row-gap`,unit:`rem`},horizontalChoiceRadioTopMarginRem:{varName:`--mpb-horizontal-choice-radio-top-margin`,unit:`rem`},narrowHorizontalChoiceMaxWidthPx:{varName:`--mpb-narrow-choice-max-width`,unit:`px`},toggleButtonGapRem:{varName:`--mpb-toggle-button-gap`,unit:`rem`},listenButtonSizePx:{varName:`--mpb-listen-button-size`,unit:`px`},audioBlankTemplateMarginTopRem:{varName:`--mpb-audio-blank-template-margin-top`,unit:`rem`},audioBlankTemplateMarginBottomRem:{varName:`--mpb-audio-blank-template-margin-bottom`,unit:`rem`},audioInstructionsMaxWidthPx:{varName:`--mpb-audio-instructions-max-width`,unit:`px`},stimulusMinColumnPx:{varName:`--mpb-stimulus-min-column`,unit:`px`},textMinColumnPx:{varName:`--mpb-text-min-column`,unit:`px`},stimulusGridColumnGapRem:{varName:`--mpb-stimulus-grid-column-gap`,unit:`rem`},stimulusGridRowGapRem:{varName:`--mpb-stimulus-grid-row-gap`,unit:`rem`},stimulusSentenceMarginTopRem:{varName:`--mpb-stimulus-sentence-margin-top`,unit:`rem`},stimulusChoicesMarginTopRem:{varName:`--mpb-stimulus-choices-margin-top`,unit:`rem`},tokenGridColumnGapRem:{varName:`--mpb-token-grid-column-gap`,unit:`rem`},tokenGridRowGapRem:{varName:`--mpb-token-grid-row-gap`,unit:`rem`},tokenTemplateMarginTopRem:{varName:`--mpb-token-template-margin-top`,unit:`rem`},tokenInlineTokenGapRem:{varName:`--mpb-token-inline-token-gap`,unit:`rem`},tokenChoicesMarginTopRem:{varName:`--mpb-token-choices-margin-top`,unit:`rem`},inlineGridColumnGapRem:{varName:`--mpb-inline-grid-column-gap`,unit:`rem`},inlineGridRowGapRem:{varName:`--mpb-inline-grid-row-gap`,unit:`rem`},inlineTemplateMarginTopRem:{varName:`--mpb-inline-template-margin-top`,unit:`rem`},inlineChoicesMarginTopRem:{varName:`--mpb-inline-choices-margin-top`,unit:`rem`}},Ki={audio_blank_only:{blankWideWidthRem:10,blankUnderlineWideWidthPx:6,horizontalChoiceTileMinHeightRem:11.25,horizontalChoiceContentMinHeightRem:9.375,choiceGroupGapRem:1,audioBlankTemplateMarginBottomRem:1.875},stimulus_image_blank:{blankWideWidthRem:10,blankUnderlineWideWidthPx:6},token_sequence:{blankStandaloneWidthRem:7,blankUnderlineWideWidthPx:6}};function qi(e){let{layoutProfile:t,isBlankOnlyTemplate:n}=e,r=e.configuredLimits&&typeof e.configuredLimits==`object`?e.configuredLimits:{},i=e.customProfilePresets&&typeof e.customProfilePresets==`object`?e.customProfilePresets:{},a=i[t]&&typeof i[t]==`object`?i[t]:{},o={...Ki[t]??{},...a},s={...Wi,...r,...o},c=[`audio_blank_only`,`stimulus_image_blank`],l=[`audio_blank_only`,`stimulus_image_blank`,`token_sequence`],u=c.includes(t)?`${s.blankWideWidthRem}rem`:n?`${s.blankStandaloneWidthRem}rem`:`auto`,d=l.includes(t)?`${s.blankUnderlineWideWidthPx}px`:`${s.blankUnderlineWidthPx}px`;return{rootStyle:Object.keys(Gi).map(e=>`${Gi[e].varName}:${s[e]}${Gi[e].unit}`).join(`;`),blankWidth:u,blankBorderWidth:d,legendMaxChars:s.legendMaxChars}}var Ji={default:{silentUrl:`https://assets.learnosity.com/organisations/844/0c9f2aa3-3cd5-4de7-93ef-541c24ca35da.svg`,playingUrl:`https://assets.learnosity.com/organisations/844/231dfdc2-c113-4be5-91fb-e75a0ca5994b.svg`},es:{silentUrl:`https://assets.learnosity.com/organisations/844/27a9d5b5-d873-4bd5-b9ba-22748782d8ba.svg`,playingUrl:`https://assets.learnosity.com/organisations/844/120f216d-96b7-4560-94b8-1d90710216b7.svg`}};function Yi(e){let t=String(e.locale||``).toLowerCase(),n=t.slice(0,2),r=e.audioButtonSkinsByLocale&&typeof e.audioButtonSkinsByLocale==`object`?e.audioButtonSkinsByLocale:{},i=e.audioButtonSkin&&typeof e.audioButtonSkin==`object`?e.audioButtonSkin:null,a=t.startsWith(`es`)?Ji.es:Ji.default;return r[t]||r[n]||r.default||i||a}function Xi(e){let{selectedId:t,isEvaluateMode:n,showCorrectAnswer:r,alwaysShowCorrect:i,correctChoiceId:a}=e;return i&&a||n&&r&&a?a:t}function Zi(e){let{isEvaluateMode:t,showCorrectAnswer:n,isCorrect:r,isIncorrect:i,selectedId:a}=e;return!t||n?``:r?`Correct answer selected`:i&&a?`Incorrect answer selected`:``}function Qi(e){let{prompt:t,legendMaxChars:n,answerChoicesLabel:r}=e,i=t.replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim(),a=Math.max(8,n);return i?i.length>a?`${i.slice(0,Math.max(1,a-1))}…`:i:r}var $i=`/* Shared base styles for all sel_r1-*_plusggg variants.
4
4
  Applied via the data-mpb-variant="sel-r1-base" style element.
5
5
  Uses [class*="variant-sel-r1-"] so it covers every r1 variant class.
6
6
  Source: web-ItemBankViewer/learnosity/templates/Renaissance/r1.scss */
@@ -106,7 +106,7 @@
106
106
  width: 150px;
107
107
  height: 150px;
108
108
  }
109
- `,oa={"sel_r1-_plusggg":{variantId:`sel-r1-plusggg`,variantClass:`variant-sel-r1-plusggg`,sourceUrl:`https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_plusggg/0.0.1/question.css`,cssText:`/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_plusggg/0.0.1/question.css */
109
+ `,ea={"sel_r1-_plusggg":{variantId:`sel-r1-plusggg`,variantClass:`variant-sel-r1-plusggg`,sourceUrl:`https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_plusggg/0.0.1/question.css`,cssText:`/* Source baseline: https://global-pr-ibvcustomfiles.renaissance-go.com/learnosity/sel_r1-_plusggg/0.0.1/question.css */
110
110
  /* Shared r1 base styles (font, template-line flex, choice-label) are in sel-r1-base.css */
111
111
  .mc-populated-blank-root.variant-sel-r1-plusggg {
112
112
  max-width: 875px;
@@ -209,8 +209,6 @@
209
209
  --mpb-inline-grid-row-gap: 0.5rem;
210
210
  --mpb-inline-template-margin-top: 0.2rem;
211
211
  --mpb-inline-choices-margin-top: 0.2rem;
212
- --pie-correct-answer-choice-hover-bg: #e2e2e2;
213
- --pie-correct-answer-choice-selected-bg: #fcfcd3;
214
212
  }
215
213
 
216
214
  .mc-populated-blank-root.variant-sel-vic .pie-audio-transcript {
@@ -467,19 +465,20 @@
467
465
  .mc-populated-blank-root.variant-sel-r1-s3 .pie-choice-horizontal .pie-choice-radio {
468
466
  transform: scale(0.85);
469
467
  }
470
- `}},sa=e=>String(e||``).trim().toLowerCase().replace(/v\d+\.\d+\.\d+$/i,``),ca=e=>oa[sa(e)],la=e=>ca(e)?.variantClass||``,ua=new Set([`sel-r1-plusggg`,`sel-r1-gplusggg`,`sel-r1-g-stem`,`sel-r1-gg-plus`,`sel-r1-ggplus`,`sel-r1-s3`]),da=(e,t,n)=>{let r=document.getElementById(e);if(r){r.textContent!==n&&(r.textContent=n);return}let i=document.createElement(`style`);i.id=e,i.setAttribute(`data-mpb-variant`,t),i.textContent=n,document.head.appendChild(i)},fa=e=>{!e?.cssText||typeof document>`u`||(ua.has(e.variantId)&&da(`mc-populated-blank-css-sel-r1-base`,`sel-r1-base`,aa),da(`mc-populated-blank-css-${e.variantId}`,e.variantId,e.cssText))},pa=J(`<div class="mb-4 prose pie-prompt"></div>`),ma=J(`<p> </p>`),ha=hr(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-283 359 34 35"><circle cx="-266" cy="375.9" r="14" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></circle><path d="M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z" fill="var(--pie-correct-answer-toggle-icon-open-bg, #bce2ff)"></path><polygon points="-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`),ga=hr(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-129.5 127 34 35"><path d="M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z" fill="#D0CAC5" stroke="#E6E3E0" stroke-width="0.75"></path><path d="M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z" fill="#B3ABA4" stroke="#CDC7C2" stroke-width="0.5"></path><circle cx="-114.2" cy="143.5" r="14" fill="white"></circle><path d="M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z" fill="var(--pie-correct-answer-toggle-icon-closed-bg, #bce2ff)"></path><polygon points="-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2" fill="var(--pie-correct-answer-toggle-icon-glyph-color, #1a9cff)"></polygon></svg>`),_a=J(`<div class="pie-correct-answer-toggle-row svelte-6wlbb4"><button type="button" class="mb-3 pie-toggle-correct-answer svelte-6wlbb4" style="gap:var(--mpb-toggle-button-gap, 0.5rem);" data-testid="show-correct-answer"><span class="pie-correct-answer-toggle-content svelte-6wlbb4"><span class="pie-correct-answer-toggle-icon-holder svelte-6wlbb4" aria-hidden="true"><!></span> <span class="pie-correct-answer-toggle-label svelte-6wlbb4"> </span></span></button></div>`),va=J(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`),ya=J(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!><!><!></div>`),ba=J(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`),xa=J(`<div><!> <!> <!> <!> <!> <!> <!> <fieldset class="border-0 p-0 m-0 pie-choices-fieldset svelte-6wlbb4"><legend class="sr-only pie-choices-legend svelte-6wlbb4"> </legend> <div style="gap:var(--mpb-choice-group-gap, 0.5rem);" role="radiogroup" tabindex="-1"></div></fieldset></div>`),Sa={hash:`svelte-6wlbb4`,code:`.sr-only.svelte-6wlbb4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.mc-populated-blank-root.svelte-6wlbb4 .prose {max-width:none;}.pie-toggle-correct-answer.svelte-6wlbb4 {width:100%;cursor:pointer;border:0;background:transparent;padding:0;display:flex;justify-content:center;text-align:center;color:var(--pie-correct-answer-toggle-label-color, var(--pie-text, black));}.pie-correct-answer-toggle-row.svelte-6wlbb4 {width:100%;display:flex;justify-content:flex-end;}.pie-correct-answer-toggle-content.svelte-6wlbb4 {display:flex;margin:0 auto;align-items:center;}.pie-correct-answer-toggle-icon-holder.svelte-6wlbb4 {width:25px;margin-right:5px;display:inline-flex;align-items:center;justify-content:center;}.pie-correct-answer-toggle-svg.svelte-6wlbb4 {width:25px;height:25px;}.pie-correct-answer-toggle-label.svelte-6wlbb4 {width:fit-content;min-width:140px;align-self:center;vertical-align:middle;font-weight:400;user-select:none;}.pie-toggle-correct-answer.svelte-6wlbb4:hover .pie-correct-answer-toggle-label:where(.svelte-6wlbb4),
471
- .pie-toggle-correct-answer.svelte-6wlbb4:focus-visible .pie-correct-answer-toggle-label:where(.svelte-6wlbb4) {text-decoration:underline;}.template-line.svelte-6wlbb4 {white-space:pre-wrap;}.template-line.svelte-6wlbb4 p {margin:0;}.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,
468
+ `}},ta=e=>String(e||``).trim().toLowerCase().replace(/v\d+\.\d+\.\d+$/i,``),na=e=>ea[ta(e)],ra=e=>na(e)?.variantClass||``,ia=new Set([`sel-r1-plusggg`,`sel-r1-gplusggg`,`sel-r1-g-stem`,`sel-r1-gg-plus`,`sel-r1-ggplus`,`sel-r1-s3`]),aa=(e,t,n)=>{let r=document.getElementById(e);if(r){r.textContent!==n&&(r.textContent=n);return}let i=document.createElement(`style`);i.id=e,i.setAttribute(`data-mpb-variant`,t),i.textContent=n,document.head.appendChild(i)},oa=e=>{!e?.cssText||typeof document>`u`||(ia.has(e.variantId)&&aa(`mc-populated-blank-css-sel-r1-base`,`sel-r1-base`,$i),aa(`mc-populated-blank-css-${e.variantId}`,e.variantId,e.cssText))},sa=Y(`<div class="mb-4 prose pie-prompt"></div>`),ca=vr(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-283 359 34 35"><circle cx="-266" cy="375.9" r="14" fill="var(--pie-tertiary-light, #d0e2f0)"></circle><path d="M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z" fill="var(--pie-tertiary-light, #d0e2f0)"></path><polygon points="-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6" fill="var(--pie-tertiary, #146eb3)"></polygon></svg>`),la=vr(`<svg class="pie-correct-answer-toggle-svg svelte-6wlbb4" preserveAspectRatio="xMinYMin meet" version="1.1" viewBox="-129.5 127 34 35"><path d="M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z" fill="#D0CAC5" stroke="#E6E3E0" stroke-width="0.75"></path><path d="M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z" fill="#B3ABA4" stroke="#CDC7C2" stroke-width="0.5"></path><circle cx="-114.2" cy="143.5" r="14" fill="white"></circle><path d="M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z" fill="var(--pie-background-dark, #ecedf1)"></path><polygon points="-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2" fill="var(--pie-tertiary, #146eb3)"></polygon></svg>`),ua=Y(`<div class="pie-correct-answer-toggle-row svelte-6wlbb4"><button type="button" class="mb-3 pie-toggle-correct-answer svelte-6wlbb4" style="gap:var(--mpb-toggle-button-gap, 0.5rem);" data-testid="show-correct-answer"><span class="pie-correct-answer-toggle-content svelte-6wlbb4"><span class="pie-correct-answer-toggle-icon-holder svelte-6wlbb4" aria-hidden="true"><!></span> <span class="pie-correct-answer-toggle-label svelte-6wlbb4"> </span></span></button></div>`),da=Y(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`),fa=Y(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!><!><!></div>`),pa=Y(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`),ma=Y(`<div><!> <!> <!> <!> <!> <!> <fieldset class="border-0 p-0 m-0 pie-choices-fieldset svelte-6wlbb4"><legend class="sr-only pie-choices-legend svelte-6wlbb4"> </legend> <div style="gap:var(--mpb-choice-group-gap, 0.5rem);" role="radiogroup" tabindex="-1"></div></fieldset></div>`),ha={hash:`svelte-6wlbb4`,code:`.sr-only.svelte-6wlbb4 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}.mc-populated-blank-root.svelte-6wlbb4 {--mpb-focus-ring: var(
469
+ --pie-focus-outline,
470
+ var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565c0))
471
+ );}.mc-populated-blank-root.svelte-6wlbb4 .prose {max-width:none;}.pie-toggle-correct-answer.svelte-6wlbb4 {width:100%;cursor:pointer;border:0;background:transparent;padding:0;display:flex;justify-content:center;text-align:center;color:var(--pie-text, black);}.pie-correct-answer-toggle-row.svelte-6wlbb4 {width:100%;display:flex;justify-content:flex-end;}.pie-correct-answer-toggle-content.svelte-6wlbb4 {display:flex;margin:0 auto;align-items:center;}.pie-correct-answer-toggle-icon-holder.svelte-6wlbb4 {width:25px;margin-right:5px;display:inline-flex;align-items:center;justify-content:center;}.pie-correct-answer-toggle-svg.svelte-6wlbb4 {width:25px;height:25px;}.pie-correct-answer-toggle-label.svelte-6wlbb4 {width:fit-content;min-width:140px;align-self:center;vertical-align:middle;font-weight:400;user-select:none;}.pie-toggle-correct-answer.svelte-6wlbb4:hover .pie-correct-answer-toggle-label:where(.svelte-6wlbb4),
472
+ .pie-toggle-correct-answer.svelte-6wlbb4:focus-visible .pie-correct-answer-toggle-label:where(.svelte-6wlbb4) {text-decoration:underline;}.template-line.svelte-6wlbb4 {white-space:pre-wrap;}.template-line.svelte-6wlbb4 p {margin:0;display:inline;}.layout-audio_blank_only.svelte-6wlbb4 .pie-audio-container,
472
473
  .layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {display:flex;width:min(100%, var(--mpb-audio-instructions-max-width, 875px));margin-left:auto;margin-right:auto;justify-content:flex-end;}.layout-audio_blank_only.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4),
473
474
  .layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {text-align:center;margin:var(--mpb-audio-blank-template-margin-top, 0.8rem) 0
474
475
  var(--mpb-audio-blank-template-margin-bottom, 1.8rem);}.layout-audio_blank_only.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {display:flex;justify-content:center;}.layout-audio_blank_only.svelte-6wlbb4 .pie-blank-slot,
475
- .layout-stimulus_image_blank.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-wide-width, 10rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 6px);min-height:160px;padding-bottom:4px;}.layout-stimulus_image_blank.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-stimulus-min-column, 210px), 1fr) auto;grid-template-areas:'transcript transcript'
476
- 'sentence audio'
476
+ .layout-stimulus_image_blank.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-wide-width, 10rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 6px);min-height:160px;padding-bottom:4px;}.layout-stimulus_image_blank.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-stimulus-min-column, 210px), 1fr) auto;grid-template-areas:'sentence audio'
477
477
  '. template'
478
- 'choices choices';column-gap:var(--mpb-stimulus-grid-column-gap, 2rem);row-gap:var(--mpb-stimulus-grid-row-gap, 0.7rem);align-items:start;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;}.layout-stimulus_image_blank.svelte-6wlbb4 .sentence-line:where(.svelte-6wlbb4) {grid-area:sentence;margin:var(--mpb-stimulus-sentence-margin-top, 0.2rem) 0 0;}.layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:0;text-align:center;justify-self:center;}.layout-stimulus_image_blank.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-stimulus-choices-margin-top, 0.9rem);}.layout-token_sequence.svelte-6wlbb4 {display:grid;grid-template-columns:1fr auto;grid-template-areas:'transcript audio'
478
+ 'choices choices';column-gap:var(--mpb-stimulus-grid-column-gap, 2rem);row-gap:var(--mpb-stimulus-grid-row-gap, 0.7rem);align-items:start;}.layout-stimulus_image_blank.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;}.layout-stimulus_image_blank.svelte-6wlbb4 .sentence-line:where(.svelte-6wlbb4) {grid-area:sentence;margin:var(--mpb-stimulus-sentence-margin-top, 0.2rem) 0 0;}.layout-stimulus_image_blank.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:0;text-align:center;justify-self:center;}.layout-stimulus_image_blank.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-stimulus-choices-margin-top, 0.9rem);}.layout-token_sequence.svelte-6wlbb4 {display:grid;grid-template-columns:1fr auto;grid-template-areas:'audio audio'
479
479
  'template template'
480
- 'choices choices';column-gap:var(--mpb-token-grid-column-gap, 1.5rem);row-gap:var(--mpb-token-grid-row-gap, 0.8rem);align-items:start;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-token-template-margin-top, 0.6rem) 0 0;justify-self:center;text-align:center;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) span + span {margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-standalone-width, 7rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 4px);margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-token-choices-margin-top, 0.2rem);}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-text-min-column, 260px), 1fr) auto;grid-template-areas:'transcript transcript'
481
- 'template audio'
482
- 'choices choices';column-gap:var(--mpb-inline-grid-column-gap, 1.5rem);row-gap:var(--mpb-inline-grid-row-gap, 0.65rem);align-items:start;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-transcript:where(.svelte-6wlbb4) {grid-area:transcript;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-inline-template-margin-top, 0.45rem) 0 0;text-align:center;justify-self:center;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-inline-choices-margin-top, 0.25rem);}
480
+ 'choices choices';column-gap:var(--mpb-token-grid-column-gap, 1.5rem);row-gap:var(--mpb-token-grid-row-gap, 0.8rem);align-items:start;}.layout-token_sequence.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-token-template-margin-top, 0.6rem) 0 0;justify-self:center;text-align:center;}.layout-token_sequence.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) span + span {margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 .pie-blank-slot {width:var(--mpb-blank-standalone-width, 7rem);border-bottom-width:var(--mpb-blank-underline-wide-width, 4px);margin-left:var(--mpb-token-inline-token-gap, 0.35rem);}.layout-token_sequence.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-token-choices-margin-top, 0.2rem);}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 {display:grid;grid-template-columns:minmax(var(--mpb-text-min-column, 260px), 1fr) auto;grid-template-areas:'template audio'
481
+ 'choices choices';column-gap:var(--mpb-inline-grid-column-gap, 1.5rem);row-gap:var(--mpb-inline-grid-row-gap, 0.65rem);align-items:start;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .pie-audio-container {grid-area:audio;margin:0;justify-self:end;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .template-line:where(.svelte-6wlbb4) {grid-area:template;margin:var(--mpb-inline-template-margin-top, 0.45rem) 0 0;text-align:center;justify-self:center;}.layout-inline_sentence.has-inline-audio.svelte-6wlbb4 fieldset:where(.svelte-6wlbb4) {grid-area:choices;margin-top:var(--mpb-inline-choices-margin-top, 0.25rem);}
483
482
 
484
483
  /* Match Learnosity responsive behavior for CQT audio-blank layouts:
485
484
  at smaller widths, audio control shifts left and answer tiles stack. */
@@ -493,4 +492,4 @@
493
492
  .layout-token_sequence.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),
494
493
  .layout-stimulus_image_blank.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),
495
494
  .layout-inline_sentence.has-inline-audio.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4) {width:min(100%, var(--mpb-narrow-choice-max-width, 230px));align-items:flex-start;}
496
- }`};function Ca(e,t){He(t,!0),Rr(e,Sa);let n={answerChoices:`Answer choices`,selectedAnswerInSentence:`Selected answer in sentence`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,transcriptLabel:`Transcript`},r=Z(t,`model`,7),i=Z(t,`session`,7),a=R(``),o=R(null),s=R(null),c=R(null),l=R(!1),u=`mc-populated-blank-${Math.random().toString(36).slice(2,10)}`,d=L(()=>(r()?.mode||r()?.env?.mode||``).toString()),f=L(()=>q(d)===`evaluate`),p=L(()=>r()?.correctness),m=L(()=>typeof r()?.responseCorrect==`boolean`?r().responseCorrect:q(p)===`correct`),h=L(()=>q(p)===`correct`),g=L(()=>q(p)===`incorrect`),_=R(!1),v=L(()=>q(f)&&!q(m)&&!!r()?.correctChoiceId),y=L(()=>r()?.layoutProfile||``),b=L(()=>Yi({interactionMode:r()?.interactionMode,template:r()?.template,choiceLayout:r()?.choiceLayout,layoutProfile:q(y),hasAudio:r()?.hasAudio,useFeatureButtonAudio:r()?.useFeatureButtonAudio})),x=L(()=>q(b).isAudioOnlyMode),S=L(()=>q(b).isBlankOnlyTemplate),C=L(()=>q(b).isHorizontalChoices),w=L(()=>q(b).hasInlineSentenceAudioLayout),T=L(()=>q(b).useFeatureButtonAudio),ee=L(()=>q(l)),te=L(()=>[`--pie-correct-answer-toggle-label-color:${gi.text()}`,`--pie-correct-answer-toggle-icon-open-bg:${gi.tertiaryLight()}`,`--pie-correct-answer-toggle-icon-closed-bg:${gi.backgroundDark()}`,`--pie-correct-answer-toggle-icon-glyph-color:${gi.tertiary()}`,`--pie-correct-answer-choice-hover-bg:${gi.backgroundDark()}`,`--pie-correct-answer-choice-selected-bg:${gi.secondaryBackground()}`,`--pie-correct-answer-choice-correct-bg:${gi.correctSecondary()}`,`--pie-correct-answer-choice-incorrect-bg:${gi.incorrectSecondary()}`,`--pie-correct-answer-choice-correct-border:${gi.correctTertiary()}`,`--pie-correct-answer-choice-incorrect-border:${gi.incorrectWithIcon()}`,`--pie-correct-answer-feedback-correct-bg:${gi.correctWithIcon()}`,`--pie-correct-answer-feedback-incorrect-bg:${gi.incorrectWithIcon()}`,`--pie-correct-answer-feedback-glyph-color:${gi.white()}`].join(`;`)),ne=L(()=>$i({layoutProfile:q(y),isBlankOnlyTemplate:q(S),configuredLimits:r()?.layoutLimits,customProfilePresets:r()?.layoutProfilePresets,correctAnswerStyleVars:q(te)})),re=L(()=>Array.isArray(r()?.choices)?r().choices:[]),ie=L(()=>r()?.choiceMode||`text`),ae=L(()=>i()?.choiceId||q(a)||``),oe=L(()=>`${u}-choice-group-${r()?.id||`1`}`),se=L(()=>na({selectedId:q(ae),isEvaluateMode:q(f),showCorrectAnswer:q(_),alwaysShowCorrect:!!r()?.alwaysShowCorrect,correctChoiceId:String(r()?.correctChoiceId||``)})),ce=L(()=>q(re).find(e=>e.id===q(se))),le=L(()=>String(q(ce)?.labelHtml||``)),ue=L(()=>ra({isEvaluateMode:q(f),showCorrectAnswer:q(_),isCorrect:q(h),isIncorrect:q(g),selectedId:q(ae)})),de=L(()=>Ki({isEvaluateMode:q(f),correctChoiceId:String(r()?.correctChoiceId||``),selectedId:String(q(ae)||``),showCorrectAnswer:q(_)})),fe=L(()=>({...n,...r()?.uiText||{}})),pe=L(()=>`${u}-prompt`),me=L(()=>`${u}-transcript`),he=L(()=>`${u}-choices-legend`),ge=L(()=>`${u}-result`),_e=L(()=>ia({prompt:r()?.prompt||``,legendMaxChars:q(ne).legendMaxChars,answerChoicesLabel:q(fe).answerChoices})),ve=L(()=>r()?.prompt?q(pe):void 0),ye=L(()=>r()?.prompt?void 0:String(r()?.choiceGroupLabel||``).trim()||q(_e)),be=L(()=>{let e=[];return r()?.prompt&&e.push(q(pe)),r()?.hasAudio&&r()?.audioTranscript&&e.push(q(me)),e.length?e.join(` `):void 0}),xe=L(()=>{let e=r()?.locale||``;return e?e.slice(0,2):`en`}),Se=L(()=>ca(r()?.customType)),Ce=L(()=>la(r()?.customType)),we=L(()=>{let e=r()?.template||``,t=e.indexOf(`{{blank}}`);if(t<0)return{before:e,after:``};let n=e.slice(0,t),i=e.slice(t+9);return q(y)===`inline_sentence`&&(n=`${n.replace(/\s+$/,``)} `,i=` ${i.replace(/^\s+/,``)}`),{before:n,after:i}});function Te(e,t){xi({sourceEl:t,fallbackSelector:`mc-populated-blank`,component:`mc-populated-blank`,session:e,complete:!!e?.choiceId})}function Ee(e){let t=e.target;if(!t.checked)return;let n=t.value;z(a,n,!0),Te({...i(),id:i()?.id||r()?.id||`1`,element:`mc-populated-blank`,choiceId:n},t)}function De(){q(v)&&z(_,!q(_))}pn(()=>{(!q(f)||q(m))&&z(_,!1)});function Oe(e){if(r()?.disabled)return;let t=e.key;if(![`ArrowDown`,`ArrowRight`,`ArrowUp`,`ArrowLeft`].includes(t))return;e.preventDefault();let n=e.currentTarget,i=Array.from(n.querySelectorAll(`input[type="radio"]:not([disabled])`));if(i.length===0)return;let a=i.findIndex(e=>e.checked);a=t===`ArrowDown`||t===`ArrowRight`?a<0?0:(a+1)%i.length:a<0?i.length-1:(a-1+i.length)%i.length;let o=i[a];o.checked=!0,o.dispatchEvent(new Event(`change`,{bubbles:!0})),o.focus()}let ke=L(()=>ta({locale:r()?.locale,audioButtonSkin:r()?.audioButtonSkin,audioButtonSkinsByLocale:r()?.audioButtonSkinsByLocale}));function Ae(){bi(q(c),{fallbackSelector:`mc-populated-blank`})?.onAudioStarted?.()}function je(){bi(q(c),{fallbackSelector:`mc-populated-blank`})?.onAudioEnded?.()}pn(()=>{i()?.choiceId&&z(a,i().choiceId,!0)}),pn(()=>{let e=q(o);if(e)return e.addEventListener(`click`,De),()=>e.removeEventListener(`click`,De)}),pn(()=>{let e=q(s);if(!e)return;let t=e=>{let t=e.target;!t||t.type!==`radio`||Ee(e)},n=e=>Oe(e);return e.addEventListener(`change`,t),e.addEventListener(`keydown`,n),()=>{e.removeEventListener(`change`,t),e.removeEventListener(`keydown`,n)}}),pn(()=>{fa(q(Se))}),pn(()=>{let e=q(c);if(!e)return;let t=()=>{z(l,!!e.closest(`.rli-with-audio-transcript`))};t();let n=new MutationObserver(t),r=e.parentElement;for(;r;)n.observe(r,{attributes:!0,attributeFilter:[`class`]}),r=r.parentElement;return()=>n.disconnect()});var E={get model(){return r()},set model(e){r(e),I()},get session(){return i()},set session(e){i(e),I()}},D=xa(),O=V(D),k=e=>{var t=pa();Lr(t,()=>r().prompt,!0),A(t),U(()=>X(t,`id`,q(pe))),Y(e,t)};Dr(O,e=>{r()?.prompt&&e(k)});var Me=H(O,2),Ne=e=>{var t=ma(),n=V(t,!0);A(t),U(()=>{Wr(t,1,`text-sm mb-3 text-gray-700 text-center pie-audio-transcript ${q(ee)?``:`sr-only`}`,`svelte-6wlbb4`),X(t,`id`,q(me)),yr(n,r().audioTranscript)}),Y(e,t)};Dr(Me,e=>{r()?.audioTranscript&&e(Ne)});var Pe=H(Me,2),Fe=e=>{var t=_a(),n=V(t),r=V(n),i=V(r),a=V(i),s=e=>{Y(e,ha())},c=e=>{Y(e,ga())};Dr(a,e=>{q(_)?e(s):e(c,-1)}),A(i);var l=H(i,2),u=V(l,!0);A(l),A(r),A(n),ii(n,e=>z(o,e),()=>q(o)),A(t),U(()=>{X(n,`aria-pressed`,q(_)),yr(u,q(_)?q(fe).hideCorrectAnswer:q(fe).showCorrectAnswer)}),Y(e,t)};Dr(Pe,e=>{q(v)&&e(Fe)});var Ie=H(Pe,2);{let e=L(()=>!!r()?.hasAudio),t=L(()=>r()?.audioUrl),n=L(()=>!!r()?.autoplayAudioEnabled),i=L(()=>r()?.audioTranscript),a=L(()=>r()?.locale);ki(Ie,{get hasAudio(){return q(e)},get audioUrl(){return q(t)},get useFeatureButtonAudio(){return q(T)},get autoplayEnabled(){return q(n)},get audioTranscript(){return q(i)},get showVisibleTranscript(){return q(ee)},get transcriptId(){return q(me)},get featureAudioSkin(){return q(ke)},get uiText(){return q(fe)},get locale(){return q(a)},onaudiostarted:Ae,onaudioended:je})}var Le=H(Ie,2),Re=e=>{var t=va();Lr(t,()=>r().sentenceHtml,!0),A(t),U(()=>X(t,`aria-describedby`,q(be))),Y(e,t)};Dr(Le,e=>{r()?.sentenceHtml&&e(Re)});var ze=H(Le,2),Be=e=>{var t=ya(),n=V(t);Lr(n,()=>q(we).before);var r=H(n);Fi(r,{get choiceMode(){return q(ie)},get displayChoice(){return q(ce)},get displayChoiceLabelHtml(){return q(le)},get isStandalone(){return q(S)},get blankWidth(){return q(ne).blankWidth},get blankBorderWidth(){return q(ne).blankBorderWidth},get ariaLabel(){return q(fe).selectedAnswerInSentence}}),Lr(H(r),()=>q(we).after),A(t),U(()=>X(t,`aria-describedby`,q(be))),Y(e,t)};Dr(ze,e=>{q(x)||e(Be)});var j=H(ze,2),Ve=e=>{var t=ba(),n=V(t,!0);A(t),U(()=>{X(t,`id`,q(ge)),yr(n,q(ue))}),Y(e,t)};Dr(j,e=>{q(ue)&&e(Ve)});var We=H(j,2),Ge=V(We),Ke=V(Ge,!0);A(Ge);var M=H(Ge,2);return jr(M,21,()=>q(re),e=>e.id,(e,t)=>{{let n=L(()=>q(se)===q(t).id),i=L(()=>!!r()?.disabled),a=L(()=>q(de).get(q(t).id));Gi(e,{get choice(){return q(t)},get choiceMode(){return q(ie)},get isHorizontal(){return q(C)},get isSelected(){return q(n)},get isDisabled(){return q(i)},get correctness(){return q(a)},get isEvaluateMode(){return q(f)},get instanceId(){return u},get radioGroupName(){return q(oe)}})}}),A(M),ii(M,e=>z(s,e),()=>q(s)),A(We),A(D),ii(D,e=>z(c,e),()=>q(c)),U(()=>{Wr(D,1,`p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${q(y)} ${q(Ce)} ${q(w)?`has-inline-audio`:``}`,`svelte-6wlbb4`),X(D,`lang`,q(xe)),Kr(D,q(ne).rootStyle),We.disabled=r()?.disabled,X(Ge,`id`,q(he)),yr(Ke,q(_e)),Wr(M,1,`pie-choices ${q(C)?`flex flex-row flex-wrap items-start justify-center`:`flex flex-col`}`,`svelte-6wlbb4`),X(M,`aria-labelledby`,q(ve)),X(M,`aria-label`,q(ye)),X(M,`aria-describedby`,q(ue)?q(ge):void 0)}),Y(e,D),Ue(E)}ui(Ca,{model:{type:`Object`},session:{type:`Object`},options:{type:`Object`}},[],[]);function wa(e,t,n=!1){return!(!t?.choiceId||e?.autoplayAudioEnabled&&e?.completeAudioEnabled&&e?.hasAudio&&!n)}var Ta=Ca.element,Ea=class extends Ta{_internalSession=null;_model=null;_options=null;audioComplete=!1;_dispatchModelSet=()=>{this.dispatchEvent(new _i(this.tagName.toLowerCase(),this._isComplete(),this._model!==void 0))};_dispatchSessionChanged=()=>{this.dispatchEvent(new vi(this.tagName.toLowerCase(),this._isComplete()))};set model(e){this._model=e,this.audioComplete=!1,super.model=e,this._dispatchModelSet()}get model(){return this._model}set session(e){this._internalSession=e,super.session=e,this._dispatchSessionChanged()}get session(){return this._internalSession}set options(e){this._options=e,super.options=e}get options(){return this._options}onSessionChange=e=>{this._internalSession=e,super.session=e,this._dispatchSessionChanged()};onAudioStarted=()=>{this._internalSession={...this._internalSession||{},audioStartTime:Date.now()}};onAudioEnded=()=>{this.audioComplete=!0,this._internalSession={...this._internalSession||{},audioEndTime:Date.now()},this._dispatchSessionChanged()};_isComplete=()=>wa(this._model,this._internalSession,this.audioComplete);connectedCallback(){super.connectedCallback(),this.onSessionChange=this.onSessionChange,this.onAudioStarted=this.onAudioStarted,this.onAudioEnded=this.onAudioEnded}},Da=`{{blank}}`,Oa={model:{id:`1`,element:`mc-populated-blank`,prompt:`<p><strong>Demo prompt</strong></p>`,promptEnabled:!0,interactionMode:`populate_blank`,layoutProfile:``,choiceLayout:``,layoutProfilePresets:{},layoutLimits:{...Xi},audioButtonSkin:null,audioButtonSkinsByLocale:{},uiText:{answerChoices:`Answer choices`,selectedAnswerInSentence:`blank`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,transcriptLabel:`Transcript`,listenLabelEn:`Listen`,listenLabelEs:`Escuchar`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,listenSilentAltEs:`Escuchar. Repetir las instrucciones.`,listenPlayingAltEs:`Escuchar. Estas son las instrucciones.`},sentenceHtml:``,template:`<p>The answer is ${Da}.</p>`,choiceMode:`text`,choices:[{id:`c1`,labelHtml:`<p>Option A</p>`},{id:`c2`,labelHtml:`<p>Option B</p>`},{id:`c3`,labelHtml:`<p>Option C</p>`}],correctChoiceId:`c2`,hasAudio:!1,autoplayAudioEnabled:!1,completeAudioEnabled:!1,audioUrl:``,audioTranscript:``,showVisibleTranscript:!1,locale:``,teacherInstructions:``,teacherInstructionsEnabled:!1},configuration:{prompt:{label:`Prompt`,settings:!0}}},ka=n({countBlankTokens:()=>ja,createCorrectResponseSession:()=>Ga,createDefaultModel:()=>Fa,getCorrectness:()=>Ma,getPartialScore:()=>Na,model:()=>Wa,normalize:()=>Ia,normalizeSession:()=>La,outcome:()=>Pa,validate:()=>Ka}),Aa=e=>!!e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0;function ja(e){return e?(e.match(/\{\{blank\}\}/g)||[]).length:0}var Ma=(e,t)=>{if(!t?.choiceId)return`unanswered`;let n=e?.correctChoiceId||``;return t.choiceId===n?`correct`:`incorrect`},Na=(e,t)=>!t||Aa(t)||!t.choiceId?0:1,Pa=(e,t,n)=>new Promise(r=>{if(!t||Aa(t)){r({score:0,empty:!0,traceLog:[`Student did not select any answers. Score is 0.`]});return}t=La(t);let i=Ma(e,t);if(i===`unanswered`){r({score:0,empty:!0,traceLog:[`Student did not select any answers. Score is 0.`]});return}let a=+(i===`correct`);r({score:a,empty:!1,traceLog:[`Mode: ${n?.mode||`unknown`}.`,`Student selected choice: ${t.choiceId}.`,`Correct choice: ${e?.correctChoiceId||`none`}.`,`Final score: ${a}.`]})}),Fa=(e={})=>({...Oa.model,...e,layoutLimits:{...Xi,...e?.layoutLimits||{}}}),Ia=(e={})=>Fa(e),La=e=>({...e}),Ra=e=>!!e?.shuffle,za=(e,t)=>e?.lockChoiceOrder||t?.[`@pie-element`]?.lockChoiceOrder?!0:t?.role===`instructor`;function Ba(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}var Va=e=>Array.isArray(e?.data?.shuffledValues)?e.data.shuffledValues:Array.isArray(e?.shuffledValues)?e.shuffledValues:[],Ha=(e,t,n)=>{let r=t.map(t=>e.find(e=>e?.[n]===t)).filter(e=>!!e);if(r.length===e.length)return r;let i=new Set(r.map(e=>e[n])),a=e.filter(e=>!i.has(e?.[n]));return[...r,...a]},Ua=async(e,t,n,r)=>{let i=Array.isArray(e?.choices)?[...e.choices]:[];if(!i.length||!Ra(e)||za(e,n||{}))return i;let a=Va(t);if(a.length)return Ha(i,a,`id`);let o=Ba(i);if(r&&typeof r==`function`&&t?.id&&t?.element){let e=o.map(e=>e?.id).filter(Boolean);e.length&&await r(t.id,t.element,{shuffledValues:e})}return o},Wa=async(e,t,n,r)=>{let i=t||{},a=n||{},o=Ia(e),s=await Ua(o,i,a,r),c={prompt:o.promptEnabled?o.prompt:null,interactionMode:o.interactionMode||`populate_blank`,layoutProfile:o.layoutProfile||``,choiceLayout:o.choiceLayout||``,layoutProfilePresets:o.layoutProfilePresets&&typeof o.layoutProfilePresets==`object`?o.layoutProfilePresets:{},layoutLimits:o.layoutLimits||{...Xi},audioButtonSkin:o.audioButtonSkin&&typeof o.audioButtonSkin==`object`?o.audioButtonSkin:null,audioButtonSkinsByLocale:o.audioButtonSkinsByLocale&&typeof o.audioButtonSkinsByLocale==`object`?o.audioButtonSkinsByLocale:{},uiText:o.uiText&&typeof o.uiText==`object`?o.uiText:{},sentenceHtml:o.sentenceHtml||null,template:o.template,choiceMode:o.choiceMode,choices:s,hasAudio:o.hasAudio,autoplayAudioEnabled:!!o.autoplayAudioEnabled,completeAudioEnabled:!!o.completeAudioEnabled,audioUrl:o.hasAudio?o.audioUrl:null,audioTranscript:o.hasAudio?o.audioTranscript:null,showVisibleTranscript:!!o.showVisibleTranscript,customType:o.customType||``,useFeatureButtonAudio:typeof o.useFeatureButtonAudio==`boolean`?o.useFeatureButtonAudio:void 0,locale:o.locale||``,disabled:a.mode!==`gather`,mode:a.mode};if(a.mode===`evaluate`){let e=Ma(o,i);c.correctness=e,c.responseCorrect=e===`correct`,c.correctChoiceId=o.correctChoiceId}return a.role===`instructor`&&(a.mode===`view`||a.mode===`evaluate`)?c.teacherInstructions=o.teacherInstructionsEnabled?o.teacherInstructions:null:c.teacherInstructions=null,c},Ga=(e,t)=>new Promise(n=>{t.mode!==`evaluate`&&t.role===`instructor`?n({id:`1`,element:`mc-populated-blank`,choiceId:e?.correctChoiceId||``}):n(null)}),Ka=(e={},t={})=>{let n={};if(e.promptEnabled){let t=e.prompt?.trim()||``;(!t||t===`<p></p>`)&&(n.prompt=`Prompt is required when prompt is enabled`)}let r=e.interactionMode||`populate_blank`,i=ja(e.template||``);r===`audio_mc_only`?i>0&&(n.template=`Template cannot contain ${Da} in audio-only mode`):r===`populate_blank`?i===0?n.template=`Template must contain exactly one ${Da} placeholder`:i>1&&(n.template=`Template must contain only one ${Da} placeholder`):n.interactionMode=`Unknown interaction mode`;let a=Array.isArray(e.choices)?e.choices:[];a.length<2&&(n.choices=`At least two choices are required`);let o=e.choiceMode||`text`;for(let e=0;e<a.length;e++){let t=a[e];if(!t?.id){n.choices=`Choice ${e+1} is missing an id`;break}if(o===`text`){let r=(t.labelHtml||``).trim();if(!r||r===`<p></p>`){n.choices=`Choice ${e+1} needs label text`;break}}else{if(!t.imageUrl?.trim()){n.choices=`Choice ${e+1} needs an image URL`;break}if(!t.imageAlt?.trim()){n.choices=`Choice ${e+1} needs image alt text`;break}}}let s=e.correctChoiceId;(!s||!a.some(e=>e.id===s))&&(n.correctChoiceId=`Correct choice must match one of the choice ids`),e.hasAudio&&(e.audioUrl?.trim()||(n.audioUrl=`A playable audio URL is required when audio is enabled`));let c=e?.layoutLimits;if(c&&typeof c==`object`)for(let e of`blankStandaloneWidthRem.blankWideWidthRem.blankUnderlineWidthPx.blankUnderlineWideWidthPx.horizontalChoiceWidthPx.horizontalChoiceWidthVw.horizontalChoiceTileMinHeightRem.horizontalChoiceContentMinHeightRem.selectedImageMaxHeightRem.choiceImageMaxHeightRem.listenButtonSizePx.stimulusMinColumnPx.textMinColumnPx.legendMaxChars.choiceGroupGapRem.choiceRowGapRem.toggleButtonGapRem.horizontalChoiceRadioTopMarginRem.audioBlankTemplateMarginTopRem.audioBlankTemplateMarginBottomRem.audioInstructionsMaxWidthPx.narrowHorizontalChoiceMaxWidthPx.stimulusGridColumnGapRem.stimulusGridRowGapRem.stimulusSentenceMarginTopRem.stimulusChoicesMarginTopRem.tokenGridColumnGapRem.tokenGridRowGapRem.tokenTemplateMarginTopRem.tokenInlineTokenGapRem.tokenChoicesMarginTopRem.inlineGridColumnGapRem.inlineGridRowGapRem.inlineTemplateMarginTopRem.inlineChoicesMarginTopRem`.split(`.`)){if(c[e]===void 0||c[e]===null)continue;let t=Number(c[e]);if(!Number.isFinite(t)||t<=0){n.layoutLimits=`${e} must be a positive number when provided`;break}}return n},qa={...ka},Ja=Ea;e.controller=qa,e.default=Ja})(this.McPopulatedBlankElement=this.McPopulatedBlankElement||{});
495
+ }`};function ga(e,t){qe(t,!0),Br(e,ha);let n={answerChoices:`Answer choices`,selectedAnswerInSentence:`Selected answer in sentence`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`},r=$(t,`model`,7),i=$(t,`session`,7),a=P(``),o=P(null),s=P(null),c=P(null),l=`mc-populated-blank-${Math.random().toString(36).slice(2,10)}`,u=j(()=>(r()?.mode||r()?.env?.mode||``).toString()),d=j(()=>J(u)===`evaluate`),f=j(()=>r()?.correctness),p=j(()=>typeof r()?.responseCorrect==`boolean`?r().responseCorrect:J(f)===`correct`),m=j(()=>J(f)===`correct`),h=j(()=>J(f)===`incorrect`),g=P(!1),_=j(()=>J(d)&&!J(p)&&!!r()?.correctChoiceId),v=j(()=>r()?.layoutProfile||``),y=j(()=>Ui({interactionMode:r()?.interactionMode,template:r()?.template,choiceLayout:r()?.choiceLayout,layoutProfile:J(v),hasAudio:r()?.hasAudio,useFeatureButtonAudio:r()?.useFeatureButtonAudio})),ee=j(()=>J(y).isAudioOnlyMode),b=j(()=>J(y).isBlankOnlyTemplate),x=j(()=>J(y).isHorizontalChoices),S=j(()=>J(y).hasInlineSentenceAudioLayout),C=j(()=>J(y).useFeatureButtonAudio),w=j(()=>qi({layoutProfile:J(v),isBlankOnlyTemplate:J(b),configuredLimits:r()?.layoutLimits,customProfilePresets:r()?.layoutProfilePresets})),te=j(()=>Array.isArray(r()?.choices)?r().choices:[]),ne=j(()=>r()?.choiceMode||`text`),re=j(()=>i()?.choiceId||J(a)||``),ie=j(()=>`${l}-choice-group-${r()?.id||`1`}`),ae=j(()=>Xi({selectedId:J(re),isEvaluateMode:J(d),showCorrectAnswer:J(g),alwaysShowCorrect:!!r()?.alwaysShowCorrect,correctChoiceId:String(r()?.correctChoiceId||``)})),oe=j(()=>J(te).find(e=>e.id===J(ae))),se=j(()=>String(J(oe)?.labelHtml||``)),ce=j(()=>Zi({isEvaluateMode:J(d),showCorrectAnswer:J(g),isCorrect:J(m),isIncorrect:J(h),selectedId:J(re)})),le=j(()=>Bi({isEvaluateMode:J(d),correctChoiceId:String(r()?.correctChoiceId||``),selectedId:String(J(re)||``),showCorrectAnswer:J(g)})),ue=j(()=>({...n,...r()?.uiText||{}})),de=j(()=>`${l}-prompt`),fe=j(()=>`${l}-choices-legend`),pe=j(()=>`${l}-result`),me=j(()=>Qi({prompt:r()?.prompt||``,legendMaxChars:J(w).legendMaxChars,answerChoicesLabel:J(ue).answerChoices})),he=j(()=>r()?.prompt?J(de):void 0),ge=j(()=>r()?.prompt?void 0:String(r()?.choiceGroupLabel||``).trim()||J(me)),_e=j(()=>r()?.prompt?J(de):void 0),ve=j(()=>{let e=r()?.locale||``;return e?e.slice(0,2):`en`}),ye=j(()=>na(r()?.customType)),be=j(()=>ra(r()?.customType)),xe=j(()=>{let e=r()?.template||``,t=e.indexOf(`{{blank}}`);if(t<0)return{before:e,after:``};let n=e.slice(0,t),i=e.slice(t+9);return J(v)===`inline_sentence`&&(n=`${n.replace(/\s+$/,``)} `,i=` ${i.replace(/^\s+/,``)}`),{before:n,after:i}});function Se(e,t){_i({sourceEl:t,fallbackSelector:`mc-populated-blank`,component:`mc-populated-blank`,session:e,complete:!!e?.choiceId})}function Ce(e){let t=e.target;if(!t.checked)return;let n=t.value;F(a,n,!0),Se({...i(),id:i()?.id||r()?.id||`1`,element:`mc-populated-blank`,choiceId:n},t)}function we(){J(_)&&F(g,!J(g))}xn(()=>{(!J(d)||J(p))&&F(g,!1)});function Te(e){if(r()?.disabled)return;let t=e.key;if(![`ArrowDown`,`ArrowRight`,`ArrowUp`,`ArrowLeft`].includes(t))return;e.preventDefault();let n=e.currentTarget,i=Array.from(n.querySelectorAll(`input[type="radio"]:not([disabled])`));if(i.length===0)return;let a=i.findIndex(e=>e.checked);a=t===`ArrowDown`||t===`ArrowRight`?a<0?0:(a+1)%i.length:a<0?i.length-1:(a-1+i.length)%i.length;let o=i[a];o.checked=!0,o.dispatchEvent(new Event(`change`,{bubbles:!0})),o.focus()}let Ee=j(()=>Yi({locale:r()?.locale,audioButtonSkin:r()?.audioButtonSkin,audioButtonSkinsByLocale:r()?.audioButtonSkinsByLocale}));function De(){gi(J(c),{fallbackSelector:`mc-populated-blank`})?.onAudioStarted?.()}function Oe(){gi(J(c),{fallbackSelector:`mc-populated-blank`})?.onAudioEnded?.()}xn(()=>{i()?.choiceId&&F(a,i().choiceId,!0)}),xn(()=>{let e=J(o);if(e)return e.addEventListener(`click`,we),()=>e.removeEventListener(`click`,we)}),xn(()=>{let e=J(s);if(!e)return;let t=e=>{e.target?.type===`radio`&&Ce(e)},n=e=>Te(e);return e.addEventListener(`change`,t),e.addEventListener(`keydown`,n),()=>{e.removeEventListener(`change`,t),e.removeEventListener(`keydown`,n)}}),xn(()=>{oa(J(ye))});var ke={get model(){return r()},set model(e){r(e),N()},get session(){return i()},set session(e){i(e),N()}},Ae=ma(),je=L(Ae),Me=e=>{var t=sa();zr(t,()=>r().prompt,!0),O(t),z(()=>Q(t,`id`,J(de))),X(e,t)};Z(je,e=>{r()?.prompt&&e(Me)});var Ne=R(je,2),Pe=e=>{var t=ua(),n=L(t),r=L(n),i=L(r),a=L(i),s=e=>{X(e,ca())},c=e=>{X(e,la())};Z(a,e=>{J(g)?e(s):e(c,-1)}),O(i);var l=R(i,2),u=L(l,!0);O(l),O(r),O(n),oi(n,e=>F(o,e),()=>J(o)),O(t),z(()=>{Q(n,`aria-pressed`,J(g)),Sr(u,J(g)?J(ue).hideCorrectAnswer:J(ue).showCorrectAnswer)}),X(e,t)};Z(Ne,e=>{J(_)&&e(Pe)});var Fe=R(Ne,2);{let e=j(()=>!!r()?.hasAudio),t=j(()=>r()?.audioUrl),n=j(()=>!!r()?.autoplayAudioEnabled),i=j(()=>r()?.locale);Ti(Fe,{get hasAudio(){return J(e)},get audioUrl(){return J(t)},get useFeatureButtonAudio(){return J(C)},get autoplayEnabled(){return J(n)},get featureAudioSkin(){return J(Ee)},get uiText(){return J(ue)},get locale(){return J(i)},onaudiostarted:De,onaudioended:Oe})}var Ie=R(Fe,2),Le=e=>{var t=da();zr(t,()=>r().sentenceHtml,!0),O(t),z(()=>Q(t,`aria-describedby`,J(_e))),X(e,t)};Z(Ie,e=>{r()?.sentenceHtml&&e(Le)});var T=R(Ie,2),Re=e=>{var t=fa(),n=L(t);zr(n,()=>J(xe).before);var r=R(n);ji(r,{get choiceMode(){return J(ne)},get displayChoice(){return J(oe)},get displayChoiceLabelHtml(){return J(se)},get isStandalone(){return J(b)},get blankWidth(){return J(w).blankWidth},get blankBorderWidth(){return J(w).blankBorderWidth},get ariaLabel(){return J(ue).selectedAnswerInSentence}}),zr(R(r),()=>J(xe).after),O(t),z(()=>Q(t,`aria-describedby`,J(_e))),X(e,t)};Z(T,e=>{J(ee)||e(Re)});var E=R(T,2),D=e=>{var t=pa(),n=L(t,!0);O(t),z(()=>{Q(t,`id`,J(pe)),Sr(n,J(ce))}),X(e,t)};Z(E,e=>{J(ce)&&e(D)});var ze=R(E,2),Be=L(ze),Ve=L(Be,!0);O(Be);var He=R(Be,2);return Nr(He,21,()=>J(te),e=>e.id,(e,t)=>{{let n=j(()=>J(ae)===J(t).id),i=j(()=>!!r()?.disabled),a=j(()=>J(le).get(J(t).id));zi(e,{get choice(){return J(t)},get choiceMode(){return J(ne)},get isHorizontal(){return J(x)},get isSelected(){return J(n)},get isDisabled(){return J(i)},get correctness(){return J(a)},get isEvaluateMode(){return J(d)},get instanceId(){return l},get radioGroupName(){return J(ie)}})}}),O(He),oi(He,e=>F(s,e),()=>J(s)),O(ze),O(Ae),oi(Ae,e=>F(c,e),()=>J(c)),z(()=>{Kr(Ae,1,`p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${J(v)} ${J(be)} ${J(S)?`has-inline-audio`:``}`,`svelte-6wlbb4`),Q(Ae,`lang`,J(ve)),Jr(Ae,J(w).rootStyle),ze.disabled=r()?.disabled,Q(Be,`id`,J(fe)),Sr(Ve,J(me)),Kr(He,1,`pie-choices ${J(x)?`flex flex-row flex-wrap items-start justify-center`:`flex flex-col`}`,`svelte-6wlbb4`),Q(He,`aria-labelledby`,J(he)),Q(He,`aria-label`,J(ge)),Q(He,`aria-describedby`,J(ce)?J(pe):void 0)}),X(e,Ae),Je(ke)}fi(ga,{model:{type:`Object`},session:{type:`Object`},options:{type:`Object`}},[],[]);function _a(e,t,n=!1){return!(!t?.choiceId||e?.autoplayAudioEnabled&&e?.completeAudioEnabled&&e?.hasAudio&&!n)}var va=ga.element,ya=class extends va{_internalSession=null;_model=null;_options=null;audioComplete=!1;_dispatchModelSet=()=>{this.dispatchEvent(new pi(this.tagName.toLowerCase(),this._isComplete(),this._model!==void 0))};_dispatchSessionChanged=()=>{this.dispatchEvent(new mi(this.tagName.toLowerCase(),this._isComplete()))};set model(e){this._model=e,this.audioComplete=!1,super.model=e,this._dispatchModelSet()}get model(){return this._model}set session(e){this._internalSession=e,super.session=e,this._dispatchSessionChanged()}get session(){return this._internalSession}set options(e){this._options=e,super.options=e}get options(){return this._options}onSessionChange=e=>{this._internalSession=e,super.session=e,this._dispatchSessionChanged()};onAudioStarted=()=>{this._internalSession={...this._internalSession||{},audioStartTime:Date.now()}};onAudioEnded=()=>{this.audioComplete=!0,this._internalSession={...this._internalSession||{},audioEndTime:Date.now()},this._dispatchSessionChanged()};_isComplete=()=>_a(this._model,this._internalSession,this.audioComplete);connectedCallback(){super.connectedCallback(),this.onSessionChange=this.onSessionChange,this.onAudioStarted=this.onAudioStarted,this.onAudioEnded=this.onAudioEnded}},ba=`{{blank}}`,xa={model:{id:`1`,element:`mc-populated-blank`,prompt:`<p><strong>Demo prompt</strong></p>`,promptEnabled:!0,interactionMode:`populate_blank`,layoutProfile:``,choiceLayout:``,layoutProfilePresets:{},layoutLimits:{...Wi},audioButtonSkin:null,audioButtonSkinsByLocale:{},uiText:{answerChoices:`Answer choices`,selectedAnswerInSentence:`blank`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,transcriptLabel:`Transcript`,listenLabelEn:`Listen`,listenLabelEs:`Escuchar`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,listenSilentAltEs:`Escuchar. Repetir las instrucciones.`,listenPlayingAltEs:`Escuchar. Estas son las instrucciones.`},sentenceHtml:``,template:`<p>The answer is ${ba}.</p>`,choiceMode:`text`,choices:[{id:`c1`,labelHtml:`<p>Option A</p>`},{id:`c2`,labelHtml:`<p>Option B</p>`},{id:`c3`,labelHtml:`<p>Option C</p>`}],correctChoiceId:`c2`,hasAudio:!1,autoplayAudioEnabled:!1,completeAudioEnabled:!1,audioUrl:``,audioTranscript:``,locale:``,teacherInstructions:``,teacherInstructionsEnabled:!1},configuration:{prompt:{label:`Prompt`,settings:!0}}},Sa=n({countBlankTokens:()=>wa,createCorrectResponseSession:()=>Ra,createDefaultModel:()=>Oa,getCorrectness:()=>Ta,getPartialScore:()=>Ea,model:()=>La,normalize:()=>ka,normalizeSession:()=>Aa,outcome:()=>Da,validate:()=>za}),Ca=e=>!!e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0;function wa(e){return e?(e.match(/\{\{blank\}\}/g)||[]).length:0}var Ta=(e,t)=>{if(!t?.choiceId)return`unanswered`;let n=e?.correctChoiceId||``;return t.choiceId===n?`correct`:`incorrect`},Ea=(e,t)=>!t||Ca(t)||!t.choiceId?0:1,Da=(e,t,n)=>new Promise(r=>{if(!t||Ca(t)){r({score:0,empty:!0,traceLog:[`Student did not select any answers. Score is 0.`]});return}t=Aa(t);let i=Ta(e,t);if(i===`unanswered`){r({score:0,empty:!0,traceLog:[`Student did not select any answers. Score is 0.`]});return}let a=+(i===`correct`);r({score:a,empty:!1,traceLog:[`Mode: ${n?.mode||`unknown`}.`,`Student selected choice: ${t.choiceId}.`,`Correct choice: ${e?.correctChoiceId||`none`}.`,`Final score: ${a}.`]})}),Oa=(e={})=>({...xa.model,...e,layoutLimits:{...Wi,...e?.layoutLimits||{}}}),ka=(e={})=>Oa(e),Aa=e=>({...e}),ja=e=>!!e?.shuffle,Ma=(e,t)=>e?.lockChoiceOrder||t?.[`@pie-element`]?.lockChoiceOrder?!0:t?.role===`instructor`;function Na(e){let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t}var Pa=e=>Array.isArray(e?.data?.shuffledValues)?e.data.shuffledValues:Array.isArray(e?.shuffledValues)?e.shuffledValues:[],Fa=(e,t,n)=>{let r=t.map(t=>e.find(e=>e?.[n]===t)).filter(e=>!!e);if(r.length===e.length)return r;let i=new Set(r.map(e=>e[n])),a=e.filter(e=>!i.has(e?.[n]));return[...r,...a]},Ia=async(e,t,n,r)=>{let i=Array.isArray(e?.choices)?[...e.choices]:[];if(!i.length||!ja(e)||Ma(e,n||{}))return i;let a=Pa(t);if(a.length)return Fa(i,a,`id`);let o=Na(i);if(r&&typeof r==`function`&&t?.id&&t?.element){let e=o.map(e=>e?.id).filter(Boolean);e.length&&await r(t.id,t.element,{shuffledValues:e})}return o},La=async(e,t,n,r)=>{let i=t||{},a=n||{},o=ka(e),s=await Ia(o,i,a,r),c={prompt:o.promptEnabled?o.prompt:null,interactionMode:o.interactionMode||`populate_blank`,layoutProfile:o.layoutProfile||``,choiceLayout:o.choiceLayout||``,layoutProfilePresets:o.layoutProfilePresets&&typeof o.layoutProfilePresets==`object`?o.layoutProfilePresets:{},layoutLimits:o.layoutLimits||{...Wi},audioButtonSkin:o.audioButtonSkin&&typeof o.audioButtonSkin==`object`?o.audioButtonSkin:null,audioButtonSkinsByLocale:o.audioButtonSkinsByLocale&&typeof o.audioButtonSkinsByLocale==`object`?o.audioButtonSkinsByLocale:{},uiText:o.uiText&&typeof o.uiText==`object`?o.uiText:{},sentenceHtml:o.sentenceHtml||null,template:o.template,choiceMode:o.choiceMode,choices:s,hasAudio:o.hasAudio,autoplayAudioEnabled:!!o.autoplayAudioEnabled,completeAudioEnabled:!!o.completeAudioEnabled,audioUrl:o.hasAudio?o.audioUrl:null,audioTranscript:o.hasAudio?o.audioTranscript:null,customType:o.customType||``,useFeatureButtonAudio:typeof o.useFeatureButtonAudio==`boolean`?o.useFeatureButtonAudio:void 0,locale:o.locale||``,disabled:a.mode!==`gather`,mode:a.mode};if(a.mode===`evaluate`){let e=Ta(o,i);c.correctness=e,c.responseCorrect=e===`correct`,c.correctChoiceId=o.correctChoiceId}return a.role===`instructor`&&(a.mode===`view`||a.mode===`evaluate`)?c.teacherInstructions=o.teacherInstructionsEnabled?o.teacherInstructions:null:c.teacherInstructions=null,c},Ra=(e,t)=>new Promise(n=>{t.mode!==`evaluate`&&t.role===`instructor`?n({id:`1`,element:`mc-populated-blank`,choiceId:e?.correctChoiceId||``}):n(null)}),za=(e={},t={})=>{let n={};if(e.promptEnabled){let t=e.prompt?.trim()||``;(!t||t===`<p></p>`)&&(n.prompt=`Prompt is required when prompt is enabled`)}let r=e.interactionMode||`populate_blank`,i=wa(e.template||``);r===`audio_mc_only`?i>0&&(n.template=`Template cannot contain ${ba} in audio-only mode`):r===`populate_blank`?i===0?n.template=`Template must contain exactly one ${ba} placeholder`:i>1&&(n.template=`Template must contain only one ${ba} placeholder`):n.interactionMode=`Unknown interaction mode`;let a=Array.isArray(e.choices)?e.choices:[];a.length<2&&(n.choices=`At least two choices are required`);let o=e.choiceMode||`text`;for(let e=0;e<a.length;e++){let t=a[e];if(!t?.id){n.choices=`Choice ${e+1} is missing an id`;break}if(o===`text`){let r=(t.labelHtml||``).trim();if(!r||r===`<p></p>`){n.choices=`Choice ${e+1} needs label text`;break}}else{if(!t.imageUrl?.trim()){n.choices=`Choice ${e+1} needs an image URL`;break}if(!t.imageAlt?.trim()){n.choices=`Choice ${e+1} needs image alt text`;break}}}let s=e.correctChoiceId;(!s||!a.some(e=>e.id===s))&&(n.correctChoiceId=`Correct choice must match one of the choice ids`),e.hasAudio&&(e.audioUrl?.trim()||(n.audioUrl=`A playable audio URL is required when audio is enabled`));let c=e?.layoutLimits;if(c&&typeof c==`object`)for(let e of`blankStandaloneWidthRem.blankWideWidthRem.blankUnderlineWidthPx.blankUnderlineWideWidthPx.horizontalChoiceWidthPx.horizontalChoiceWidthVw.horizontalChoiceTileMinHeightRem.horizontalChoiceContentMinHeightRem.selectedImageMaxHeightRem.choiceImageMaxHeightRem.listenButtonSizePx.stimulusMinColumnPx.textMinColumnPx.legendMaxChars.choiceGroupGapRem.choiceRowGapRem.toggleButtonGapRem.horizontalChoiceRadioTopMarginRem.audioBlankTemplateMarginTopRem.audioBlankTemplateMarginBottomRem.audioInstructionsMaxWidthPx.narrowHorizontalChoiceMaxWidthPx.stimulusGridColumnGapRem.stimulusGridRowGapRem.stimulusSentenceMarginTopRem.stimulusChoicesMarginTopRem.tokenGridColumnGapRem.tokenGridRowGapRem.tokenTemplateMarginTopRem.tokenInlineTokenGapRem.tokenChoicesMarginTopRem.inlineGridColumnGapRem.inlineGridRowGapRem.inlineTemplateMarginTopRem.inlineChoicesMarginTopRem`.split(`.`)){if(c[e]===void 0||c[e]===null)continue;let t=Number(c[e]);if(!Number.isFinite(t)||t<=0){n.layoutLimits=`${e} must be a positive number when provided`;break}}return n},Ba={...Sa},Va=ya;e.controller=Ba,e.default=Va})(this.McPopulatedBlankElement=this.McPopulatedBlankElement||{});