1let $l="5",kl=(typeof window<"u"&&((window.__svelte??={}).v??=new Set).add($l),1),Sl=4,Tl=8,Nl=16,Dl=1,Ll=2,Mn="[",Gr="[!",Zr="]",pt={},oe=Symbol(),Pl="http://www.w3.org/1999/xhtml",Nr=!1;function Wr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Lr,ti,ni,ri,Jr=Array.isArray,Ol=Array.prototype.indexOf,Fl=Array.from,ln=Object.keys,Vt=Object.defineProperty,nt=Object.getOwnPropertyDescriptor,Vl=Object.getOwnPropertyDescriptors,Ml=Object.prototype,ql=Array.prototype,Kr=Object.getPrototypeOf,Dr=Object.isExtensible;let yt=()=>{};function Xr(e){for(var t=0;t<e.length;t++)e[t]()}function Ul(e,t,n=!1){return void 0===e?n?t():t:e}let me=2,zr=4,dn=8,qn=16,Ne=32,lt=64,on=128,ce=256,an=512,ae=1024,Re=2048,ot=4096,wt=8192,vn=16384,jl=32768,Un=65536,Bl=1<<19,Qr=1<<20,Tn=1<<21,Ot=Symbol("$state"),ei=Symbol("legacy props"),Hl=Symbol("");function Yl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gl(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jl(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Xl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ql(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function hn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let O=!1;function bt(e){O=e}let P;function qe(e){if(null===e)throw hn(),pt;return P=e}function Et(){return qe(Be(P))}function W(e){if(O){if(null!==Be(P))throw hn(),pt;P=e}}function eo(){for(var e=0,t=P;;){if(8===t.nodeType){var n=t.data;if(n===Zr){if(0===e)return t;--e}else n!==Mn&&n!==Gr||(e+=1)}n=Be(t);t.remove(),t=n}}let to=!1;function Ve(i){var e,s,c,f,n,d;return"object"!=typeof i||null===i||Ot in i||(e=Kr(i))!==Ml&&e!==ql?i:(s=new Map,c=Jr(i),f=D(0),n=k,d=e=>{var t=k,e=($e(n),e());return $e(t),e},c&&s.set("length",D(i.length)),new Proxy(i,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||Xl();var r=s.get(t);return void 0===r?(r=d(()=>D(n.value)),s.set(t,r)):p(r,d(()=>Ve(n.value))),!0},deleteProperty(e,t){var n=s.get(t);return void 0===n?t in e&&(s.set(t,d(()=>D(oe))),$n(f)):(c&&"string"==typeof t&&(e=s.get("length"),t=Number(t),Number.isInteger(t))&&t<e.v&&p(e,t),p(n,oe),$n(f)),!0},get(e,t,n){var r,o;return t===Ot?i:(o=s.get(t),r=t in e,void 0!==o||r&&!nt(e,t)?.writable||(o=d(()=>D(Ve(r?e[t]:oe))),s.set(t,o)),void 0!==o?(o=l(o))===oe?void 0:o:Reflect.get(e,t,n))},getOwnPropertyDescriptor(e,t){e=Reflect.getOwnPropertyDescriptor(e,t);if(e&&"value"in e){var n=s.get(t);n&&(e.value=l(n))}else if(void 0===e){n=s.get(t),t=n?.v;if(void 0!==n&&t!==oe)return{enumerable:!0,configurable:!0,value:t,writable:!0}}return e},has(e,t){if(t===Ot)return!0;var n=s.get(t),r=void 0!==n&&n.v!==oe||Reflect.has(e,t);if((void 0!==n||null!==S&&(!r||nt(e,t)?.writable))&&(void 0===n&&(n=d(()=>D(r?Ve(e[t]):oe)),s.set(t,n)),l(n)===oe))return!1;return r},set(e,t,n,r){var l=s.get(t),o=t in e;if(c&&"length"===t)for(var i=n;i<l.v;i+=1){var a=s.get(i+"");void 0!==a?p(a,oe):i in e&&(a=d(()=>D(oe)),s.set(i+"",a))}void 0===l?o&&!nt(e,t)?.writable||(p(l=d(()=>D(void 0)),d(()=>Ve(n))),s.set(t,l)):(o=l.v!==oe,p(l,d(()=>Ve(n))));var u=Reflect.getOwnPropertyDescriptor(e,t);return u?.set&&u.set.call(r,n),o||(c&&"string"==typeof t&&(u=s.get("length"),r=Number(t),Number.isInteger(r))&&r>=u.v&&p(u,r+1),$n(f)),!0},ownKeys(e){l(f);var t,n,r=Reflect.ownKeys(e).filter(e=>{e=s.get(e);return void 0===e||e.v!==oe});for([t,n]of s)n.v===oe||t in e||r.push(t);return r},setPrototypeOf(){zl()}}))}function $n(e,t=1){p(e,e.v+t)}function Nn(){var e,t,n;void 0===Lr&&(Lr=window,ti=/Firefox/.test(navigator.userAgent),e=Element.prototype,t=Node.prototype,n=Text.prototype,ni=nt(t,"firstChild").get,ri=nt(t,"nextSibling").get,Dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dr(n))&&(n.__t=void 0)}function gn(e=""){return document.createTextNode(e)}function he(e){return ni.call(e)}function Be(e){return ri.call(e)}function J(e,t){var n;return O?(qe(n=null===(n=he(P))?P.appendChild(gn()):n),n):he(e)}function Dt(e,t){return O?P:(e=he(e))instanceof Comment&&""===e.data?Be(e):e}function K(e,t=1,n=!1){let r=O?P:e;for(var l;t--;)r=Be(l=r);return O?(e=r?.nodeType,n&&3!==e?(n=gn(),null===r?l?.after(n):r.before(n),qe(n),n):(qe(r),r)):r}function no(e){e.textContent=""}function ii(e){return e===this.v}function li(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function jn(e){return!li(e,this.v)}function _n(e){var t=me|Re,n=null!==k&&0!=(k.f&me)?k:null;return null===S||null!==n&&0!=(n.f&ce)?t|=ce:S.f|=Qr,{ctx:re,deps:null,effects:null,equals:ii,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??S}}function Lt(e){e=_n(e);return bi(e),e}function ro(e){e=_n(e);return e.equals=jn,e}function oi(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Ue(t[n])}}function io(e){for(var t=e.parent;null!==t;){if(0==(t.f&me))return t;t=t.parent}return null}function ai(e){var t,n=S;je(io(e));try{oi(e),t=Ei(e)}finally{je(n)}return t}function si(e){var t=ai(e);be(e,!Me&&0==(e.f&ce)||null===e.deps?ae:ot),e.equals(t)||(e.v=t,e.wv=yi())}function lo(e){null===S&&null===k&&Zl(),null!==k&&0!=(k.f&ce)&&null===S&&Gl(),jt&&Yl()}function oo(e,t){var n=t.last;null===n?t.last=t.first=e:((n.next=e).prev=n,t.last=e)}function at(t,e,n,r=!0){var l=S,t={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:t|Re,first:null,fn:e,last:null,next:null,parent:l,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Zn(t),t.f|=jl}catch(e){throw Ue(t),e}else null!==e&&bn(t);return!(n&&null===t.deps&&null===t.first&&null===t.nodes_start&&null===t.teardown&&0==(t.f&(Qr|on)))&&r&&(null!==l&&oo(t,l),null!==k)&&0!=(k.f&me)&&(k.effects??=[]).push(t),t}function Bn(e){var t=at(dn,null,!1);return be(t,ae),t.teardown=e,t}
1function Dn(e){if(lo(),!(null!==S&&0!=(S.f&Ne)&&null!==re&&!re.m))return Hn(e);(re.e??=[]).push({fn:e,effect:S,reaction:k})}function ao(e){let t=at(lt,e,!0);return()=>{Ue(t)}}function so(e){let n=at(lt,e,!0);return(t={})=>new Promise(e=>{t.outro?Pn(n,()=>{Ue(n),e(void 0)}):(Ue(n),e(void 0))})}function Hn(e){return at(zr,e,!1)}function Yn(e){return at(dn,e,!0)}function Ae(e,t=[],n=_n){let r=t.map(n);return ui(()=>e(...r.map(l)))}function ui(e,t=0){return at(dn|qn|t,e,!0)}function Ln(e,t=!0){return at(dn|Ne,e,!0,t)}function fi(e){e=e.teardown;if(null!==e){var t=jt,n=k;Or(!0),$e(null);try{e.call(null)}finally{Or(t),$e(n)}}}function ci(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){var r=n.next;0!=(n.f<)?n.parent=null:Ue(n,t),n=r}}function uo(e){for(var t=e.first;null!==t;){var n=t.next;0==(t.f&Ne)&&Ue(t),t=n}}function Ue(e,t=!0){var n=!1,t=(!t&&0==(e.f&Bl)||null===e.nodes_start||(di(e.nodes_start,e.nodes_end),n=!0),ci(e,t&&!n),cn(e,0),be(e,vn),e.transitions);if(null!==t)for(var r of t)r.stop();fi(e);n=e.parent;null!==n&&null!==n.first&&vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function di(e,t){for(;null!==e;){var n=e===t?null:Be(e);e.remove(),e=n}}function vi(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e)&&(t.last=n)}function Pn(e,t){var n=[];hi(e,n,!0),fo(n,()=>{Ue(e),t&&t()})}function fo(e,t){var n=e.length;if(0<n){var r,l=()=>--n||t();for(r of e)r.out(l)}else t()}function hi(e,t,n){if(0==(e.f&wt)){if(e.f^=wt,null!==e.transitions)for(var r of e.transitions)(r.is_global||n)&&t.push(r);for(var l=e.first;null!==l;){var o=l.next;hi(l,t,(0!=(l.f&Un)||0!=(l.f&Ne))&&n),l=o}}}function Pr(e){gi(e,!0)}function gi(e,t){if(0!=(e.f&wt)){e.f^=wt,0==(e.f&ae)&&(e.f^=ae),Bt(e)&&(be(e,Re),bn(e));for(var n=e.first;null!==n;){var r=n.next;gi(n,(0!=(n.f&Un)||0!=(n.f&Ne))&&t),n=r}if(null!==e.transitions)for(var l of e.transitions)(l.is_global||t)&&l.in()}}let co="u"<typeof requestIdleCallback?e=>setTimeout(e,1):requestIdleCallback,Mt=[],qt=[];function _i(){var e=Mt;Mt=[],Xr(e)}function mi(){var e=qt;qt=[],Xr(e)}function Gn(e){0===Mt.length&&queueMicrotask(_i),Mt.push(e)}function vo(e){0===qt.length&&co(mi),qt.push(e)}function ho(){0<Mt.length&&_i(),0<qt.length&&mi()}let tn=!1,sn=!1,un=null,rt=!1,jt=!1;function Or(e){jt=e}let Ft=[],k=null,Ie=!1;function $e(e){k=e}let S=null;function je(e){S=e}let Te=null;function bi(e){null!==k&&k.f&Tn&&(null===Te?Te=[e]:Te.push(e))}let ne=null,fe=0,ve=null;function go(e){ve=e}let pi=1,fn=0,Me=!1;function yi(){return++pi}function Bt(e){var t=e.f;if(0!=(t&Re))return!0;if(0!=(t&ot)){var n=e.deps,r=0!=(t&ce);if(null!==n){var l,o=0!=(t&an),t=r&&null!==S&&!Me,i=n.length;if(o||t){for(var a=e,u=a.parent,s=0;s<i;s++)l=n[s],!o&&l?.reactions?.includes(a)||(l.reactions??=[]).push(a);o&&(a.f^=an),t&&null!==u&&0==(u.f&ce)&&(a.f^=ce)}for(s=0;s<i;s++)if(Bt(l=n[s])&&si(l),l.wv>e.wv)return!0}r&&(null===S||Me)||be(e,ae)}return!1}function _o(e,t){for(var n=t;null!==n;){if(0!=(n.f&on))try{return void n.fn(e)}catch{n.f^=on}n=n.parent}throw tn=!1,e}function Fr(e){return 0==(e.f&vn)&&(null===e.parent||0==(e.parent.f&on))}function mn(e,t,n,r){if(tn){if(null===n&&(tn=!1),Fr(t))throw e}else if(null!==n&&(tn=!0),_o(e,t),Fr(t))throw e}function wi(e,t,n=!0){var r=e.reactions;if(null!==r)for(var l=0;l<r.length;l++){var o=r[l];Te?.includes(e)||(0!=(o.f&me)?wi(o,t,!1):t===o&&(n?be(o,Re):0!=(o.f&ae)&&be(o,ot),bn(o)))}}function Ei(e){var t=ne,n=fe,r=ve,l=k,o=Me,i=Te,a=re,u=Ie,s=e.f;ne=null,fe=0,ve=null,Me=0!=(s&ce)&&(Ie||!rt||null===k),k=0==(s&(Ne|lt))?e:null,Te=null,Vr(e.ctx),Ie=!1,fn++,e.f|=Tn;try{var c,f=(0,e.fn)(),d=e.deps;if(null!==ne){if(cn(e,fe),null!==d&&0<fe)for(d.length=fe+ne.length,c=0;c<ne.length;c++)d[fe+c]=ne[c];else e.deps=d=ne;if(!Me)for(c=fe;c<d.length;c++)(d[c].reactions??=[]).push(e)}else null!==d&&fe<d.length&&(cn(e,fe),d.length=fe);if($i()&&null!==ve&&!Ie&&null!==d&&0==(e.f&(me|ot|Re)))for(c=0;c<ve.length;c++)wi(ve[c],e);return null!==l&&l!==e&&(fn++,null!==ve)&&(null===r?r=ve:r.push(...ve)),f}
1finally{ne=t,fe=n,ve=r,k=l,Me=o,Te=i,Vr(a),Ie=u,e.f^=Tn}}function mo(e,t){let n=t.reactions,r,l;null!==n&&-1!==(r=Ol.call(n,e))&&(0==(l=n.length-1)?n=t.reactions=null:(n[r]=n[l],n.pop())),null!==n||0==(t.f&me)||null!==ne&&ne.includes(t)||(be(t,ot),0==(t.f&(ce|an))&&(t.f^=an),oi(t),cn(t,0))}function cn(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)mo(e,n[r])}function Zn(t){var e=t.f;if(0==(e&vn)){be(t,ae);var n=S,r=re,l=rt;S=t,rt=!0;try{(0!=(e&qn)?uo:ci)(t),fi(t);var o=Ei(t);t.teardown="function"==typeof o?o:null,t.wv=pi;Nr&&to&&(t.f,Re)}catch(e){mn(e,t,n,r||t.ctx)}finally{rt=l,S=n}}}function bo(){try{Wl()}catch(e){if(null===un)throw e;mn(e,un,null)}}function Ci(){var e=rt;try{var t=0;for(rt=!0;0<Ft.length;){1e3<t++&&bo();var n=Ft,r=n.length;Ft=[];for(var l=0;l<r;l++)po(yo(n[l]));Ut.clear()}}finally{sn=!1,rt=e,un=null}}function po(e){var t=e.length;if(0!==t)for(var n=0;n<t;n++){var r=e[n];if(0==(r.f&(vn|wt)))try{Bt(r)&&(Zn(r),null===r.deps)&&null===r.first&&null===r.nodes_start&&(null===r.teardown?vi(r):r.fn=null)}catch(e){mn(e,r,null,r.ctx)}}}function bn(e){sn||(sn=!0,queueMicrotask(Ci));for(var t=un=e;null!==t.parent;){var n=(t=t.parent).f;if(0!=(n&(lt|Ne))){if(0==(n&ae))return;t.f^=ae}}Ft.push(t)}function yo(e){for(var t=[],n=e;null!==n;){var r=n.f,l=0!=(r&(Ne|lt));if(!(l&&0!=(r&ae))&&0==(r&wt)){if(0!=(r&zr))t.push(n);else if(l)n.f^=ae;else try{Bt(n)&&Zn(n)}catch(e){mn(e,n,null,n.ctx)}r=n.first;if(null!==r){n=r;continue}}for(var o=n.parent,n=n.next;null===n&&null!==o;)n=o.next,o=o.parent}return t}function E(e){for(;;){if(ho(),0===Ft.length)return;sn=!0,Ci()}}async function kn(){await Promise.resolve(),E()}function l(e){var t,n,r=0!=(e.f&me);return null===k||Ie?r&&null===e.deps&&null===e.effects&&null!==(n=(t=e).parent)&&0==(n.f&ce)&&(t.f^=ce):Te?.includes(e)||(n=k.deps,e.rv<fn&&(e.rv=fn,null===ne&&null!==n&&n[fe]===e?fe++:null===ne?ne=[e]:Me&&ne.includes(e)||ne.push(e))),r&&Bt(t=e)&&si(t),jt&&Ut.has(e)?Ut.get(e):e.v}function it(e){var t=Ie;try{return Ie=!0,e()}finally{Ie=t}}let wo=-7169;function be(e,t){e.f=e.f&wo|t}let Ut=new Map;function Ai(e,t){return{f:0,v:e,reactions:null,equals:ii,rv:0,wv:0}}function D(e,t){e=Ai(e);return bi(e),e}function Wn(e,t=!1){e=Ai(e);return t||(e.equals=jn),e}function p(e,t,n=!1){return null===k||Ie||!$i()||0==(k.f&(me|qn))||Te?.includes(e)||Ql(),Eo(e,n?Ve(t):t)}function Eo(e,t){var n;return e.equals(t)||(n=e.v,jt?Ut.set(e,t):Ut.set(e,n),e.v=t,0!=(e.f&me)&&(0!=(e.f&Re)&&ai(e),be(e,0==(e.f&ce)?ae:ot)),e.wv=yi(),Ii(e,Re),null!==S&&0!=(S.f&ae)&&0==(S.f&(Ne|lt))&&(null===ve?go([e]):ve.push(e))),t}function Ii(e,t){var n=e.reactions;if(null!==n)for(var r=n.length,l=0;l<r;l++){var o=n[l],i=o.f;0==(i&Re)&&(be(o,t),0!=(i&(ae|ce)))&&(0!=(i&me)?Ii(o,ot):bn(o))}}let re=null;function Vr(e){re=e}function xi(e,t=0,n){var r=re={p:re,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Bn(()=>{r.d=!0})}function Ri(e){var t=re;if(null!==t){void 0!==e&&(t.x=e);var n=t.e;if(null!==n){var r=S,l=k;t.e=null;try{for(var o=0;o<n.length;o++){var i=n[o];je(i.effect),$e(i.reaction),Hn(i.fn)}}finally{je(r),$e(l)}}re=t.p,t.m=!0}return e||{}}function $i(){return!0}let Co=["touchstart","touchmove"];function Ao(e){return Co.includes(e)}function Io(t,e){if(e){let e=document.body;t.autofocus=!0,Gn(()=>{document.activeElement===e&&t.focus()})}}let Mr=!1;function ki(){Mr||(Mr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(var e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Si(e){var t=k,n=S;$e(null),je(null);try{return e()}finally{$e(t),je(n)}}function xo(e,t,n,r=n){e.addEventListener(t,()=>Si(n));let l=e.__on_r;l?e.__on_r=()=>{l(),r(!0)}:e.__on_r=()=>r(!0),ki()}let Ti=new Set,On=new Set;function Ro(e,t,n,r={}){function l(e){if(r.capture||Pt.call(t,e),!e.cancelBubble)return Si(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?Gn(()=>{t.addEventListener(e,l,r)}):t.addEventListener(e,l,r),l}function Fe(e,t,n,r,l){var o={capture:r,passive:l},i=Ro(e,t,n,o);t!==document.body&&t!==window&&t!==document||Bn(()=>{t.removeEventListener(e,i,o)})}function $o(e){for(var t,n=0;n<e.length;n++)Ti.add(e[n]);for(t of On)t(e)}function Pt(e){var t=this,n=t.ownerDocument,r=e.type,l=e.composedPath?.()||[],o=l[0]||e.target,i=0,a=e.__root;if(a){a=l.indexOf(a);if(-1!==a&&(t===document||t===window))return void(e.__root=t);var u=l.indexOf(t);if(-1===u)return;a<=u&&(i=a)}if((o=l[i]||e.target)!==t){Vt(e,"currentTarget",{configurable:!0,get(){return o||n}});u=k,a=S;$e(null),je(null);try{for(var s,c=[];null!==o;){var f=o.assignedSlot||o.parentNode||o.host||null;try{var d,v,h=o["__"+r];null==h||o.disabled&&e.target!==o||(Jr(h)?([d,...v]=h,d.apply(o,[e,...v])):h.call(o,e))}catch(e){s?c.push(e):s=e}if(e.cancelBubble||f===t||null===f)break;o=f}if(s){for(let e of c)queueMicrotask(()=>{throw e});throw s}}finally{e.__root=t,delete e.currentTarget,$e(u),je(a)}}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function xe(e,t){var n=S;null===n.nodes_start&&(n.nodes_start=e,n.nodes_end=t)}function pe(t,e){var n,r=0!=(e&Dl),l=0!=(e&Ll),o=!t.startsWith("<!>");return()=>{if(O)return xe(P,null),P;void 0===n&&(n=Jn(o?t:"<!>"+t),r||(n=he(n)));var e=l||ti?document.importNode(n,!0):n.cloneNode(!0);return r?xe(he(e),e.lastChild):xe(e,e),e}}function pn(e,t,n="svg"){var r,l=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{var e;return O?(xe(P,null),P):(r||(e=Jn(l),r=he(he(e))),xe(e=r.cloneNode(!0),e),e)}}function zt(){var e,t,n;return O?(xe(P,null),P):(e=document.createDocumentFragment(),t=document.createComment(""),n=gn(),e.append(t,n),xe(t,n),e)}function B(e,t){O?(S.nodes_end=P,Et()):null!==e&&e.before(t)}
1function ko(e,t){t=null==t?"":"object"==typeof t?t+"":t;t!==(e.__t??=e.nodeValue)&&(e.__t=t,e.nodeValue=t+"")}function Ni(e,t){return Di(e,t)}function So(t,n){Nn(),n.intro=n.intro??!1;var r=n.target,e=O,l=P;try{for(var o=he(r);o&&(8!==o.nodeType||o.data!==Mn);)o=Be(o);if(!o)throw pt;bt(!0),qe(o),Et();var i=Di(t,{...n,anchor:o});if(null===P||8!==P.nodeType||P.data!==Zr)throw hn(),pt;return bt(!1),i}catch(e){if(e===pt)return!1===n.recover&&Jl(),Nn(),no(r),bt(!1),Ni(t,n);throw e}finally{bt(e),qe(l)}}let _t=new Map;function Di(e,{target:o,anchor:r,props:t={},events:l,context:i}){Nn();var a=new Set,u=e=>{for(var t=0;t<e.length;t++){var n,r,l=e[t];a.has(l)||(a.add(l),n=Ao(l),o.addEventListener(l,Pt,{passive:n}),void 0===(r=_t.get(l))?(document.addEventListener(l,Pt,{passive:n}),_t.set(l,1)):_t.set(l,r+1))}},s=(u(Fl(Ti)),On.add(u),void 0),n=so(()=>{var n=r??o.appendChild(gn());return Ln(()=>{i&&(xi({}),re.c=i),l&&(t.$$events=l),O&&xe(n,null),s=e(n,t)||{},O&&(S.nodes_end=P),i&&Ri()}),()=>{for(var e of a){o.removeEventListener(e,Pt);var t=_t.get(e);0==--t?(document.removeEventListener(e,Pt),_t.delete(e)):_t.set(e,t)}On.delete(u),n!==r&&n.parentNode?.removeChild(n)}});return Fn.set(s,n),s}let Fn=new WeakMap;function To(e,t){var n=Fn.get(e);return n?(Fn.delete(e),n(t)):Promise.resolve()}function X(e,t,[r,l]=[0,0]){O&&0===r&&Et();var o=e,i=null,a=null,u=oe,e=0<r?Un:0,n=!1;let s=(e,t=!0)=>{n=!0,c(t,e)},c=(t,n)=>{if(u!==(u=t)){let e=!1;O&&-1!==l&&(0===r&&((t=o.data)===Mn?l=0:t===Gr?l=1/0:(l=parseInt(t.substring(1)))!=l&&(l=u?1/0:-1)),!!u==r<l)&&(qe(o=eo()),bt(!1),e=!0,l=-1),u?(i?Pr(i):n&&(i=Ln(()=>n(o))),a&&Pn(a,()=>{a=null})):(a?Pr(a):n&&(a=Ln(()=>n(o,[r+1,l]))),i&&Pn(i,()=>{i=null})),e&&bt(!0)}};ui(()=>{n=!1,t(s),n||c(null,null)},e),O&&(o=P)}function tt(e,l,o=!1,i=!1,t){var a=e,u="";Ae(()=>{var e=S;if(u===(u=l()??""))O&&Et();else if(null!==e.nodes_start&&(di(e.nodes_start,e.nodes_end),e.nodes_start=e.nodes_end=null),""!==u)if(O){P.data;for(var t=Et(),n=t;null!==t&&(8!==t.nodeType||""!==t.data);)t=Be(n=t);if(null===t)throw hn(),pt;xe(P,n),a=qe(t)}else{var e=u+"",r=(o?e=`<svg>${e}</svg>`:i&&(e=`<math>${e}</math>`),Jn(e));if(xe(he(r=o||i?he(r):r),r.lastChild),o||i)for(;he(r);)a.before(he(r));else a.before(r)}})}function No(e,t,n,r,l){O&&Et();var n=t.$$slots?.[n],o=!1;!0===n&&(n=t.children,o=!0),void 0!==n&&n(e,o?()=>r:r)}let qr=[...` 2\r� �`];function Do(e,t,n){var r=""+e;if(n)for(var l in n)if(n[l])r=r?r+" "+l:l;else if(r.length)for(var o=l.length,i=0;0<=(i=r.indexOf(l,i));){var a=i+o;0!==i&&!qr.includes(r[i-1])||a!==r.length&&!qr.includes(r[a])?i=a:r=(0===i?"":r.substring(0,i))+r.substring(a+1)}return""===r?null:r}function Lo(e,t,n,r,l,o){var i=e.__className;if(O||i!==n||void 0===i){i=Do(n,r,o);O&&i===e.getAttribute("class")||(null==i?e.removeAttribute("class"):e.className=i),e.__className=n}else if(o&&l!==o)for(var a in o){var u=!!o[a];null!=l&&u==!!l[a]||e.classList.toggle(a,u)}return o}let Po=Symbol("is custom element"),Oo=Symbol("is html");function Ur(t){var n;O&&(n=!1,vo(t.__on_r=()=>{var e;n||(n=!0,t.hasAttribute("value")&&(e=t.value,$(t,"value",null),t.value=e),t.hasAttribute("checked")&&(e=t.checked,$(t,"checked",null),t.checked=e))}),ki())}function Fo(e,t){var n=Li(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&"PROGRESS"===e.nodeName)&&(e.value=t??"")}function $(e,t,n,r){var l=Li(e);O&&(l[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||l[t]!==(l[t]=n)&&("loading"===t&&(e[Hl]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Vo(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Li(e){return e.__attributes??={[Po]:e.nodeName.includes("-"),[Oo]:e.namespaceURI===Pl}}var jr=new Map;function Vo(e){var t=jr.get(e.nodeName);if(!t){jr.set(e.nodeName,t=[]);for(var n,r=e,l=Element.prototype;l!==r;){for(var o in n=Vl(r))n[o].set&&t.push(o);r=Kr(r)}}return t}function Mo(t,n,r=n){xo(t,"change",e=>{e=e?t.defaultChecked:t.checked;r(e)}),(O&&t.defaultChecked!==t.checked||null==it(n))&&r(t.checked),Yn(()=>{var e=n();t.checked=!!e})}function Br(e,t){return e===t||e?.[Ot]===t}function Qt(n={},r,l,e){return Hn(()=>{var e,t;return Yn(()=>{e=t,t=[],it(()=>{n!==l(...t)&&(r(n,...t),e)&&Br(l(...e),n)&&r(null,...e)})}),()=>{Gn(()=>{t&&Br(l(...t),n)&&r(null,...t)})}}),n}function Pi(t){null===re&&Wr(),Dn(()=>{var e=it(t);if("function"==typeof e)return e})}function qo(e){null===re&&Wr(),Pi(()=>()=>it(e))}function Oi(e,t,n){if(null==e)return t(void 0),yt;let r=it(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}let mt=[];function Uo(r,l=yt){let o=null,i=new Set;function a(e){if(li(r,e)&&(r=e,o)){var t,e=!mt.length;for(t of i)t[1](),mt.push(t,r);if(e){for(let e=0;e<mt.length;e+=2)mt[e][0](mt[e+1]);mt.length=0}}}function u(e){a(e(r))}return{set:a,update:u,subscribe:function(e,t=yt){let n=[e,t];return i.add(n),1===i.size&&(o=l(a,u)||yt),e(r),()=>{i.delete(n),0===i.size&&o&&(o(),o=null)}}}}function nn(e){let t;return Oi(e,e=>t=e)(),t}let en=!1,Vn=Symbol();function jo(e,t,n){let r=n[t]??={store:null,source:Wn(void 0),unsubscribe:yt};var o;return r.store===e||Vn in n||(r.unsubscribe(),r.store=e??null,null==e?(r.source.v=void 0,r.unsubscribe=yt):(o=!0,r.unsubscribe=Oi(e,e=>{o?r.source.v=e:p(r.source,e)}),o=!1)),e&&Vn in n?nn(e):l(r.source)}function Bo(){let t={};return[t,function(){Bn(()=>{for(var e in t)t[e].unsubscribe();Vt(t,Vn,{enumerable:!1,value:!0})})}]}function Ho(e){var t=en;try{return en=!1,[e(),en]}finally{en=t}}function Hr(e){return e.ctx?.d??!1}function C(t,n,e,r){var o,i,a,u,s,c,f=0!=(e&kl),d=0!=(e&Tl),v=0!=(e&Nl),h=!1,g=(d?[o,h]=Ho(()=>t[n]):o=t[n],Ot in t||ei in t),m=d&&(nt(t,n)?.set??(g&&n in t&&(e=>t[n]=e)))||void 0,y=r,b=!0,w=!1,$=()=>(w=!0,b&&(b=!1,y=v?it(r):r),y);return void 0===o&&void 0!==r&&(m&&Kl(),o=$(),m)&&m(o),i=()=>{var e=t[n];return void 0===e?$():(w=!(b=!0),e)},0==(e&Sl)?i:m?(a=t.$$legacy,function(e,t){return 0<arguments.length?(t&&!a&&!h||m(t?i():e),e):i()}):(u=!1,s=Wn(o),c=_n(()=>{var e=i(),t=l(s);return u?(u=!1,t):s.v=e}),d&&l(c),f||(c.equals=jn),function(e,t){if(0<arguments.length){t=t?l(c):d?Ve(e):e;if(!c.equals(t)){if(u=!0,p(s,t),w&&void 0!==y&&(y=t),Hr(c))return e;it(()=>l(c))}return e}return Hr(c)?c.v:l(c)})}function Yo(e){return new Go(e)}class Go{#t;#e;constructor(e){var r=new Map,o=(e,t)=>{t=Wn(t);return r.set(e,t),t};let t=new Proxy({...e.props||{},$$events:{}},{get(e,t){return l(r.get(t)??o(t,Reflect.get(e,t)))},has(e,t){return t===ei||(l(r.get(t)??o(t,Reflect.get(e,t))),Reflect.has(e,t))},set(e,t,n){return p(r.get(t)??o(t,n),n),Reflect.set(e,t,n)}});this.#e=(e.hydrate?So:Ni)(e.component,{target:e.target,anchor:e.anchor,props:t,context:e.context,intro:e.intro??!1,recover:e.recover}),e?.props?.$$host&&!1!==e.sync||E(),this.#t=t.$$events;for(let t of Object.keys(this.#e))"$set"!==t&&"$destroy"!==t&&"$on"!==t&&Vt(this,t,{get(){return this.#e[t]},set(e){this.#e[t]=e},enumerable:!0});this.#e.$set=e=>{Object.assign(t,e)},this.#e.$destroy=()=>{To(this.#e)}}$set(e){this.#e.$set(e)}$on(e,t){this.#t[e]=this.#t[e]||[];let n=(...e)=>t.call(this,...e);return this.#t[e].push(n),()=>{this.#t[e]=this.#t[e].filter(e=>e!==n)}}$destroy(){this.#e.$destroy()}}let Fi;function rn(e,t,n,r){var l=n[e]?.type;if(t="Boolean"===l&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(l){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return null!=t?+t:t;default:return t}}function Zo(e){let t={};
2return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}function Wo(e,r,t,n,l,o){let i=class extends Fi{constructor(){super(e,t,l),this.$$p_d=r}static get observedAttributes(){return ln(r).map(e=>(r[e].attribute||e).toLowerCase())}};return ln(r).forEach(n=>{Vt(i.prototype,n,{get(){return(this.$$c&&n in this.$$c?this.$$c:this.$$d)[n]},set(e){e=rn(n,e,r),this.$$d[n]=e;var t=this.$$c;t&&(nt(t,n)?.get?t[n]=e:t.$set({[n]:e}))}})}),n.forEach(e=>{Vt(i.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=i}"function"==typeof HTMLElement&&(Fi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){var r;this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c&&(r=this.$$c.$on(e,t),this.$$l_u.set(t,r)),super.addEventListener(e,t,n)}removeEventListener(e,t,n){super.removeEventListener(e,t,n),this.$$c&&(e=this.$$l_u.get(t))&&(e(),this.$$l_u.delete(t))}async connectedCallback(){if(this.$$cn=!0,!this.$$c){var e=function(n){return e=>{var t=document.createElement("slot");"default"!==n&&(t.name=n),B(e,t)}};if(await Promise.resolve(),this.$$cn&&!this.$$c){var t,n,r,l,o={},i=Zo(this);for(t of this.$$s)t in i&&("default"!==t||this.$$d.children?o[t]=e(t):(this.$$d.children=e(t),o.default=!0));for(n of this.attributes){var a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=rn(a,n.value,this.$$p_d,"toProp"))}for(r in this.$$p_d)r in this.$$d||void 0===this[r]||(this.$$d[r]=this[r],delete this[r]);for(l in this.$$c=Yo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=ao(()=>{Yn(()=>{this.$$r=!0;for(var e of ln(this.$$c)){var t;this.$$p_d[e]?.reflect&&(this.$$d[e]=this.$$c[e],null==(t=rn(e,this.$$d[e],this.$$p_d,"toAttribute"))?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t))}this.$$r=!1})}),this.$$l)for(var u of this.$$l[l]){var s=this.$$c.$on(l,u);this.$$l_u.set(u,s)}this.$$l={}}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=rn(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(t){return ln(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});let Vi=new TextEncoder;function Jo(e){return[...new Uint8Array(e)].map(e=>e.toString(16).padStart(2,"0")).join("")}async function Ko(e,t="SHA-256",n=1e5){var r=Date.now().toString(16);return{algorithm:t,challenge:await Mi(r,e=e||Math.round(Math.random()*n),t),salt:r,signature:""}}async function Mi(e,t,n){if(!("u"<typeof crypto)&&"subtle"in crypto&&"digest"in crypto.subtle)return Jo(await crypto.subtle.digest(n.toUpperCase(),Vi.encode(e+t)));throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).")}function Xo(t,n,r="SHA-256",l=1e6,o=0){let i=new AbortController,a=Date.now();return{promise:(async()=>{for(let e=o;e<=l;e+=1){if(i.signal.aborted)return null;if(await Mi(n,e,r)===t)return{number:e,took:Date.now()-a}}return null})(),controller:i}}function Yr(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function zo(e){var t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Qo(t,n=12){var r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t%256,t=Math.floor(t/256);return r}async function ea(e,t="",n=1e6,r=0){let l="AES-GCM",o=new AbortController,i=Date.now(),a=null,u=null;try{u=zo(e);var s=await crypto.subtle.digest("SHA-256",Vi.encode(t));a=await crypto.subtle.importKey("raw",s,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:(async()=>{for(let e=r;e<=n;e+=1){if(o.signal.aborted||!a||!u)return null;try{var t=await crypto.subtle.decrypt({name:l,iv:Qo(e)},a,u);if(t)return{clearText:(new TextDecoder).decode(t),took:Date.now()-i}}catch{}}return null})(),controller:o}}var y=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(y||{}),Q=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(Q||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>nn(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(nn(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(nn(globalThis.altchaI18n.store))},store:Uo({})};let ta={ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"
2Verifying... please wait."},Sn=(globalThis.altchaI18n.set("en",ta),(e,t)=>{let n=ro(()=>Ul(t?.(),24));var r=la();Ae(()=>{$(r,"width",l(n)),$(r,"height",l(n))}),B(e,r)});function na(e,t){"Space"===e.code&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function ra(e,t){e.preventDefault(),t()}function ia(e,t,n,r,o,i,a,u){[y.UNVERIFIED,y.ERROR,y.EXPIRED,y.CODE].includes(l(t))?!1!==n()&&!1===l(r)?.reportValidity()?p(o,!1):(i()?a:u)():p(o,!0)}var la=pn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'),oa=pe('<input type="hidden">'),aa=pe('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'),sa=pn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),ua=pn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),fa=pn('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),ca=pe('<button type="button" class="altcha-code-challenge-audio"><!></button>'),da=pe("<audio hidden autoplay><source></audio>"),va=pe('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'),ha=pe("<div><!></div>"),ga=pe("<div><!></div>"),_a=pe('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'),ma=pe('<div class="altcha-footer"><div><!></div></div>'),ba=pe('<div class="altcha-anchor-arrow"></div>'),pa=pe('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function ya(H,n){xi(n,!0);let[G,Z]=Bo(),Y=()=>jo($e,"$altchaI18nStore",G),r=C(n,"auto",7,void 0),z=C(n,"blockspam",7,void 0),o=C(n,"challengeurl",7,void 0),ee=C(n,"challengejson",7,void 0),te=C(n,"credentials",7,void 0),t=C(n,"customfetch",7,void 0),ne=C(n,"debug",7,!1),re=C(n,"delay",7,0),le=C(n,"disableautofocus",7,!1),oe=C(n,"refetchonexpire",7,!0),i=C(n,"disablerefetchonexpire",23,()=>!oe()),ie=C(n,"expire",7,void 0),a=C(n,"floating",7,void 0),ae=C(n,"floatinganchor",7,void 0),ue=C(n,"floatingoffset",7,void 0),se=C(n,"floatingpersist",7,!1),ce=C(n,"hidefooter",7,!1),fe=C(n,"hidelogo",7,!1),de=C(n,"id",7,void 0),ve=C(n,"language",7,void 0),u=C(n,"name",7,"altcha"),s=C(n,"maxnumber",7,1e6),he=C(n,"mockerror",7,!1),c=C(n,"obfuscated",7,void 0),f=C(n,"overlay",7,void 0),pe=C(n,"overlaycontent",7,void 0),ge=C(n,"plugins",7,void 0),d=C(n,"sentinel",7,void 0),v=C(n,"spamfilter",7,!1),me=C(n,"strings",7,void 0),h=C(n,"test",7,!1),g=C(n,"verifyurl",7,void 0),ye=C(n,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),be=C(n,"workerurl",7,void 0),we=globalThis.altchaI18n,$e=we.store,Ee=["SHA-256","SHA-384","SHA-512"],m=(e,t)=>
2{n.$$host.dispatchEvent(new CustomEvent(e,{detail:t}))},Ce=document.documentElement.lang?.split("-")?.[0],xe=Lt(()=>o()&&new URL(o(),location.origin).host.endsWith(".altcha.org")&&!!o()?.includes("apiKey=ckey_")),_e=Lt(()=>ee()?ot(ee()):void 0),ke=Lt(()=>me()?ot(me()):{}),b=Lt(()=>({...Be(Y()),...l(ke)})),Re=Lt(()=>`${de()||u()}_checkbox_`+Math.round(1e8*Math.random())),w=D(null),Ie=D(!1),x=D(null),_=D(Ve(y.UNVERIFIED)),k=D(void 0),De=D(null),R=D(null),A=D(null),Se=D(null),Pe=D(null),I=D(null),Oe=D(null),S=D(null),P=null,O=D(null),N=D(!1),L=[],Ne=D(!1),V=D(null);function Le(e,t){return btoa(JSON.stringify({algorithm:e.algorithm,challenge:e.challenge,number:t.number,salt:e.salt,signature:e.signature,test:!!h()||void 0,took:t.took}))}function Me(){o()&&!i()&&l(_)===y.VERIFIED?j():F(y.EXPIRED,l(b).expired)}function Te(){let e=fetch;if(t())if(M("using customfetch"),"string"==typeof t()){if(!(e=globalThis[t()]||null))throw new Error("Custom fetch function not found: "+t())}else e=t();return e}function Be(n,e=[ve()||"",document.documentElement.lang||"",...navigator.languages]){let r=Object.keys(n).map(e=>e.toLowerCase()),t=e.reduce((e,t)=>(t=t.toLowerCase(),e||(n[t]?t:null)||r.find(e=>t.split("-")[0]===e.split("-")[0])||null),null);return n[t||"en"]}function je(e){return[...l(I)?.querySelectorAll(e?.length?e.map(e=>`input[name="${e}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{var n=t.name,t=t.value;return n&&t&&(e[n]=/\n/.test(t)?t.replace(new RegExp("(?<!\\r)\\n","g"),`\r 3`):t),e},{})}function qe(e,t){var n=new URL(o()||location.origin),r=new URL(e,n);if(r.search||(r.search=n.search),t)for(var l in t)null!=t[l]&&r.searchParams.set(l,t[l]);return r.toString()}function M(...e){(ne()||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${u()}]`,...e)}function Ue(){p(O,Q.PAUSED,!0)}function We(e){p(O,Q.ERROR,!0)}function Je(){p(O,Q.READY,!0)}function He(){p(O,Q.LOADING,!0)}function Xe(){p(O,Q.PLAYING,!0)}function Ge(){p(O,Q.PAUSED,!0)}function Ke(e){if(e.preventDefault(),e.stopPropagation(),l(x)){e=new FormData(e.target),e=String(e.get("code"));if(g()?.startsWith("fn:")){var t=g().replace(/^fn:/,"");if(M(`calling ${t} function instead of verifyurl`),t in globalThis)return globalThis[t]({challenge:l(x).challenge,code:e,s
3olution:l(x).solution});throw new Error(`Global function "${t}" is undefined.`)}p(N,!0),ut(Le(l(x).challenge,l(x).solution),e).then(({reason:e,verified:t})=>{t?(p(x,null),T(y.VERIFIED),M("verified"),kn().then(()=>{l(Se)?.focus(),m("verified",{payload:l(V)}),"onsubmit"===r()?st(l(Oe)):f()&&$t()})):(F(),p(S,e||"Verification failed",!0))}).catch(e=>{p(x,null),T(y.ERROR,e),M("sentinel verification failed:",e)}).finally(()=>{p(N,!1)})}}function Ze(e){e=e.target;a()&&e&&!l(k).contains(e)&&(l(_)===y.VERIFIED&&!1===se()||l(_)===y.VERIFIED&&"focus"===se()&&!l(I)?.matches(":focus-within")||"off"===r()&&l(_)===y.UNVERIFIED)&&$t()}function Qe(){a()&&l(_)!==y.UNVERIFIED&&Et()}function Ye(e){l(_)===y.UNVERIFIED?j():a()&&"focus"===se()&&l(_)===y.VERIFIED&&xt()}function ze(e){e.target?.hasAttribute("data-code-challenge-form")||(p(Oe,e.submitter,!0),l(I)&&"onsubmit"===r()?(l(Oe)?.blur(),l(_)===y.UNVERIFIED?(e.preventDefault(),e.stopPropagation(),j().then(()=>{st(l(Oe))})):l(_)!==y.VERIFIED&&(e.preventDefault(),e.stopPropagation(),l(_)===y.VERIFYING)&&nt()):l(I)&&a()&&"off"===r()&&l(_)===y.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),xt()))}function et(){F()}function nt(){l(_)===y.VERIFYING&&l(b).waitAlert&&alert(l(b).waitAlert)}function rt(){l(R)?l(R).paused?(l(R).currentTime=0,l(R).play()):l(R).pause():(p(Ne,!0),requestAnimationFrame(()=>{l(R)?.play()}))}function lt(){a()&&Et()}function ot(e){return JSON.parse(e)}function it(e){var e=new URLSearchParams(e.split("?")?.[1]),e=e.get("expires")||e.get("expire");e?(e=new Date(1e3*+e),0<(e=isNaN(e.getTime())?0:e.getTime()-Date.now())&&ct(e)):P&&(clearTimeout(P),P=null)}async function at(e){if(!g())throw new Error("Attribute verifyurl not set.");M("requesting server verification from",g());var t,n,r,o,i,a,u,s,e={payload:e},c=(!1!==v()&&({blockedCountries:s,classifier:c,disableRules:f,email:t,expectedLanguages:n,expectedCountries:r,fields:o,ipAddress:i,text:a,timeZone:u}="ipAddress"===v()?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:"object"==typeof v()?v():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0},e.blockedCountries=s,e.classifier=c,e.disableRules=f,e.email=!1!==t&&(s=t,(s=l(I)?.querySelector("string"==typeof s?`input[name="${s}"]`:'input[type="email"]:not([data-no-spamfilter])'))?.value?.slice(s.value.indexOf("@")))||void 0,e.expectedCountries=r,e.expectedLanguages=n||(Ce?[Ce]:void 0),e.fields=!1===o?void 0:je(o),e.ipAddress=!1===i?void 0:i||"auto",e.text=a,e.timeZone=!1===u?void 0:u||Yr()),await Te()(g(),{body:JSON.stringify(e),headers:{"content-type":"application/json"},method:"POST"}));if(!(c&&c instanceof Response))throw new Error("Custom fetch function did not return a response.");if(200!==c.status)throw new Error(`Server responded with ${c.status}.`);var f=await c.json();if(f?.payload&&p(V,f.payload,!0),m("serververification",f),z()&&"BAD"===f.classification)throw new Error("SpamFilter returned negative classification.")}async function ut(e,t){if(!g())throw new Error("Attribute verifyurl not set.");M("requesting sentinel verification from",g());t={code:t,payload:e},d()&&(t.fields=d().fields?je():void 0,t.timeZone=d().timeZone?Yr():void 0),e=await Te()(g(),{body:JSON.stringify(t),headers:{"content-type":"application/json"},method:"POST"});if(!(e&&e instanceof Response))throw new Error("Fetch function did not return a response.");if(200!==e.status)throw new Error(`Server responded with ${e.status}.`);t=await e.json();return t?.payload&&p(V,t.payload,!0),m("sentinelverification",t),t}function st(e){l(I)&&"requestSubmit"in l(I)?l(I).requestSubmit(e):l(I)?.reportValidity()&&(e?e.click():l(I).submit())}function ct(e){M("expire",e),P&&(clearTimeout(P),P=null),e<1?Me():P=setTimeout(Me,e)}function ft(e){M("floating",e),a()!==e&&(l(k).style.left="",l(k).style.top=""),a(!0===e||""===e?"auto":!1===e||"false"===e?void 0:a()),a()?(r()||r("onsubmit"),document.addEventListener("scroll",Qe),document.addEventListener("click",Ze),window.addEventListener("resize",lt)):"onsubmit"===r()&&r(void 0)}function dt(e){var t;M("overlay",e),f(e),e?(r()||r("onsubmit"),l(A)&&l(k).parentElement&&l(A).replaceWith(l(k).parentElement),l(k)?.parentElement?.parentElement&&(p(A,document.createElement("div"),
3!0),l(k).parentElement.parentElement.appendChild(l(A)),e=document.createElement("div"),(t=document.createElement("button")).type="button",t.innerHTML="×",t.addEventListener("click",e=>{e.preventDefault(),F()}),l(A).classList.add("altcha-overlay-backdrop"),t.classList.add("altcha-overlay-close-button"),e.classList.add("altcha-overlay"),l(A).append(e),e.append(t),pe()&&e.append(...document.querySelectorAll(pe())),e.append(l(k).parentElement))):l(A)&&l(k).parentElement&&(l(A).replaceWith(l(k).parentElement),l(k).style.display="block")}function vt(e){if(!e.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(void 0===e.signature)throw new Error("Invalid challenge. Property signature is missing.");if(!Ee.includes(e.algorithm.toUpperCase()))throw new Error("Unknown algorithm value. Allowed values: "+Ee.join(", "));if(!e.challenge||e.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!e.salt||e.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function ht(e){let t=null,n=null;if("Worker"in window){try{t=pt(e,e.maxNumber||e.maxnumber||s()),p(w,t.controller,!0),n=await t.promise}catch(e){M(e)}finally{p(w,null)}if(null===n||void 0!==n?.number||"obfuscated"in e)return{data:e,solution:n}}if("obfuscated"in e)return{data:e,solution:await(await ea(e.obfuscated,e.key,e.maxNumber||e.maxnumber)).promise};t=Xo(e.challenge,e.salt,e.algorithm,e.maxNumber||e.maxnumber||s()),p(w,t.controller,!0);try{n=await t.promise}catch(e){M(e)}finally{p(w,null)}return{data:e,solution:n}}function pt(l,e="number"==typeof h()?h():l.maxNumber||l.maxnumber||s(),t=Math.ceil(ye())){let n=new AbortController,o=[];t=Math.min(16,e,Math.max(1,t));for(let e=0;e<t;e++)o.push(altchaCreateWorker(be()));let i=Math.ceil(e/t);return{promise:(async()=>{var e,t=await Promise.all(o.map((r,e)=>{let t=e*i;return n.signal.addEventListener("abort",()=>{r.postMessage({type:"abort"})}),new Promise(n=>{r.addEventListener("message",e=>{if(e.data)for(var t of o)t!==r&&t.postMessage({type:"abort"});n(e.data)}),r.postMessage({payload:l,max:t+i,start:t,type:"work"})})}));for(e of o)e.terminate();return t.find(e=>!!e)||null})(),controller:n}}async function gt(){if(c()){var e=L.find(e=>"obfuscation"===e.constructor.pluginName);if(e&&"clarify"in e)return"clarify"in e&&"function"==typeof e.clarify?e.clarify():void 0;T(y.ERROR),M("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.")}else T(y.ERROR)}function mt(e){void 0!==e.obfuscated&&c(e.obfuscated),void 0!==e.auto&&(r(e.auto),"onload"===r())&&(c()?gt:j)(),void 0!==e.blockspam&&z(!!e.blockspam),void 0!==e.customfetch&&t(e.customfetch),void 0!==e.floatinganchor&&ae(e.floatinganchor),void 0!==e.delay&&re(e.delay),void 0!==e.floatingoffset&&ue(e.floatingoffset),void 0!==e.floating&&ft(e.floating),void 0!==e.expire&&(ct(e.expire),ie(e.expire)),e.challenge&&(ee("string"==typeof e.challenge?e.challenge:JSON.stringify(e.challenge)),vt(l(_e))),void 0!==e.challengeurl&&o(e.challengeurl),void 0!==e.debug&&ne(!!e.debug),void 0!==e.hidefooter&&ce(!!e.hidefooter),void 0!==e.hidelogo&&fe(!!e.hidelogo),void 0!==e.language&&me(Be(Y(),[e.language])),void 0!==e.maxnumber&&s(+e.maxnumber),void 0!==e.mockerror&&he(!!e.mockerror),void 0!==e.name&&u(e.name),void 0!==e.overlaycontent&&pe(e.overlaycontent),void 0!==e.overlay&&dt(e.overlay),void 0!==e.refetchonexpire&&i(!e.refetchonexpire),void 0!==e.disablerefetchonexpire&&i(!e.disablerefetchonexpire),void 0!==e.sentinel&&"object"==typeof e.sentinel&&d(e.sentinel),void 0!==e.spamfilter&&v("object"==typeof e.spamfilter?e.spamfilter:!!e.spamfilter),e.strings&&me("string"==typeof e.strings?e.strings:JSON.stringify(e.strings)),void 0!==e.test&&h("number"==typeof e.test?e.test:!!e.test),void 0!==e.verifyurl&&g(e.verifyurl),void 0!==e.workers&&ye(+e.workers),void 0!==e.workerurl&&be(e.workerurl)}function yt(){return{auto:r(),blockspam:z(),challengeurl:o(),debug:ne(),delay:re(),disableautofocus:le(),disablerefetchonexpire:i(),expire:ie(),floating:a(),floatinganchor:ae(),floatingoffset:ue(),hidefooter:ce(),hidelogo:fe(),name:u(),maxnumber:s(),mockerror:he(),obfuscated:c(),overlay:f(),refetchonexpire:!i(),spamf
3ilter:v(),strings:l(b),test:h(),verifyurl:g(),workers:ye(),workerurl:be()}}function bt(){return l(Pe)}function wt(){return l(_)}function $t(){l(k).style.display="none",f()&&l(A)&&(l(A).style.display="none")}function Et(e=20){var t,n,r,o,i;l(k)&&(l(Pe)||p(Pe,(ae()?document.querySelector(ae()):l(I)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||l(I),!0),l(Pe)?(t=parseInt(ue(),10)||12,n=l(Pe).getBoundingClientRect(),r=l(k).getBoundingClientRect(),o=document.documentElement.clientHeight,i=document.documentElement.clientWidth,o="auto"===a()?n.bottom+r.height+t+e>o:"top"===a(),i=Math.max(e,Math.min(i-e-r.width,n.left+n.width/2-r.width/2)),l(k).style.top=o?n.top-(r.height+t)+"px":n.bottom+t+"px",l(k).style.left=i+"px",l(k).setAttribute("data-floating",o?"top":"bottom"),l(De)&&(e=l(De).getBoundingClientRect(),l(De).style.left=n.left-i+n.width/2-e.width/2+"px")):M("unable to find floating anchor element"))}function F(e=y.UNVERIFIED,t=null){l(w)&&(l(w).abort(),p(w,null)),p(Ie,!1),p(V,null),p(x,null),p(Ne,!1),p(O,null),T(e,t)}function Ct(e){p(Pe,e,!0)}function T(e,t=null){p(_,e,!0),p(S,t,!0),m("statechange",{payload:l(V),state:l(_)})}function xt(){l(k).style.display="block",a()&&Et(),f()&&l(A)&&(l(A).style.display="flex")}async function j(){return F(y.VERIFYING),await new Promise(e=>setTimeout(e,re()||0)),(async()=>{if(he())throw M("mocking error"),new Error("Mocked error.");if(l(_e))return M("using provided json data"),it(l(_e).salt),l(_e);if(h())return M("generating test challenge",{test:h()}),Ko("boolean"!=typeof h()?+h():void 0);if(!o()&&l(I)&&(e=l(I).getAttribute("action"))?.includes("/form/")&&o(e+"/altcha"),!o())throw new Error("Attribute challengeurl not set.");M("fetching challenge from",o());var e={credentials:"boolean"==typeof te()?"include":te(),headers:!1!==v()?{"x-altcha-spam-filter":"1"}:{}};if(!((e=await Te()(o(),e))&&e instanceof Response))throw new Error("Custom fetch function did not return a response.");if(200!==e.status)throw new Error(`Server responded with ${e.status}.`);var t=e.headers.get("X-Altcha-Config");if(it((e=await e.json()).salt),t)try{var n=JSON.parse(t);n&&"object"==typeof n&&(n.verifyurl&&!n.verifyurl.startsWith("fn:")&&(n.verifyurl=qe(n.verifyurl)),mt(n))}catch(e){M("unable to configure from X-Altcha-Config",e)}return e})().then(e=>(vt(e),M("challenge",e),ht(e))).then(({data:e,solution:t})=>{if(M("solution",t),!t||e&&"challenge"in e&&!("clearText"in t))if(void 0!==t?.number&&"challenge"in e){if(!(g()&&"codeChallenge"in e))return g()&&void 0!==d()?ut(Le(e,t)):g()?at(Le(e,t)):(p(V,Le(e,t),!0),void M("payload",l(V)));["INPUT","BUTTON","SELECT","TEXTAREA"].includes(document.activeElement?.tagName||"")&&!1===le()&&document.activeElement.blur(),p(x,{challenge:e,solution:t},!0)}else if(l(_)!==y.EXPIRED)throw M("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}).then(()=>{l(x)?(T(y.CODE),kn().then(()=>{m("code",{codeChallenge:l(x)})})):l(V)&&(T(y.VERIFIED),M("verified"),kn().then(()=>{m("verified",{payload:l(V)}),f()&&$t()}))}).catch(e=>{M(e),T(y.ERROR,e.message)})}Dn(()=>{l(S);for(var e of L)"function"==typeof e.onErrorChange&&e.onErrorChange(l(S))}),Dn(()=>{l(_);for(var e of L)"function"==typeof e.onStateChange&&e.onStateChange(l(_));a()&&l(_)!==y.UNVERIFIED&&requestAnimationFrame(()=>{Et()}),p(Ie,l(_)===y.VERIFIED),f()&&l(A)&&(l(_)!==y.UNVERIFIED?xt:$t)()}),qo(()=>{for(var e of L)e.destroy();p(Oe,null),l(I)&&(l(I).removeEventListener("submit",ze),l(I).removeEventListener("reset",et),l(I).removeEventListener("focusin",Ye),p(I,null)),P&&(clearTimeout(P),P=null),document.removeEventListener("click",Ze),document.removeEventListener("scroll",Qe),window.removeEventListener("resize",lt)}),Pi(()=>{M("mounted","2.2.4"),M("workers",ye());var e,t=void 0!==ge()?ge().split(","):void 0;for(e of globalThis.altchaPlugins)t&&!t.includes(e.pluginName)||L.push(new e({el:l(k),clarify:gt,dispatch:m,getConfiguration:yt,getFloatingAnchor:bt,getState:wt,log:
3M,reset:F,solve:ht,setState:T,setFloatingAnchor:Ct,verify:j}));M("plugins",L.length?L.map(e=>e.constructor.pluginName).join(", "):"none"),h()&&M("using test mode"),ie()&&ct(ie()),void 0!==r()&&M("auto",r()),void 0!==a()&&ft(a()),p(I,l(k)?.closest("form"),!0),l(I)&&(l(I).addEventListener("submit",ze,{capture:!0}),l(I).addEventListener("reset",et),"onfocus"===r()||"focus"===se())&&l(I).addEventListener("focusin",Ye),f()&&dt(!0),"onload"===r()&&(c()?gt:j)(),l(xe)&&(ce()||fe())&&M("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{m("load")})});var _t=pa(),e=Dt(_t),kt=(No(e,n,"default",{}),K(e,2)),e=J(kt),Rt=J(e);let At,It=J(Rt);var St=e=>{Sn(e)},q=(X(It,e=>{l(_)===y.VERIFYING&&e(St)}),K(It,2)),Pt=(Ur(q),q.__change=[ia,_,v,I,Ie,c,gt,j],Qt(q,e=>p(Se,e),()=>l(Se)),W(Rt),K(Rt,2)),U=J(Pt),Ot=e=>{var t=zt();tt(Dt(t),()=>l(b).verified),B(e,t)},Nt=(e,t)=>{var n=e=>{var t=zt();tt(Dt(t),()=>l(b).verifying),B(e,t)},r=(e,t)=>{var n=e=>{var t=zt();tt(Dt(t),()=>l(b).verificationRequired),B(e,t)}
3,r=e=>{var t=zt();tt(Dt(t),()=>l(b).label),B(e,t)};X(e,e=>{l(_)===y.CODE?e(n):e(r,!1)},t)};X(e,e=>{l(_)===y.VERIFYING?e(n):e(r,!1)},t)},U=(X(U,e=>{l(_)===y.VERIFIED?e(Ot):e(Nt,!1)}),W(Pt),K(Pt,2)),Vt=e=>{var t=oa();Ur(t),Ae(()=>{$(t,"name",u()),Fo(t,l(V))}),B(e,t)},U=(X(U,e=>{l(_)===y.VERIFIED&&e(Vt)}),K(U,2)),Mt=e=>{var t=aa(),n=J(t);$(n,"href","https://altcha.org/"),W(t),Ae(()=>$(n,"aria-label",l(b).ariaLinkLabel)),B(e,t)},U=(X(U,e=>{!0===fe()&&!l(xe)||e(Mt)}),K(U,2)),Ft=e=>{var t=va(),n=K(J(t),2),r=J(n),o=K(r,2),i=(Io(o,!le()),o.__keydown=[na,rt],K(o,2)),a=J(i),u=J(a),s=e=>{var t=ca(),n=(t.__click=rt,J(t)),r=e=>{Sn(e,()=>20)},o=(e,t)=>{var n=e=>{B(e,sa())},r=(e,t)=>{var n=e=>{B(e,ua())},r=e=>{B(e,fa())};X(e,e=>{l(O)===Q.PLAYING?e(n):e(r,!1)},t)};X(e,e=>{l(O)===Q.ERROR?e(n):e(r,!1)},t)};X(n,e=>{l(O)===Q.LOADING?e(r):e(o,!1)}),W(t),Ae(()=>{$(t,"title",l(b).getAudioChallenge),t.disabled=l(O)===Q.LOADING||l(O)===Q.ERROR||l(N),$(t,"aria-label",l(O)===Q.LOADING?l(b).loading:l(b).getAudioChallenge)}),B(e,t)},c=(X(u,e=>{l(x).challenge.codeChallenge.audio&&e(s)}),K(u,2)),f=(c.__click=[ra,j],W(a),K(a,2)),u=J(f),d=e=>{Sn(e,()=>16)},v=(X(u,e=>{l(N)&&e(d)}),K(u)),a=(W(f),W(i),K(i,2)),h=e=>{var t=da(),n=J(t);W(t),Qt(t,e=>p(R,e),()=>l(R)),Ae(e=>$(n,"src",e),[()=>qe(l(x).challenge.codeChallenge.audio,{language:ve()})]),Fe("loadstart",t,He),Fe("canplay",t,Je),Fe("pause",t,Ge),Fe("playing",t,Xe),Fe("ended",t,Ue),Fe("error",n,We),B(e,t)};X(a,e=>{l(x).challenge.codeChallenge.audio&&l(Ne)&&e(h)}),W(n),W(t),Ae(()=>{$(t,"aria-label",l(b).verificationRequired),$(r,"src",l(x).challenge.codeChallenge.image),$(o,"minlength",l(x).challenge.codeChallenge.length||1),$(o,"maxlength",l(x).challenge.codeChallenge.length),$(o,"placeholder",l(b).enterCode),$(o,"aria-label",l(O)===Q.LOADING?l(b).loading:l(O)===Q.PLAYING?"":l(b).enterCodeAria),$(o,"aria-live",l(O)?"assertive":"polite"),$(o,"aria-busy",l(O)===Q.LOADING),o.disabled=l(N),$(c,"aria-label",l(b).reload),$(c,"title",l(b).reload),c.disabled=l(N),f.disabled=l(N),$(f,"aria-label",l(b).verify),ko(v," "+(l(b).verify??""))}),Fe("submit",n,Ke,!0),B(e,t)},U=(X(U,e=>{l(x)?.challenge.codeChallenge&&e(Ft)}),W(e),K(e,2)),Tt=e=>{var t=_a(),n=K(J(t),2),r=e=>{var t=ha();tt(J(t),()=>l(b).expired),W(t),Ae(()=>$(t,"title",l(S))),B(e,t)},o=e=>{var t=ga();tt(J(t),()=>l(b).error),W(t),Ae(()=>$(t,"title",l(S))),B(e,t)};X(n,e=>{l(_)===y.EXPIRED?e(r):e(o,!1)}),W(t),B(e,t)},e=(X(U,e=>{!l(S)&&l(_)!==y.EXPIRED||e(Tt)}),K(U,2)),Bt=e=>{var t=ma(),n=J(t);tt(J(n),()=>l(b).footer),W(n),W(t),B(e,t)},U=(X(e,e=>{l(b).footer&&(!0!==ce()||l(xe))&&e(Bt)}),K(e,2)),jt=e=>{var t=ba();Qt(t,e=>p(De,e),()=>l(De)),B(e,t)},e=(X(U,e=>{a()&&e(jt)}),W(kt),Qt(kt,e=>p(k,e),()=>l(k)),Ae(e=>{$(kt,"data-state",l(_)),$(kt,"data-floating",a()),$(kt,"data-overlay",f()),At=Lo(Rt,1,"altcha-checkbox",null,At,e),$(q,"id",l(Re)),q.required="onsubmit"!==r()&&(!a()||"off"!==r()),$(Pt,"for",l(Re))},[()=>({"altcha-checkbox-verifying":l(_)===y.VERIFYING})]),Fe("invalid",q,nt),Mo(q,()=>l(Ie),e=>p(Ie,e)),B(H,_t),Ri({clarify:gt,configure:mt,getConfiguration:yt,getFloatingAnchor:bt,getPlugin:function(t){return L.find(e=>e.constructor.pluginName===t)},getState:wt,hide:$t,repositionFloating:Et,reset:F,setFloatingAnchor:Ct,setState:T,show:xt,verify:j,get auto(){return r()},set auto(e=void 0){r(e),E()},get blockspam(){return z()},set blockspam(e=void 0){z(e),E()},get challengeurl(){return o()},set challengeurl(e=void 0){o(e),E()},get challengejson(){return ee()},set challengejson(e=void 0){ee(e),E()},get credentials(){return te()},set credentials(e=void 0){te(e),E()},get customfetch(){return t()},set customfetch(e=void 0){t(e),E()},get debug(){return ne()},set debug(e=!1){ne(e),E()},get delay(){return re()},set delay(e=0){re(e),E()},get disableautofocus(){return le()},set disableautofocus(e=!1){le(e),E()},get refetchonexpire(){return oe()},set refetchonexpire(e=!0){oe(e),E()},get disablerefetchonexpire(){return i()},set disablerefetchonexpire(e=!oe){i(e),E()},get expire(){return ie()},set expire(e=void 0){ie(e),E()},get floating(){return a()},set floating(e=void 0){a(e),E()},get floatinganchor(){return ae()},set floatinganchor(e=void 0){ae(e),E()},get floatingoffset(){return ue()},set floatingoffset(e=void 0){ue(e),E()},get floatingpersist(){return se()},set floatingpersist(e=!1){se(e),E()},get hidefooter(){return ce()},set hidefooter(e=!1){ce(e),E()},get hidelogo(){return fe()},set hidelogo(e=!1){fe(e),E()},get id(){return de()},set id(e=void 0){de(e),E()},get language(){return ve()},set language(e=void 0){ve(e),E()},get name(){return u()},set name(e="altcha"){u(e),E()},get maxnumber(){return s()},set maxnumber(e=1e6){s(e),E()},get mockerror(){return he()},set mockerror(e=!1){he(e),E()},get obfuscated(){return c()},set obfuscated(e=void 0){c(e),E()},get overlay(){return f()},set overlay(e=void 0){f(e),E()},get overlaycontent(){return pe()},set overlaycontent(e=void 0){pe(e),E()},get plugins(){return ge()},set plugins(e=void 0){ge(e),E()},get sentinel(){return d()},set sentinel(e=void 0){d(e),E()},get spamfilter(){return v()},set spamfilter(e=!1){v(e),E()},get strings(){return me()},set strings(e=void 0){me(e),E()},get test(){return h()},set test(e=!1){h(e),E()},get verifyurl(){return g()},set verifyurl(e=void 0){g(e),E()},get workers(){return ye()},set workers(e=Math.min(16,navigator.hardwareConcurrency||8)){ye(e),E()},get workerurl(){return be()},set workerurl(e=void 0){be(e),E()}}));return Z(),e}$o(["change","keydown","click"]),customElements.define("altcha-widget",Wo(ya,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"],!1)),globalThis.altchaCreateWorker=e=>new Worker(new URL(e||"./worker.js",import.meta.url));export{ya as Altcha};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.