@pie-element/mc-populated-blank 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- this.McPopulatedBlankElement=(function(){typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symbol(),n=`http://www.w3.org/1999/xhtml`,r=`http://www.w3.org/2000/svg`,i=`http://www.w3.org/1998/Math/MathML`,a=Array.isArray,o=Array.prototype.indexOf,s=Array.prototype.includes,c=Array.from,l=Object.keys,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,p=Object.prototype,m=Array.prototype,h=Object.getPrototypeOf,g=Object.isExtensible,_=()=>{};function v(e){for(var t=0;t<e.length;t++)e[t]()}function y(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var b=1024,x=2048,S=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,C=1<<19,ae=1<<20,oe=1<<25,se=65536,ce=1<<21,le=1<<22,ue=1<<23,w=Symbol(`$state`),de=Symbol(`legacy props`),T=Symbol(``),fe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function he(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function _e(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ve(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function be(){throw Error(`https://svelte.dev/e/hydration_failed`)}function xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ee(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function De(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Oe(e){E=e}var D;function O(t){if(t===null)throw Ee(),e;return D=t}function ke(){return O(Qt(D))}function k(t){if(E){if(Qt(D)!==null)throw Ee(),e;D=t}}function Ae(e=1){if(E){for(var t=e,n=D;t--;)n=Qt(n);D=n}}function je(e=!0){for(var t=0,n=D;;){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 Me(t){if(!t||t.nodeType!==8)throw Ee(),e;return t.data}function Ne(e){return e===this.v}function Pe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Fe(e){return!Pe(e,this.v)}var Ie=!1,Le=!1,A=null;function Re(e){A=e}function ze(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:U,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=A,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,A=t.p,e??{}}function Ve(){return!Le||A!==null&&A.l===null}var He=[];function Ue(){var e=He;He=[],v(e)}function We(e){if(He.length===0&&!rt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=U;if(t===null)return H.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(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 Je=~(x|S|b);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,b):j(e,S)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,b)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var tt=new Set,M=null,N=null,nt=null,rt=!1,it=!1,at=null,ot=null,st=0,ct=1,lt=class e{id=ct++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=[];#s=new Set;#c=new Set;#l=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(let n of this.#d)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#l.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){this.#l.delete(e);for(var n of t.d)j(n,x),this.schedule(n);for(n of t.m)j(n,S),this.schedule(n)}}#m(){if(st++>1e3&&(tt.delete(this),dt()),!this.#f()){for(let e of this.#s)this.#c.delete(e),j(e,x),this.schedule(e);for(let e of this.#c)j(e,S),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#h(e,n,r)}catch(t){throw vt(e),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(at=null,ot=null,this.#f()||this.#p()){this.#g(r),this.#g(n);for(let[e,t]of this.#l)_t(e,t)}else{this.#n.size===0&&tt.delete(this),this.#s.clear(),this.#c.clear();for(let e of this.#e)e(this);this.#e.clear(),pt(r),pt(n),this.#i?.resolve()}var o=M;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(tt.add(o),o.#m()),tt.has(this)||this.#_()}#h(e,t,n){e.f^=b;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#l.has(r))&&r.fn!==null){a?r.f^=b:i&4?t.push(r):Ie&&i&16777224?n.push(r):Jn(r)&&(i&16&&this.#c.add(r),$n(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}}}#g(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#s,this.#c)}capture(e,n,r=!1){n!==t&&!this.previous.has(e)&&this.previous.set(e,n),e.f&8388608||(this.current.set(e,[e.v,r]),N?.set(e,e.v))}activate(){M=this}deactivate(){M=null,N=null}flush(){try{it=!0,M=this,this.#m()}finally{st=0,nt=null,at=null,ot=null,it=!1,M=null,N=null,Lt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),tt.delete(this)}register_created_effect(e){this.#o.push(e)}#_(){for(let l of tt){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){l.activate();var i=new Set,a=new Map;for(var o of t)mt(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.#o)!(e.f&155648)&&ht(e,s,a)&&(e.f&4194320?(j(e,x),l.schedule(e)):l.#s.add(e));if(l.#a.length>0){l.apply();for(var c of l.#a)l.#h(c,[],[]);l.#a=[]}l.deactivate()}}for(let e of tt)e.#d.has(this)&&(e.#d.delete(this),e.#d.size===0&&!e.#f()&&(e.activate(),e.#m()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,We(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#s.add(t);for(let e of t)this.#c.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=y()).promise}static ensure(){if(M===null){let t=M=new e;it||(tt.add(M),rt||We(()=>{M===t&&t.flush()}))}return M}apply(){if(!Ie||!this.is_fork&&tt.size===1){N=null;return}N=new Map;for(let[e,[t]]of this.current)N.set(e,t);for(let n of tt)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.#d.add(n);else for(let[e,t]of n.previous)N.has(e)||N.set(e,t)}}schedule(e){if(nt=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(at!==null&&t===U&&(Ie||(H===null||!(H.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=b}}this.#a.push(t)}};function ut(e){var t=rt;rt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(Ge(),M===null)return n;M.flush()}}finally{rt=t}}function dt(){try{ye()}catch(e){qe(e,nt)}}var ft=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Jn(r)&&(ft=new Set,$n(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&En(r),ft?.size>0)){Lt.clear();for(let e of ft){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)ft.has(n)&&(ft.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||$n(n)}}ft.clear()}}ft=null}}function mt(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?mt(i,t,n,r):e&4194320&&!(e&2048)&&ht(i,t,r)&&(j(i,x),gt(i))}}function ht(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(s.call(t,r))return!0;if(r.f&2&&ht(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function gt(e){M.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,b);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){j(e,b);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=zt(0),r;return()=>{dn()&&(K(n),yn(()=>(t===0&&(r=nr(()=>e(()=>Ut(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,Ut(n))})})))}}var bt=ie|C;function xt(e,t,n,r){new St(e,t,n,r)}var St=class{parent;is_pending=!1;transform_error;#e;#t=E?D: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=yt(()=>(this.#m=zt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(E){let e=this.#t;ke();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()},bt),E&&(this.#e=D)}#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)),We(()=>{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(M))}))}#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(M)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(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=U,n=H,r=A;Rn(this.#i),Ln(this.#i),Re(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return Ke(e),null}finally{Rn(t),Ln(n),Re(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,We(()=>{this.#d=!1,this.#m&&Vt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),K(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),E&&(O(this.#t),Ae(),O(je()));var r=!1,i=!1;let a=()=>{if(r){De();return}r=!0,i&&Te(),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){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return xn(()=>{var t=U;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=Ve()?Dt:kt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=U,s=wt(),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||qe(e,o)}Tt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Et();function d(){Promise.all(n.map(e=>Ot(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=U,t=H,n=A,r=M;return function(i=!0){Rn(e),Ln(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){Rn(null),Ln(null),Re(null),e&&M?.deactivate()}function Et(){var e=U,t=e.b,n=M,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 Dt(e){var n=2|x,r=H!==null&&H.f&2?H:null;return U!==null&&(U.f|=C),{ctx:A,deps:null,effects:null,equals:Ne,f:n,fn:e,reactions:null,rv:0,v:t,wv:0,parent:r??U,ac:null}}function Ot(e,n,r){let i=U;i===null&&me();var a=void 0,o=zt(t),s=!H,c=new Map;return vn(()=>{var t=U,n=y();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Tt)}catch(e){n.reject(e),Tt()}var r=M;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())c.get(r)?.reject(fe),c.delete(r);else{for(let e of c.values())e.reject(fe);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===fe),!(n===fe||t.f&16384)){if(r.activate(),n)o.f|=ue,Vt(o,n);else{o.f&8388608&&(o.f^=ue),Vt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(fe)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of c.values())e.reject(fe)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function P(e){let t=Dt(e);return Ie||Bn(t),t}function kt(e){let t=Dt(e);return t.equals=Fe,t}function At(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function jt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Mt(e){var t,n=U;Rn(jt(e));try{e.f&=~se,At(e),t=Xn(e)}finally{Rn(n)}return t}function Nt(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=qn(),(!M?.is_fork||e.deps===null)&&(e.v=n,M?.capture(e,t,!0),e.deps===null))){j(e,b);return}Pn||(N===null?Ye(e):(dn()||M?.is_fork)&&N.set(e,n))}function Pt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(fe),t.teardown=_,t.ac=null,Qn(t,0),Cn(t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&$n(t)}var It=new Set,Lt=new Map,Rt=!1;function zt(e,t){return{f:0,v:e,reactions:null,equals:Ne,rv:0,wv:0}}function F(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=Fe),Le&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function I(e,t,n=!1){return H!==null&&(!In||H.f&131072)&&Ve()&&H.f&4325394&&(zn===null||!s.call(zn,e))&&we(),Vt(e,n?Gt(t):t,ot)}function Vt(e,t,n=null){if(!e.equals(t)){var r=e.v;Pn?Lt.set(e,t):Lt.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Mt(t),N===null&&Ye(t)}e.wv=qn(),Wt(e,x,n),Ve()&&U!==null&&U.f&1024&&!(U.f&96)&&(Vn===null?Hn([e]):Vn.push(e)),!i.is_fork&&It.size>0&&!Rt&&Ht()}return t}function Ht(){Rt=!1;for(let e of It)e.f&1024&&j(e,S),Jn(e)&&$n(e);It.clear()}function Ut(e){I(e,e.v+1)}function Wt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===U)){var l=(c&x)===0;if(l&&j(s,t),c&2){var u=s;N?.delete(u),c&65536||(c&512&&(s.f|=se),Wt(u,S,n))}else if(l){var d=s;c&16&&ft!==null&&ft.add(d),n===null?gt(d):n.push(d)}}}}function Gt(e){if(typeof e!=`object`||!e||w in e)return e;let n=h(e);if(n!==p&&n!==m)return e;var r=new Map,i=a(e),o=F(0),s=null,c=Gn,l=e=>{if(Gn===c)return e();var t=H,n=Gn;Ln(null),Kn(c);var r=e();return Ln(t),Kn(n),r};return i&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,n){var i=r.get(n);if(i===void 0){if(n in e){let e=l(()=>F(t,s));r.set(n,e),Ut(o)}}else I(i,t),Ut(o);return!0},get(n,i,a){if(i===w)return e;var o=r.get(i),c=i in n;if(o===void 0&&(!c||d(n,i)?.writable)&&(o=l(()=>F(Gt(c?n[i]:t),s)),r.set(i,o)),o!==void 0){var u=K(o);return u===t?void 0:u}return Reflect.get(n,i,a)},getOwnPropertyDescriptor(e,n){var i=Reflect.getOwnPropertyDescriptor(e,n);if(i&&`value`in i){var a=r.get(n);a&&(i.value=K(a))}else if(i===void 0){var o=r.get(n),s=o?.v;if(o!==void 0&&s!==t)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,n){if(n===w)return!0;var i=r.get(n),a=i!==void 0&&i.v!==t||Reflect.has(e,n);return(i!==void 0||U!==null&&(!a||d(e,n)?.writable))&&(i===void 0&&(i=l(()=>F(a?Gt(e[n]):t,s)),r.set(n,i)),K(i)===t)?!1:a},set(e,n,a,c){var u=r.get(n),f=n in e;if(i&&n===`length`)for(var p=a;p<u.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(t,s)),r.set(p+``,m)):I(m,t)}if(u===void 0)(!f||d(e,n)?.writable)&&(u=l(()=>F(void 0,s)),I(u,Gt(a)),r.set(n,u));else{f=u.v!==t;var h=l(()=>Gt(a));I(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,n);if(g?.set&&g.set.call(c,a),!f){if(i&&typeof n==`string`){var _=r.get(`length`),v=Number(n);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}Ut(o)}return!0},ownKeys(e){K(o);var n=Reflect.ownKeys(e).filter(e=>{var n=r.get(e);return n===void 0||n.v!==t});for(var[i,a]of r)a.v!==t&&!(i in e)&&n.push(i);return n},setPrototypeOf(){Ce()}})}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=d(t,`firstChild`).get,Yt=d(t,`nextSibling`).get,g(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),g(n)&&(n.__t=void 0)}}function Zt(e=``){return document.createTextNode(e)}function L(e){return Jt.call(e)}function Qt(e){return Yt.call(e)}function R(e,t){if(!E)return L(e);var n=L(D);if(n===null)n=D.appendChild(Zt());else if(t&&n.nodeType!==3){var r=Zt();return n?.before(r),O(r),r}return t&&rn(n),O(n),n}function $t(e,t=!1){if(!E){var n=L(e);return n instanceof Comment&&n.data===``?Qt(n):n}if(t){if(D?.nodeType!==3){var r=Zt();return D?.before(r),O(r),r}rn(D)}return D}function z(e,t=1,n=!1){let r=E?D: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),O(a),a}rn(r)}return O(r),r}function en(e){e.textContent=``}function tn(){return!Ie||ft!==null?!1:(U.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=H,n=U;Ln(null),Rn(null);try{return e()}finally{Ln(t),Rn(n)}}function cn(e){U===null&&(H===null&&ve(e),_e()),Pn&&ge(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=U;n!==null&&n.f&8192&&(e|=ee);var r={ctx:A,deps:null,nodes:null,f:e|x|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)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{$n(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|=ie))}if(i!==null&&(i.parent=n,n!==null&&ln(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function dn(){return H!==null&&!In}function fn(e){let t=un(8,null);return j(t,b),t.teardown=e,t}function pn(e){cn(`$effect`);var t=U.f;if(!H&&t&32&&!(t&32768)){var n=A;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return un(4|ae,e)}function hn(e){lt.ensure();let t=un(64|C,e);return()=>{V(t)}}function gn(e){lt.ensure();let t=un(64|C,e);return(e={})=>new Promise(n=>{e.outro?Dn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function _n(e){return un(4,e)}function vn(e){return un(le|C,e)}function yn(e,t=0){return un(8|t,e)}function B(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{un(8,()=>e(...t.map(K)))})}function bn(e,t=0){return un(16|t,e)}function xn(e){return un(32|C,e)}function Sn(e){var t=e.teardown;if(t!==null){let e=Pn,n=H;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(fe)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function wn(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&&(Tn(e.nodes.start,e.nodes.end),n=!0),j(e,re),Cn(e,t&&!n),Qn(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&&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 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,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||(j(e,x),lt.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 H=null,In=!1;function Ln(e){H=e}var U=null;function Rn(e){U=e}var zn=null;function Bn(e){H!==null&&(!Ie||H.f&2)&&(zn===null?zn=[e]:zn.push(e))}var W=null,G=0,Vn=null;function Hn(e){Vn=e}var Un=1,Wn=0,Gn=Wn;function Kn(e){Gn=e}function qn(){return++Un}function Jn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Jn(a)&&Nt(a),a.wv>e.wv)return!0}t&512&&N===null&&j(e,b)}return!1}function Yn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Ie&&zn!==null&&s.call(zn,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Yn(a,t,!1):t===a&&(n?j(a,x):a.f&1024&&j(a,S),gt(a))}}function Xn(e){var t=W,n=G,r=Vn,i=H,a=zn,o=A,s=In,c=Gn,l=e.f;W=null,G=0,Vn=null,H=l&96?null:e,zn=null,Re(e.ctx),In=!1,Gn=++Wn,e.ac!==null&&(sn(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=M?.is_fork;if(W!==null){var m;if(p||Qn(e,G),f!==null&&G>0)for(f.length=G+W.length,m=0;m<W.length;m++)f[G+m]=W[m];else e.deps=f=W;if(dn()&&e.f&512)for(m=G;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&G<f.length&&(Qn(e,G),f.length=G);if(Ve()&&Vn!==null&&!In&&f!==null&&!(e.f&6146))for(m=0;m<Vn.length;m++)Yn(Vn[m],e);if(i!==null&&i!==e){if(Wn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Wn;if(t!==null)for(let e of t)e.rv=Wn;Vn!==null&&(r===null?r=Vn:r.push(...Vn))}return e.f&8388608&&(e.f^=ue),d}catch(e){return Ke(e)}finally{e.f^=ce,W=t,G=n,Vn=r,H=i,zn=a,Re(o),In=s,Gn=c}}function Zn(e,t){let n=t.reactions;if(n!==null){var r=o.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(W===null||!s.call(W,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~se),Ye(a),Pt(a),Qn(a,0)}}function Qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Zn(e,n[r])}function $n(e){var t=e.f;if(!(t&16384)){j(e,b);var n=U,r=Nn;U=e,Nn=!0;try{t&16777232?wn(e):Cn(e),Sn(e);var i=Xn(e);e.teardown=typeof i==`function`?i:null,e.wv=Un}finally{Nn=r,U=n}}}function K(e){var t=(e.f&2)!=0;if(Mn?.add(e),H!==null&&!In&&!(U!==null&&U.f&16384)&&(zn===null||!s.call(zn,e))){var n=H.deps;if(H.f&2097152)e.rv<Wn&&(e.rv=Wn,W===null&&n!==null&&n[G]===e?G++:W===null?W=[e]:W.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:s.call(r,H)||r.push(H)}}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||tr(i))&&(a=Mt(i)),Lt.set(i,a),a}var o=(i.f&512)==0&&!In&&H!==null&&(Nn||(H.f&512)!=0),c=(i.f&ne)===0;Jn(i)&&(o&&(i.f|=512),Nt(i)),o&&!c&&(Ft(i),er(i))}if(N?.has(e))return N.get(e);if(e.f&8388608)throw e.v;return e.v}function er(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),er(t))}function tr(e){if(e.v===t)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Lt.has(t)||t.f&2&&tr(t))return!0;return!1}function nr(e){var t=In;try{return In=!0,e()}finally{In=t}}var rr=Symbol(`events`),ir=new Set,ar=new Set,or=null;function sr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;or=e;var o=0,s=or===e&&e[rr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[rr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){u(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=U;Ln(null),Rn(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[rr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[rr]=t,delete e.currentTarget,Ln(d),Rn(f)}}}var cr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function lr(e){return cr?.createHTML(e)??e}function ur(e){var t=nn(`template`);return t.innerHTML=lr(e.replaceAll(`<!>`,`<!---->`)),t.content}function dr(e,t){var n=U;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return dr(D,null),D;i===void 0&&(i=ur(a?e:`<!>`+e),n||(i=L(i)));var t=r||qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;dr(o,s)}else dr(t,t);return t}}function fr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return dr(D,null),D;if(!o){var e=L(ur(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;dr(n,r)}else dr(t,t);return t}}function pr(e,t){return fr(e,t,`svg`)}function J(e,t){if(E){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),ke();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 mr=[`touchstart`,`touchmove`];function hr(e){return mr.includes(e)}function gr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function _r(e,t){return br(e,t)}function vr(t,n){Xt(),n.intro=n.intro??!1;let r=n.target,i=E,a=D;try{for(var o=L(r);o&&(o.nodeType!==8||o.data!==`[`);)o=Qt(o);if(!o)throw e;Oe(!0),O(o);let i=br(t,{...n,anchor:o});return Oe(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==e&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&be(),Xt(),en(r),Oe(!1),_r(t,n)}finally{Oe(i),O(a)}}var yr=new Map;function br(t,{target:n,anchor:r,props:i={},events:a,context:o,intro:s=!0,transformError:l}){Xt();var u=void 0,d=gn(()=>{var s=r??n.appendChild(Zt());xt(s,{pending:()=>{}},n=>{ze({});var r=A;if(o&&(r.c=o),a&&(i.$$events=a),E&&dr(n,null),u=t(n,i)||{},E&&(U.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Ee(),e;Be()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=hr(r);for(let e of[n,document]){var a=yr.get(e);a===void 0&&(a=new Map,yr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,sr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(c(ir)),ar.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=yr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,sr),t.delete(e),t.size===0&&yr.delete(r)):t.set(e,i)}ar.delete(f),s!==r&&s.parentNode?.removeChild(s)}});return xr.set(u,d),u}var xr=new WeakMap;function Sr(e,t){let n=xr.get(e);return n?(xr.delete(e),n(t)):Promise.resolve()}var Cr=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&&(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();jn(r,t),t.append(Zt()),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),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)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,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=D),this.#a(n)}};function Y(e,t,n=!1){var r;E&&(r=D,ke());var i=new Cr(e),a=n?ie:0;function o(e,t){if(E){var n=Me(r);if(e!==parseInt(n.substring(1))){var a=je();O(a),i.anchor=a,Oe(!1),i.ensure(e,t),Oe(!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 wr(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;Tr(e,c(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;en(d),d.append(u),e.items.clear()}Tr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Tr(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|=oe,jn(a,document.createDocumentFragment())):V(t[i],n)}}var Er;function Dr(e,t,n,r,i,o=null){var s=e,l=new Map;if(t&4){var u=e;s=E?O(L(u)):u.appendChild(Zt())}E&&ke();var d=null,f=kt(()=>{var e=n();return a(e)?e:e==null?[]:c(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,kr(v,p,s,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=oe,jr(d,null,s)):kn(d):Dn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:bn(()=>{p=K(f);var e=p.length;let a=!1;E&&Me(s)===`[!`!=(e===0)&&(s=je(),O(s),Oe(!1),a=!0);for(var c=new Set,u=M,v=tn(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(s=D,a=!0,Oe(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Vt(S.v,b),S.i&&Vt(S.i,y),v&&u.unskip_effect(S.e)):(S=Ar(l,h?s:Er??=Zt(),b,x,y,i,t,n),h||(S.e.f|=oe),l.set(x,S)),c.add(x)}if(e===0&&o&&!d&&(h?d=xn(()=>o(s)):(d=xn(()=>o(Er??=Zt())),d.f|=oe)),e>c.size&&he(``,``,``),E&&e>0&&O(je()),!h)if(m.set(u,c),v){for(let[e,t]of l)c.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);a&&Oe(!0),K(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(s=D)}function Or(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function kr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,l=Or(e.effect.first),u,d=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^=oe,_===l)jr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Mr(e,d,_),Mr(e,_,y),jr(_,y,n),d=_,p=[],m=[],l=Or(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)jr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Mr(e,S.prev,ee.next),Mr(e,d,S),Mr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),jr(_,l,n),Mr(e,_.prev,_.next),Mr(e,_,d===null?e.effect.first:d.next),Mr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Or(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Or(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Tr(e,c(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Or(l.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}wr(e,te,re)}}a&&We(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ar(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 jr(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 Mr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Nr(t,n,a=!1,o=!1,s=!1,c=!1){var l=t,u=``;if(a){var d=t;E&&(l=O(L(d)))}B(()=>{var t=U;if(u===(u=n()??``)){E&&ke();return}if(a&&!E){t.nodes=null,d.innerHTML=u,u!==``&&dr(L(d),d.lastChild);return}if(t.nodes!==null&&(Tn(t.nodes.start,t.nodes.end),t.nodes=null),u!==``){if(E){for(var c=D.data,f=ke(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=Qt(f);if(f===null)throw Ee(),e;dr(D,p),l=O(f);return}var m=nn(o?`svg`:s?`math`:`template`,o?r:s?i:void 0);m.innerHTML=u;var h=o||s?m:m.content;if(dr(L(h),h.lastChild),o||s)for(;L(h);)l.before(L(h));else l.before(h)}})}function Pr(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 Fr=[...`
3
- \r\f\xA0\v`];function Ir(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||Fr.includes(r[o-1]))&&(s===r.length||Fr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Lr(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 Rr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function zr(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(Rr)),i&&c.push(...Object.keys(i).map(Rr));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=Rr(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+=Lr(r)),i&&(n+=Lr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Br(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Ir(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 Vr(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 Hr(e,t,n,r){var i=e.__style;if(E||i!==t){var a=zr(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Vr(e,n?.[0],r[0]),Vr(e,n?.[1],r[1],`important`)):Vr(e,n,r));return r}var Ur=Symbol(`is custom element`),Wr=Symbol(`is html`),Gr=pe?`link`:`LINK`,Kr=pe?`progress`:`PROGRESS`;function qr(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,We(n),on()}}function Jr(e,t){var n=Xr(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Kr)||(e.value=t??``)}function Yr(e,t){var n=Xr(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function X(e,t,n,r){var i=Xr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Gr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[T]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Xr(e){return e.__attributes??={[Ur]:e.nodeName.includes(`-`),[Wr]:e.namespaceURI===n}}var Zr=new Map;function Qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Zr.get(t);if(n)return n;Zr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=f(i),r)r[o].set&&n.push(o);i=h(i)}return n}function $r(e,t){return e===t||e?.[w]===t}function ei(e={},t,n,r){var i=A.r,a=U;return _n(()=>{var o,s;return yn(()=>{o=s,s=r?.()||[],nr(()=>{e!==n(...s)&&(t(e,...s),o&&$r(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&&$r(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function ti(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?nr(r):r),s);let u;if(a){var f=w in e||de in e;u=d(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),u&&(i&&xe(t),u(p)));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||m)&&u(t?h():e),e):h()})}var _=!1,v=(n&1?Dt:kt)(()=>(_=!1,h()));a&&K(v);var y=U;return(function(e,t){if(arguments.length>0){let n=t?K(v):i&&a?Gt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return Pn&&_||y.f&16384?v.v:K(v)})}function ni(e){return new ri(e)}var ri=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 K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?vr:_r)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Ie&&(!e?.props?.$$host||e.sync===!1)&&ut(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||u(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=()=>{Sr(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()}},ii;typeof HTMLElement==`function`&&(ii=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),J(t,n)}}let t={},n=oi(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]=ai(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=ni({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 l(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=ai(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]=ai(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 l(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ai(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 oi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function si(e,t,n,r,i,a){let o=class extends ii{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return l(t).map(e=>(t[e].attribute||e).toLowerCase())}};return l(t).forEach(e=>{u(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ai(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(d(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{u(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ci={50:`#e8f5e9`,500:`#4caf50`},li={200:`#9fa8da`,500:`#3f51b5`,800:`#283593`},ui={500:`#ff9800`},di={200:`#f48fb1`,900:`#880e4f`,A400:`#f50057`},fi={50:`#ffebee`,700:`#d32f2f`},Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,CORRECT:ci[500],CORRECT_SECONDARY:ci[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ui[500],INCORRECT_SECONDARY:fi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:fi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:li[500],PRIMARY_LIGHT:li[200],PRIMARY_DARK:li[800],SECONDARY:di.A400,SECONDARY_LIGHT:di[200],SECONDARY_DARK:di[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(Z);var Q=(e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)})(`pie`),$={text:()=>Q(`text`,Z.TEXT),disabled:()=>Q(`disabled`,Z.DISABLED),disabledSecondary:()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),correct:()=>Q(`correct`,Z.CORRECT),correctSecondary:()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),correctTertiary:()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),correctWithIcon:()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),incorrect:()=>Q(`incorrect`,Z.INCORRECT),incorrectWithIcon:()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),incorrectSecondary:()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),missing:()=>Q(`missing`,Z.MISSING),missingWithIcon:()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),primary:()=>Q(`primary`,Z.PRIMARY),primaryLight:()=>Q(`primary-light`,Z.PRIMARY_LIGHT),primaryDark:()=>Q(`primary-dark`,Z.PRIMARY_DARK),primaryText:()=>Q(`primary-text`,`text`,Z.TEXT),fadedPrimary:()=>Q(`faded-primary`,Z.FADED_PRIMARY),secondary:()=>Q(`secondary`,Z.SECONDARY),secondaryLight:()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),secondaryDark:()=>Q(`secondary-dark`,Z.SECONDARY_DARK),secondaryText:()=>Q(`secondary-text`,`text`,Z.TEXT),background:()=>Q(`background`,Z.BACKGROUND),backgroundDark:()=>Q(`background-dark`,Z.BACKGROUND_DARK),secondaryBackground:()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),dropdownBackground:()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),tertiary:()=>Q(`tertiary`,Z.TERTIARY),tertiaryLight:()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),border:()=>Q(`border`,Z.BORDER),borderLight:()=>Q(`border-light`,Z.BORDER_LIGHT),borderDark:()=>Q(`border-dark`,Z.BORDER_DARK),borderGray:()=>Q(`border-gray`,Z.BORDER_GRAY),black:()=>Q(`black`,Z.BLACK),white:()=>Q(`white`,Z.WHITE),transparent:()=>Z.TRANSPARENT,focusChecked:()=>Q(`focus-checked`,Z.FOCUS_CHECKED),focusCheckedBorder:()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),focusUnchecked:()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),focusUncheckedBorder:()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),blueGrey100:()=>Q(`blue-grey-100`,Z.BLUE_GREY100),blueGrey300:()=>Q(`blue-grey-300`,Z.BLUE_GREY300),blueGrey600:()=>Q(`blue-grey-600`,Z.BLUE_GREY600),blueGrey900:()=>Q(`blue-grey-900`,Z.BLUE_GREY900)},pi=q(`<div class="mb-4 prose pie-prompt"></div>`),mi=pr(`<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>`),hi=pr(`<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>`),gi=q(`<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>`),_i=q(`<audio class="sr-only pie-audio-player svelte-6wlbb4" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-6wlbb4" type="button"><img alt="" aria-hidden="true"/> <img alt="" aria-hidden="true"/></button>`,1),vi=q(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`),yi=q(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`,1),bi=q(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`),xi=q(`<p><strong> </strong> </p>`),Si=q(`<div class="mb-4 audio-container pie-audio-container svelte-6wlbb4"><!> <!></div>`),Ci=q(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`),wi=q(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`),Ti=q(`<span class="blank-inner choice-label pie-blank-value svelte-6wlbb4"></span>`),Ei=q(`<span class="blank-inner-empty svelte-6wlbb4" aria-hidden="true">&nbsp;</span>`),Di=q(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!> <span role="status" aria-live="polite" aria-atomic="true"><!></span> <!></div>`),Oi=q(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`),ki=q(`<img class="object-contain mx-auto pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Ai=q(`<span class="choice-label pie-choice-label svelte-6wlbb4"></span>`),ji=q(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-6wlbb4"><span class="choice-tile-content pie-choice-tile-content svelte-6wlbb4"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-6wlbb4"/></label>`),Mi=q(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Ni=q(`<span class="choice-label pie-choice-label svelte-6wlbb4"></span>`),Pi=q(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-6wlbb4"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap"><!></label>`,1),Fi=q(`<span aria-hidden="true"> </span>`),Ii=q(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`),Li=q(`<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>`),Ri={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;}.blank-slot.svelte-6wlbb4:focus-within {outline:2px solid var(--pie-focus, #2563eb);outline-offset:2px;}.blank-slot.svelte-6wlbb4 {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.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),
1
+ this.McPopulatedBlankElement=(function(){typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var e={},t=Symbol(),n=`http://www.w3.org/1999/xhtml`,r=`http://www.w3.org/2000/svg`,i=`http://www.w3.org/1998/Math/MathML`,a=Array.isArray,o=Array.prototype.indexOf,s=Array.prototype.includes,c=Array.from,l=Object.keys,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyDescriptors,p=Object.prototype,m=Array.prototype,h=Object.getPrototypeOf,g=Object.isExtensible,_=()=>{};function v(e){for(var t=0;t<e.length;t++)e[t]()}function ee(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=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,S=1<<23,fe=Symbol(`$state`),C=Symbol(`legacy props`),pe=Symbol(``),me=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function w(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function ke(e){T=e}var E;function D(t){if(t===null)throw De(),e;return E=t}function Ae(){return D(Qt(E))}function O(t){if(T){if(Qt(E)!==null)throw De(),e;E=t}}function je(e=1){if(T){for(var t=e,n=E;t--;)n=Qt(n);E=n}}function Me(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=Qt(n);e&&n.remove(),n=i}}function Ne(t){if(!t||t.nodeType!==8)throw De(),e;return t.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,k=null;function ze(e){k=e}function Be(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:U,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=k,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,k=t.p,e??{}}function He(){return!Re||k!==null&&k.l===null}var Ue=[];function We(){var e=Ue;Ue=[],v(e)}function Ge(e){if(Ue.length===0&&!rt){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ke(){for(;Ue.length>0;)We()}function qe(e){var t=U;if(t===null)return H.f|=S,e;if(!(t.f&32768)&&!(t.f&4))throw e;A(e,t)}function A(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 Je=~(b|x|y);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var tt=new Set,M=null,N=null,nt=null,rt=!1,it=!1,at=null,ot=null,st=0,ct=1,lt=class e{id=ct++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=[];#s=new Set;#c=new Set;#l=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(let n of this.#d)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#l.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){this.#l.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#m(){if(st++>1e3&&(tt.delete(this),dt()),!this.#f()){for(let e of this.#s)this.#c.delete(e),j(e,b),this.schedule(e);for(let e of this.#c)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#h(e,n,r)}catch(t){throw vt(e),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(at=null,ot=null,this.#f()||this.#p()){this.#g(r),this.#g(n);for(let[e,t]of this.#l)_t(e,t)}else{this.#n.size===0&&tt.delete(this),this.#s.clear(),this.#c.clear();for(let e of this.#e)e(this);this.#e.clear(),pt(r),pt(n),this.#i?.resolve()}var o=M;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(tt.add(o),o.#m()),tt.has(this)||this.#_()}#h(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#l.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):Jn(r)&&(i&16&&this.#c.add(r),$n(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}}}#g(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#s,this.#c)}capture(e,n,r=!1){n!==t&&!this.previous.has(e)&&this.previous.set(e,n),e.f&8388608||(this.current.set(e,[e.v,r]),N?.set(e,e.v))}activate(){M=this}deactivate(){M=null,N=null}flush(){try{it=!0,M=this,this.#m()}finally{st=0,nt=null,at=null,ot=null,it=!1,M=null,N=null,Lt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),tt.delete(this)}register_created_effect(e){this.#o.push(e)}#_(){for(let l of tt){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){l.activate();var i=new Set,a=new Map;for(var o of t)mt(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.#o)!(e.f&155648)&&ht(e,s,a)&&(e.f&4194320?(j(e,b),l.schedule(e)):l.#s.add(e));if(l.#a.length>0){l.apply();for(var c of l.#a)l.#h(c,[],[]);l.#a=[]}l.deactivate()}}for(let e of tt)e.#d.has(this)&&(e.#d.delete(this),e.#d.size===0&&!e.#f()&&(e.activate(),e.#m()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,Ge(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#s.add(t);for(let e of t)this.#c.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=ee()).promise}static ensure(){if(M===null){let t=M=new e;it||(tt.add(M),rt||Ge(()=>{M===t&&t.flush()}))}return M}apply(){if(!Le||!this.is_fork&&tt.size===1){N=null;return}N=new Map;for(let[e,[t]]of this.current)N.set(e,t);for(let n of tt)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.#d.add(n);else for(let[e,t]of n.previous)N.has(e)||N.set(e,t)}}schedule(e){if(nt=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(at!==null&&t===U&&(Le||(H===null||!(H.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function ut(e){var t=rt;rt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(Ke(),M===null)return n;M.flush()}}finally{rt=t}}function dt(){try{xe()}catch(e){A(e,nt)}}var ft=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Jn(r)&&(ft=new Set,$n(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&En(r),ft?.size>0)){Lt.clear();for(let e of ft){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)ft.has(n)&&(ft.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||$n(n)}}ft.clear()}}ft=null}}function mt(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?mt(i,t,n,r):e&4194320&&!(e&2048)&&ht(i,t,r)&&(j(i,b),gt(i))}}function ht(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(s.call(t,r))return!0;if(r.f&2&&ht(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function gt(e){M.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){j(e,y);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=zt(0),r;return()=>{dn()&&(K(n),yn(()=>(t===0&&(r=nr(()=>e(()=>Ut(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Ut(n))})})))}}var bt=ae|oe;function xt(e,t,n,r){new St(e,t,n,r)}var St=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=yt(()=>(this.#m=zt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(T){let e=this.#t;Ae();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()},bt),T&&(this.#e=E)}#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)),Ge(()=>{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(M))}))}#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(M)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(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=U,n=H,r=k;Rn(this.#i),Ln(this.#i),ze(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return qe(e),null}finally{Rn(t),Ln(n),ze(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,Ge(()=>{this.#d=!1,this.#m&&Vt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),K(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),T&&(D(this.#t),je(),D(Me()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),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){A(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return xn(()=>{var t=U;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return A(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){A(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>A(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=He()?Dt:kt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=U,s=wt(),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||A(e,o)}Tt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Et();function d(){Promise.all(n.map(e=>Ot(e))).then(e=>l([...t.map(i),...e])).catch(e=>A(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=U,t=H,n=k,r=M;return function(i=!0){Rn(e),Ln(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){Rn(null),Ln(null),ze(null),e&&M?.deactivate()}function Et(){var e=U,t=e.b,n=M,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 Dt(e){var n=2|b,r=H!==null&&H.f&2?H:null;return U!==null&&(U.f|=oe),{ctx:k,deps:null,effects:null,equals:Pe,f:n,fn:e,reactions:null,rv:0,v:t,wv:0,parent:r??U,ac:null}}function Ot(e,n,r){let i=U;i===null&&ge();var a=void 0,o=zt(t),s=!H,c=new Map;return vn(()=>{var t=U,n=ee();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Tt)}catch(e){n.reject(e),Tt()}var r=M;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())c.get(r)?.reject(me),c.delete(r);else{for(let e of c.values())e.reject(me);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===me),!(n===me||t.f&16384)){if(r.activate(),n)o.f|=S,Vt(o,n);else{o.f&8388608&&(o.f^=S),Vt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(me)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of c.values())e.reject(me)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function P(e){let t=Dt(e);return Le||Bn(t),t}function kt(e){let t=Dt(e);return t.equals=Ie,t}function At(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function jt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Mt(e){var t,n=U;Rn(jt(e));try{e.f&=~le,At(e),t=Xn(e)}finally{Rn(n)}return t}function Nt(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=qn(),(!M?.is_fork||e.deps===null)&&(e.v=n,M?.capture(e,t,!0),e.deps===null))){j(e,y);return}Pn||(N===null?Ye(e):(dn()||M?.is_fork)&&N.set(e,n))}function Pt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(me),t.teardown=_,t.ac=null,Qn(t,0),Cn(t))}function Ft(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&$n(t)}var It=new Set,Lt=new Map,Rt=!1;function zt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function F(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=Ie),Re&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function I(e,t,n=!1){return H!==null&&(!In||H.f&131072)&&He()&&H.f&4325394&&(zn===null||!s.call(zn,e))&&Te(),Vt(e,n?Gt(t):t,ot)}function Vt(e,t,n=null){if(!e.equals(t)){var r=e.v;Pn?Lt.set(e,t):Lt.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Mt(t),N===null&&Ye(t)}e.wv=qn(),Wt(e,b,n),He()&&U!==null&&U.f&1024&&!(U.f&96)&&(Vn===null?Hn([e]):Vn.push(e)),!i.is_fork&&It.size>0&&!Rt&&Ht()}return t}function Ht(){Rt=!1;for(let e of It)e.f&1024&&j(e,x),Jn(e)&&$n(e);It.clear()}function Ut(e){I(e,e.v+1)}function Wt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===U)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;N?.delete(u),c&65536||(c&512&&(s.f|=le),Wt(u,x,n))}else if(l){var d=s;c&16&&ft!==null&&ft.add(d),n===null?gt(d):n.push(d)}}}}function Gt(e){if(typeof e!=`object`||!e||fe in e)return e;let n=h(e);if(n!==p&&n!==m)return e;var r=new Map,i=a(e),o=F(0),s=null,c=Gn,l=e=>{if(Gn===c)return e();var t=H,n=Gn;Ln(null),Kn(c);var r=e();return Ln(t),Kn(n),r};return i&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,n){var i=r.get(n);if(i===void 0){if(n in e){let e=l(()=>F(t,s));r.set(n,e),Ut(o)}}else I(i,t),Ut(o);return!0},get(n,i,a){if(i===fe)return e;var o=r.get(i),c=i in n;if(o===void 0&&(!c||d(n,i)?.writable)&&(o=l(()=>F(Gt(c?n[i]:t),s)),r.set(i,o)),o!==void 0){var u=K(o);return u===t?void 0:u}return Reflect.get(n,i,a)},getOwnPropertyDescriptor(e,n){var i=Reflect.getOwnPropertyDescriptor(e,n);if(i&&`value`in i){var a=r.get(n);a&&(i.value=K(a))}else if(i===void 0){var o=r.get(n),s=o?.v;if(o!==void 0&&s!==t)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,n){if(n===fe)return!0;var i=r.get(n),a=i!==void 0&&i.v!==t||Reflect.has(e,n);return(i!==void 0||U!==null&&(!a||d(e,n)?.writable))&&(i===void 0&&(i=l(()=>F(a?Gt(e[n]):t,s)),r.set(n,i)),K(i)===t)?!1:a},set(e,n,a,c){var u=r.get(n),f=n in e;if(i&&n===`length`)for(var p=a;p<u.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(t,s)),r.set(p+``,m)):I(m,t)}if(u===void 0)(!f||d(e,n)?.writable)&&(u=l(()=>F(void 0,s)),I(u,Gt(a)),r.set(n,u));else{f=u.v!==t;var h=l(()=>Gt(a));I(u,h)}var g=Reflect.getOwnPropertyDescriptor(e,n);if(g?.set&&g.set.call(c,a),!f){if(i&&typeof n==`string`){var _=r.get(`length`),v=Number(n);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}Ut(o)}return!0},ownKeys(e){K(o);var n=Reflect.ownKeys(e).filter(e=>{var n=r.get(e);return n===void 0||n.v!==t});for(var[i,a]of r)a.v!==t&&!(i in e)&&n.push(i);return n},setPrototypeOf(){we()}})}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=d(t,`firstChild`).get,Yt=d(t,`nextSibling`).get,g(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),g(n)&&(n.__t=void 0)}}function Zt(e=``){return document.createTextNode(e)}function L(e){return Jt.call(e)}function Qt(e){return Yt.call(e)}function R(e,t){if(!T)return L(e);var n=L(E);if(n===null)n=E.appendChild(Zt());else if(t&&n.nodeType!==3){var r=Zt();return n?.before(r),D(r),r}return t&&rn(n),D(n),n}function $t(e,t=!1){if(!T){var n=L(e);return n instanceof Comment&&n.data===``?Qt(n):n}if(t){if(E?.nodeType!==3){var r=Zt();return E?.before(r),D(r),r}rn(E)}return E}function z(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=Qt(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=Zt();return r===null?i?.after(a):r.before(a),D(a),a}rn(r)}return D(r),r}function en(e){e.textContent=``}function tn(){return!Le||ft!==null?!1:(U.f&re)!==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=H,n=U;Ln(null),Rn(null);try{return e()}finally{Ln(t),Rn(n)}}function cn(e){U===null&&(H===null&&be(e),ye()),Pn&&ve(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=U;n!==null&&n.f&8192&&(e|=te);var r={ctx:k,deps:null,nodes:null,f:e|b|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)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{$n(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&&ln(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function dn(){return H!==null&&!In}function fn(e){let t=un(8,null);return j(t,y),t.teardown=e,t}function pn(e){cn(`$effect`);var t=U.f;if(!H&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return un(4|se,e)}function hn(e){lt.ensure();let t=un(64|oe,e);return()=>{V(t)}}function gn(e){lt.ensure();let t=un(64|oe,e);return(e={})=>new Promise(n=>{e.outro?Dn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function _n(e){return un(4,e)}function vn(e){return un(de|oe,e)}function yn(e,t=0){return un(8|t,e)}function B(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{un(8,()=>e(...t.map(K)))})}function bn(e,t=0){return un(16|t,e)}function xn(e){return un(32|oe,e)}function Sn(e){var t=e.teardown;if(t!==null){let e=Pn,n=H;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(me)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function wn(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&&(Tn(e.nodes.start,e.nodes.end),n=!0),j(e,ie),Cn(e,t&&!n),Qn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Sn(e),e.f^=ie,e.f|=ne;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&&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 On(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,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^=te,e.f&1024||(j(e,b),lt.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 H=null,In=!1;function Ln(e){H=e}var U=null;function Rn(e){U=e}var zn=null;function Bn(e){H!==null&&(!Le||H.f&2)&&(zn===null?zn=[e]:zn.push(e))}var W=null,G=0,Vn=null;function Hn(e){Vn=e}var Un=1,Wn=0,Gn=Wn;function Kn(e){Gn=e}function qn(){return++Un}function Jn(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(Jn(a)&&Nt(a),a.wv>e.wv)return!0}t&512&&N===null&&j(e,y)}return!1}function Yn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&zn!==null&&s.call(zn,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Yn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),gt(a))}}function Xn(e){var t=W,n=G,r=Vn,i=H,a=zn,o=k,s=In,c=Gn,l=e.f;W=null,G=0,Vn=null,H=l&96?null:e,zn=null,ze(e.ctx),In=!1,Gn=++Wn,e.ac!==null&&(sn(()=>{e.ac.abort(me)}),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(W!==null){var m;if(p||Qn(e,G),f!==null&&G>0)for(f.length=G+W.length,m=0;m<W.length;m++)f[G+m]=W[m];else e.deps=f=W;if(dn()&&e.f&512)for(m=G;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&G<f.length&&(Qn(e,G),f.length=G);if(He()&&Vn!==null&&!In&&f!==null&&!(e.f&6146))for(m=0;m<Vn.length;m++)Yn(Vn[m],e);if(i!==null&&i!==e){if(Wn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Wn;if(t!==null)for(let e of t)e.rv=Wn;Vn!==null&&(r===null?r=Vn:r.push(...Vn))}return e.f&8388608&&(e.f^=S),d}catch(e){return qe(e)}finally{e.f^=ue,W=t,G=n,Vn=r,H=i,zn=a,ze(o),In=s,Gn=c}}function Zn(e,t){let n=t.reactions;if(n!==null){var r=o.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(W===null||!s.call(W,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~le),Ye(a),Pt(a),Qn(a,0)}}function Qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Zn(e,n[r])}function $n(e){var t=e.f;if(!(t&16384)){j(e,y);var n=U,r=Nn;U=e,Nn=!0;try{t&16777232?wn(e):Cn(e),Sn(e);var i=Xn(e);e.teardown=typeof i==`function`?i:null,e.wv=Un}finally{Nn=r,U=n}}}function K(e){var t=(e.f&2)!=0;if(Mn?.add(e),H!==null&&!In&&!(U!==null&&U.f&16384)&&(zn===null||!s.call(zn,e))){var n=H.deps;if(H.f&2097152)e.rv<Wn&&(e.rv=Wn,W===null&&n!==null&&n[G]===e?G++:W===null?W=[e]:W.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:s.call(r,H)||r.push(H)}}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||tr(i))&&(a=Mt(i)),Lt.set(i,a),a}var o=(i.f&512)==0&&!In&&H!==null&&(Nn||(H.f&512)!=0),c=(i.f&re)===0;Jn(i)&&(o&&(i.f|=512),Nt(i)),o&&!c&&(Ft(i),er(i))}if(N?.has(e))return N.get(e);if(e.f&8388608)throw e.v;return e.v}function er(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),er(t))}function tr(e){if(e.v===t)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Lt.has(t)||t.f&2&&tr(t))return!0;return!1}function nr(e){var t=In;try{return In=!0,e()}finally{In=t}}var rr=Symbol(`events`),ir=new Set,ar=new Set,or=null;function sr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;or=e;var o=0,s=or===e&&e[rr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[rr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){u(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=U;Ln(null),Rn(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[rr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[rr]=t,delete e.currentTarget,Ln(d),Rn(f)}}}var cr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function lr(e){return cr?.createHTML(e)??e}function ur(e){var t=nn(`template`);return t.innerHTML=lr(e.replaceAll(`<!>`,`<!---->`)),t.content}function dr(e,t){var n=U;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return dr(E,null),E;i===void 0&&(i=ur(a?e:`<!>`+e),n||(i=L(i)));var t=r||qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=L(t),s=t.lastChild;dr(o,s)}else dr(t,t);return t}}function fr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=(t&1)!=0,a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(T)return dr(E,null),E;if(!o){var e=L(ur(a));if(i)for(o=document.createDocumentFragment();L(e);)o.appendChild(L(e));else o=L(e)}var t=o.cloneNode(!0);if(i){var n=L(t),r=t.lastChild;dr(n,r)}else dr(t,t);return t}}function pr(e,t){return fr(e,t,`svg`)}function J(e,t){if(T){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ae();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 mr=[`touchstart`,`touchmove`];function hr(e){return mr.includes(e)}function gr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function _r(e,t){return br(e,t)}function vr(t,n){Xt(),n.intro=n.intro??!1;let r=n.target,i=T,a=E;try{for(var o=L(r);o&&(o.nodeType!==8||o.data!==`[`);)o=Qt(o);if(!o)throw e;ke(!0),D(o);let i=br(t,{...n,anchor:o});return ke(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==e&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),Xt(),en(r),ke(!1),_r(t,n)}finally{ke(i),D(a)}}var yr=new Map;function br(t,{target:n,anchor:r,props:i={},events:a,context:o,intro:s=!0,transformError:l}){Xt();var u=void 0,d=gn(()=>{var s=r??n.appendChild(Zt());xt(s,{pending:()=>{}},n=>{Be({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),T&&dr(n,null),u=t(n,i)||{},T&&(U.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw De(),e;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=hr(r);for(let e of[n,document]){var a=yr.get(e);a===void 0&&(a=new Map,yr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,sr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(c(ir)),ar.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=yr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,sr),t.delete(e),t.size===0&&yr.delete(r)):t.set(e,i)}ar.delete(f),s!==r&&s.parentNode?.removeChild(s)}});return xr.set(u,d),u}var xr=new WeakMap;function Sr(e,t){let n=xr.get(e);return n?(xr.delete(e),n(t)):Promise.resolve()}var Cr=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&&(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();jn(r,t),t.append(Zt()),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),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)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,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 T&&(this.anchor=E),this.#a(n)}};function Y(e,t,n=!1){var r;T&&(r=E,Ae());var i=new Cr(e),a=n?ae:0;function o(e,t){if(T){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();D(a),i.anchor=a,ke(!1),i.ensure(e,t),ke(!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 wr(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;Tr(e,c(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;en(d),d.append(u),e.items.clear()}Tr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Tr(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,jn(a,document.createDocumentFragment())):V(t[i],n)}}var Er;function Dr(e,t,n,r,i,o=null){var s=e,l=new Map;if(t&4){var u=e;s=T?D(L(u)):u.appendChild(Zt())}T&&Ae();var d=null,f=kt(()=>{var e=n();return a(e)?e:e==null?[]:c(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,kr(v,p,s,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ce,jr(d,null,s)):kn(d):Dn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:bn(()=>{p=K(f);var e=p.length;let a=!1;T&&Ne(s)===`[!`!=(e===0)&&(s=Me(),D(s),ke(!1),a=!0);for(var c=new Set,u=M,v=tn(),ee=0;ee<e;ee+=1){T&&E.nodeType===8&&E.data===`]`&&(s=E,a=!0,ke(!1));var y=p[ee],b=r(y,ee),x=h?null:l.get(b);x?(x.v&&Vt(x.v,y),x.i&&Vt(x.i,ee),v&&u.unskip_effect(x.e)):(x=Ar(l,h?s:Er??=Zt(),y,b,ee,i,t,n),h||(x.e.f|=ce),l.set(b,x)),c.add(b)}if(e===0&&o&&!d&&(h?d=xn(()=>o(s)):(d=xn(()=>o(Er??=Zt())),d.f|=ce)),e>c.size&&_e(``,``,``),T&&e>0&&D(Me()),!h)if(m.set(u,c),v){for(let[e,t]of l)c.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);a&&ke(!0),K(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(s=E)}function Or(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function kr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,l=Or(e.effect.first),u,d=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^=ce,_===l)jr(_,null,n);else{var ee=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Mr(e,d,_),Mr(e,_,ee),jr(_,ee,n),d=_,p=[],m=[],l=Or(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var y=m[0],b;d=y.prev;var x=p[0],te=p[p.length-1];for(b=0;b<p.length;b+=1)jr(p[b],y,n);for(b=0;b<m.length;b+=1)u.delete(m[b]);Mr(e,x.prev,te.next),Mr(e,d,x),Mr(e,te,y),l=y,d=te,--v,p=[],m=[]}else u.delete(_),jr(_,l,n),Mr(e,_.prev,_.next),Mr(e,_,d===null?e.effect.first:d.next),Mr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Or(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Or(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Tr(e,c(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var ne=[];if(u!==void 0)for(_ of u)_.f&8192||ne.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&ne.push(l),l=Or(l.next);var re=ne.length;if(re>0){var ie=r&4&&o===0?n:null;if(a){for(v=0;v<re;v+=1)ne[v].nodes?.a?.measure();for(v=0;v<re;v+=1)ne[v].nodes?.a?.fix()}wr(e,ne,ie)}}a&&Ge(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Ar(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 jr(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 Mr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Nr(t,n,a=!1,o=!1,s=!1,c=!1){var l=t,u=``;if(a){var d=t;T&&(l=D(L(d)))}B(()=>{var t=U;if(u===(u=n()??``)){T&&Ae();return}if(a&&!T){t.nodes=null,d.innerHTML=u,u!==``&&dr(L(d),d.lastChild);return}if(t.nodes!==null&&(Tn(t.nodes.start,t.nodes.end),t.nodes=null),u!==``){if(T){for(var c=E.data,f=Ae(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=Qt(f);if(f===null)throw De(),e;dr(E,p),l=D(f);return}var m=nn(o?`svg`:s?`math`:`template`,o?r:s?i:void 0);m.innerHTML=u;var h=o||s?m:m.content;if(dr(L(h),h.lastChild),o||s)for(;L(h);)l.before(L(h));else l.before(h)}})}function Pr(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 Fr=[...`
3
+ \r\f\xA0\v`];function Ir(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||Fr.includes(r[o-1]))&&(s===r.length||Fr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Lr(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 Rr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function zr(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(Rr)),i&&c.push(...Object.keys(i).map(Rr));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=Rr(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+=Lr(r)),i&&(n+=Lr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Br(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Ir(n,r,a);(!T||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 Vr(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 Hr(e,t,n,r){var i=e.__style;if(T||i!==t){var a=zr(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Vr(e,n?.[0],r[0]),Vr(e,n?.[1],r[1],`important`)):Vr(e,n,r));return r}var Ur=Symbol(`is custom element`),Wr=Symbol(`is html`),Gr=he?`link`:`LINK`,Kr=he?`progress`:`PROGRESS`;function qr(e){if(T){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,Ge(n),on()}}function Jr(e,t){var n=Xr(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Kr)||(e.value=t??``)}function Yr(e,t){var n=Xr(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function X(e,t,n,r){var i=Xr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Gr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Xr(e){return e.__attributes??={[Ur]:e.nodeName.includes(`-`),[Wr]:e.namespaceURI===n}}var Zr=new Map;function Qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Zr.get(t);if(n)return n;Zr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=f(i),r)r[o].set&&n.push(o);i=h(i)}return n}function $r(e,t){return e===t||e?.[fe]===t}function ei(e={},t,n,r){var i=k.r,a=U;return _n(()=>{var o,s;return yn(()=>{o=s,s=r?.()||[],nr(()=>{e!==n(...s)&&(t(e,...s),o&&$r(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&&$r(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function ti(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?nr(r):r),s);let u;if(a){var f=fe in e||C in e;u=d(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),u&&(i&&w(t),u(p)));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||m)&&u(t?h():e),e):h()})}var _=!1,v=(n&1?Dt:kt)(()=>(_=!1,h()));a&&K(v);var ee=U;return(function(e,t){if(arguments.length>0){let n=t?K(v):i&&a?Gt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return Pn&&_||ee.f&16384?v.v:K(v)})}function ni(e){return new ri(e)}var ri=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 K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===C?!0:(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?vr:_r)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&ut(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||u(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=()=>{Sr(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()}},ii;typeof HTMLElement==`function`&&(ii=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),J(t,n)}}let t={},n=oi(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]=ai(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=ni({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 l(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=ai(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]=ai(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 l(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ai(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 oi(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function si(e,t,n,r,i,a){let o=class extends ii{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return l(t).map(e=>(t[e].attribute||e).toLowerCase())}};return l(t).forEach(e=>{u(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ai(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(d(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{u(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ci={50:`#e8f5e9`,500:`#4caf50`},li={200:`#9fa8da`,500:`#3f51b5`,800:`#283593`},ui={500:`#ff9800`},di={200:`#f48fb1`,900:`#880e4f`,A400:`#f50057`},fi={50:`#ffebee`,700:`#d32f2f`},Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,CORRECT:ci[500],CORRECT_SECONDARY:ci[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ui[500],INCORRECT_SECONDARY:fi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:fi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:li[500],PRIMARY_LIGHT:li[200],PRIMARY_DARK:li[800],SECONDARY:di.A400,SECONDARY_LIGHT:di[200],SECONDARY_DARK:di[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(Z);var Q=(e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)})(`pie`),$={text:()=>Q(`text`,Z.TEXT),disabled:()=>Q(`disabled`,Z.DISABLED),disabledSecondary:()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),correct:()=>Q(`correct`,Z.CORRECT),correctSecondary:()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),correctTertiary:()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),correctWithIcon:()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),incorrect:()=>Q(`incorrect`,Z.INCORRECT),incorrectWithIcon:()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),incorrectSecondary:()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),missing:()=>Q(`missing`,Z.MISSING),missingWithIcon:()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),primary:()=>Q(`primary`,Z.PRIMARY),primaryLight:()=>Q(`primary-light`,Z.PRIMARY_LIGHT),primaryDark:()=>Q(`primary-dark`,Z.PRIMARY_DARK),primaryText:()=>Q(`primary-text`,`text`,Z.TEXT),fadedPrimary:()=>Q(`faded-primary`,Z.FADED_PRIMARY),secondary:()=>Q(`secondary`,Z.SECONDARY),secondaryLight:()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),secondaryDark:()=>Q(`secondary-dark`,Z.SECONDARY_DARK),secondaryText:()=>Q(`secondary-text`,`text`,Z.TEXT),background:()=>Q(`background`,Z.BACKGROUND),backgroundDark:()=>Q(`background-dark`,Z.BACKGROUND_DARK),secondaryBackground:()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),dropdownBackground:()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),tertiary:()=>Q(`tertiary`,Z.TERTIARY),tertiaryLight:()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),border:()=>Q(`border`,Z.BORDER),borderLight:()=>Q(`border-light`,Z.BORDER_LIGHT),borderDark:()=>Q(`border-dark`,Z.BORDER_DARK),borderGray:()=>Q(`border-gray`,Z.BORDER_GRAY),black:()=>Q(`black`,Z.BLACK),white:()=>Q(`white`,Z.WHITE),transparent:()=>Z.TRANSPARENT,focusChecked:()=>Q(`focus-checked`,Z.FOCUS_CHECKED),focusCheckedBorder:()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),focusUnchecked:()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),focusUncheckedBorder:()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),blueGrey100:()=>Q(`blue-grey-100`,Z.BLUE_GREY100),blueGrey300:()=>Q(`blue-grey-300`,Z.BLUE_GREY300),blueGrey600:()=>Q(`blue-grey-600`,Z.BLUE_GREY600),blueGrey900:()=>Q(`blue-grey-900`,Z.BLUE_GREY900)},pi=q(`<div class="mb-4 prose pie-prompt"></div>`),mi=pr(`<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>`),hi=pr(`<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>`),gi=q(`<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>`),_i=q(`<audio class="sr-only pie-audio-player svelte-6wlbb4" preload="metadata" aria-hidden="true" tabindex="-1"></audio> <button class="listen-button pie-listen-button rli-feature-audio svelte-6wlbb4" type="button"><img alt="" aria-hidden="true"/> <img alt="" aria-hidden="true"/></button>`,1),vi=q(`<button class="mt-2 text-sm underline pie-audio-autoplay-enable" type="button"> </button>`),yi=q(`<audio controls="" class="w-full max-w-md pie-audio-player" preload="metadata"><track kind="captions"/></audio> <!>`,1),bi=q(`<p class="text-sm text-red-700 pie-audio-error" role="alert"> </p>`),xi=q(`<p><strong> </strong> </p>`),Si=q(`<div class="mb-4 audio-container pie-audio-container svelte-6wlbb4"><!> <!></div>`),Ci=q(`<div class="mb-3 prose prose-p:my-1 sentence-line pie-sentence-line svelte-6wlbb4"></div>`),wi=q(`<img class="w-auto object-contain pie-blank-image" style="max-height:var(--mpb-selected-image-max-height, 4rem);"/>`),Ti=q(`<span class="blank-inner choice-label pie-blank-value svelte-6wlbb4"></span>`),Ei=q(`<span class="blank-inner-empty svelte-6wlbb4" aria-hidden="true">&nbsp;</span>`),Di=q(`<div class="mb-4 template-line pie-template-line svelte-6wlbb4"><!> <span role="status" aria-live="polite" aria-atomic="true"><!></span> <!></div>`),Oi=q(`<p class="sr-only pie-result-feedback svelte-6wlbb4" role="status" aria-live="polite"> </p>`),ki=q(`<img class="object-contain mx-auto pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Ai=q(`<span class="choice-label pie-choice-label svelte-6wlbb4"></span>`),ji=q(`<label class="cursor-pointer choice-tile text-center pie-choice-tile svelte-6wlbb4"><span class="choice-tile-content pie-choice-tile-content svelte-6wlbb4"><!></span> <input type="radio" class="choice-radio-bottom pie-choice-radio pie-choice-radio-bottom svelte-6wlbb4"/></label>`),Mi=q(`<img class="object-contain pie-choice-image" style="max-height:var(--mpb-choice-image-max-height, 5rem);"/>`),Ni=q(`<span class="choice-label pie-choice-label svelte-6wlbb4"></span>`),Pi=q(`<input type="radio" class="choice-radio-inline pie-choice-radio pie-choice-radio-inline svelte-6wlbb4"/> <label class="cursor-pointer flex-1 pie-choice-label-wrap"><!></label>`,1),Fi=q(`<span aria-hidden="true"> </span>`),Ii=q(`<div style="gap:var(--mpb-choice-row-gap, 0.5rem);"><!> <!></div>`),Li=q(`<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>`),Ri={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;}.blank-slot.svelte-6wlbb4:focus-within {outline:2px solid var(--pie-focus, #2563eb);outline-offset:2px;}.blank-slot.svelte-6wlbb4 {display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:baseline;}.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),
4
4
  .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;}.blank-inner-empty.svelte-6wlbb4 {display:inline-block;min-width:4ch;}.blank-slot-standalone.svelte-6wlbb4 {width:var(--mpb-blank-standalone-width, 7rem);}.listen-button.svelte-6wlbb4 {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-6wlbb4:hover {background-color:#e2f1fe;}.listen-feature-icon.svelte-6wlbb4 {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-6wlbb4 {display:block;}.choice-row-horizontal.svelte-6wlbb4 {flex-direction:column;align-items:center;width:min(var(--mpb-choice-width-px, 170px), var(--mpb-choice-width-vw, 30vw));gap:0;}.choice-tile.svelte-6wlbb4 {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-6wlbb4 {width:100%;display:flex;align-items:center;justify-content:center;min-height:var(--mpb-choice-content-min-height, 7.5rem);}.choice-row-horizontal.svelte-6wlbb4:hover .choice-tile:where(.svelte-6wlbb4) {background:var(--pie-correct-answer-choice-hover-bg, #ececec);}.choice-row-horizontal.is-selected.svelte-6wlbb4 .choice-tile:where(.svelte-6wlbb4) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);}.choice-row-horizontal.is-selected.svelte-6wlbb4:hover .choice-tile:where(.svelte-6wlbb4) {background:var(--pie-correct-answer-choice-selected-bg, #f1f1f1);}.pie-choice.choice-correct.svelte-6wlbb4 {border-left:3px solid var(--pie-correct-answer-choice-correct-border, #0ea449);}.pie-choice.choice-incorrect.svelte-6wlbb4 {border-left:3px solid var(--pie-correct-answer-choice-incorrect-border, #bf0d00);}.pie-choice-horizontal.choice-correct.svelte-6wlbb4 .choice-tile:where(.svelte-6wlbb4) {background:var(--pie-correct-answer-choice-correct-bg, #e8f5e9);}.pie-choice-horizontal.choice-incorrect.svelte-6wlbb4 .choice-tile:where(.svelte-6wlbb4) {background:var(--pie-correct-answer-choice-incorrect-bg, #ffebee);}.pie-choice-feedback-badge.svelte-6wlbb4 {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-6wlbb4 {background:var(--pie-correct-answer-feedback-correct-bg, #087d38);}.pie-choice-feedback-incorrect.svelte-6wlbb4 {background:var(--pie-correct-answer-feedback-incorrect-bg, #bf0d00);}.choice-row-horizontal.svelte-6wlbb4 p {margin:0;text-align:center;}.choice-label.svelte-6wlbb4 p,
5
5
  .blank-inner.svelte-6wlbb4 p {margin:0;}.blank-inner.svelte-6wlbb4 {width:100%;display:inline-flex;align-items:center;justify-content:center;text-align:center;}.choice-radio-bottom.svelte-6wlbb4 {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}.choice-radio-inline.svelte-6wlbb4 {margin-top:var(--mpb-horizontal-choice-radio-top-margin, 0.5rem);}.layout-audio_blank_only.svelte-6wlbb4 .audio-container:where(.svelte-6wlbb4),
6
6
  .layout-stimulus_image_blank.svelte-6wlbb4 .audio-container:where(.svelte-6wlbb4) {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),
@@ -24,4 +24,4 @@ this.McPopulatedBlankElement=(function(){typeof window<`u`&&((window.__svelte??=
24
24
  .layout-token_sequence.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),
25
25
  .layout-stimulus_image_blank.svelte-6wlbb4 .choice-row-horizontal:where(.svelte-6wlbb4),
26
26
  .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;}
27
- }`};function zi(e,t){ze(t,!0),Pr(e,Ri);let n=`{{blank}}`,r={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},i={audio_blank_only:{blankWideWidthRem:10,blankUnderlineWideWidthPx:4},stimulus_image_blank:{blankWideWidthRem:10,blankUnderlineWideWidthPx:4},token_sequence:{blankStandaloneWidthRem:7,blankUnderlineWideWidthPx:4}},a={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`}},o={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`,listenLabelEn:`Listen`,listenLabelEs:`Escuchar`},s=ti(t,`model`,7),c=ti(t,`session`,7),l=ti(t,`options`,7),u=F(null),d=F(!1),f=F(``),p=F(!1),m=F(!1),h=F(null),g=F(null),_=F(null),v=F(null),y=`mc-populated-blank-${Math.random().toString(36).slice(2,10)}`,b=P(()=>(s()?.mode||s()?.env?.mode||``).toString()),x=P(()=>K(b)===`evaluate`),S=P(()=>s()?.correctness),ee=P(()=>typeof s()?.responseCorrect==`boolean`?s().responseCorrect:K(S)===`correct`),te=P(()=>K(S)===`correct`),ne=P(()=>K(S)===`incorrect`),re=P(()=>s()?.interactionMode===`audio_mc_only`),ie=P(()=>{let e=s()?.template||``;return e?e.replace(/<[^>]+>/g,``).replace(/&nbsp;/g,` `).trim()===n:!1}),C=P(()=>s()?.layoutProfile||``),ae=P(()=>s()?.choiceLayout||(K(re)||K(ie)?`horizontal`:`vertical`)),oe=P(()=>K(ae)===`horizontal`),se=P(()=>!!s()?.showVisibleTranscript),ce=P(()=>!!s()?.hasAudio&&!!s()?.audioUrl),le=P(()=>!!s()?.hasAudio&&!s()?.audioUrl),ue=P(()=>K(C)===`inline_sentence`&&!!s()?.hasAudio),w=P(()=>({...o,...s()?.uiText||{}})),de=P(()=>{let e=String(K(C)||``),t=i[e]||{},n=s()?.layoutProfilePresets&&typeof s().layoutProfilePresets==`object`?s().layoutProfilePresets:{},r=n[e]&&typeof n[e]==`object`?n[e]:{};return{...t,...r}}),T=P(()=>{let e=s()?.layoutLimits&&typeof s().layoutLimits==`object`?s().layoutLimits:{};return{...r,...K(de),...e}}),fe=P(()=>[`--pie-correct-answer-toggle-label-color:${$.text()}`,`--pie-correct-answer-toggle-icon-open-bg:${$.tertiaryLight()}`,`--pie-correct-answer-toggle-icon-closed-bg:${$.backgroundDark()}`,`--pie-correct-answer-toggle-icon-glyph-color:${$.tertiary()}`,`--pie-correct-answer-choice-hover-bg:${$.backgroundDark()}`,`--pie-correct-answer-choice-selected-bg:${$.secondaryBackground()}`,`--pie-correct-answer-choice-correct-bg:${$.correctSecondary()}`,`--pie-correct-answer-choice-incorrect-bg:${$.incorrectSecondary()}`,`--pie-correct-answer-choice-correct-border:${$.correctTertiary()}`,`--pie-correct-answer-choice-incorrect-border:${$.incorrectWithIcon()}`,`--pie-correct-answer-feedback-correct-bg:${$.correctWithIcon()}`,`--pie-correct-answer-feedback-incorrect-bg:${$.incorrectWithIcon()}`,`--pie-correct-answer-feedback-glyph-color:${$.white()}`].join(`;`)),pe=P(()=>[`--mpb-listen-button-size:${K(T).listenButtonSizePx}px`,`--mpb-blank-standalone-width:${K(T).blankStandaloneWidthRem}rem`,`--mpb-blank-wide-width:${K(T).blankWideWidthRem}rem`,`--mpb-blank-underline-width:${K(T).blankUnderlineWidthPx}px`,`--mpb-blank-underline-wide-width:${K(T).blankUnderlineWideWidthPx}px`,`--mpb-selected-image-max-height:${K(T).selectedImageMaxHeightRem}rem`,`--mpb-choice-image-max-height:${K(T).choiceImageMaxHeightRem}rem`,`--mpb-choice-width-px:${K(T).horizontalChoiceWidthPx}px`,`--mpb-choice-width-vw:${K(T).horizontalChoiceWidthVw}vw`,`--mpb-choice-tile-min-height:${K(T).horizontalChoiceTileMinHeightRem}rem`,`--mpb-choice-content-min-height:${K(T).horizontalChoiceContentMinHeightRem}rem`,`--mpb-stimulus-min-column:${K(T).stimulusMinColumnPx}px`,`--mpb-text-min-column:${K(T).textMinColumnPx}px`,`--mpb-choice-group-gap:${K(T).choiceGroupGapRem}rem`,`--mpb-choice-row-gap:${K(T).choiceRowGapRem}rem`,`--mpb-toggle-button-gap:${K(T).toggleButtonGapRem}rem`,`--mpb-horizontal-choice-radio-top-margin:${K(T).horizontalChoiceRadioTopMarginRem}rem`,`--mpb-audio-blank-template-margin-top:${K(T).audioBlankTemplateMarginTopRem}rem`,`--mpb-audio-blank-template-margin-bottom:${K(T).audioBlankTemplateMarginBottomRem}rem`,`--mpb-audio-instructions-max-width:${K(T).audioInstructionsMaxWidthPx}px`,`--mpb-narrow-choice-max-width:${K(T).narrowHorizontalChoiceMaxWidthPx}px`,`--mpb-stimulus-grid-column-gap:${K(T).stimulusGridColumnGapRem}rem`,`--mpb-stimulus-grid-row-gap:${K(T).stimulusGridRowGapRem}rem`,`--mpb-stimulus-sentence-margin-top:${K(T).stimulusSentenceMarginTopRem}rem`,`--mpb-stimulus-choices-margin-top:${K(T).stimulusChoicesMarginTopRem}rem`,`--mpb-token-grid-column-gap:${K(T).tokenGridColumnGapRem}rem`,`--mpb-token-grid-row-gap:${K(T).tokenGridRowGapRem}rem`,`--mpb-token-template-margin-top:${K(T).tokenTemplateMarginTopRem}rem`,`--mpb-token-inline-token-gap:${K(T).tokenInlineTokenGapRem}rem`,`--mpb-token-choices-margin-top:${K(T).tokenChoicesMarginTopRem}rem`,`--mpb-inline-grid-column-gap:${K(T).inlineGridColumnGapRem}rem`,`--mpb-inline-grid-row-gap:${K(T).inlineGridRowGapRem}rem`,`--mpb-inline-template-margin-top:${K(T).inlineTemplateMarginTopRem}rem`,`--mpb-inline-choices-margin-top:${K(T).inlineChoicesMarginTopRem}rem`,K(fe)].join(`;`)),me=P(()=>{if(typeof s()?.useFeatureButtonAudio==`boolean`)return!!s().useFeatureButtonAudio;let e=K(C)||``;return!!s()?.hasAudio&&(e===`audio_blank_only`||e===`stimulus_image_blank`||e===`token_sequence`)}),he=P(()=>{let e=s()?.template||``,t=e.indexOf(n);return t<0?{before:e,after:``}:{before:e.slice(0,t),after:e.slice(t+9)}}),ge=P(()=>K(C)===`audio_blank_only`||K(C)===`stimulus_image_blank`?`${K(T).blankWideWidthRem}rem`:K(ie)?`${K(T).blankStandaloneWidthRem}rem`:`auto`),_e=P(()=>K(C)===`audio_blank_only`||K(C)===`stimulus_image_blank`?`${K(T).blankUnderlineWideWidthPx}px`:`${K(T).blankUnderlineWidthPx}px`),ve=P(()=>Array.isArray(s()?.choices)?s().choices:[]),ye=P(()=>s()?.choiceMode||`text`),be=P(()=>c()?.choiceId||K(f)||``),xe=P(()=>`${y}-choice-group-${s()?.id||`1`}`),Se=F(!1),Ce=P(()=>!!s()?.alwaysShowCorrect||!!l()?.alwaysShowCorrect||!!l()?.addCorrectResponse),we=P(()=>!!s()?.correctChoiceId&&(K(x)||K(Ce))),Te=P(()=>K(Ce)||K(Se)),Ee=P(()=>K(x)&&!K(ee)&&!!s()?.correctChoiceId&&!K(Ce)),De=P(()=>K(we)&&K(Te)&&s()?.correctChoiceId?s().correctChoiceId:K(be)),E=P(()=>K(ve).find(e=>e.id===K(De))),Oe=P(()=>{let e=(s()?.prompt||``).replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim(),t=Math.max(8,Number(K(T).legendMaxChars)||r.legendMaxChars);return e.length>t?`${e.slice(0,Math.max(1,t-1))}…`:e||K(w).answerChoices}),D=P(()=>`${y}-prompt`),O=P(()=>`${y}-transcript`),ke=P(()=>`${y}-choices-legend`),Ae=P(()=>`${y}-result`),je=P(()=>s()?.prompt?K(D):void 0),Me=P(()=>s()?.prompt?void 0:String(s()?.choiceGroupLabel||``).trim()||K(Oe)),Ne=P(()=>{let e=[];return s()?.prompt&&e.push(K(D)),s()?.hasAudio&&s()?.audioTranscript&&e.push(K(O)),e.length?e.join(` `):void 0}),Pe=P(()=>{let e=s()?.locale||``;return e?e.slice(0,2):`en`}),Fe=P(()=>K(le)?K(w).audioResourceUnavailable:``),Ie=P(()=>!K(x)||K(Te)?``:K(te)?`Correct answer selected`:K(ne)&&K(be)?`Incorrect answer selected`:``),Le=P(()=>{let e=new Map,t=String(s()?.correctChoiceId||``),n=String(K(be)||``);return!K(x)||!t?e:K(Te)&&K(we)?(e.set(t,`correct`),e):n?n===t?(e.set(t,`correct`),e):(e.set(n,`incorrect`),e.set(t,`incorrect`),e):(e.set(t,`incorrect`),e)});function A(e,t){let n=Ke(t);if(n?.onSessionChange){n.onSessionChange(e);return}n?.dispatchEvent(new CustomEvent(`session-changed`,{bubbles:!0,composed:!0,detail:{complete:!!e?.choiceId,component:`mc-populated-blank`}}))}function Re(e){let t=e.target;if(!t.checked)return;let n=t.value;I(f,n,!0),A({...c(),id:c()?.id||s()?.id||`1`,element:`mc-populated-blank`,choiceId:n},t)}function Ve(){K(Ee)&&I(Se,!K(Se))}pn(()=>{(!K(x)||K(ee)||K(Ce))&&I(Se,!1)});function He(e){if(s()?.disabled)return;let t=e.key;if(![`ArrowDown`,`ArrowRight`,`ArrowUp`,`ArrowLeft`].includes(t))return;e.preventDefault();let n=e.currentTarget,r=Array.from(n.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let i=r.findIndex(e=>e.checked);i=t===`ArrowDown`||t===`ArrowRight`?i<0?0:(i+1)%r.length:i<0?r.length-1:(i-1+r.length)%r.length;let a=r[i];a.checked=!0,a.dispatchEvent(new Event(`change`,{bubbles:!0})),a.focus()}function Ue(){K(ce)&&K(u)&&K(u).play().finally(()=>{I(p,!1)})}function We(e){let t=Ke(e.currentTarget);I(d,!0),t?.onAudioStarted?.(),I(p,!1)}function Ge(e){let t=Ke(e.currentTarget);I(d,!1),t?.onAudioEnded?.()}function Ke(e){let t=e;for(;t;){let e=t;if(typeof e?.onSessionChange==`function`||typeof e?.onAudioStarted==`function`||typeof e?.onAudioEnded==`function`)return e;t=t.parentElement}return document.querySelector(`mc-populated-blank`)||null}function qe(e=``){return e.toLowerCase().startsWith(`es`)?K(w).listenLabelEs:K(w).listenLabelEn}let Je=P(()=>{let e=String(s()?.locale||``).toLowerCase(),t=e.slice(0,2),n=s()?.audioButtonSkinsByLocale&&typeof s().audioButtonSkinsByLocale==`object`?s().audioButtonSkinsByLocale:{},r=s()?.audioButtonSkin&&typeof s().audioButtonSkin==`object`?s().audioButtonSkin:null,i=e.startsWith(`es`)?a.es:a.default;return n[e]||n[t]||n.default||r||i});function j(){K(ce)&&K(u)&&K(u).play().catch(()=>{})}pn(()=>{c()?.choiceId&&I(f,c().choiceId,!0)}),pn(()=>{let e=K(u);if(!e)return;let t=e=>We(e),n=e=>Ge(e);return e.addEventListener(`playing`,t),e.addEventListener(`ended`,n),()=>{e.removeEventListener(`playing`,t),e.removeEventListener(`ended`,n)}}),pn(()=>{let e=K(h);if(!e)return;let t=()=>j();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(g);if(!e)return;let t=()=>Ue();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(_);if(!e)return;let t=()=>Ve();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(v);if(!e)return;let t=e=>{let t=e.target;!t||t.type!==`radio`||Re(e)},n=e=>He(e);return e.addEventListener(`change`,t),e.addEventListener(`keydown`,n),()=>{e.removeEventListener(`change`,t),e.removeEventListener(`keydown`,n)}}),pn(()=>{!s()?.hasAudio||!s()?.autoplayAudioEnabled||K(m)||(I(m,!0),K(u)&&s()?.audioUrl&&K(u).play().catch(()=>{I(p,!0)}))});var Ye={get model(){return s()},set model(e){s(e),ut()},get session(){return c()},set session(e){c(e),ut()},get options(){return l()},set options(e){l(e),ut()}},Xe=Li(),Ze=R(Xe),Qe=e=>{var t=pi();Nr(t,()=>s().prompt,!0),k(t),B(()=>X(t,`id`,K(D))),J(e,t)};Y(Ze,e=>{s()?.prompt&&e(Qe)});var $e=z(Ze,2),et=e=>{var t=gi(),n=R(t),r=R(n),i=R(r),a=R(i),o=e=>{J(e,mi())},s=e=>{J(e,hi())};Y(a,e=>{K(Te)?e(o):e(s,-1)}),k(i);var c=z(i,2),l=R(c,!0);k(c),k(r),k(n),ei(n,e=>I(_,e),()=>K(_)),k(t),B(()=>{X(n,`aria-pressed`,K(Te)),gr(l,K(Te)?K(w).hideCorrectAnswer:K(w).showCorrectAnswer)}),J(e,t)};Y($e,e=>{K(Ee)&&e(et)});var tt=z($e,2),M=e=>{var t=Si(),n=R(t),r=e=>{var t=_i(),n=$t(t);ei(n,e=>I(u,e),()=>K(u));var r=z(n,2),i=R(r),a=z(i,2);k(r),ei(r,e=>I(h,e),()=>K(h)),B(e=>{X(n,`src`,s().audioUrl),X(r,`aria-label`,e),Br(i,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${K(d)?``:`listen-active`}`,`svelte-6wlbb4`),X(i,`src`,K(Je).silentUrl),Br(a,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${K(d)?`listen-active`:``}`,`svelte-6wlbb4`),X(a,`src`,K(Je).playingUrl)},[()=>qe(s()?.locale)]),J(e,t)},i=e=>{var t=yi(),n=$t(t);ei(n,e=>I(u,e),()=>K(u));var r=z(n,2),i=e=>{var t=vi(),n=R(t,!0);k(t),ei(t,e=>I(g,e),()=>K(g)),B(()=>gr(n,K(w).clickToEnableAutoplay)),J(e,t)};Y(r,e=>{K(p)&&e(i)}),B(()=>{X(n,`src`,s().audioUrl),X(n,`aria-describedby`,s()?.audioTranscript?K(O):void 0)}),J(e,t)},a=e=>{var t=bi(),n=R(t,!0);k(t),B(()=>gr(n,K(Fe))),J(e,t)};Y(n,e=>{K(ce)&&K(me)?e(r):K(ce)?e(i,1):K(le)&&e(a,2)});var o=z(n,2),c=e=>{var t=xi(),n=R(t),r=R(n);k(n);var i=z(n);k(t),B(()=>{Br(t,1,`text-sm mt-2 text-gray-700 pie-audio-transcript ${K(se)?``:`sr-only`}`,`svelte-6wlbb4`),X(t,`id`,K(O)),gr(r,`${K(w).transcriptLabel??``}:`),gr(i,` ${s().audioTranscript??``}`)}),J(e,t)};Y(o,e=>{s()?.audioTranscript&&e(c)}),k(t),J(e,t)};Y(tt,e=>{s()?.hasAudio&&e(M)});var N=z(tt,2),nt=e=>{var t=Ci();Nr(t,()=>s().sentenceHtml,!0),k(t),B(()=>X(t,`aria-describedby`,K(Ne))),J(e,t)};Y(N,e=>{s()?.sentenceHtml&&e(nt)});var rt=z(N,2),it=e=>{var t=Di(),n=R(t);Nr(n,()=>K(he).before);var r=z(n,2),i=R(r),a=e=>{var t=wi();B(()=>{X(t,`src`,K(E).imageUrl),X(t,`alt`,K(E).imageAlt||`Selected answer image`)}),J(e,t)},o=e=>{var t=Ti();Nr(t,()=>K(E).labelHtml,!0),k(t),J(e,t)},s=e=>{J(e,Ei())};Y(i,e=>{K(ye)===`image`&&K(E)?.imageUrl?e(a):K(E)?.labelHtml?e(o,1):e(s,-1)}),k(r),Nr(z(r,2),()=>K(he).after),k(t),B(()=>{X(t,`aria-describedby`,K(Ne)),Br(r,1,`inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline blank-slot pie-blank-slot ${K(ie)?`blank-slot-standalone pie-blank-slot-standalone`:``}`,`svelte-6wlbb4`),Hr(r,`width:${K(ge)};border-bottom-width:${K(_e)};`),X(r,`aria-label`,K(w).selectedAnswerInSentence)}),J(e,t)};Y(rt,e=>{K(re)||e(it)});var at=z(rt,2),ot=e=>{var t=Oi(),n=R(t,!0);k(t),B(()=>{X(t,`id`,K(Ae)),gr(n,K(Ie))}),J(e,t)};Y(at,e=>{K(Ie)&&e(ot)});var st=z(at,2),ct=R(st),lt=R(ct,!0);k(ct);var dt=z(ct,2);return Dr(dt,21,()=>K(ve),e=>e.id,(e,t)=>{let n=P(()=>K(Le).get(K(t).id));var r=Ii(),i=R(r),a=e=>{var n=ji(),r=R(n),i=R(r),a=e=>{var n=ki();B(()=>{X(n,`src`,K(t).imageUrl),X(n,`alt`,K(t).imageAlt||`Choice ${K(t).id}`)}),J(e,n)},o=e=>{var n=Ai();Nr(n,()=>K(t).labelHtml||``,!0),k(n),J(e,n)};Y(i,e=>{K(ye)===`image`&&K(t).imageUrl?e(a):e(o,-1)}),k(r);var c=z(r,2);qr(c),k(n),B(()=>{X(n,`for`,`${y}-opt-${K(t).id}`),X(c,`name`,K(xe)),X(c,`id`,`${y}-opt-${K(t).id}`),Jr(c,K(t).id),Yr(c,(K(Te)&&K(we)?s()?.correctChoiceId:K(be))===K(t).id),c.disabled=s()?.disabled}),J(e,n)},o=e=>{var n=Pi(),r=$t(n);qr(r);var i=z(r,2),a=R(i),o=e=>{var n=Mi();B(()=>{X(n,`src`,K(t).imageUrl),X(n,`alt`,K(t).imageAlt||`Choice ${K(t).id}`)}),J(e,n)},c=e=>{var n=Ni();Nr(n,()=>K(t).labelHtml||``,!0),k(n),J(e,n)};Y(a,e=>{K(ye)===`image`&&K(t).imageUrl?e(o):e(c,-1)}),k(i),B(()=>{X(r,`name`,K(xe)),X(r,`id`,`${y}-opt-${K(t).id}`),Jr(r,K(t).id),Yr(r,(K(Te)&&K(we)?s()?.correctChoiceId:K(be))===K(t).id),r.disabled=s()?.disabled,X(i,`for`,`${y}-opt-${K(t).id}`)}),J(e,n)};Y(i,e=>{K(oe)?e(a):e(o,-1)});var c=z(i,2),l=e=>{var t=Fi(),r=R(t,!0);k(t),B(()=>{Br(t,1,`pie-choice-feedback-badge ${K(n)===`correct`?`pie-choice-feedback-correct`:`pie-choice-feedback-incorrect`}`,`svelte-6wlbb4`),gr(r,K(n)===`correct`?`✓`:`✕`)}),J(e,t)};Y(c,e=>{K(x)&&K(n)&&e(l)}),k(r),B(()=>Br(r,1,`flex items-start choice-row pie-choice ${K(oe)?`choice-row-horizontal pie-choice-horizontal`:``} ${(K(Te)&&K(we)?s()?.correctChoiceId:K(be))===K(t).id?`is-selected pie-choice-selected`:``} ${K(n)?`choice-${K(n)} pie-choice-${K(n)}`:``}`,`svelte-6wlbb4`)),J(e,r)}),k(dt),ei(dt,e=>I(v,e),()=>K(v)),k(st),k(Xe),B(()=>{Br(Xe,1,`p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${K(C)} ${K(ue)?`has-inline-audio`:``}`,`svelte-6wlbb4`),X(Xe,`lang`,K(Pe)),Hr(Xe,K(pe)),st.disabled=s()?.disabled,X(ct,`id`,K(ke)),gr(lt,K(Oe)),Br(dt,1,`pie-choices ${K(oe)?`flex flex-row flex-wrap items-start justify-center`:`flex flex-col`}`,`svelte-6wlbb4`),X(dt,`aria-labelledby`,K(je)),X(dt,`aria-label`,K(Me)),X(dt,`aria-describedby`,K(Ie)?K(Ae):void 0)}),J(e,Xe),Be(Ye)}customElements.define(`mc-populated-blank`,si(zi,{model:{type:`Object`},session:{type:`Object`},options:{type:`Object`}},[],[]));var Bi=(e,t,n=!1)=>{if(!t||!t.choiceId)return!1;let r=!!e?.autoplayAudioEnabled,i=!!e?.completeAudioEnabled;return!(r&&i&&e?.hasAudio&&!n)},Vi=zi.element;return class extends Vi{_internalSession=null;_model=null;_options=null;audioComplete=!1;_dispatchModelSet=()=>{this.dispatchEvent(new CustomEvent(`model-set`,{bubbles:!0,composed:!0,detail:{complete:this._isComplete(),component:this.tagName.toLowerCase(),hasModel:this._model!==void 0}}))};_dispatchSessionChanged=()=>{this.dispatchEvent(new CustomEvent(`session-changed`,{bubbles:!0,composed:!0,detail:{complete:this._isComplete(),component:this.tagName.toLowerCase()}}))};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:new Date().getTime()}};onAudioEnded=()=>{this.audioComplete=!0,this._internalSession={...this._internalSession||{},audioEndTime:new Date().getTime()},this._dispatchSessionChanged()};_isComplete=()=>Bi(this._model,this._internalSession,this.audioComplete);connectedCallback(){super.connectedCallback(),this.onSessionChange=this.onSessionChange,this.onAudioStarted=this.onAudioStarted,this.onAudioEnded=this.onAudioEnded}}})();
27
+ }`};function zi(e,t){Be(t,!0),Pr(e,Ri);let n=`{{blank}}`,r={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},i={audio_blank_only:{blankWideWidthRem:10,blankUnderlineWideWidthPx:4},stimulus_image_blank:{blankWideWidthRem:10,blankUnderlineWideWidthPx:4},token_sequence:{blankStandaloneWidthRem:7,blankUnderlineWideWidthPx:4}},a={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`}},o={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`,listenLabelEn:`Listen`,listenLabelEs:`Escuchar`},s=ti(t,`model`,7),c=ti(t,`session`,7),l=F(null),u=F(!1),d=F(``),f=F(!1),p=F(!1),m=F(null),h=F(null),g=F(null),_=F(null),v=`mc-populated-blank-${Math.random().toString(36).slice(2,10)}`,ee=P(()=>(s()?.mode||s()?.env?.mode||``).toString()),y=P(()=>K(ee)===`evaluate`),b=P(()=>s()?.correctness),x=P(()=>typeof s()?.responseCorrect==`boolean`?s().responseCorrect:K(b)===`correct`),te=P(()=>K(b)===`correct`),ne=P(()=>K(b)===`incorrect`),re=P(()=>s()?.interactionMode===`audio_mc_only`),ie=P(()=>{let e=s()?.template||``;return e?e.replace(/<[^>]+>/g,``).replace(/&nbsp;/g,` `).trim()===n:!1}),ae=P(()=>s()?.layoutProfile||``),oe=P(()=>s()?.choiceLayout||(K(re)||K(ie)?`horizontal`:`vertical`)),se=P(()=>K(oe)===`horizontal`),ce=P(()=>!!s()?.showVisibleTranscript),le=P(()=>!!s()?.hasAudio&&!!s()?.audioUrl),ue=P(()=>!!s()?.hasAudio&&!s()?.audioUrl),de=P(()=>K(ae)===`inline_sentence`&&!!s()?.hasAudio),S=P(()=>({...o,...s()?.uiText||{}})),fe=P(()=>{let e=String(K(ae)||``),t=i[e]||{},n=s()?.layoutProfilePresets&&typeof s().layoutProfilePresets==`object`?s().layoutProfilePresets:{},r=n[e]&&typeof n[e]==`object`?n[e]:{};return{...t,...r}}),C=P(()=>{let e=s()?.layoutLimits&&typeof s().layoutLimits==`object`?s().layoutLimits:{};return{...r,...K(fe),...e}}),pe=P(()=>[`--pie-correct-answer-toggle-label-color:${$.text()}`,`--pie-correct-answer-toggle-icon-open-bg:${$.tertiaryLight()}`,`--pie-correct-answer-toggle-icon-closed-bg:${$.backgroundDark()}`,`--pie-correct-answer-toggle-icon-glyph-color:${$.tertiary()}`,`--pie-correct-answer-choice-hover-bg:${$.backgroundDark()}`,`--pie-correct-answer-choice-selected-bg:${$.secondaryBackground()}`,`--pie-correct-answer-choice-correct-bg:${$.correctSecondary()}`,`--pie-correct-answer-choice-incorrect-bg:${$.incorrectSecondary()}`,`--pie-correct-answer-choice-correct-border:${$.correctTertiary()}`,`--pie-correct-answer-choice-incorrect-border:${$.incorrectWithIcon()}`,`--pie-correct-answer-feedback-correct-bg:${$.correctWithIcon()}`,`--pie-correct-answer-feedback-incorrect-bg:${$.incorrectWithIcon()}`,`--pie-correct-answer-feedback-glyph-color:${$.white()}`].join(`;`)),me=P(()=>[`--mpb-listen-button-size:${K(C).listenButtonSizePx}px`,`--mpb-blank-standalone-width:${K(C).blankStandaloneWidthRem}rem`,`--mpb-blank-wide-width:${K(C).blankWideWidthRem}rem`,`--mpb-blank-underline-width:${K(C).blankUnderlineWidthPx}px`,`--mpb-blank-underline-wide-width:${K(C).blankUnderlineWideWidthPx}px`,`--mpb-selected-image-max-height:${K(C).selectedImageMaxHeightRem}rem`,`--mpb-choice-image-max-height:${K(C).choiceImageMaxHeightRem}rem`,`--mpb-choice-width-px:${K(C).horizontalChoiceWidthPx}px`,`--mpb-choice-width-vw:${K(C).horizontalChoiceWidthVw}vw`,`--mpb-choice-tile-min-height:${K(C).horizontalChoiceTileMinHeightRem}rem`,`--mpb-choice-content-min-height:${K(C).horizontalChoiceContentMinHeightRem}rem`,`--mpb-stimulus-min-column:${K(C).stimulusMinColumnPx}px`,`--mpb-text-min-column:${K(C).textMinColumnPx}px`,`--mpb-choice-group-gap:${K(C).choiceGroupGapRem}rem`,`--mpb-choice-row-gap:${K(C).choiceRowGapRem}rem`,`--mpb-toggle-button-gap:${K(C).toggleButtonGapRem}rem`,`--mpb-horizontal-choice-radio-top-margin:${K(C).horizontalChoiceRadioTopMarginRem}rem`,`--mpb-audio-blank-template-margin-top:${K(C).audioBlankTemplateMarginTopRem}rem`,`--mpb-audio-blank-template-margin-bottom:${K(C).audioBlankTemplateMarginBottomRem}rem`,`--mpb-audio-instructions-max-width:${K(C).audioInstructionsMaxWidthPx}px`,`--mpb-narrow-choice-max-width:${K(C).narrowHorizontalChoiceMaxWidthPx}px`,`--mpb-stimulus-grid-column-gap:${K(C).stimulusGridColumnGapRem}rem`,`--mpb-stimulus-grid-row-gap:${K(C).stimulusGridRowGapRem}rem`,`--mpb-stimulus-sentence-margin-top:${K(C).stimulusSentenceMarginTopRem}rem`,`--mpb-stimulus-choices-margin-top:${K(C).stimulusChoicesMarginTopRem}rem`,`--mpb-token-grid-column-gap:${K(C).tokenGridColumnGapRem}rem`,`--mpb-token-grid-row-gap:${K(C).tokenGridRowGapRem}rem`,`--mpb-token-template-margin-top:${K(C).tokenTemplateMarginTopRem}rem`,`--mpb-token-inline-token-gap:${K(C).tokenInlineTokenGapRem}rem`,`--mpb-token-choices-margin-top:${K(C).tokenChoicesMarginTopRem}rem`,`--mpb-inline-grid-column-gap:${K(C).inlineGridColumnGapRem}rem`,`--mpb-inline-grid-row-gap:${K(C).inlineGridRowGapRem}rem`,`--mpb-inline-template-margin-top:${K(C).inlineTemplateMarginTopRem}rem`,`--mpb-inline-choices-margin-top:${K(C).inlineChoicesMarginTopRem}rem`,K(pe)].join(`;`)),he=P(()=>{if(typeof s()?.useFeatureButtonAudio==`boolean`)return!!s().useFeatureButtonAudio;let e=K(ae)||``;return!!s()?.hasAudio&&(e===`audio_blank_only`||e===`stimulus_image_blank`||e===`token_sequence`)}),ge=P(()=>{let e=s()?.template||``,t=e.indexOf(n);return t<0?{before:e,after:``}:{before:e.slice(0,t),after:e.slice(t+9)}}),_e=P(()=>K(ae)===`audio_blank_only`||K(ae)===`stimulus_image_blank`?`${K(C).blankWideWidthRem}rem`:K(ie)?`${K(C).blankStandaloneWidthRem}rem`:`auto`),ve=P(()=>K(ae)===`audio_blank_only`||K(ae)===`stimulus_image_blank`?`${K(C).blankUnderlineWideWidthPx}px`:`${K(C).blankUnderlineWidthPx}px`),ye=P(()=>Array.isArray(s()?.choices)?s().choices:[]),be=P(()=>s()?.choiceMode||`text`),xe=P(()=>c()?.choiceId||K(d)||``),Se=P(()=>`${v}-choice-group-${s()?.id||`1`}`),w=F(!1),Ce=P(()=>K(y)&&!K(x)&&!!s()?.correctChoiceId),we=P(()=>K(y)&&K(w)&&s()?.correctChoiceId?s().correctChoiceId:K(xe)),Te=P(()=>K(ye).find(e=>e.id===K(we))),Ee=P(()=>{let e=(s()?.prompt||``).replace(/<[^>]+>/g,` `).replace(/\s+/g,` `).trim(),t=Math.max(8,Number(K(C).legendMaxChars)||r.legendMaxChars);return e.length>t?`${e.slice(0,Math.max(1,t-1))}…`:e||K(S).answerChoices}),De=P(()=>`${v}-prompt`),Oe=P(()=>`${v}-transcript`),T=P(()=>`${v}-choices-legend`),ke=P(()=>`${v}-result`),E=P(()=>s()?.prompt?K(De):void 0),D=P(()=>s()?.prompt?void 0:String(s()?.choiceGroupLabel||``).trim()||K(Ee)),Ae=P(()=>{let e=[];return s()?.prompt&&e.push(K(De)),s()?.hasAudio&&s()?.audioTranscript&&e.push(K(Oe)),e.length?e.join(` `):void 0}),je=P(()=>{let e=s()?.locale||``;return e?e.slice(0,2):`en`}),Me=P(()=>K(ue)?K(S).audioResourceUnavailable:``),Ne=P(()=>!K(y)||K(w)?``:K(te)?`Correct answer selected`:K(ne)&&K(xe)?`Incorrect answer selected`:``),Pe=P(()=>{let e=new Map,t=String(s()?.correctChoiceId||``),n=String(K(xe)||``);return!K(y)||!t?e:K(w)?n===t?(e.set(t,`correct`),e):(n&&e.set(n,`incorrect`),e.set(t,`incorrect`),e):n?n===t?(e.set(t,`correct`),e):(e.set(n,`incorrect`),e.set(t,`incorrect`),e):(e.set(t,`incorrect`),e)});function Fe(e,t){let n=Ue(t);if(n?.onSessionChange){n.onSessionChange(e);return}n?.dispatchEvent(new CustomEvent(`session-changed`,{bubbles:!0,composed:!0,detail:{complete:!!e?.choiceId,component:`mc-populated-blank`}}))}function Ie(e){let t=e.target;if(!t.checked)return;let n=t.value;I(d,n,!0),Fe({...c(),id:c()?.id||s()?.id||`1`,element:`mc-populated-blank`,choiceId:n},t)}function Le(){K(Ce)&&I(w,!K(w))}pn(()=>{(!K(y)||K(x))&&I(w,!1)});function Re(e){if(s()?.disabled)return;let t=e.key;if(![`ArrowDown`,`ArrowRight`,`ArrowUp`,`ArrowLeft`].includes(t))return;e.preventDefault();let n=e.currentTarget,r=Array.from(n.querySelectorAll(`input[type="radio"]:not([disabled])`));if(r.length===0)return;let i=r.findIndex(e=>e.checked);i=t===`ArrowDown`||t===`ArrowRight`?i<0?0:(i+1)%r.length:i<0?r.length-1:(i-1+r.length)%r.length;let a=r[i];a.checked=!0,a.dispatchEvent(new Event(`change`,{bubbles:!0})),a.focus()}function k(){K(le)&&K(l)&&K(l).play().finally(()=>{I(f,!1)})}function ze(e){let t=Ue(e.currentTarget);I(u,!0),t?.onAudioStarted?.(),I(f,!1)}function He(e){let t=Ue(e.currentTarget);I(u,!1),t?.onAudioEnded?.()}function Ue(e){let t=e;for(;t;){let e=t;if(typeof e?.onSessionChange==`function`||typeof e?.onAudioStarted==`function`||typeof e?.onAudioEnded==`function`)return e;t=t.parentElement}return document.querySelector(`mc-populated-blank`)||null}function We(e=``){return e.toLowerCase().startsWith(`es`)?K(S).listenLabelEs:K(S).listenLabelEn}let Ge=P(()=>{let e=String(s()?.locale||``).toLowerCase(),t=e.slice(0,2),n=s()?.audioButtonSkinsByLocale&&typeof s().audioButtonSkinsByLocale==`object`?s().audioButtonSkinsByLocale:{},r=s()?.audioButtonSkin&&typeof s().audioButtonSkin==`object`?s().audioButtonSkin:null,i=e.startsWith(`es`)?a.es:a.default;return n[e]||n[t]||n.default||r||i});function Ke(){K(le)&&K(l)&&K(l).play().catch(()=>{})}pn(()=>{c()?.choiceId&&I(d,c().choiceId,!0)}),pn(()=>{let e=K(l);if(!e)return;let t=e=>ze(e),n=e=>He(e);return e.addEventListener(`playing`,t),e.addEventListener(`ended`,n),()=>{e.removeEventListener(`playing`,t),e.removeEventListener(`ended`,n)}}),pn(()=>{let e=K(m);if(!e)return;let t=()=>Ke();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(h);if(!e)return;let t=()=>k();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(g);if(!e)return;let t=()=>Le();return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}),pn(()=>{let e=K(_);if(!e)return;let t=e=>{let t=e.target;!t||t.type!==`radio`||Ie(e)},n=e=>Re(e);return e.addEventListener(`change`,t),e.addEventListener(`keydown`,n),()=>{e.removeEventListener(`change`,t),e.removeEventListener(`keydown`,n)}}),pn(()=>{!s()?.hasAudio||!s()?.autoplayAudioEnabled||K(p)||(I(p,!0),K(l)&&s()?.audioUrl&&K(l).play().catch(()=>{I(f,!0)}))});var qe={get model(){return s()},set model(e){s(e),ut()},get session(){return c()},set session(e){c(e),ut()}},A=Li(),Je=R(A),j=e=>{var t=pi();Nr(t,()=>s().prompt,!0),O(t),B(()=>X(t,`id`,K(De))),J(e,t)};Y(Je,e=>{s()?.prompt&&e(j)});var Ye=z(Je,2),Xe=e=>{var t=gi(),n=R(t),r=R(n),i=R(r),a=R(i),o=e=>{J(e,mi())},s=e=>{J(e,hi())};Y(a,e=>{K(w)?e(o):e(s,-1)}),O(i);var c=z(i,2),l=R(c,!0);O(c),O(r),O(n),ei(n,e=>I(g,e),()=>K(g)),O(t),B(()=>{X(n,`aria-pressed`,K(w)),gr(l,K(w)?K(S).hideCorrectAnswer:K(S).showCorrectAnswer)}),J(e,t)};Y(Ye,e=>{K(Ce)&&e(Xe)});var Ze=z(Ye,2),Qe=e=>{var t=Si(),n=R(t),r=e=>{var t=_i(),n=$t(t);ei(n,e=>I(l,e),()=>K(l));var r=z(n,2),i=R(r),a=z(i,2);O(r),ei(r,e=>I(m,e),()=>K(m)),B(e=>{X(n,`src`,s().audioUrl),X(r,`aria-label`,e),Br(i,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${K(u)?``:`listen-active`}`,`svelte-6wlbb4`),X(i,`src`,K(Ge).silentUrl),Br(a,1,`listen-feature-icon pie-listen-icon rli-feature-listen ${K(u)?`listen-active`:``}`,`svelte-6wlbb4`),X(a,`src`,K(Ge).playingUrl)},[()=>We(s()?.locale)]),J(e,t)},i=e=>{var t=yi(),n=$t(t);ei(n,e=>I(l,e),()=>K(l));var r=z(n,2),i=e=>{var t=vi(),n=R(t,!0);O(t),ei(t,e=>I(h,e),()=>K(h)),B(()=>gr(n,K(S).clickToEnableAutoplay)),J(e,t)};Y(r,e=>{K(f)&&e(i)}),B(()=>{X(n,`src`,s().audioUrl),X(n,`aria-describedby`,s()?.audioTranscript?K(Oe):void 0)}),J(e,t)},a=e=>{var t=bi(),n=R(t,!0);O(t),B(()=>gr(n,K(Me))),J(e,t)};Y(n,e=>{K(le)&&K(he)?e(r):K(le)?e(i,1):K(ue)&&e(a,2)});var o=z(n,2),c=e=>{var t=xi(),n=R(t),r=R(n);O(n);var i=z(n);O(t),B(()=>{Br(t,1,`text-sm mt-2 text-gray-700 pie-audio-transcript ${K(ce)?``:`sr-only`}`,`svelte-6wlbb4`),X(t,`id`,K(Oe)),gr(r,`${K(S).transcriptLabel??``}:`),gr(i,` ${s().audioTranscript??``}`)}),J(e,t)};Y(o,e=>{s()?.audioTranscript&&e(c)}),O(t),J(e,t)};Y(Ze,e=>{s()?.hasAudio&&e(Qe)});var $e=z(Ze,2),et=e=>{var t=Ci();Nr(t,()=>s().sentenceHtml,!0),O(t),B(()=>X(t,`aria-describedby`,K(Ae))),J(e,t)};Y($e,e=>{s()?.sentenceHtml&&e(et)});var tt=z($e,2),M=e=>{var t=Di(),n=R(t);Nr(n,()=>K(ge).before);var r=z(n,2),i=R(r),a=e=>{var t=wi();B(()=>{X(t,`src`,K(Te).imageUrl),X(t,`alt`,K(Te).imageAlt||`Selected answer image`)}),J(e,t)},o=e=>{var t=Ti();Nr(t,()=>K(Te).labelHtml,!0),O(t),J(e,t)},s=e=>{J(e,Ei())};Y(i,e=>{K(be)===`image`&&K(Te)?.imageUrl?e(a):K(Te)?.labelHtml?e(o,1):e(s,-1)}),O(r),Nr(z(r,2),()=>K(ge).after),O(t),B(()=>{X(t,`aria-describedby`,K(Ae)),Br(r,1,`inline-flex items-center min-h-[1.5em] px-2 mx-1 border-b-2 border-gray-500 align-baseline blank-slot pie-blank-slot ${K(ie)?`blank-slot-standalone pie-blank-slot-standalone`:``}`,`svelte-6wlbb4`),Hr(r,`width:${K(_e)};border-bottom-width:${K(ve)};`),X(r,`aria-label`,K(S).selectedAnswerInSentence)}),J(e,t)};Y(tt,e=>{K(re)||e(M)});var N=z(tt,2),nt=e=>{var t=Oi(),n=R(t,!0);O(t),B(()=>{X(t,`id`,K(ke)),gr(n,K(Ne))}),J(e,t)};Y(N,e=>{K(Ne)&&e(nt)});var rt=z(N,2),it=R(rt),at=R(it,!0);O(it);var ot=z(it,2);return Dr(ot,21,()=>K(ye),e=>e.id,(e,t)=>{let n=P(()=>K(Pe).get(K(t).id));var r=Ii(),i=R(r),a=e=>{var n=ji(),r=R(n),i=R(r),a=e=>{var n=ki();B(()=>{X(n,`src`,K(t).imageUrl),X(n,`alt`,K(t).imageAlt||`Choice ${K(t).id}`)}),J(e,n)},o=e=>{var n=Ai();Nr(n,()=>K(t).labelHtml||``,!0),O(n),J(e,n)};Y(i,e=>{K(be)===`image`&&K(t).imageUrl?e(a):e(o,-1)}),O(r);var c=z(r,2);qr(c),O(n),B(()=>{X(n,`for`,`${v}-opt-${K(t).id}`),X(c,`name`,K(Se)),X(c,`id`,`${v}-opt-${K(t).id}`),Jr(c,K(t).id),Yr(c,(K(w)?s()?.correctChoiceId:K(xe))===K(t).id),c.disabled=s()?.disabled}),J(e,n)},o=e=>{var n=Pi(),r=$t(n);qr(r);var i=z(r,2),a=R(i),o=e=>{var n=Mi();B(()=>{X(n,`src`,K(t).imageUrl),X(n,`alt`,K(t).imageAlt||`Choice ${K(t).id}`)}),J(e,n)},c=e=>{var n=Ni();Nr(n,()=>K(t).labelHtml||``,!0),O(n),J(e,n)};Y(a,e=>{K(be)===`image`&&K(t).imageUrl?e(o):e(c,-1)}),O(i),B(()=>{X(r,`name`,K(Se)),X(r,`id`,`${v}-opt-${K(t).id}`),Jr(r,K(t).id),Yr(r,(K(w)?s()?.correctChoiceId:K(xe))===K(t).id),r.disabled=s()?.disabled,X(i,`for`,`${v}-opt-${K(t).id}`)}),J(e,n)};Y(i,e=>{K(se)?e(a):e(o,-1)});var c=z(i,2),l=e=>{var t=Fi(),r=R(t,!0);O(t),B(()=>{Br(t,1,`pie-choice-feedback-badge ${K(n)===`correct`?`pie-choice-feedback-correct`:`pie-choice-feedback-incorrect`}`,`svelte-6wlbb4`),gr(r,K(n)===`correct`?`✓`:`✕`)}),J(e,t)};Y(c,e=>{K(y)&&K(n)&&e(l)}),O(r),B(()=>Br(r,1,`flex items-start choice-row pie-choice ${K(se)?`choice-row-horizontal pie-choice-horizontal`:``} ${(K(w)?s()?.correctChoiceId:K(xe))===K(t).id?`is-selected pie-choice-selected`:``} ${K(n)?`choice-${K(n)} pie-choice-${K(n)}`:``}`,`svelte-6wlbb4`)),J(e,r)}),O(ot),ei(ot,e=>I(_,e),()=>K(_)),O(rt),O(A),B(()=>{Br(A,1,`p-4 mc-populated-blank-root pie-element pie-element-mc-populated-blank pie-delivery-root layout-${K(ae)} ${K(de)?`has-inline-audio`:``}`,`svelte-6wlbb4`),X(A,`lang`,K(je)),Hr(A,K(me)),rt.disabled=s()?.disabled,X(it,`id`,K(T)),gr(at,K(Ee)),Br(ot,1,`pie-choices ${K(se)?`flex flex-row flex-wrap items-start justify-center`:`flex flex-col`}`,`svelte-6wlbb4`),X(ot,`aria-labelledby`,K(E)),X(ot,`aria-label`,K(D)),X(ot,`aria-describedby`,K(Ne)?K(ke):void 0)}),J(e,A),Ve(qe)}customElements.define(`mc-populated-blank`,si(zi,{model:{type:`Object`},session:{type:`Object`},options:{type:`Object`}},[],[]));var Bi=(e,t,n=!1)=>{if(!t||!t.choiceId)return!1;let r=!!e?.autoplayAudioEnabled,i=!!e?.completeAudioEnabled;return!(r&&i&&e?.hasAudio&&!n)},Vi=zi.element;return class extends Vi{_internalSession=null;_model=null;_options=null;audioComplete=!1;_dispatchModelSet=()=>{this.dispatchEvent(new CustomEvent(`model-set`,{bubbles:!0,composed:!0,detail:{complete:this._isComplete(),component:this.tagName.toLowerCase(),hasModel:this._model!==void 0}}))};_dispatchSessionChanged=()=>{this.dispatchEvent(new CustomEvent(`session-changed`,{bubbles:!0,composed:!0,detail:{complete:this._isComplete(),component:this.tagName.toLowerCase()}}))};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:new Date().getTime()}};onAudioEnded=()=>{this.audioComplete=!0,this._internalSession={...this._internalSession||{},audioEndTime:new Date().getTime()},this._dispatchSessionChanged()};_isComplete=()=>Bi(this._model,this._internalSession,this.audioComplete);connectedCallback(){super.connectedCallback(),this.onSessionChange=this.onSessionChange,this.onAudioStarted=this.onAudioStarted,this.onAudioEnded=this.onAudioEnded}}})();
package/dist/index.js CHANGED
@@ -5243,7 +5243,7 @@ function McPopulatedBlank($$anchor, $$props) {
5243
5243
  listenLabelEn: "Listen",
5244
5244
  listenLabelEs: "Escuchar"
5245
5245
  };
5246
- let model = prop($$props, "model", 7), session = prop($$props, "session", 7), options = prop($$props, "options", 7);
5246
+ let model = prop($$props, "model", 7), session = prop($$props, "session", 7);
5247
5247
  let audioEl = /* @__PURE__ */ state(null);
5248
5248
  let isMediaPlaying = /* @__PURE__ */ state(false);
5249
5249
  let localChoiceId = /* @__PURE__ */ state("");
@@ -5378,12 +5378,9 @@ function McPopulatedBlank($$anchor, $$props) {
5378
5378
  const selectedId = /* @__PURE__ */ user_derived(() => session()?.choiceId || get(localChoiceId) || "");
5379
5379
  const radioGroupName = /* @__PURE__ */ user_derived(() => `${instanceId}-choice-group-${model()?.id || "1"}`);
5380
5380
  let showCorrectAnswer = /* @__PURE__ */ state(false);
5381
- const alwaysShowCorrect = /* @__PURE__ */ user_derived(() => !!model()?.alwaysShowCorrect || !!options()?.alwaysShowCorrect || !!options()?.addCorrectResponse);
5382
- const canRevealCorrectAnswer = /* @__PURE__ */ user_derived(() => !!model()?.correctChoiceId && (get(isEvaluateMode) || get(alwaysShowCorrect)));
5383
- const shouldShowCorrectAnswer = /* @__PURE__ */ user_derived(() => get(alwaysShowCorrect) || get(showCorrectAnswer));
5384
- const shouldShowCorrectAnswerToggle = /* @__PURE__ */ user_derived(() => get(isEvaluateMode) && !get(isResponseCorrect) && !!model()?.correctChoiceId && !get(alwaysShowCorrect));
5381
+ const shouldShowCorrectAnswerToggle = /* @__PURE__ */ user_derived(() => get(isEvaluateMode) && !get(isResponseCorrect) && !!model()?.correctChoiceId);
5385
5382
  const displayChoiceId = /* @__PURE__ */ user_derived(() => {
5386
- if (get(canRevealCorrectAnswer) && get(shouldShowCorrectAnswer) && model()?.correctChoiceId) return model().correctChoiceId;
5383
+ if (get(isEvaluateMode) && get(showCorrectAnswer) && model()?.correctChoiceId) return model().correctChoiceId;
5387
5384
  return get(selectedId);
5388
5385
  });
5389
5386
  const displayChoice = /* @__PURE__ */ user_derived(() => get(choices).find((c) => c.id === get(displayChoiceId)));
@@ -5415,7 +5412,7 @@ function McPopulatedBlank($$anchor, $$props) {
5415
5412
  });
5416
5413
  const audioErrorMessage = /* @__PURE__ */ user_derived(() => get(hasAudioButMissingResource) ? get(uiText).audioResourceUnavailable : "");
5417
5414
  const resultText = /* @__PURE__ */ user_derived(() => {
5418
- if (!get(isEvaluateMode) || get(shouldShowCorrectAnswer)) return "";
5415
+ if (!get(isEvaluateMode) || get(showCorrectAnswer)) return "";
5419
5416
  if (get(isCorrect)) return "Correct answer selected";
5420
5417
  if (get(isIncorrect) && get(selectedId)) return "Incorrect answer selected";
5421
5418
  return "";
@@ -5425,8 +5422,13 @@ function McPopulatedBlank($$anchor, $$props) {
5425
5422
  const correctChoiceId = String(model()?.correctChoiceId || "");
5426
5423
  const activeSelectedId = String(get(selectedId) || "");
5427
5424
  if (!get(isEvaluateMode) || !correctChoiceId) return map;
5428
- if (get(shouldShowCorrectAnswer) && get(canRevealCorrectAnswer)) {
5429
- map.set(correctChoiceId, "correct");
5425
+ if (get(showCorrectAnswer)) {
5426
+ if (activeSelectedId === correctChoiceId) {
5427
+ map.set(correctChoiceId, "correct");
5428
+ return map;
5429
+ }
5430
+ if (activeSelectedId) map.set(activeSelectedId, "incorrect");
5431
+ map.set(correctChoiceId, "incorrect");
5430
5432
  return map;
5431
5433
  }
5432
5434
  if (!activeSelectedId) {
@@ -5473,7 +5475,7 @@ function McPopulatedBlank($$anchor, $$props) {
5473
5475
  set(showCorrectAnswer, !get(showCorrectAnswer));
5474
5476
  }
5475
5477
  user_effect(() => {
5476
- if (!get(isEvaluateMode) || get(isResponseCorrect) || get(alwaysShowCorrect)) set(showCorrectAnswer, false);
5478
+ if (!get(isEvaluateMode) || get(isResponseCorrect)) set(showCorrectAnswer, false);
5477
5479
  });
5478
5480
  function onRadioGroupKeydown(e) {
5479
5481
  if (model()?.disabled) return;
@@ -5615,13 +5617,6 @@ function McPopulatedBlank($$anchor, $$props) {
5615
5617
  set session($$value) {
5616
5618
  session($$value);
5617
5619
  flushSync();
5618
- },
5619
- get options() {
5620
- return options();
5621
- },
5622
- set options($$value) {
5623
- options($$value);
5624
- flushSync();
5625
5620
  }
5626
5621
  };
5627
5622
  var div = root();
@@ -5650,7 +5645,7 @@ function McPopulatedBlank($$anchor, $$props) {
5650
5645
  append($$anchor, root_4());
5651
5646
  };
5652
5647
  if_block(node_2, ($$render) => {
5653
- if (get(shouldShowCorrectAnswer)) $$render(consequent_1);
5648
+ if (get(showCorrectAnswer)) $$render(consequent_1);
5654
5649
  else $$render(alternate, -1);
5655
5650
  });
5656
5651
  reset(span_1);
@@ -5662,8 +5657,8 @@ function McPopulatedBlank($$anchor, $$props) {
5662
5657
  bind_this(button, ($$value) => set(toggleCorrectAnswerButtonEl, $$value), () => get(toggleCorrectAnswerButtonEl));
5663
5658
  reset(div_2);
5664
5659
  template_effect(() => {
5665
- set_attribute(button, "aria-pressed", get(shouldShowCorrectAnswer));
5666
- set_text(text, get(shouldShowCorrectAnswer) ? get(uiText).hideCorrectAnswer : get(uiText).showCorrectAnswer);
5660
+ set_attribute(button, "aria-pressed", get(showCorrectAnswer));
5661
+ set_text(text, get(showCorrectAnswer) ? get(uiText).hideCorrectAnswer : get(uiText).showCorrectAnswer);
5667
5662
  });
5668
5663
  append($$anchor, div_2);
5669
5664
  };
@@ -5860,7 +5855,7 @@ function McPopulatedBlank($$anchor, $$props) {
5860
5855
  set_attribute(input_1, "name", get(radioGroupName));
5861
5856
  set_attribute(input_1, "id", `${instanceId}-opt-${get(c).id}`);
5862
5857
  set_value(input_1, get(c).id);
5863
- set_checked(input_1, (get(shouldShowCorrectAnswer) && get(canRevealCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id);
5858
+ set_checked(input_1, (get(showCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id);
5864
5859
  input_1.disabled = model()?.disabled;
5865
5860
  });
5866
5861
  append($$anchor, label);
@@ -5894,7 +5889,7 @@ function McPopulatedBlank($$anchor, $$props) {
5894
5889
  set_attribute(input_2, "name", get(radioGroupName));
5895
5890
  set_attribute(input_2, "id", `${instanceId}-opt-${get(c).id}`);
5896
5891
  set_value(input_2, get(c).id);
5897
- set_checked(input_2, (get(shouldShowCorrectAnswer) && get(canRevealCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id);
5892
+ set_checked(input_2, (get(showCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id);
5898
5893
  input_2.disabled = model()?.disabled;
5899
5894
  set_attribute(label_1, "for", `${instanceId}-opt-${get(c).id}`);
5900
5895
  });
@@ -5919,7 +5914,7 @@ function McPopulatedBlank($$anchor, $$props) {
5919
5914
  if (get(isEvaluateMode) && get(choiceCorrectness)) $$render(consequent_17);
5920
5915
  });
5921
5916
  reset(div_7);
5922
- template_effect(() => set_class(div_7, 1, `flex items-start choice-row pie-choice ${get(isHorizontalChoices) ? "choice-row-horizontal pie-choice-horizontal" : ""} ${(get(shouldShowCorrectAnswer) && get(canRevealCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id ? "is-selected pie-choice-selected" : ""} ${get(choiceCorrectness) ? `choice-${get(choiceCorrectness)} pie-choice-${get(choiceCorrectness)}` : ""}`, "svelte-6wlbb4"));
5917
+ template_effect(() => set_class(div_7, 1, `flex items-start choice-row pie-choice ${get(isHorizontalChoices) ? "choice-row-horizontal pie-choice-horizontal" : ""} ${(get(showCorrectAnswer) ? model()?.correctChoiceId : get(selectedId)) === get(c).id ? "is-selected pie-choice-selected" : ""} ${get(choiceCorrectness) ? `choice-${get(choiceCorrectness)} pie-choice-${get(choiceCorrectness)}` : ""}`, "svelte-6wlbb4"));
5923
5918
  append($$anchor, div_7);
5924
5919
  });
5925
5920
  reset(div_6);