altcha 2.1.0 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/altcha.i18n.js +1659 -1498
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +1359 -1342
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.js +1350 -1333
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_i18n/africa.d.ts +1 -0
- package/dist_i18n/africa.js +199 -0
- package/dist_i18n/africa.umd.cjs +1 -0
- package/dist_i18n/all.js +260 -116
- package/dist_i18n/all.umd.cjs +1 -1
- package/dist_i18n/am.d.ts +1 -0
- package/dist_i18n/am.js +94 -0
- package/dist_i18n/am.umd.cjs +1 -0
- package/dist_i18n/asia.js +94 -40
- package/dist_i18n/asia.umd.cjs +1 -1
- package/dist_i18n/europe.js +88 -52
- package/dist_i18n/europe.umd.cjs +1 -1
- package/dist_i18n/fa.d.ts +1 -0
- package/dist_i18n/fa.js +94 -0
- package/dist_i18n/fa.umd.cjs +1 -0
- package/dist_i18n/kk.d.ts +1 -0
- package/dist_i18n/kk.js +94 -0
- package/dist_i18n/kk.umd.cjs +1 -0
- package/dist_i18n/lb.d.ts +1 -0
- package/dist_i18n/lb.js +94 -0
- package/dist_i18n/lb.umd.cjs +1 -0
- package/dist_i18n/sq.d.ts +1 -0
- package/dist_i18n/sq.js +94 -0
- package/dist_i18n/sq.umd.cjs +1 -0
- package/dist_i18n/sw.d.ts +1 -0
- package/dist_i18n/sw.js +94 -0
- package/dist_i18n/sw.umd.cjs +1 -0
- package/dist_i18n/uz.d.ts +1 -0
- package/dist_i18n/uz.js +94 -0
- package/dist_i18n/uz.umd.cjs +1 -0
- package/dist_i18n/yo.d.ts +1 -0
- package/dist_i18n/yo.js +94 -0
- package/dist_i18n/yo.umd.cjs +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(S,T){typeof exports=="object"&&typeof module<"u"?T(exports):typeof define=="function"&&define.amd?define(["exports"],T):(S=typeof globalThis<"u"?globalThis:S||self,T(S.altcha={}))})(this,function(S){"use strict";var Ta=Object.defineProperty;var zi=S=>{throw TypeError(S)};var Na=(S,T,Z)=>T in S?Ta(S,T,{enumerable:!0,configurable:!0,writable:!0,value:Z}):S[T]=Z;var $e=(S,T,Z)=>Na(S,typeof T!="symbol"?T+"":T,Z),Xi=(S,T,Z)=>T.has(S)||zi("Cannot "+Z);var ve=(S,T,Z)=>(Xi(S,T,"read from private field"),Z?Z.call(S):T.get(S)),nr=(S,T,Z)=>T.has(S)?zi("Cannot add the same private member more than once"):T instanceof WeakSet?T.add(S):T.set(S,Z),rr=(S,T,Z,Wt)=>(Xi(S,T,"write to private field"),Wt?Wt.call(S,Z):T.set(S,Z),Z);var vi,Ve,ye;var T=typeof document<"u"?document.currentScript:null;const Z="5";typeof window<"u"&&((vi=window.__svelte??(window.__svelte={})).v??(vi.v=new Set)).add(Z);const Wt=1,Qi=4,el=8,tl=16,nl=1,rl=2,An="[",ir="[!",lr="]",ct={},ue=Symbol(),il="http://www.w3.org/1999/xhtml",or=!1;function ar(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var sr=Array.isArray,ll=Array.prototype.indexOf,ol=Array.from,Jt=Object.keys,kt=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,al=Object.getOwnPropertyDescriptors,sl=Object.prototype,ul=Array.prototype,ur=Object.getPrototypeOf,fr=Object.isExtensible;const dt=()=>{};function cr(e){for(var t=0;t<e.length;t++)e[t]()}function fl(e,t,n=!1){return e===void 0?n?t():t:e}const Ee=2,dr=4,Kt=8,In=16,Fe=32,et=64,zt=128,he=256,Xt=512,fe=1024,xe=2048,tt=4096,vt=8192,Qt=16384,cl=32768,Rn=65536,dl=1<<19,vr=1<<20,kn=1<<21,$t=Symbol("$state"),hr=Symbol("legacy props"),vl=Symbol("");function hl(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 _l(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ml(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bl(){throw new Error("https://svelte.dev/e/hydration_failed")}function pl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function yl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function El(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function en(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let F=!1;function ht(e){F=e}let V;function qe(e){if(e===null)throw en(),ct;return V=e}function gt(){return qe(Be(V))}function W(e){if(F){if(Be(V)!==null)throw en(),ct;V=e}}function Cl(){for(var e=0,t=V;;){if(t.nodeType===8){var n=t.data;if(n===lr){if(e===0)return t;e-=1}else(n===An||n===ir)&&(e+=1)}var i=Be(t);t.remove(),t=i}}let Al=!1;function je(e){if(typeof e!="object"||e===null||$t in e)return e;const t=ur(e);if(t!==sl&&t!==ul)return e;var n=new Map,i=sr(e),o=M(0),l=L,u=s=>{var c=L;Ne(l);var d=s();return Ne(c),d};return i&&n.set("length",M(e.length)),new Proxy(e,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&yl();var b=n.get(c);return b===void 0?(b=u(()=>M(d.value)),n.set(c,b)):p(b,u(()=>je(d.value))),!0},deleteProperty(s,c){var d=n.get(c);if(d===void 0)c in s&&(n.set(c,u(()=>M(ue))),$n(o));else{if(i&&typeof c=="string"){var b=n.get("length"),v=Number(c);Number.isInteger(v)&&v<b.v&&p(b,v)}p(d,ue),$n(o)}return!0},get(s,c,d){var w;if(c===$t)return e;var b=n.get(c),v=c in s;if(b===void 0&&(!v||(w=Qe(s,c))!=null&&w.writable)&&(b=u(()=>M(je(v?s[c]:ue))),n.set(c,b)),b!==void 0){var m=a(b);return m===ue?void 0:m}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var b=n.get(c);b&&(d.value=a(b))}else if(d===void 0){var v=n.get(c),m=v==null?void 0:v.v;if(v!==void 0&&m!==ue)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return d},has(s,c){var m;if(c===$t)return!0;var d=n.get(c),b=d!==void 0&&d.v!==ue||Reflect.has(s,c);if(d!==void 0||P!==null&&(!b||(m=Qe(s,c))!=null&&m.writable)){d===void 0&&(d=u(()=>M(b?je(s[c]):ue)),n.set(c,d));var v=a(d);if(v===ue)return!1}return b},set(s,c,d,b){var te;var v=n.get(c),m=c in s;if(i&&c==="length")for(var w=d;w<v.v;w+=1){var D=n.get(w+"");D!==void 0?p(D,ue):w in s&&(D=u(()=>M(ue)),n.set(w+"",D))}v===void 0?(!m||(te=Qe(s,c))!=null&&te.writable)&&(v=u(()=>M(void 0)),p(v,u(()=>je(d))),n.set(c,v)):(m=v.v!==ue,p(v,u(()=>je(d))));var C=Reflect.getOwnPropertyDescriptor(s,c);if(C!=null&&C.set&&C.set.call(b,d),!m){if(i&&typeof c=="string"){var j=n.get("length"),_e=Number(c);Number.isInteger(_e)&&_e>=j.v&&p(j,_e+1)}$n(o)}return!0},ownKeys(s){a(o);var c=Reflect.ownKeys(s).filter(v=>{var m=n.get(v);return m===void 0||m.v!==ue});for(var[d,b]of n)b.v!==ue&&!(d in s)&&c.push(d);return c},setPrototypeOf(){wl()}})}function $n(e,t=1){p(e,e.v+t)}var gr,_r,mr,br;function xn(){if(gr===void 0){gr=window,_r=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mr=Qe(t,"firstChild").get,br=Qe(t,"nextSibling").get,fr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fr(n)&&(n.__t=void 0)}}function tn(e=""){return document.createTextNode(e)}function be(e){return mr.call(e)}function Be(e){return br.call(e)}function J(e,t){if(!F)return be(e);var n=be(V);return n===null&&(n=V.appendChild(tn())),qe(n),n}function xt(e,t){if(!F){var n=be(e);return n instanceof Comment&&n.data===""?Be(n):n}return V}function K(e,t=1,n=!1){let i=F?V:e;for(var o;t--;)o=i,i=Be(i);if(!F)return i;var l=i==null?void 0:i.nodeType;if(n&&l!==3){var u=tn();return i===null?o==null||o.after(u):i.before(u),qe(u),u}return qe(i),i}function Il(e){e.textContent=""}function pr(e){return e===this.v}function yr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sn(e){return!yr(e,this.v)}function nn(e){var t=Ee|xe,n=L!==null&&(L.f&Ee)!==0?L:null;return P===null||n!==null&&(n.f&he)!==0?t|=he:P.f|=vr,{ctx:oe,deps:null,effects:null,equals:pr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??P}}function St(e){const t=nn(e);return Pr(t),t}function Rl(e){const t=nn(e);return t.equals=Sn,t}function wr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)He(t[n])}}function kl(e){for(var t=e.parent;t!==null;){if((t.f&Ee)===0)return t;t=t.parent}return null}function Er(e){var t,n=P;Ye(kl(e));try{wr(e),t=Ur(e)}finally{Ye(n)}return t}function Cr(e){var t=Er(e),n=(Ge||(e.f&he)!==0)&&e.deps!==null?tt:fe;Ce(e,n),e.equals(t)||(e.v=t,e.wv=Fr())}function $l(e){P===null&&L===null&&_l(),L!==null&&(L.f&he)!==0&&P===null&&gl(),Dt&&hl()}function xl(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function nt(e,t,n,i=!0){var o=P,l={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|xe,first:null,fn:t,last:null,next:null,parent:o,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Vn(l),l.f|=cl}catch(c){throw He(l),c}else t!==null&&fn(l);var u=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(vr|zt))===0;if(!u&&i&&(o!==null&&xl(l,o),L!==null&&(L.f&Ee)!==0)){var s=L;(s.effects??(s.effects=[])).push(l)}return l}function Tn(e){const t=nt(Kt,null,!1);return Ce(t,fe),t.teardown=e,t}function Nn(e){$l();var t=P!==null&&(P.f&Fe)!==0&&oe!==null&&!oe.m;if(t){var n=oe;(n.e??(n.e=[])).push({fn:e,effect:P,reaction:L})}else{var i=Dn(e);return i}}function Sl(e){const t=nt(et,e,!0);return()=>{He(t)}}function Tl(e){const t=nt(et,e,!0);return(n={})=>new Promise(i=>{n.outro?On(t,()=>{He(t),i(void 0)}):(He(t),i(void 0))})}function Dn(e){return nt(dr,e,!1)}function Ln(e){return nt(Kt,e,!0)}function Se(e,t=[],n=nn){const i=t.map(n);return Ar(()=>e(...i.map(a)))}function Ar(e,t=0){return nt(Kt|In|t,e,!0)}function Pn(e,t=!0){return nt(Kt|Fe,e,!0,t)}function Ir(e){var t=e.teardown;if(t!==null){const n=Dt,i=L;Lr(!0),Ne(null);try{t.call(null)}finally{Lr(n),Ne(i)}}}function Rr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;(n.f&et)!==0?n.parent=null:He(n,t),n=i}}function Nl(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Fe)===0&&He(t),t=n}}function He(e,t=!0){var n=!1;(t||(e.f&dl)!==0)&&e.nodes_start!==null&&(kr(e.nodes_start,e.nodes_end),n=!0),Rr(e,t&&!n),un(e,0),Ce(e,Qt);var i=e.transitions;if(i!==null)for(const l of i)l.stop();Ir(e);var o=e.parent;o!==null&&o.first!==null&&$r(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function kr(e,t){for(;e!==null;){var n=e===t?null:Be(e);e.remove(),e=n}}function $r(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function On(e,t){var n=[];xr(e,n,!0),Dl(n,()=>{He(e),t&&t()})}function Dl(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var o of e)o.out(i)}else t()}function xr(e,t,n){if((e.f&vt)===0){if(e.f^=vt,e.transitions!==null)for(const u of e.transitions)(u.is_global||n)&&t.push(u);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&Rn)!==0||(i.f&Fe)!==0;xr(i,t,l?n:!1),i=o}}}function Sr(e){Tr(e,!0)}function Tr(e,t){if((e.f&vt)!==0){e.f^=vt,(e.f&fe)===0&&(e.f^=fe),Pt(e)&&(Ce(e,xe),fn(e));for(var n=e.first;n!==null;){var i=n.next,o=(n.f&Rn)!==0||(n.f&Fe)!==0;Tr(n,o?t:!1),n=i}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}const Ll=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let Tt=[],Nt=[];function Nr(){var e=Tt;Tt=[],cr(e)}function Dr(){var e=Nt;Nt=[],cr(e)}function Fn(e){Tt.length===0&&queueMicrotask(Nr),Tt.push(e)}function Pl(e){Nt.length===0&&Ll(Dr),Nt.push(e)}function Ol(){Tt.length>0&&Nr(),Nt.length>0&&Dr()}let rn=!1,ln=!1,on=null,rt=!1,Dt=!1;function Lr(e){Dt=e}let Lt=[],Da=[],L=null,Te=!1;function Ne(e){L=e}let P=null;function Ye(e){P=e}let ie=null;function Pr(e){L!==null&&L.f&kn&&(ie===null?ie=[e]:ie.push(e))}let le=null,ge=0,pe=null;function Fl(e){pe=e}let Or=1,an=0,Ge=!1;function Fr(){return++Or}function Pt(e){var v;var t=e.f;if((t&xe)!==0)return!0;if((t&tt)!==0){var n=e.deps,i=(t&he)!==0;if(n!==null){var o,l,u=(t&Xt)!==0,s=i&&P!==null&&!Ge,c=n.length;if(u||s){var d=e,b=d.parent;for(o=0;o<c;o++)l=n[o],(u||!((v=l==null?void 0:l.reactions)!=null&&v.includes(d)))&&(l.reactions??(l.reactions=[])).push(d);u&&(d.f^=Xt),s&&b!==null&&(b.f&he)===0&&(d.f^=he)}for(o=0;o<c;o++)if(l=n[o],Pt(l)&&Cr(l),l.wv>e.wv)return!0}(!i||P!==null&&!Ge)&&Ce(e,fe)}return!1}function Vl(e,t){for(var n=t;n!==null;){if((n.f&zt)!==0)try{n.fn(e);return}catch{n.f^=zt}n=n.parent}throw rn=!1,e}function Vr(e){return(e.f&Qt)===0&&(e.parent===null||(e.parent.f&zt)===0)}function sn(e,t,n,i){if(rn){if(n===null&&(rn=!1),Vr(t))throw e;return}if(n!==null&&(rn=!0),Vl(e,t),Vr(t))throw e}function Mr(e,t,n=!0){var i=e.reactions;if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];ie!=null&&ie.includes(e)||((l.f&Ee)!==0?Mr(l,t,!1):t===l&&(n?Ce(l,xe):(l.f&fe)!==0&&Ce(l,tt),fn(l)))}}function Ur(e){var w;var t=le,n=ge,i=pe,o=L,l=Ge,u=ie,s=oe,c=Te,d=e.f;le=null,ge=0,pe=null,Ge=(d&he)!==0&&(Te||!rt||L===null),L=(d&(Fe|et))===0?e:null,ie=null,Hr(e.ctx),Te=!1,an++,e.f|=kn;try{var b=(0,e.fn)(),v=e.deps;if(le!==null){var m;if(un(e,ge),v!==null&&ge>0)for(v.length=ge+le.length,m=0;m<le.length;m++)v[ge+m]=le[m];else e.deps=v=le;if(!Ge)for(m=ge;m<v.length;m++)((w=v[m]).reactions??(w.reactions=[])).push(e)}else v!==null&&ge<v.length&&(un(e,ge),v.length=ge);if(Zr()&&pe!==null&&!Te&&v!==null&&(e.f&(Ee|tt|xe))===0)for(m=0;m<pe.length;m++)Mr(pe[m],e);return o!==null&&o!==e&&(an++,pe!==null&&(i===null?i=pe:i.push(...pe))),b}finally{le=t,ge=n,pe=i,L=o,Ge=l,ie=u,Hr(s),Te=c,e.f^=kn}}function Ml(e,t){let n=t.reactions;if(n!==null){var i=ll.call(n,e);if(i!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[i]=n[o],n.pop())}}n===null&&(t.f&Ee)!==0&&(le===null||!le.includes(t))&&(Ce(t,tt),(t.f&(he|Xt))===0&&(t.f^=Xt),wr(t),un(t,0))}function un(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Ml(e,n[i])}function Vn(e){var t=e.f;if((t&Qt)===0){Ce(e,fe);var n=P,i=oe,o=rt;P=e,rt=!0;try{(t&In)!==0?Nl(e):Rr(e),Ir(e);var l=Ur(e);e.teardown=typeof l=="function"?l:null,e.wv=Or;var u=e.deps,s;or&&Al&&e.f&xe}catch(c){sn(c,e,n,i||e.ctx)}finally{rt=o,P=n}}}function Ul(){try{ml()}catch(e){if(on!==null)sn(e,on,null);else throw e}}function qr(){var e=rt;try{var t=0;for(rt=!0;Lt.length>0;){t++>1e3&&Ul();var n=Lt,i=n.length;Lt=[];for(var o=0;o<i;o++){var l=jl(n[o]);ql(l)}Ot.clear()}}finally{ln=!1,rt=e,on=null}}function ql(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if((i.f&(Qt|vt))===0)try{Pt(i)&&(Vn(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?$r(i):i.fn=null))}catch(o){sn(o,i,null,i.ctx)}}}function fn(e){ln||(ln=!0,queueMicrotask(qr));for(var t=on=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(et|Fe))!==0){if((n&fe)===0)return;t.f^=fe}}Lt.push(t)}function jl(e){for(var t=[],n=e;n!==null;){var i=n.f,o=(i&(Fe|et))!==0,l=o&&(i&fe)!==0;if(!l&&(i&vt)===0){if((i&dr)!==0)t.push(n);else if(o)n.f^=fe;else try{Pt(n)&&Vn(n)}catch(c){sn(c,n,null,n.ctx)}var u=n.first;if(u!==null){n=u;continue}}var s=n.parent;for(n=n.next;n===null&&s!==null;)n=s.next,s=s.parent}return t}function I(e){for(var t;;){if(Ol(),Lt.length===0)return t;ln=!0,qr()}}async function Mn(){await Promise.resolve(),I()}function a(e){var t=e.f,n=(t&Ee)!==0;if(L!==null&&!Te){if(!(ie!=null&&ie.includes(e))){var i=L.deps;e.rv<an&&(e.rv=an,le===null&&i!==null&&i[ge]===e?ge++:le===null?le=[e]:(!Ge||!le.includes(e))&&le.push(e))}}else if(n&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&he)===0&&(o.f^=he)}return n&&(o=e,Pt(o)&&Cr(o)),Dt&&Ot.has(e)?Ot.get(e):e.v}function it(e){var t=Te;try{return Te=!0,e()}finally{Te=t}}const Bl=-7169;function Ce(e,t){e.f=e.f&Bl|t}const Ot=new Map;function jr(e,t){var n={f:0,v:e,reactions:null,equals:pr,rv:0,wv:0};return n}function M(e,t){const n=jr(e);return Pr(n),n}function Un(e,t=!1){const n=jr(e);return t||(n.equals=Sn),n}function p(e,t,n=!1){L!==null&&!Te&&Zr()&&(L.f&(Ee|In))!==0&&!(ie!=null&&ie.includes(e))&&El();let i=n?je(t):t;return Hl(e,i)}function Hl(e,t){if(!e.equals(t)){var n=e.v;Dt?Ot.set(e,t):Ot.set(e,n),e.v=t,(e.f&Ee)!==0&&((e.f&xe)!==0&&Er(e),Ce(e,(e.f&he)===0?fe:tt)),e.wv=Fr(),Br(e,xe),P!==null&&(P.f&fe)!==0&&(P.f&(Fe|et))===0&&(pe===null?Fl([e]):pe.push(e))}return t}function Br(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,o=0;o<i;o++){var l=n[o],u=l.f;(u&xe)===0&&(Ce(l,t),(u&(fe|he))!==0&&((u&Ee)!==0?Br(l,tt):fn(l)))}}let oe=null;function Hr(e){oe=e}function Yr(e,t=!1,n){var i=oe={p:oe,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Tn(()=>{i.d=!0})}function Gr(e){const t=oe;if(t!==null){e!==void 0&&(t.x=e);const u=t.e;if(u!==null){var n=P,i=L;t.e=null;try{for(var o=0;o<u.length;o++){var l=u[o];Ye(l.effect),Ne(l.reaction),Dn(l.fn)}}finally{Ye(n),Ne(i)}}oe=t.p,t.m=!0}return e||{}}function Zr(){return!0}const Yl=["touchstart","touchmove"];function Gl(e){return Yl.includes(e)}function Zl(e,t){if(t){const n=document.body;e.autofocus=!0,Fn(()=>{document.activeElement===n&&e.focus()})}}let Wr=!1;function Jr(){Wr||(Wr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Kr(e){var t=L,n=P;Ne(null),Ye(null);try{return e()}finally{Ne(t),Ye(n)}}function Wl(e,t,n,i=n){e.addEventListener(t,()=>Kr(n));const o=e.__on_r;o?e.__on_r=()=>{o(),i(!0)}:e.__on_r=()=>i(!0),Jr()}const zr=new Set,qn=new Set;function Jl(e,t,n,i={}){function o(l){if(i.capture||Ft.call(t,l),!l.cancelBubble)return Kr(()=>n==null?void 0:n.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Fn(()=>{t.addEventListener(e,o,i)}):t.addEventListener(e,o,i),o}function Ze(e,t,n,i,o){var l={capture:i,passive:o},u=Jl(e,t,n,l);(t===document.body||t===window||t===document)&&Tn(()=>{t.removeEventListener(e,u,l)})}function Kl(e){for(var t=0;t<e.length;t++)zr.add(e[t]);for(var n of qn)n(e)}function Ft(e){var te;var t=this,n=t.ownerDocument,i=e.type,o=((te=e.composedPath)==null?void 0:te.call(e))||[],l=o[0]||e.target,u=0,s=e.__root;if(s){var c=o.indexOf(s);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var d=o.indexOf(t);if(d===-1)return;c<=d&&(u=c)}if(l=o[u]||e.target,l!==t){kt(e,"currentTarget",{configurable:!0,get(){return l||n}});var b=L,v=P;Ne(null),Ye(null);try{for(var m,w=[];l!==null;){var D=l.assignedSlot||l.parentNode||l.host||null;try{var C=l["__"+i];if(C!=null&&(!l.disabled||e.target===l))if(sr(C)){var[j,..._e]=C;j.apply(l,[e,..._e])}else C.call(l,e)}catch(ae){m?w.push(ae):m=ae}if(e.cancelBubble||D===t||D===null)break;l=D}if(m){for(let ae of w)queueMicrotask(()=>{throw ae});throw m}}finally{e.__root=t,delete e.currentTarget,Ne(b),Ye(v)}}}function jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function De(e,t){var n=P;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ae(e,t){var n=(t&nl)!==0,i=(t&rl)!==0,o,l=!e.startsWith("<!>");return()=>{if(F)return De(V,null),V;o===void 0&&(o=jn(l?e:"<!>"+e),n||(o=be(o)));var u=i||_r?document.importNode(o,!0):o.cloneNode(!0);if(n){var s=be(u),c=u.lastChild;De(s,c)}else De(u,u);return u}}function cn(e,t,n="svg"){var i=!e.startsWith("<!>"),o=`<${n}>${i?e:"<!>"+e}</${n}>`,l;return()=>{if(F)return De(V,null),V;if(!l){var u=jn(o),s=be(u);l=be(s)}var c=l.cloneNode(!0);return De(c,c),c}}function dn(){if(F)return De(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),n=tn();return e.append(t,n),De(t,n),e}function B(e,t){if(F){P.nodes_end=V,gt();return}e!==null&&e.before(t)}function zl(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Xr(e,t){return Qr(e,t)}function Xl(e,t){xn(),t.intro=t.intro??!1;const n=t.target,i=F,o=V;try{for(var l=be(n);l&&(l.nodeType!==8||l.data!==An);)l=Be(l);if(!l)throw ct;ht(!0),qe(l),gt();const u=Qr(e,{...t,anchor:l});if(V===null||V.nodeType!==8||V.data!==lr)throw en(),ct;return ht(!1),u}catch(u){if(u===ct)return t.recover===!1&&bl(),xn(),Il(n),ht(!1),Xr(e,t);throw u}finally{ht(i),qe(o)}}const _t=new Map;function Qr(e,{target:t,anchor:n,props:i={},events:o,context:l,intro:u=!0}){xn();var s=new Set,c=v=>{for(var m=0;m<v.length;m++){var w=v[m];if(!s.has(w)){s.add(w);var D=Gl(w);t.addEventListener(w,Ft,{passive:D});var C=_t.get(w);C===void 0?(document.addEventListener(w,Ft,{passive:D}),_t.set(w,1)):_t.set(w,C+1)}}};c(ol(zr)),qn.add(c);var d=void 0,b=Tl(()=>{var v=n??t.appendChild(tn());return Pn(()=>{if(l){Yr({});var m=oe;m.c=l}o&&(i.$$events=o),F&&De(v,null),d=e(v,i)||{},F&&(P.nodes_end=V),l&&Gr()}),()=>{var D;for(var m of s){t.removeEventListener(m,Ft);var w=_t.get(m);--w===0?(document.removeEventListener(m,Ft),_t.delete(m)):_t.set(m,w)}qn.delete(c),v!==n&&((D=v.parentNode)==null||D.removeChild(v))}});return Bn.set(d,b),d}let Bn=new WeakMap;function Ql(e,t){const n=Bn.get(e);return n?(Bn.delete(e),n(t)):Promise.resolve()}function z(e,t,[n,i]=[0,0]){F&&n===0&>();var o=e,l=null,u=null,s=ue,c=n>0?Rn:0,d=!1;const b=(m,w=!0)=>{d=!0,v(w,m)},v=(m,w)=>{if(s===(s=m))return;let D=!1;if(F&&i!==-1){if(n===0){const j=o.data;j===An?i=0:j===ir?i=1/0:(i=parseInt(j.substring(1)),i!==i&&(i=s?1/0:-1))}const C=i>n;!!s===C&&(o=Cl(),qe(o),ht(!1),D=!0,i=-1)}s?(l?Sr(l):w&&(l=Pn(()=>w(o))),u&&On(u,()=>{u=null})):(u?Sr(u):w&&(u=Pn(()=>w(o,[n+1,i]))),l&&On(l,()=>{l=null})),D&&ht(!0)};Ar(()=>{d=!1,t(b),d||v(null,null)},c),F&&(o=V)}function lt(e,t,n=!1,i=!1,o=!1){var l=e,u="";Se(()=>{var s=P;if(u===(u=t()??"")){F&>();return}if(s.nodes_start!==null&&(kr(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),u!==""){if(F){V.data;for(var c=gt(),d=c;c!==null&&(c.nodeType!==8||c.data!=="");)d=c,c=Be(c);if(c===null)throw en(),ct;De(V,d),l=qe(c);return}var b=u+"";n?b=`<svg>${b}</svg>`:i&&(b=`<math>${b}</math>`);var v=jn(b);if((n||i)&&(v=be(v)),De(be(v),v.lastChild),n||i)for(;be(v);)l.before(be(v));else l.before(v)}})}function eo(e,t,n,i,o){var s;F&>();var l=(s=t.$$slots)==null?void 0:s[n],u=!1;l===!0&&(l=t.children,u=!0),l===void 0||l(e,u?()=>i:i)}const ei=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function to(e,t,n){var i=""+e;if(n){for(var o in n)if(n[o])i=i?i+" "+o:o;else if(i.length)for(var l=o.length,u=0;(u=i.indexOf(o,u))>=0;){var s=u+l;(u===0||ei.includes(i[u-1]))&&(s===i.length||ei.includes(i[s]))?i=(u===0?"":i.substring(0,u))+i.substring(s+1):u=s}}return i===""?null:i}function no(e,t,n,i,o,l){var u=e.__className;if(F||u!==n||u===void 0){var s=to(n,i,l);(!F||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):e.className=s),e.__className=n}else if(l&&o!==l)for(var c in l){var d=!!l[c];(o==null||d!==!!o[c])&&e.classList.toggle(c,d)}return l}const ro=Symbol("is custom element"),io=Symbol("is html");function ti(e){if(F){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;N(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var o=e.checked;N(e,"checked",null),e.checked=o}}};e.__on_r=n,Pl(n),Jr()}}function lo(e,t){var n=ni(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function N(e,t,n,i){var o=ni(e);F&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||o[t]!==(o[t]=n)&&(t==="loading"&&(e[vl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&oo(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ni(e){return e.__attributes??(e.__attributes={[ro]:e.nodeName.includes("-"),[io]:e.namespaceURI===il})}var ri=new Map;function oo(e){var t=ri.get(e.nodeName);if(t)return t;ri.set(e.nodeName,t=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=al(i);for(var l in n)n[l].set&&t.push(l);i=ur(i)}return t}function ao(e,t,n=t){Wl(e,"change",i=>{var o=i?e.defaultChecked:e.checked;n(o)}),(F&&e.defaultChecked!==e.checked||it(t)==null)&&n(e.checked),Ln(()=>{var i=t();e.checked=!!i})}function ii(e,t){return e===t||(e==null?void 0:e[$t])===t}function vn(e={},t,n,i){return Dn(()=>{var o,l;return Ln(()=>{o=l,l=[],it(()=>{e!==n(...l)&&(t(e,...l),o&&ii(n(...o),e)&&t(null,...o))})}),()=>{Fn(()=>{l&&ii(n(...l),e)&&t(null,...l)})}}),e}function li(e){oe===null&&ar(),Nn(()=>{const t=it(e);if(typeof t=="function")return t})}function so(e){oe===null&&ar(),li(()=>()=>it(e))}function oi(e,t,n){if(e==null)return t(void 0),dt;const i=it(()=>e.subscribe(t,n));return i.unsubscribe?()=>i.unsubscribe():i}const mt=[];function uo(e,t=dt){let n=null;const i=new Set;function o(s){if(yr(e,s)&&(e=s,n)){const c=!mt.length;for(const d of i)d[1](),mt.push(d,e);if(c){for(let d=0;d<mt.length;d+=2)mt[d][0](mt[d+1]);mt.length=0}}}function l(s){o(s(e))}function u(s,c=dt){const d=[s,c];return i.add(d),i.size===1&&(n=t(o,l)||dt),s(e),()=>{i.delete(d),i.size===0&&n&&(n(),n=null)}}return{set:o,update:l,subscribe:u}}function hn(e){let t;return oi(e,n=>t=n)(),t}let gn=!1,Hn=Symbol();function fo(e,t,n){const i=n[t]??(n[t]={store:null,source:Un(void 0),unsubscribe:dt});if(i.store!==e&&!(Hn in n))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=dt;else{var o=!0;i.unsubscribe=oi(e,l=>{o?i.source.v=l:p(i.source,l)}),o=!1}return e&&Hn in n?hn(e):a(i.source)}function co(){const e={};function t(){Tn(()=>{for(var n in e)e[n].unsubscribe();kt(e,Hn,{enumerable:!1,value:!0})})}return[e,t]}function vo(e){var t=gn;try{return gn=!1,[e(),gn]}finally{gn=t}}function ai(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function k(e,t,n,i){var bt;var o=(n&Wt)!==0,l=!0,u=(n&el)!==0,s=(n&tl)!==0,c=!1,d;u?[d,c]=vo(()=>e[t]):d=e[t];var b=$t in e||hr in e,v=u&&(((bt=Qe(e,t))==null?void 0:bt.set)??(b&&t in e&&(H=>e[t]=H)))||void 0,m=i,w=!0,D=!1,C=()=>(D=!0,w&&(w=!1,s?m=it(i):m=i),m);d===void 0&&i!==void 0&&(v&&l&&pl(),d=C(),v&&v(d));var j;if(j=()=>{var H=e[t];return H===void 0?C():(w=!0,D=!1,H)},(n&Qi)===0)return j;if(v){var _e=e.$$legacy;return function(H,ce){return arguments.length>0?((!ce||_e||c)&&v(ce?j():H),H):j()}}var te=!1,ae=Un(d),ne=nn(()=>{var H=j(),ce=a(ae);return te?(te=!1,ce):ae.v=H});return u&&a(ne),o||(ne.equals=Sn),function(H,ce){if(arguments.length>0){const Ie=ce?a(ne):u?je(H):H;if(!ne.equals(Ie)){if(te=!0,p(ae,Ie),D&&m!==void 0&&(m=Ie),ai(ne))return H;it(()=>a(ne))}return H}return ai(ne)?ne.v:a(ne)}}function ho(e){return new go(e)}class go{constructor(t){nr(this,Ve);nr(this,ye);var l;var n=new Map,i=(u,s)=>{var c=Un(s);return n.set(u,c),c};const o=new Proxy({...t.props||{},$$events:{}},{get(u,s){return a(n.get(s)??i(s,Reflect.get(u,s)))},has(u,s){return s===hr?!0:(a(n.get(s)??i(s,Reflect.get(u,s))),Reflect.has(u,s))},set(u,s,c){return p(n.get(s)??i(s,c),c),Reflect.set(u,s,c)}});rr(this,ye,(t.hydrate?Xl:Xr)(t.component,{target:t.target,anchor:t.anchor,props:o,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&I(),rr(this,Ve,o.$$events);for(const u of Object.keys(ve(this,ye)))u==="$set"||u==="$destroy"||u==="$on"||kt(this,u,{get(){return ve(this,ye)[u]},set(s){ve(this,ye)[u]=s},enumerable:!0});ve(this,ye).$set=u=>{Object.assign(o,u)},ve(this,ye).$destroy=()=>{Ql(ve(this,ye))}}$set(t){ve(this,ye).$set(t)}$on(t,n){ve(this,Ve)[t]=ve(this,Ve)[t]||[];const i=(...o)=>n.call(this,...o);return ve(this,Ve)[t].push(i),()=>{ve(this,Ve)[t]=ve(this,Ve)[t].filter(o=>o!==i)}}$destroy(){ve(this,ye).$destroy()}}Ve=new WeakMap,ye=new WeakMap;let si;typeof HTMLElement=="function"&&(si=class extends HTMLElement{constructor(t,n,i){super();$e(this,"$$ctor");$e(this,"$$s");$e(this,"$$c");$e(this,"$$cn",!1);$e(this,"$$d",{});$e(this,"$$r",!1);$e(this,"$$p_d",{});$e(this,"$$l",{});$e(this,"$$l_u",new Map);$e(this,"$$me");this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(o){return l=>{const u=document.createElement("slot");o!=="default"&&(u.name=o),B(l,u)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=_o(this);for(const o of this.$$s)o in i&&(o==="default"&&!this.$$d.children?(this.$$d.children=t(o),n.default=!0):n[o]=t(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=_n(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=ho({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=Sl(()=>{Ln(()=>{var o;this.$$r=!0;for(const l of Jt(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const u=_n(l,this.$$d[l],this.$$p_d,"toAttribute");u==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,u)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const u=this.$$c.$on(o,l);this.$$l_u.set(l,u)}this.$$l={}}}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=_n(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Jt(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function _n(e,t,n,i){var l;const o=(l=n[e])==null?void 0:l.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){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(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function _o(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function mo(e,t,n,i,o,l){let u=class extends si{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Jt(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Jt(t).forEach(s=>{kt(u.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){var v;c=_n(s,c,t),this.$$d[s]=c;var d=this.$$c;if(d){var b=(v=Qe(d,s))==null?void 0:v.get;b?d[s]=c:d.$set({[s]:c})}}})}),i.forEach(s=>{kt(u.prototype,s,{get(){var c;return(c=this.$$c)==null?void 0:c[s]}})}),e.element=u,u}const ui=new TextEncoder;function bo(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function po(e,t="SHA-256",n=1e5){const i=Date.now().toString(16);e||(e=Math.round(Math.random()*n));const o=await fi(i,e,t);return{algorithm:t,challenge:o,salt:i,signature:""}}async function fi(e,t,n){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return bo(await crypto.subtle.digest(n.toUpperCase(),ui.encode(e+t)))}function yo(e,t,n="SHA-256",i=1e6,o=0){const l=new AbortController,u=Date.now();return{promise:(async()=>{for(let c=o;c<=i;c+=1){if(l.signal.aborted)return null;if(await fi(t,c,n)===e)return{number:c,took:Date.now()-u}}return null})(),controller:l}}function ci(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function wo(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Eo(e,t=12){const n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e%256,e=Math.floor(e/256);return n}async function Co(e,t="",n=1e6,i=0){const o="AES-GCM",l=new AbortController,u=Date.now(),s=async()=>{for(let b=i;b<=n;b+=1){if(l.signal.aborted||!c||!d)return null;try{const v=await crypto.subtle.decrypt({name:o,iv:Eo(b)},c,d);if(v)return{clearText:new TextDecoder().decode(v),took:Date.now()-u}}catch{}}return null};let c=null,d=null;try{d=wo(e);const b=await crypto.subtle.digest("SHA-256",ui.encode(t));c=await crypto.subtle.importKey("raw",b,o,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:l}}return{promise:s(),controller:l}}var E=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(E||{}),ee=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(ee||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>hn(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(hn(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(hn(globalThis.altchaI18n.store))},store:uo({})};const Ao={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:"Verifying... please wait."};globalThis.altchaI18n.set("en",Ao);const Yn=(e,t)=>{let n=Rl(()=>fl(t==null?void 0:t(),24));var i=$o();Se(()=>{N(i,"width",a(n)),N(i,"height",a(n))}),B(e,i)};function Io(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function Ro(e,t){e.preventDefault(),t()}function ko(e,t,n,i,o,l,u,s){var c;[E.UNVERIFIED,E.ERROR,E.EXPIRED,E.CODE].includes(a(t))?n()!==!1&&((c=a(i))==null?void 0:c.reportValidity())===!1?p(o,!1):l()?u():s():p(o,!0)}var $o=cn('<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>'),xo=Ae('<input type="hidden">'),So=Ae('<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>'),To=cn('<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>'),No=cn('<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>'),Do=cn('<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>'),Lo=Ae('<button type="button" class="altcha-code-challenge-audio"><!></button>'),Po=Ae("<audio hidden autoplay><source></audio>"),Oo=Ae('<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>'),Fo=Ae("<div><!></div>"),Vo=Ae("<div><!></div>"),Mo=Ae('<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>'),Uo=Ae('<div class="altcha-footer"><div><!></div></div>'),qo=Ae('<div class="altcha-anchor-arrow"></div>'),jo=Ae('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function di(e,t){var Ji,Ki;Yr(t,!0);const[n,i]=co(),o=()=>fo(Ho,"$altchaI18nStore",n);let l=k(t,"auto",7,void 0),u=k(t,"blockspam",7,void 0),s=k(t,"challengeurl",7,void 0),c=k(t,"challengejson",7,void 0),d=k(t,"credentials",7,void 0),b=k(t,"customfetch",7,void 0),v=k(t,"debug",7,!1),m=k(t,"delay",7,0),w=k(t,"disableautofocus",7,!1),D=k(t,"expire",7,void 0),C=k(t,"floating",7,void 0),j=k(t,"floatinganchor",7,void 0),_e=k(t,"floatingoffset",7,void 0),te=k(t,"floatingpersist",7,!1),ae=k(t,"hidefooter",7,!1),ne=k(t,"hidelogo",7,!1),bt=k(t,"id",7,void 0),H=k(t,"language",7,void 0),ce=k(t,"name",7,"altcha"),Ie=k(t,"maxnumber",7,1e6),Vt=k(t,"mockerror",7,!1),We=k(t,"obfuscated",7,void 0),Re=k(t,"overlay",7,void 0),Mt=k(t,"overlaycontent",7,void 0),mn=k(t,"plugins",7,void 0),Ut=k(t,"refetchonexpire",7,!0),ot=k(t,"sentinel",7,void 0),Le=k(t,"spamfilter",7,!1),pt=k(t,"strings",7,void 0),we=k(t,"test",7,!1),se=k(t,"verifyurl",7,void 0),yt=k(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),qt=k(t,"workerurl",7,void 0);const{altchaI18n:Bo}=globalThis,Ho=Bo.store,hi=["SHA-256","SHA-384","SHA-512"],Yo="https://altcha.org/",Je=(r,f)=>{t.$$host.dispatchEvent(new CustomEvent(r,{detail:f}))},gi=(Ki=(Ji=document.documentElement.lang)==null?void 0:Ji.split("-"))==null?void 0:Ki[0],Gn=St(()=>{var r;return s()&&new URL(s(),location.origin).host.endsWith(".altcha.org")&&!!((r=s())!=null&&r.includes("apiKey=ckey_"))}),Zn=St(()=>c()?Si(c()):void 0),Go=St(()=>pt()?Si(pt()):{}),U=St(()=>({...pi(o()),...a(Go)})),_i=St(()=>`${bt()||ce()}_checkbox_${Math.round(Math.random()*1e8)}`);let jt=M(!1),G=M(null),$=M(je(E.UNVERIFIED)),q=M(void 0),Bt=M(null),Ke=M(null),me=M(null),Wn=M(null),wt=M(null),O=M(null),Et=M(null),at=M(null),Pe=null,X=M(null),st=M(!1),ze=[],Jn=M(!1),Me=M(null);Nn(()=>{la(a(at))}),Nn(()=>{oa(a($))}),so(()=>{Zo(),p(Et,null),a(O)&&(a(O).removeEventListener("submit",Ii),a(O).removeEventListener("reset",Ri),a(O).removeEventListener("focusin",Ai),p(O,null)),Pe&&(clearTimeout(Pe),Pe=null),document.removeEventListener("click",Ei),document.removeEventListener("scroll",Ci),window.removeEventListener("resize",xi)}),li(()=>{var r;x("mounted","2.1.0"),x("workers",yt()),zo(),x("plugins",ze.length?ze.map(f=>f.constructor.pluginName).join(", "):"none"),we()&&x("using test mode"),D()&&zn(D()),l()!==void 0&&x("auto",l()),C()!==void 0&&Ni(C()),p(O,(r=a(q))==null?void 0:r.closest("form"),!0),a(O)&&(a(O).addEventListener("submit",Ii,{capture:!0}),a(O).addEventListener("reset",Ri),(l()==="onfocus"||te()==="focus")&&a(O).addEventListener("focusin",Ai)),Re()&&Di(!0),l()==="onload"&&(We()?Ht():Ue()),a(Gn)&&(ae()||ne())&&x("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{Je("load")})});function bn(r,f){return btoa(JSON.stringify({algorithm:r.algorithm,challenge:r.challenge,number:f.number,salt:r.salt,signature:r.signature,test:we()?!0:void 0,took:f.took}))}function Zo(){for(const r of ze)r.destroy()}function mi(){s()&&Ut()&&a($)===E.VERIFIED?Ue():ut(E.EXPIRED,a(U).expired)}async function Wo(){var r;if(Vt())throw x("mocking error"),new Error("Mocked error.");if(a(Zn))return x("using provided json data"),a(Zn);if(we())return x("generating test challenge",{test:we()}),po(typeof we()!="boolean"?+we():void 0);{if(!s()&&a(O)){const R=a(O).getAttribute("action");R!=null&&R.includes("/form/")&&s(R+"/altcha")}if(!s())throw new Error("Attribute challengeurl not set.");x("fetching challenge from",s());const f={credentials:typeof d()=="boolean"?"include":d(),headers:Le()!==!1?{"x-altcha-spam-filter":"1"}:{}},h=await bi()(s(),f);if(!h||!(h instanceof Response))throw new Error("Custom fetch function did not return a response.");if(h.status!==200)throw new Error(`Server responded with ${h.status}.`);const _=h.headers.get("X-Altcha-Config"),g=await h.json(),A=new URLSearchParams((r=g.salt.split("?"))==null?void 0:r[1]),y=A.get("expires")||A.get("expire");if(y){const R=new Date(+y*1e3),Y=isNaN(R.getTime())?0:R.getTime()-Date.now();Y>0&&zn(Y)}if(_)try{const R=JSON.parse(_);R&&typeof R=="object"&&(R.verifyurl&&!R.verifyurl.startsWith("fn:")&&(R.verifyurl=wi(R.verifyurl)),Oi(R))}catch(R){x("unable to configure from X-Altcha-Config",R)}return g}}function Jo(r){var h,_;const f=(h=a(O))==null?void 0:h.querySelector(typeof r=="string"?`input[name="${r}"]`:'input[type="email"]:not([data-no-spamfilter])');return((_=f==null?void 0:f.value)==null?void 0:_.slice(f.value.indexOf("@")))||void 0}function bi(){let r=fetch;if(b())if(x("using customfetch"),typeof b()=="string"){if(r=globalThis[b()]||null,!r)throw new Error(`Custom fetch function not found: ${b()}`)}else r=b();return r}function pi(r,f=[H()||"",document.documentElement.lang||"",...navigator.languages]){const h=Object.keys(r).map(g=>g.toLowerCase()),_=f.reduce((g,A)=>(A=A.toLowerCase(),g||(r[A]?A:null)||h.find(y=>A.split("-")[0]===y.split("-")[0])||null),null);return r[_||"en"]}function Ko(){return Le()==="ipAddress"?{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}:typeof Le()=="object"?Le():{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}}function yi(r){var h;return[...((h=a(O))==null?void 0:h.querySelectorAll(r!=null&&r.length?r.map(_=>`input[name="${_}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])'))||[]].reduce((_,g)=>{const A=g.name,y=g.value;return A&&y&&(_[A]=/\n/.test(y)?y.replace(new RegExp("(?<!\\r)\\n","g"),`\r
|
|
3
|
-
`):y),_},{})}function wi(r,f){const h=new URL(s()||location.origin),_=new URL(r,h);if(_.search||(_.search=h.search),f)for(const g in f)f[g]!==void 0&&f[g]!==null&&_.searchParams.set(g,f[g]);return _.toString()}function zo(){const r=mn()!==void 0?mn().split(","):void 0;for(const f of globalThis.altchaPlugins)(!r||r.includes(f.pluginName))&&ze.push(new f({el:a(q),clarify:Ht,dispatch:Je,getConfiguration:Fi,getFloatingAnchor:Vi,getState:Mi,log:x,reset:ut,solve:Pi,setState:Oe,setFloatingAnchor:Ui,verify:Ue}))}function x(...r){(v()||r.some(f=>f instanceof Error))&&console[r[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${ce()}]`,...r)}function Xo(){p(X,ee.PAUSED,!0)}function Qo(r){p(X,ee.ERROR,!0)}function ea(){p(X,ee.READY,!0)}function ta(){p(X,ee.LOADING,!0)}function na(){p(X,ee.PLAYING,!0)}function ra(){p(X,ee.PAUSED,!0)}function ia(r){var f;if(r.preventDefault(),r.stopPropagation(),a(G)){const h=new FormData(r.target),_=String(h.get("code"));if((f=se())!=null&&f.startsWith("fn:")){const g=se().replace(/^fn:/,"");if(x(`calling ${g} function instead of verifyurl`),!(g in globalThis))throw new Error(`Global function "${g}" is undefined.`);return globalThis[g]({challenge:a(G).challenge,code:_,solution:a(G).solution})}p(st,!0),Ti(bn(a(G).challenge,a(G).solution),_).then(({reason:g,verified:A})=>{A?(p(G,null),Oe(E.VERIFIED),x("verified"),Mn().then(()=>{var y;(y=a(Wn))==null||y.focus(),Je("verified",{payload:a(Me)}),l()==="onsubmit"?Kn(a(Et)):Re()&&Yt()})):(ut(),p(at,g||"Verification failed",!0))}).catch(g=>{p(G,null),Oe(E.ERROR,g),x("sentinel verification failed:",g)}).finally(()=>{p(st,!1)})}}function Ei(r){var h;const f=r.target;C()&&f&&!a(q).contains(f)&&(a($)===E.VERIFIED&&te()===!1||a($)===E.VERIFIED&&te()==="focus"&&!((h=a(O))!=null&&h.matches(":focus-within"))||l()==="off"&&a($)===E.UNVERIFIED)&&Yt()}function Ci(){C()&&a($)!==E.UNVERIFIED&&Gt()}function la(r){for(const f of ze)typeof f.onErrorChange=="function"&&f.onErrorChange(a(at))}function Ai(r){a($)===E.UNVERIFIED?Ue():C()&&te()==="focus"&&a($)===E.VERIFIED&&pn()}function Ii(r){var _;const f=r.target;f!=null&&f.hasAttribute("data-code-challenge-form")||(p(Et,r.submitter,!0),a(O)&&l()==="onsubmit"?((_=a(Et))==null||_.blur(),a($)===E.UNVERIFIED?(r.preventDefault(),r.stopPropagation(),Ue().then(()=>{Kn(a(Et))})):a($)!==E.VERIFIED&&(r.preventDefault(),r.stopPropagation(),a($)===E.VERIFYING&&ki())):a(O)&&C()&&l()==="off"&&a($)===E.UNVERIFIED&&(r.preventDefault(),r.stopPropagation(),pn()))}function Ri(){ut()}function ki(){a($)===E.VERIFYING&&a(U).waitAlert&&alert(a(U).waitAlert)}function $i(){a(Ke)?a(Ke).paused?(a(Ke).currentTime=0,a(Ke).play()):a(Ke).pause():(p(Jn,!0),requestAnimationFrame(()=>{var r;(r=a(Ke))==null||r.play()}))}function oa(r){for(const f of ze)typeof f.onStateChange=="function"&&f.onStateChange(a($));C()&&a($)!==E.UNVERIFIED&&requestAnimationFrame(()=>{Gt()}),p(jt,a($)===E.VERIFIED),Re()&&a(me)&&(a($)!==E.UNVERIFIED?pn():Yt())}function xi(){C()&&Gt()}function Si(r){return JSON.parse(r)}async function aa(r){if(!se())throw new Error("Attribute verifyurl not set.");x("requesting server verification from",se());const f={payload:r};if(Le()!==!1){const{blockedCountries:g,classifier:A,disableRules:y,email:R,expectedLanguages:Y,expectedCountries:re,fields:de,ipAddress:Xe,text:Qn,timeZone:En}=Ko();f.blockedCountries=g,f.classifier=A,f.disableRules=y,f.email=R===!1?void 0:Jo(R),f.expectedCountries=re,f.expectedLanguages=Y||(gi?[gi]:void 0),f.fields=de===!1?void 0:yi(de),f.ipAddress=Xe===!1?void 0:Xe||"auto",f.text=Qn,f.timeZone=En===!1?void 0:En||ci()}const h=await bi()(se(),{body:JSON.stringify(f),headers:{"content-type":"application/json"},method:"POST"});if(!h||!(h instanceof Response))throw new Error("Custom fetch function did not return a response.");if(h.status!==200)throw new Error(`Server responded with ${h.status}.`);const _=await h.json();if(_!=null&&_.payload&&p(Me,_.payload,!0),Je("serververification",_),u()&&_.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function Ti(r,f){if(!se())throw new Error("Attribute verifyurl not set.");x("requesting sentinel verification from",se());const h={code:f,payload:r};ot()&&(h.fields=ot().fields?yi():void 0,h.timeZone=ot().timeZone?ci():void 0);const _=await fetch(se(),{body:JSON.stringify(h),headers:{"content-type":"application/json"},method:"POST"});if(!_||!(_ instanceof Response))throw new Error("Fetch function did not return a response.");if(_.status!==200)throw new Error(`Server responded with ${_.status}.`);const g=await _.json();return g!=null&&g.payload&&p(Me,g.payload,!0),Je("sentinelverification",g),g}function Kn(r){var f;a(O)&&"requestSubmit"in a(O)?a(O).requestSubmit(r):(f=a(O))!=null&&f.reportValidity()&&(r?r.click():a(O).submit())}function zn(r){x("expire",r),Pe&&(clearTimeout(Pe),Pe=null),r<1?mi():Pe=setTimeout(mi,r)}function Ni(r){x("floating",r),C()!==r&&(a(q).style.left="",a(q).style.top=""),C(r===!0||r===""?"auto":r===!1||r==="false"?void 0:C()),C()?(l()||l("onsubmit"),document.addEventListener("scroll",Ci),document.addEventListener("click",Ei),window.addEventListener("resize",xi)):l()==="onsubmit"&&l(void 0)}function Di(r){var f,h;if(x("overlay",r),Re(r),r){if(l()||l("onsubmit"),a(me)&&a(q).parentElement&&a(me).replaceWith(a(q).parentElement),(h=(f=a(q))==null?void 0:f.parentElement)!=null&&h.parentElement){p(me,document.createElement("div"),!0),a(q).parentElement.parentElement.appendChild(a(me));const _=document.createElement("div"),g=document.createElement("button");g.type="button",g.innerHTML="×",g.addEventListener("click",A=>{A.preventDefault(),ut()}),a(me).classList.add("altcha-overlay-backdrop"),g.classList.add("altcha-overlay-close-button"),_.classList.add("altcha-overlay"),a(me).append(_),_.append(g),Mt()&&_.append(...document.querySelectorAll(Mt())),_.append(a(q).parentElement)}}else a(me)&&a(q).parentElement&&(a(me).replaceWith(a(q).parentElement),a(q).style.display="block")}function Li(r){if(!r.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(r.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!hi.includes(r.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${hi.join(", ")}`);if(!r.challenge||r.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!r.salt||r.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function Pi(r){let f=null;if("Worker"in window){try{f=await sa(r,r.maxNumber||r.maxnumber||Ie())}catch(h){x(h)}if((f==null?void 0:f.number)!==void 0||"obfuscated"in r)return{data:r,solution:f}}if("obfuscated"in r){const h=await Co(r.obfuscated,r.key,r.maxNumber||r.maxnumber);return{data:r,solution:await h.promise}}return{data:r,solution:await yo(r.challenge,r.salt,r.algorithm,r.maxNumber||r.maxnumber||Ie()).promise}}async function sa(r,f=typeof we()=="number"?we():r.maxNumber||r.maxnumber||Ie(),h=Math.ceil(yt())){const _=[];h=Math.min(16,f,Math.max(1,h));for(let y=0;y<h;y++)_.push(altchaCreateWorker(qt()));const g=Math.ceil(f/h),A=await Promise.all(_.map((y,R)=>{const Y=R*g;return new Promise(re=>{y.addEventListener("message",de=>{if(de.data)for(const Xe of _)Xe!==y&&Xe.postMessage({type:"abort"});re(de.data)}),y.postMessage({payload:r,max:Y+g,start:Y,type:"work"})})}));for(const y of _)y.terminate();return A.find(y=>!!y)||null}async function Ht(){if(!We()){Oe(E.ERROR);return}const r=ze.find(f=>f.constructor.pluginName==="obfuscation");if(!r||!("clarify"in r)){Oe(E.ERROR),x("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in r&&typeof r.clarify=="function")return r.clarify()}function Oi(r){r.obfuscated!==void 0&&We(r.obfuscated),r.auto!==void 0&&(l(r.auto),l()==="onload"&&(We()?Ht():Ue())),r.blockspam!==void 0&&u(!!r.blockspam),r.customfetch!==void 0&&b(r.customfetch),r.floatinganchor!==void 0&&j(r.floatinganchor),r.delay!==void 0&&m(r.delay),r.floatingoffset!==void 0&&_e(r.floatingoffset),r.floating!==void 0&&Ni(r.floating),r.expire!==void 0&&(zn(r.expire),D(r.expire)),r.challenge&&(c(typeof r.challenge=="string"?r.challenge:JSON.stringify(r.challenge)),Li(a(Zn))),r.challengeurl!==void 0&&s(r.challengeurl),r.debug!==void 0&&v(!!r.debug),r.hidefooter!==void 0&&ae(!!r.hidefooter),r.hidelogo!==void 0&&ne(!!r.hidelogo),r.language!==void 0&&pt(pi(o(),[r.language])),r.maxnumber!==void 0&&Ie(+r.maxnumber),r.mockerror!==void 0&&Vt(!!r.mockerror),r.name!==void 0&&ce(r.name),r.overlaycontent!==void 0&&Mt(r.overlaycontent),r.overlay!==void 0&&Di(r.overlay),r.refetchonexpire!==void 0&&Ut(!!r.refetchonexpire),r.sentinel!==void 0&&typeof r.sentinel=="object"&&ot(r.sentinel),r.spamfilter!==void 0&&Le(typeof r.spamfilter=="object"?r.spamfilter:!!r.spamfilter),r.strings&&pt(typeof r.strings=="string"?r.strings:JSON.stringify(r.strings)),r.test!==void 0&&we(typeof r.test=="number"?r.test:!!r.test),r.verifyurl!==void 0&&se(r.verifyurl),r.workers!==void 0&&yt(+r.workers),r.workerurl!==void 0&&qt(r.workerurl)}function Fi(){return{auto:l(),blockspam:u(),challengeurl:s(),debug:v(),delay:m(),expire:D(),floating:C(),floatinganchor:j(),floatingoffset:_e(),hidefooter:ae(),hidelogo:ne(),name:ce(),maxnumber:Ie(),mockerror:Vt(),obfuscated:We(),overlay:Re(),refetchonexpire:Ut(),spamfilter:Le(),strings:a(U),test:we(),verifyurl:se(),workers:yt(),workerurl:qt()}}function Vi(){return a(wt)}function ua(r){return ze.find(f=>f.constructor.pluginName===r)}function Mi(){return a($)}function Yt(){a(q).style.display="none",Re()&&a(me)&&(a(me).style.display="none")}function Gt(r=20){var f;if(a(q))if(a(wt)||p(wt,(j()?document.querySelector(j()):(f=a(O))==null?void 0:f.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||a(O),!0),a(wt)){const h=parseInt(_e(),10)||12,_=a(wt).getBoundingClientRect(),g=a(q).getBoundingClientRect(),A=document.documentElement.clientHeight,y=document.documentElement.clientWidth,R=C()==="auto"?_.bottom+g.height+h+r>A:C()==="top",Y=Math.max(r,Math.min(y-r-g.width,_.left+_.width/2-g.width/2));if(R?a(q).style.top=`${_.top-(g.height+h)}px`:a(q).style.top=`${_.bottom+h}px`,a(q).style.left=`${Y}px`,a(q).setAttribute("data-floating",R?"top":"bottom"),a(Bt)){const re=a(Bt).getBoundingClientRect();a(Bt).style.left=_.left-Y+_.width/2-re.width/2+"px"}}else x("unable to find floating anchor element")}function ut(r=E.UNVERIFIED,f=null){Pe&&(clearTimeout(Pe),Pe=null),p(jt,!1),p(Me,null),p(G,null),p(Jn,!1),p(X,null),Oe(r,f)}function Ui(r){p(wt,r,!0)}function Oe(r,f=null){p($,r,!0),p(at,f,!0),Je("statechange",{payload:a(Me),state:a($)})}function pn(){a(q).style.display="block",C()&&Gt(),Re()&&a(me)&&(a(me).style.display="flex")}async function Ue(){return ut(E.VERIFYING),await new Promise(r=>setTimeout(r,m()||0)),Wo().then(r=>(Li(r),x("challenge",r),Pi(r))).then(({data:r,solution:f})=>{var h;if(x("solution",f),!f||r&&"challenge"in r&&!("clearText"in f))if((f==null?void 0:f.number)!==void 0&&"challenge"in r)if(se()&&"codeChallenge"in r)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(((h=document.activeElement)==null?void 0:h.tagName)||"")&&w()===!1&&document.activeElement.blur(),p(G,{challenge:r,solution:f},!0);else{if(se()&&ot()!==void 0)return Ti(bn(r,f));if(se())return aa(bn(r,f));p(Me,bn(r,f),!0),x("payload",a(Me))}else throw x("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}).then(()=>{a(G)?(Oe(E.CODE),Mn().then(()=>{Je("code",{codeChallenge:a(G)})})):(Oe(E.VERIFIED),x("verified"),Mn().then(()=>{Je("verified",{payload:a(Me)}),l()==="onsubmit"?Kn(a(Et)):Re()&&Yt()}))}).catch(r=>{x(r),Oe(E.ERROR,r.message)})}var qi=jo(),ji=xt(qi);eo(ji,t,"default",{});var Ct=K(ji,2),Xn=J(Ct),yn=J(Xn);let Bi;var Hi=J(yn);{var fa=r=>{Yn(r)};z(Hi,r=>{a($)===E.VERIFYING&&r(fa)})}var ft=K(Hi,2);ti(ft),ft.__change=[ko,$,Le,O,jt,We,Ht,Ue],vn(ft,r=>p(Wn,r),()=>a(Wn)),W(yn);var wn=K(yn,2),ca=J(wn);{var da=r=>{var f=dn(),h=xt(f);lt(h,()=>a(U).verified),B(r,f)},va=(r,f)=>{{var h=g=>{var A=dn(),y=xt(A);lt(y,()=>a(U).verifying),B(g,A)},_=(g,A)=>{{var y=Y=>{var re=dn(),de=xt(re);lt(de,()=>a(U).verificationRequired),B(Y,re)},R=Y=>{var re=dn(),de=xt(re);lt(de,()=>a(U).label),B(Y,re)};z(g,Y=>{a($)===E.CODE?Y(y):Y(R,!1)},A)}};z(r,g=>{a($)===E.VERIFYING?g(h):g(_,!1)},f)}};z(ca,r=>{a($)===E.VERIFIED?r(da):r(va,!1)})}W(wn);var Yi=K(wn,2);{var ha=r=>{var f=xo();ti(f),Se(()=>{N(f,"name",ce()),lo(f,a(Me))}),B(r,f)};z(Yi,r=>{a($)===E.VERIFIED&&r(ha)})}var Gi=K(Yi,2);{var ga=r=>{var f=So(),h=J(f);N(h,"href",Yo),W(f),Se(()=>N(h,"aria-label",a(U).ariaLinkLabel)),B(r,f)};z(Gi,r=>{(ne()!==!0||a(Gn))&&r(ga)})}var _a=K(Gi,2);{var ma=r=>{var f=Oo(),h=K(J(f),2),_=J(h),g=K(_,2);Zl(g,!w()),g.__keydown=[Io,$i];var A=K(g,2),y=J(A),R=J(y);{var Y=ke=>{var Q=Lo();Q.__click=$i;var Cn=J(Q);{var Zt=At=>{Yn(At,()=>20)},Ia=(At,Ra)=>{{var ka=It=>{var er=To();B(It,er)},$a=(It,er)=>{{var xa=Rt=>{var tr=No();B(Rt,tr)},Sa=Rt=>{var tr=Do();B(Rt,tr)};z(It,Rt=>{a(X)===ee.PLAYING?Rt(xa):Rt(Sa,!1)},er)}};z(At,It=>{a(X)===ee.ERROR?It(ka):It($a,!1)},Ra)}};z(Cn,At=>{a(X)===ee.LOADING?At(Zt):At(Ia,!1)})}W(Q),Se(()=>{N(Q,"title",a(U).getAudioChallenge),Q.disabled=a(X)===ee.LOADING||a(X)===ee.ERROR||a(st),N(Q,"aria-label",a(X)===ee.LOADING?a(U).loading:a(U).getAudioChallenge)}),B(ke,Q)};z(R,ke=>{a(G).challenge.codeChallenge.audio&&ke(Y)})}var re=K(R,2);re.__click=[Ro,Ue],W(y);var de=K(y,2),Xe=J(de);{var Qn=ke=>{Yn(ke,()=>16)};z(Xe,ke=>{a(st)&&ke(Qn)})}var En=K(Xe);W(de),W(A);var Ca=K(A,2);{var Aa=ke=>{var Q=Po(),Cn=J(Q);W(Q),vn(Q,Zt=>p(Ke,Zt),()=>a(Ke)),Se(Zt=>N(Cn,"src",Zt),[()=>wi(a(G).challenge.codeChallenge.audio,{language:H()})]),Ze("loadstart",Q,ta),Ze("canplay",Q,ea),Ze("pause",Q,ra),Ze("playing",Q,na),Ze("ended",Q,Xo),Ze("error",Cn,Qo),B(ke,Q)};z(Ca,ke=>{a(G).challenge.codeChallenge.audio&&a(Jn)&&ke(Aa)})}W(h),W(f),Se(()=>{N(f,"aria-label",a(U).verificationRequired),N(_,"src",a(G).challenge.codeChallenge.image),N(g,"minlength",a(G).challenge.codeChallenge.length||1),N(g,"maxlength",a(G).challenge.codeChallenge.length),N(g,"placeholder",a(U).enterCode),N(g,"aria-label",a(X)===ee.LOADING?a(U).loading:a(X)===ee.PLAYING?"":a(U).enterCodeAria),N(g,"aria-live",a(X)?"assertive":"polite"),N(g,"aria-busy",a(X)===ee.LOADING),g.disabled=a(st),N(re,"aria-label",a(U).reload),N(re,"title",a(U).reload),re.disabled=a(st),de.disabled=a(st),N(de,"aria-label",a(U).verify),zl(En,` ${a(U).verify??""}`)}),Ze("submit",h,ia,!0),B(r,f)};z(_a,r=>{var f;(f=a(G))!=null&&f.challenge.codeChallenge&&r(ma)})}W(Xn);var Zi=K(Xn,2);{var ba=r=>{var f=Mo(),h=K(J(f),2);{var _=A=>{var y=Fo(),R=J(y);lt(R,()=>a(U).expired),W(y),Se(()=>N(y,"title",a(at))),B(A,y)},g=A=>{var y=Vo(),R=J(y);lt(R,()=>a(U).error),W(y),Se(()=>N(y,"title",a(at))),B(A,y)};z(h,A=>{a($)===E.EXPIRED?A(_):A(g,!1)})}W(f),B(r,f)};z(Zi,r=>{(a(at)||a($)===E.EXPIRED)&&r(ba)})}var Wi=K(Zi,2);{var pa=r=>{var f=Uo(),h=J(f),_=J(h);lt(_,()=>a(U).footer),W(h),W(f),B(r,f)};z(Wi,r=>{a(U).footer&&(ae()!==!0||a(Gn))&&r(pa)})}var ya=K(Wi,2);{var wa=r=>{var f=qo();vn(f,h=>p(Bt,h),()=>a(Bt)),B(r,f)};z(ya,r=>{C()&&r(wa)})}W(Ct),vn(Ct,r=>p(q,r),()=>a(q)),Se(r=>{N(Ct,"data-state",a($)),N(Ct,"data-floating",C()),N(Ct,"data-overlay",Re()),Bi=no(yn,1,"altcha-checkbox",null,Bi,r),N(ft,"id",a(_i)),ft.required=l()!=="onsubmit"&&(!C()||l()!=="off"),N(wn,"for",a(_i))},[()=>({"altcha-checkbox-verifying":a($)===E.VERIFYING})]),Ze("invalid",ft,ki),ao(ft,()=>a(jt),r=>p(jt,r)),B(e,qi);var Ea=Gr({clarify:Ht,configure:Oi,getConfiguration:Fi,getFloatingAnchor:Vi,getPlugin:ua,getState:Mi,hide:Yt,repositionFloating:Gt,reset:ut,setFloatingAnchor:Ui,setState:Oe,show:pn,verify:Ue,get auto(){return l()},set auto(r=void 0){l(r),I()},get blockspam(){return u()},set blockspam(r=void 0){u(r),I()},get challengeurl(){return s()},set challengeurl(r=void 0){s(r),I()},get challengejson(){return c()},set challengejson(r=void 0){c(r),I()},get credentials(){return d()},set credentials(r=void 0){d(r),I()},get customfetch(){return b()},set customfetch(r=void 0){b(r),I()},get debug(){return v()},set debug(r=!1){v(r),I()},get delay(){return m()},set delay(r=0){m(r),I()},get disableautofocus(){return w()},set disableautofocus(r=!1){w(r),I()},get expire(){return D()},set expire(r=void 0){D(r),I()},get floating(){return C()},set floating(r=void 0){C(r),I()},get floatinganchor(){return j()},set floatinganchor(r=void 0){j(r),I()},get floatingoffset(){return _e()},set floatingoffset(r=void 0){_e(r),I()},get floatingpersist(){return te()},set floatingpersist(r=!1){te(r),I()},get hidefooter(){return ae()},set hidefooter(r=!1){ae(r),I()},get hidelogo(){return ne()},set hidelogo(r=!1){ne(r),I()},get id(){return bt()},set id(r=void 0){bt(r),I()},get language(){return H()},set language(r=void 0){H(r),I()},get name(){return ce()},set name(r="altcha"){ce(r),I()},get maxnumber(){return Ie()},set maxnumber(r=1e6){Ie(r),I()},get mockerror(){return Vt()},set mockerror(r=!1){Vt(r),I()},get obfuscated(){return We()},set obfuscated(r=void 0){We(r),I()},get overlay(){return Re()},set overlay(r=void 0){Re(r),I()},get overlaycontent(){return Mt()},set overlaycontent(r=void 0){Mt(r),I()},get plugins(){return mn()},set plugins(r=void 0){mn(r),I()},get refetchonexpire(){return Ut()},set refetchonexpire(r=!0){Ut(r),I()},get sentinel(){return ot()},set sentinel(r=void 0){ot(r),I()},get spamfilter(){return Le()},set spamfilter(r=!1){Le(r),I()},get strings(){return pt()},set strings(r=void 0){pt(r),I()},get test(){return we()},set test(r=!1){we(r),I()},get verifyurl(){return se()},set verifyurl(r=void 0){se(r),I()},get workers(){return yt()},set workers(r=Math.min(16,navigator.hardwareConcurrency||8)){yt(r),I()},get workerurl(){return qt()},set workerurl(r=void 0){qt(r),I()}});return i(),Ea}Kl(["change","keydown","click"]),customElements.define("altcha-widget",mo(di,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{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",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:T&&T.tagName.toUpperCase()==="SCRIPT"&&T.src||new URL("altcha.umd.cjs",document.baseURI).href)),S.Altcha=di,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(x,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(x=typeof globalThis<"u"?globalThis:x||self,S(x.altcha={}))})(this,function(x){"use strict";var Da=Object.defineProperty;var Qi=x=>{throw TypeError(x)};var La=(x,S,Z)=>S in x?Da(x,S,{enumerable:!0,configurable:!0,writable:!0,value:Z}):x[S]=Z;var $e=(x,S,Z)=>La(x,typeof S!="symbol"?S+"":S,Z),el=(x,S,Z)=>S.has(x)||Qi("Cannot "+Z);var ve=(x,S,Z)=>(el(x,S,"read from private field"),Z?Z.call(x):S.get(x)),rr=(x,S,Z)=>S.has(x)?Qi("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(x):S.set(x,Z),ir=(x,S,Z,Xt)=>(el(x,S,"write to private field"),Xt?Xt.call(x,Z):S.set(x,Z),Z);var hi,Me,ye;var S=typeof document<"u"?document.currentScript:null;const Z="5";typeof window<"u"&&((hi=window.__svelte??(window.__svelte={})).v??(hi.v=new Set)).add(Z);const Xt=1,tl=4,nl=8,rl=16,il=1,ll=2,kn="[",lr="[!",or="]",vt={},ue=Symbol(),ol="http://www.w3.org/1999/xhtml",ar=!1;function sr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var ur=Array.isArray,al=Array.prototype.indexOf,sl=Array.from,zt=Object.keys,St=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,ul=Object.getOwnPropertyDescriptors,fl=Object.prototype,cl=Array.prototype,fr=Object.getPrototypeOf,cr=Object.isExtensible;const ht=()=>{};function dr(e){for(var t=0;t<e.length;t++)e[t]()}function dl(e,t,n=!1){return e===void 0?n?t():t:e}const Ee=2,vr=4,Qt=8,$n=16,Ve=32,Qe=64,en=128,he=256,tn=512,fe=1024,xe=2048,et=4096,gt=8192,nn=16384,vl=32768,xn=65536,hl=1<<19,hr=1<<20,Sn=1<<21,Tt=Symbol("$state"),gr=Symbol("legacy props"),gl=Symbol("");function _l(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ml(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function bl(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pl(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yl(){throw new Error("https://svelte.dev/e/hydration_failed")}function wl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function El(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Al(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let F=!1;function _t(e){F=e}let V;function qe(e){if(e===null)throw rn(),vt;return V=e}function mt(){return qe(Be(V))}function W(e){if(F){if(Be(V)!==null)throw rn(),vt;V=e}}function Il(){for(var e=0,t=V;;){if(t.nodeType===8){var n=t.data;if(n===or){if(e===0)return t;e-=1}else(n===kn||n===lr)&&(e+=1)}var i=Be(t);t.remove(),t=i}}let Rl=!1;function je(e){if(typeof e!="object"||e===null||Tt in e)return e;const t=fr(e);if(t!==fl&&t!==cl)return e;var n=new Map,i=ur(e),a=P(0),l=D,f=s=>{var c=D;Ne(l);var d=s();return Ne(c),d};return i&&n.set("length",P(e.length)),new Proxy(e,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&El();var b=n.get(c);return b===void 0?(b=f(()=>P(d.value)),n.set(c,b)):p(b,f(()=>je(d.value))),!0},deleteProperty(s,c){var d=n.get(c);if(d===void 0)c in s&&(n.set(c,f(()=>P(ue))),Tn(a));else{if(i&&typeof c=="string"){var b=n.get("length"),h=Number(c);Number.isInteger(h)&&h<b.v&&p(b,h)}p(d,ue),Tn(a)}return!0},get(s,c,d){var y;if(c===Tt)return e;var b=n.get(c),h=c in s;if(b===void 0&&(!h||(y=ze(s,c))!=null&&y.writable)&&(b=f(()=>P(je(h?s[c]:ue))),n.set(c,b)),b!==void 0){var m=o(b);return m===ue?void 0:m}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var b=n.get(c);b&&(d.value=o(b))}else if(d===void 0){var h=n.get(c),m=h==null?void 0:h.v;if(h!==void 0&&m!==ue)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return d},has(s,c){var m;if(c===Tt)return!0;var d=n.get(c),b=d!==void 0&&d.v!==ue||Reflect.has(s,c);if(d!==void 0||L!==null&&(!b||(m=ze(s,c))!=null&&m.writable)){d===void 0&&(d=f(()=>P(b?je(s[c]):ue)),n.set(c,d));var h=o(d);if(h===ue)return!1}return b},set(s,c,d,b){var te;var h=n.get(c),m=c in s;if(i&&c==="length")for(var y=d;y<h.v;y+=1){var N=n.get(y+"");N!==void 0?p(N,ue):y in s&&(N=f(()=>P(ue)),n.set(y+"",N))}h===void 0?(!m||(te=ze(s,c))!=null&&te.writable)&&(h=f(()=>P(void 0)),p(h,f(()=>je(d))),n.set(c,h)):(m=h.v!==ue,p(h,f(()=>je(d))));var E=Reflect.getOwnPropertyDescriptor(s,c);if(E!=null&&E.set&&E.set.call(b,d),!m){if(i&&typeof c=="string"){var j=n.get("length"),_e=Number(c);Number.isInteger(_e)&&_e>=j.v&&p(j,_e+1)}Tn(a)}return!0},ownKeys(s){o(a);var c=Reflect.ownKeys(s).filter(h=>{var m=n.get(h);return m===void 0||m.v!==ue});for(var[d,b]of n)b.v!==ue&&!(d in s)&&c.push(d);return c},setPrototypeOf(){Cl()}})}function Tn(e,t=1){p(e,e.v+t)}var _r,mr,br,pr;function Nn(){if(_r===void 0){_r=window,mr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;br=ze(t,"firstChild").get,pr=ze(t,"nextSibling").get,cr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),cr(n)&&(n.__t=void 0)}}function ln(e=""){return document.createTextNode(e)}function be(e){return br.call(e)}function Be(e){return pr.call(e)}function J(e,t){if(!F)return be(e);var n=be(V);return n===null&&(n=V.appendChild(ln())),qe(n),n}function Nt(e,t){if(!F){var n=be(e);return n instanceof Comment&&n.data===""?Be(n):n}return V}function K(e,t=1,n=!1){let i=F?V:e;for(var a;t--;)a=i,i=Be(i);if(!F)return i;var l=i==null?void 0:i.nodeType;if(n&&l!==3){var f=ln();return i===null?a==null||a.after(f):i.before(f),qe(f),f}return qe(i),i}function kl(e){e.textContent=""}function yr(e){return e===this.v}function wr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Dn(e){return!wr(e,this.v)}function on(e){var t=Ee|xe,n=D!==null&&(D.f&Ee)!==0?D:null;return L===null||n!==null&&(n.f&he)!==0?t|=he:L.f|=hr,{ctx:oe,deps:null,effects:null,equals:yr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??L}}function Dt(e){const t=on(e);return Or(t),t}function $l(e){const t=on(e);return t.equals=Dn,t}function Er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)He(t[n])}}function xl(e){for(var t=e.parent;t!==null;){if((t.f&Ee)===0)return t;t=t.parent}return null}function Cr(e){var t,n=L;Ye(xl(e));try{Er(e),t=qr(e)}finally{Ye(n)}return t}function Ar(e){var t=Cr(e),n=(Ge||(e.f&he)!==0)&&e.deps!==null?et:fe;Ce(e,n),e.equals(t)||(e.v=t,e.wv=Vr())}function Sl(e){L===null&&D===null&&bl(),D!==null&&(D.f&he)!==0&&L===null&&ml(),Ot&&_l()}function Tl(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function tt(e,t,n,i=!0){var a=L,l={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|xe,first:null,fn:t,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(n)try{qn(l),l.f|=vl}catch(c){throw He(l),c}else t!==null&&vn(l);var f=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(hr|en))===0;if(!f&&i&&(a!==null&&Tl(l,a),D!==null&&(D.f&Ee)!==0)){var s=D;(s.effects??(s.effects=[])).push(l)}return l}function Ln(e){const t=tt(Qt,null,!1);return Ce(t,fe),t.teardown=e,t}function Pn(e){Sl();var t=L!==null&&(L.f&Ve)!==0&&oe!==null&&!oe.m;if(t){var n=oe;(n.e??(n.e=[])).push({fn:e,effect:L,reaction:D})}else{var i=On(e);return i}}function Nl(e){const t=tt(Qe,e,!0);return()=>{He(t)}}function Dl(e){const t=tt(Qe,e,!0);return(n={})=>new Promise(i=>{n.outro?Mn(t,()=>{He(t),i(void 0)}):(He(t),i(void 0))})}function On(e){return tt(vr,e,!1)}function Fn(e){return tt(Qt,e,!0)}function Se(e,t=[],n=on){const i=t.map(n);return Ir(()=>e(...i.map(o)))}function Ir(e,t=0){return tt(Qt|$n|t,e,!0)}function Vn(e,t=!0){return tt(Qt|Ve,e,!0,t)}function Rr(e){var t=e.teardown;if(t!==null){const n=Ot,i=D;Pr(!0),Ne(null);try{t.call(null)}finally{Pr(n),Ne(i)}}}function kr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;(n.f&Qe)!==0?n.parent=null:He(n,t),n=i}}function Ll(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Ve)===0&&He(t),t=n}}function He(e,t=!0){var n=!1;(t||(e.f&hl)!==0)&&e.nodes_start!==null&&($r(e.nodes_start,e.nodes_end),n=!0),kr(e,t&&!n),dn(e,0),Ce(e,nn);var i=e.transitions;if(i!==null)for(const l of i)l.stop();Rr(e);var a=e.parent;a!==null&&a.first!==null&&xr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function $r(e,t){for(;e!==null;){var n=e===t?null:Be(e);e.remove(),e=n}}function xr(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function Mn(e,t){var n=[];Sr(e,n,!0),Pl(n,()=>{He(e),t&&t()})}function Pl(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var a of e)a.out(i)}else t()}function Sr(e,t,n){if((e.f>)===0){if(e.f^=gt,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var i=e.first;i!==null;){var a=i.next,l=(i.f&xn)!==0||(i.f&Ve)!==0;Sr(i,t,l?n:!1),i=a}}}function Tr(e){Nr(e,!0)}function Nr(e,t){if((e.f>)!==0){e.f^=gt,(e.f&fe)===0&&(e.f^=fe),Vt(e)&&(Ce(e,xe),vn(e));for(var n=e.first;n!==null;){var i=n.next,a=(n.f&xn)!==0||(n.f&Ve)!==0;Nr(n,a?t:!1),n=i}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}const Ol=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let Lt=[],Pt=[];function Dr(){var e=Lt;Lt=[],dr(e)}function Lr(){var e=Pt;Pt=[],dr(e)}function Un(e){Lt.length===0&&queueMicrotask(Dr),Lt.push(e)}function Fl(e){Pt.length===0&&Ol(Lr),Pt.push(e)}function Vl(){Lt.length>0&&Dr(),Pt.length>0&&Lr()}let an=!1,sn=!1,un=null,nt=!1,Ot=!1;function Pr(e){Ot=e}let Ft=[],Pa=[],D=null,Te=!1;function Ne(e){D=e}let L=null;function Ye(e){L=e}let ie=null;function Or(e){D!==null&&D.f&Sn&&(ie===null?ie=[e]:ie.push(e))}let le=null,ge=0,pe=null;function Ml(e){pe=e}let Fr=1,fn=0,Ge=!1;function Vr(){return++Fr}function Vt(e){var h;var t=e.f;if((t&xe)!==0)return!0;if((t&et)!==0){var n=e.deps,i=(t&he)!==0;if(n!==null){var a,l,f=(t&tn)!==0,s=i&&L!==null&&!Ge,c=n.length;if(f||s){var d=e,b=d.parent;for(a=0;a<c;a++)l=n[a],(f||!((h=l==null?void 0:l.reactions)!=null&&h.includes(d)))&&(l.reactions??(l.reactions=[])).push(d);f&&(d.f^=tn),s&&b!==null&&(b.f&he)===0&&(d.f^=he)}for(a=0;a<c;a++)if(l=n[a],Vt(l)&&Ar(l),l.wv>e.wv)return!0}(!i||L!==null&&!Ge)&&Ce(e,fe)}return!1}function Ul(e,t){for(var n=t;n!==null;){if((n.f&en)!==0)try{n.fn(e);return}catch{n.f^=en}n=n.parent}throw an=!1,e}function Mr(e){return(e.f&nn)===0&&(e.parent===null||(e.parent.f&en)===0)}function cn(e,t,n,i){if(an){if(n===null&&(an=!1),Mr(t))throw e;return}if(n!==null&&(an=!0),Ul(e,t),Mr(t))throw e}function Ur(e,t,n=!0){var i=e.reactions;if(i!==null)for(var a=0;a<i.length;a++){var l=i[a];ie!=null&&ie.includes(e)||((l.f&Ee)!==0?Ur(l,t,!1):t===l&&(n?Ce(l,xe):(l.f&fe)!==0&&Ce(l,et),vn(l)))}}function qr(e){var y;var t=le,n=ge,i=pe,a=D,l=Ge,f=ie,s=oe,c=Te,d=e.f;le=null,ge=0,pe=null,Ge=(d&he)!==0&&(Te||!nt||D===null),D=(d&(Ve|Qe))===0?e:null,ie=null,Yr(e.ctx),Te=!1,fn++,e.f|=Sn;try{var b=(0,e.fn)(),h=e.deps;if(le!==null){var m;if(dn(e,ge),h!==null&&ge>0)for(h.length=ge+le.length,m=0;m<le.length;m++)h[ge+m]=le[m];else e.deps=h=le;if(!Ge)for(m=ge;m<h.length;m++)((y=h[m]).reactions??(y.reactions=[])).push(e)}else h!==null&&ge<h.length&&(dn(e,ge),h.length=ge);if(Wr()&&pe!==null&&!Te&&h!==null&&(e.f&(Ee|et|xe))===0)for(m=0;m<pe.length;m++)Ur(pe[m],e);return a!==null&&a!==e&&(fn++,pe!==null&&(i===null?i=pe:i.push(...pe))),b}finally{le=t,ge=n,pe=i,D=a,Ge=l,ie=f,Yr(s),Te=c,e.f^=Sn}}function ql(e,t){let n=t.reactions;if(n!==null){var i=al.call(n,e);if(i!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[i]=n[a],n.pop())}}n===null&&(t.f&Ee)!==0&&(le===null||!le.includes(t))&&(Ce(t,et),(t.f&(he|tn))===0&&(t.f^=tn),Er(t),dn(t,0))}function dn(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)ql(e,n[i])}function qn(e){var t=e.f;if((t&nn)===0){Ce(e,fe);var n=L,i=oe,a=nt;L=e,nt=!0;try{(t&$n)!==0?Ll(e):kr(e),Rr(e);var l=qr(e);e.teardown=typeof l=="function"?l:null,e.wv=Fr;var f=e.deps,s;ar&&Rl&&e.f&xe}catch(c){cn(c,e,n,i||e.ctx)}finally{nt=a,L=n}}}function jl(){try{pl()}catch(e){if(un!==null)cn(e,un,null);else throw e}}function jr(){var e=nt;try{var t=0;for(nt=!0;Ft.length>0;){t++>1e3&&jl();var n=Ft,i=n.length;Ft=[];for(var a=0;a<i;a++){var l=Hl(n[a]);Bl(l)}Mt.clear()}}finally{sn=!1,nt=e,un=null}}function Bl(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if((i.f&(nn|gt))===0)try{Vt(i)&&(qn(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?xr(i):i.fn=null))}catch(a){cn(a,i,null,i.ctx)}}}function vn(e){sn||(sn=!0,queueMicrotask(jr));for(var t=un=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(Qe|Ve))!==0){if((n&fe)===0)return;t.f^=fe}}Ft.push(t)}function Hl(e){for(var t=[],n=e;n!==null;){var i=n.f,a=(i&(Ve|Qe))!==0,l=a&&(i&fe)!==0;if(!l&&(i>)===0){if((i&vr)!==0)t.push(n);else if(a)n.f^=fe;else try{Vt(n)&&qn(n)}catch(c){cn(c,n,null,n.ctx)}var f=n.first;if(f!==null){n=f;continue}}var s=n.parent;for(n=n.next;n===null&&s!==null;)n=s.next,s=s.parent}return t}function A(e){for(var t;;){if(Vl(),Ft.length===0)return t;sn=!0,jr()}}async function jn(){await Promise.resolve(),A()}function o(e){var t=e.f,n=(t&Ee)!==0;if(D!==null&&!Te){if(!(ie!=null&&ie.includes(e))){var i=D.deps;e.rv<fn&&(e.rv=fn,le===null&&i!==null&&i[ge]===e?ge++:le===null?le=[e]:(!Ge||!le.includes(e))&&le.push(e))}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&he)===0&&(a.f^=he)}return n&&(a=e,Vt(a)&&Ar(a)),Ot&&Mt.has(e)?Mt.get(e):e.v}function rt(e){var t=Te;try{return Te=!0,e()}finally{Te=t}}const Yl=-7169;function Ce(e,t){e.f=e.f&Yl|t}const Mt=new Map;function Br(e,t){var n={f:0,v:e,reactions:null,equals:yr,rv:0,wv:0};return n}function P(e,t){const n=Br(e);return Or(n),n}function Bn(e,t=!1){const n=Br(e);return t||(n.equals=Dn),n}function p(e,t,n=!1){D!==null&&!Te&&Wr()&&(D.f&(Ee|$n))!==0&&!(ie!=null&&ie.includes(e))&&Al();let i=n?je(t):t;return Gl(e,i)}function Gl(e,t){if(!e.equals(t)){var n=e.v;Ot?Mt.set(e,t):Mt.set(e,n),e.v=t,(e.f&Ee)!==0&&((e.f&xe)!==0&&Cr(e),Ce(e,(e.f&he)===0?fe:et)),e.wv=Vr(),Hr(e,xe),L!==null&&(L.f&fe)!==0&&(L.f&(Ve|Qe))===0&&(pe===null?Ml([e]):pe.push(e))}return t}function Hr(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var l=n[a],f=l.f;(f&xe)===0&&(Ce(l,t),(f&(fe|he))!==0&&((f&Ee)!==0?Hr(l,et):vn(l)))}}let oe=null;function Yr(e){oe=e}function Gr(e,t=!1,n){var i=oe={p:oe,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Ln(()=>{i.d=!0})}function Zr(e){const t=oe;if(t!==null){e!==void 0&&(t.x=e);const f=t.e;if(f!==null){var n=L,i=D;t.e=null;try{for(var a=0;a<f.length;a++){var l=f[a];Ye(l.effect),Ne(l.reaction),On(l.fn)}}finally{Ye(n),Ne(i)}}oe=t.p,t.m=!0}return e||{}}function Wr(){return!0}const Zl=["touchstart","touchmove"];function Wl(e){return Zl.includes(e)}function Jl(e,t){if(t){const n=document.body;e.autofocus=!0,Un(()=>{document.activeElement===n&&e.focus()})}}let Jr=!1;function Kr(){Jr||(Jr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Xr(e){var t=D,n=L;Ne(null),Ye(null);try{return e()}finally{Ne(t),Ye(n)}}function Kl(e,t,n,i=n){e.addEventListener(t,()=>Xr(n));const a=e.__on_r;a?e.__on_r=()=>{a(),i(!0)}:e.__on_r=()=>i(!0),Kr()}const zr=new Set,Hn=new Set;function Xl(e,t,n,i={}){function a(l){if(i.capture||Ut.call(t,l),!l.cancelBubble)return Xr(()=>n==null?void 0:n.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Un(()=>{t.addEventListener(e,a,i)}):t.addEventListener(e,a,i),a}function Ze(e,t,n,i,a){var l={capture:i,passive:a},f=Xl(e,t,n,l);(t===document.body||t===window||t===document)&&Ln(()=>{t.removeEventListener(e,f,l)})}function zl(e){for(var t=0;t<e.length;t++)zr.add(e[t]);for(var n of Hn)n(e)}function Ut(e){var te;var t=this,n=t.ownerDocument,i=e.type,a=((te=e.composedPath)==null?void 0:te.call(e))||[],l=a[0]||e.target,f=0,s=e.__root;if(s){var c=a.indexOf(s);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var d=a.indexOf(t);if(d===-1)return;c<=d&&(f=c)}if(l=a[f]||e.target,l!==t){St(e,"currentTarget",{configurable:!0,get(){return l||n}});var b=D,h=L;Ne(null),Ye(null);try{for(var m,y=[];l!==null;){var N=l.assignedSlot||l.parentNode||l.host||null;try{var E=l["__"+i];if(E!=null&&(!l.disabled||e.target===l))if(ur(E)){var[j,..._e]=E;j.apply(l,[e,..._e])}else E.call(l,e)}catch(ae){m?y.push(ae):m=ae}if(e.cancelBubble||N===t||N===null)break;l=N}if(m){for(let ae of y)queueMicrotask(()=>{throw ae});throw m}}finally{e.__root=t,delete e.currentTarget,Ne(b),Ye(h)}}}function Yn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function De(e,t){var n=L;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ae(e,t){var n=(t&il)!==0,i=(t&ll)!==0,a,l=!e.startsWith("<!>");return()=>{if(F)return De(V,null),V;a===void 0&&(a=Yn(l?e:"<!>"+e),n||(a=be(a)));var f=i||mr?document.importNode(a,!0):a.cloneNode(!0);if(n){var s=be(f),c=f.lastChild;De(s,c)}else De(f,f);return f}}function hn(e,t,n="svg"){var i=!e.startsWith("<!>"),a=`<${n}>${i?e:"<!>"+e}</${n}>`,l;return()=>{if(F)return De(V,null),V;if(!l){var f=Yn(a),s=be(f);l=be(s)}var c=l.cloneNode(!0);return De(c,c),c}}function gn(){if(F)return De(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),n=ln();return e.append(t,n),De(t,n),e}function B(e,t){if(F){L.nodes_end=V,mt();return}e!==null&&e.before(t)}function Ql(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Qr(e,t){return ei(e,t)}function eo(e,t){Nn(),t.intro=t.intro??!1;const n=t.target,i=F,a=V;try{for(var l=be(n);l&&(l.nodeType!==8||l.data!==kn);)l=Be(l);if(!l)throw vt;_t(!0),qe(l),mt();const f=ei(e,{...t,anchor:l});if(V===null||V.nodeType!==8||V.data!==or)throw rn(),vt;return _t(!1),f}catch(f){if(f===vt)return t.recover===!1&&yl(),Nn(),kl(n),_t(!1),Qr(e,t);throw f}finally{_t(i),qe(a)}}const bt=new Map;function ei(e,{target:t,anchor:n,props:i={},events:a,context:l,intro:f=!0}){Nn();var s=new Set,c=h=>{for(var m=0;m<h.length;m++){var y=h[m];if(!s.has(y)){s.add(y);var N=Wl(y);t.addEventListener(y,Ut,{passive:N});var E=bt.get(y);E===void 0?(document.addEventListener(y,Ut,{passive:N}),bt.set(y,1)):bt.set(y,E+1)}}};c(sl(zr)),Hn.add(c);var d=void 0,b=Dl(()=>{var h=n??t.appendChild(ln());return Vn(()=>{if(l){Gr({});var m=oe;m.c=l}a&&(i.$$events=a),F&&De(h,null),d=e(h,i)||{},F&&(L.nodes_end=V),l&&Zr()}),()=>{var N;for(var m of s){t.removeEventListener(m,Ut);var y=bt.get(m);--y===0?(document.removeEventListener(m,Ut),bt.delete(m)):bt.set(m,y)}Hn.delete(c),h!==n&&((N=h.parentNode)==null||N.removeChild(h))}});return Gn.set(d,b),d}let Gn=new WeakMap;function to(e,t){const n=Gn.get(e);return n?(Gn.delete(e),n(t)):Promise.resolve()}function X(e,t,[n,i]=[0,0]){F&&n===0&&mt();var a=e,l=null,f=null,s=ue,c=n>0?xn:0,d=!1;const b=(m,y=!0)=>{d=!0,h(y,m)},h=(m,y)=>{if(s===(s=m))return;let N=!1;if(F&&i!==-1){if(n===0){const j=a.data;j===kn?i=0:j===lr?i=1/0:(i=parseInt(j.substring(1)),i!==i&&(i=s?1/0:-1))}const E=i>n;!!s===E&&(a=Il(),qe(a),_t(!1),N=!0,i=-1)}s?(l?Tr(l):y&&(l=Vn(()=>y(a))),f&&Mn(f,()=>{f=null})):(f?Tr(f):y&&(f=Vn(()=>y(a,[n+1,i]))),l&&Mn(l,()=>{l=null})),N&&_t(!0)};Ir(()=>{d=!1,t(b),d||h(null,null)},c),F&&(a=V)}function it(e,t,n=!1,i=!1,a=!1){var l=e,f="";Se(()=>{var s=L;if(f===(f=t()??"")){F&&mt();return}if(s.nodes_start!==null&&($r(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),f!==""){if(F){V.data;for(var c=mt(),d=c;c!==null&&(c.nodeType!==8||c.data!=="");)d=c,c=Be(c);if(c===null)throw rn(),vt;De(V,d),l=qe(c);return}var b=f+"";n?b=`<svg>${b}</svg>`:i&&(b=`<math>${b}</math>`);var h=Yn(b);if((n||i)&&(h=be(h)),De(be(h),h.lastChild),n||i)for(;be(h);)l.before(be(h));else l.before(h)}})}function no(e,t,n,i,a){var s;F&&mt();var l=(s=t.$$slots)==null?void 0:s[n],f=!1;l===!0&&(l=t.children,f=!0),l===void 0||l(e,f?()=>i:i)}const ti=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function ro(e,t,n){var i=""+e;if(n){for(var a in n)if(n[a])i=i?i+" "+a:a;else if(i.length)for(var l=a.length,f=0;(f=i.indexOf(a,f))>=0;){var s=f+l;(f===0||ti.includes(i[f-1]))&&(s===i.length||ti.includes(i[s]))?i=(f===0?"":i.substring(0,f))+i.substring(s+1):f=s}}return i===""?null:i}function io(e,t,n,i,a,l){var f=e.__className;if(F||f!==n||f===void 0){var s=ro(n,i,l);(!F||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):e.className=s),e.__className=n}else if(l&&a!==l)for(var c in l){var d=!!l[c];(a==null||d!==!!a[c])&&e.classList.toggle(c,d)}return l}const lo=Symbol("is custom element"),oo=Symbol("is html");function ni(e){if(F){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;T(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var a=e.checked;T(e,"checked",null),e.checked=a}}};e.__on_r=n,Fl(n),Kr()}}function ao(e,t){var n=ri(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function T(e,t,n,i){var a=ri(e);F&&(a[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||a[t]!==(a[t]=n)&&(t==="loading"&&(e[gl]=n),n==null?e.removeAttribute(t):typeof n!="string"&&so(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ri(e){return e.__attributes??(e.__attributes={[lo]:e.nodeName.includes("-"),[oo]:e.namespaceURI===ol})}var ii=new Map;function so(e){var t=ii.get(e.nodeName);if(t)return t;ii.set(e.nodeName,t=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=ul(i);for(var l in n)n[l].set&&t.push(l);i=fr(i)}return t}function uo(e,t,n=t){Kl(e,"change",i=>{var a=i?e.defaultChecked:e.checked;n(a)}),(F&&e.defaultChecked!==e.checked||rt(t)==null)&&n(e.checked),Fn(()=>{var i=t();e.checked=!!i})}function li(e,t){return e===t||(e==null?void 0:e[Tt])===t}function _n(e={},t,n,i){return On(()=>{var a,l;return Fn(()=>{a=l,l=[],rt(()=>{e!==n(...l)&&(t(e,...l),a&&li(n(...a),e)&&t(null,...a))})}),()=>{Un(()=>{l&&li(n(...l),e)&&t(null,...l)})}}),e}function oi(e){oe===null&&sr(),Pn(()=>{const t=rt(e);if(typeof t=="function")return t})}function fo(e){oe===null&&sr(),oi(()=>()=>rt(e))}function ai(e,t,n){if(e==null)return t(void 0),ht;const i=rt(()=>e.subscribe(t,n));return i.unsubscribe?()=>i.unsubscribe():i}const pt=[];function co(e,t=ht){let n=null;const i=new Set;function a(s){if(wr(e,s)&&(e=s,n)){const c=!pt.length;for(const d of i)d[1](),pt.push(d,e);if(c){for(let d=0;d<pt.length;d+=2)pt[d][0](pt[d+1]);pt.length=0}}}function l(s){a(s(e))}function f(s,c=ht){const d=[s,c];return i.add(d),i.size===1&&(n=t(a,l)||ht),s(e),()=>{i.delete(d),i.size===0&&n&&(n(),n=null)}}return{set:a,update:l,subscribe:f}}function mn(e){let t;return ai(e,n=>t=n)(),t}let bn=!1,Zn=Symbol();function vo(e,t,n){const i=n[t]??(n[t]={store:null,source:Bn(void 0),unsubscribe:ht});if(i.store!==e&&!(Zn in n))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=ht;else{var a=!0;i.unsubscribe=ai(e,l=>{a?i.source.v=l:p(i.source,l)}),a=!1}return e&&Zn in n?mn(e):o(i.source)}function ho(){const e={};function t(){Ln(()=>{for(var n in e)e[n].unsubscribe();St(e,Zn,{enumerable:!1,value:!0})})}return[e,t]}function go(e){var t=bn;try{return bn=!1,[e(),bn]}finally{bn=t}}function si(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function I(e,t,n,i){var yt;var a=(n&Xt)!==0,l=!0,f=(n&nl)!==0,s=(n&rl)!==0,c=!1,d;f?[d,c]=go(()=>e[t]):d=e[t];var b=Tt in e||gr in e,h=f&&(((yt=ze(e,t))==null?void 0:yt.set)??(b&&t in e&&(H=>e[t]=H)))||void 0,m=i,y=!0,N=!1,E=()=>(N=!0,y&&(y=!1,s?m=rt(i):m=i),m);d===void 0&&i!==void 0&&(h&&l&&wl(),d=E(),h&&h(d));var j;if(j=()=>{var H=e[t];return H===void 0?E():(y=!0,N=!1,H)},(n&tl)===0)return j;if(h){var _e=e.$$legacy;return function(H,ce){return arguments.length>0?((!ce||_e||c)&&h(ce?j():H),H):j()}}var te=!1,ae=Bn(d),ne=on(()=>{var H=j(),ce=o(ae);return te?(te=!1,ce):ae.v=H});return f&&o(ne),a||(ne.equals=Dn),function(H,ce){if(arguments.length>0){const Ie=ce?o(ne):f?je(H):H;if(!ne.equals(Ie)){if(te=!0,p(ae,Ie),N&&m!==void 0&&(m=Ie),si(ne))return H;rt(()=>o(ne))}return H}return si(ne)?ne.v:o(ne)}}function _o(e){return new mo(e)}class mo{constructor(t){rr(this,Me);rr(this,ye);var l;var n=new Map,i=(f,s)=>{var c=Bn(s);return n.set(f,c),c};const a=new Proxy({...t.props||{},$$events:{}},{get(f,s){return o(n.get(s)??i(s,Reflect.get(f,s)))},has(f,s){return s===gr?!0:(o(n.get(s)??i(s,Reflect.get(f,s))),Reflect.has(f,s))},set(f,s,c){return p(n.get(s)??i(s,c),c),Reflect.set(f,s,c)}});ir(this,ye,(t.hydrate?eo:Qr)(t.component,{target:t.target,anchor:t.anchor,props:a,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&A(),ir(this,Me,a.$$events);for(const f of Object.keys(ve(this,ye)))f==="$set"||f==="$destroy"||f==="$on"||St(this,f,{get(){return ve(this,ye)[f]},set(s){ve(this,ye)[f]=s},enumerable:!0});ve(this,ye).$set=f=>{Object.assign(a,f)},ve(this,ye).$destroy=()=>{to(ve(this,ye))}}$set(t){ve(this,ye).$set(t)}$on(t,n){ve(this,Me)[t]=ve(this,Me)[t]||[];const i=(...a)=>n.call(this,...a);return ve(this,Me)[t].push(i),()=>{ve(this,Me)[t]=ve(this,Me)[t].filter(a=>a!==i)}}$destroy(){ve(this,ye).$destroy()}}Me=new WeakMap,ye=new WeakMap;let ui;typeof HTMLElement=="function"&&(ui=class extends HTMLElement{constructor(t,n,i){super();$e(this,"$$ctor");$e(this,"$$s");$e(this,"$$c");$e(this,"$$cn",!1);$e(this,"$$d",{});$e(this,"$$r",!1);$e(this,"$$p_d",{});$e(this,"$$l",{});$e(this,"$$l_u",new Map);$e(this,"$$me");this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const a=this.$$c.$on(t,n);this.$$l_u.set(n,a)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const a=this.$$l_u.get(n);a&&(a(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(a){return l=>{const f=document.createElement("slot");a!=="default"&&(f.name=a),B(l,f)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=bo(this);for(const a of this.$$s)a in i&&(a==="default"&&!this.$$d.children?(this.$$d.children=t(a),n.default=!0):n[a]=t(a));for(const a of this.attributes){const l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=pn(l,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)!(a in this.$$d)&&this[a]!==void 0&&(this.$$d[a]=this[a],delete this[a]);this.$$c=_o({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=Nl(()=>{Fn(()=>{var a;this.$$r=!0;for(const l of zt(this.$$c)){if(!((a=this.$$p_d[l])!=null&&a.reflect))continue;this.$$d[l]=this.$$c[l];const f=pn(l,this.$$d[l],this.$$p_d,"toAttribute");f==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,f)}this.$$r=!1})});for(const a in this.$$l)for(const l of this.$$l[a]){const f=this.$$c.$on(a,l);this.$$l_u.set(l,f)}this.$$l={}}}attributeChangedCallback(t,n,i){var a;this.$$r||(t=this.$$g_p(t),this.$$d[t]=pn(t,i,this.$$p_d,"toProp"),(a=this.$$c)==null||a.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return zt(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function pn(e,t,n,i){var l;const a=(l=n[e])==null?void 0:l.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(a){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(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bo(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function po(e,t,n,i,a,l){let f=class extends ui{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return zt(t).map(s=>(t[s].attribute||s).toLowerCase())}};return zt(t).forEach(s=>{St(f.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){var h;c=pn(s,c,t),this.$$d[s]=c;var d=this.$$c;if(d){var b=(h=ze(d,s))==null?void 0:h.get;b?d[s]=c:d.$set({[s]:c})}}})}),i.forEach(s=>{St(f.prototype,s,{get(){var c;return(c=this.$$c)==null?void 0:c[s]}})}),e.element=f,f}const fi=new TextEncoder;function yo(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function wo(e,t="SHA-256",n=1e5){const i=Date.now().toString(16);e||(e=Math.round(Math.random()*n));const a=await ci(i,e,t);return{algorithm:t,challenge:a,salt:i,signature:""}}async function ci(e,t,n){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return yo(await crypto.subtle.digest(n.toUpperCase(),fi.encode(e+t)))}function Eo(e,t,n="SHA-256",i=1e6,a=0){const l=new AbortController,f=Date.now();return{promise:(async()=>{for(let c=a;c<=i;c+=1){if(l.signal.aborted)return null;if(await ci(t,c,n)===e)return{number:c,took:Date.now()-f}}return null})(),controller:l}}function di(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Co(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function Ao(e,t=12){const n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=e%256,e=Math.floor(e/256);return n}async function Io(e,t="",n=1e6,i=0){const a="AES-GCM",l=new AbortController,f=Date.now(),s=async()=>{for(let b=i;b<=n;b+=1){if(l.signal.aborted||!c||!d)return null;try{const h=await crypto.subtle.decrypt({name:a,iv:Ao(b)},c,d);if(h)return{clearText:new TextDecoder().decode(h),took:Date.now()-f}}catch{}}return null};let c=null,d=null;try{d=Co(e);const b=await crypto.subtle.digest("SHA-256",fi.encode(t));c=await crypto.subtle.importKey("raw",b,a,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:l}}return{promise:s(),controller:l}}var w=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(w||{}),ee=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(ee||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>mn(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(mn(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(mn(globalThis.altchaI18n.store))},store:co({})};const Ro={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:"Verifying... please wait."};globalThis.altchaI18n.set("en",Ro);const Wn=(e,t)=>{let n=$l(()=>dl(t==null?void 0:t(),24));var i=So();Se(()=>{T(i,"width",o(n)),T(i,"height",o(n))}),B(e,i)};function ko(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function $o(e,t){e.preventDefault(),t()}function xo(e,t,n,i,a,l,f,s){var c;[w.UNVERIFIED,w.ERROR,w.EXPIRED,w.CODE].includes(o(t))?n()!==!1&&((c=o(i))==null?void 0:c.reportValidity())===!1?p(a,!1):l()?f():s():p(a,!0)}var So=hn('<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>'),To=Ae('<input type="hidden">'),No=Ae('<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>'),Do=hn('<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>'),Lo=hn('<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>'),Po=hn('<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>'),Oo=Ae('<button type="button" class="altcha-code-challenge-audio"><!></button>'),Fo=Ae("<audio hidden autoplay><source></audio>"),Vo=Ae('<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>'),Mo=Ae("<div><!></div>"),Uo=Ae("<div><!></div>"),qo=Ae('<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>'),jo=Ae('<div class="altcha-footer"><div><!></div></div>'),Bo=Ae('<div class="altcha-anchor-arrow"></div>'),Ho=Ae('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function vi(e,t){var Xi,zi;Gr(t,!0);const[n,i]=ho(),a=()=>vo(Go,"$altchaI18nStore",n);let l=I(t,"auto",7,void 0),f=I(t,"blockspam",7,void 0),s=I(t,"challengeurl",7,void 0),c=I(t,"challengejson",7,void 0),d=I(t,"credentials",7,void 0),b=I(t,"customfetch",7,void 0),h=I(t,"debug",7,!1),m=I(t,"delay",7,0),y=I(t,"disableautofocus",7,!1),N=I(t,"expire",7,void 0),E=I(t,"floating",7,void 0),j=I(t,"floatinganchor",7,void 0),_e=I(t,"floatingoffset",7,void 0),te=I(t,"floatingpersist",7,!1),ae=I(t,"hidefooter",7,!1),ne=I(t,"hidelogo",7,!1),yt=I(t,"id",7,void 0),H=I(t,"language",7,void 0),ce=I(t,"name",7,"altcha"),Ie=I(t,"maxnumber",7,1e6),qt=I(t,"mockerror",7,!1),We=I(t,"obfuscated",7,void 0),Re=I(t,"overlay",7,void 0),jt=I(t,"overlaycontent",7,void 0),yn=I(t,"plugins",7,void 0),Bt=I(t,"refetchonexpire",7,!0),lt=I(t,"sentinel",7,void 0),Le=I(t,"spamfilter",7,!1),wt=I(t,"strings",7,void 0),we=I(t,"test",7,!1),se=I(t,"verifyurl",7,void 0),Et=I(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),Ht=I(t,"workerurl",7,void 0);const{altchaI18n:Yo}=globalThis,Go=Yo.store,gi=["SHA-256","SHA-384","SHA-512"],Zo="https://altcha.org/",Je=(r,u)=>{t.$$host.dispatchEvent(new CustomEvent(r,{detail:u}))},_i=(zi=(Xi=document.documentElement.lang)==null?void 0:Xi.split("-"))==null?void 0:zi[0],Jn=Dt(()=>{var r;return s()&&new URL(s(),location.origin).host.endsWith(".altcha.org")&&!!((r=s())!=null&&r.includes("apiKey=ckey_"))}),wn=Dt(()=>c()?Ti(c()):void 0),Wo=Dt(()=>wt()?Ti(wt()):{}),M=Dt(()=>({...yi(a()),...o(Wo)})),mi=Dt(()=>`${yt()||ce()}_checkbox_${Math.round(Math.random()*1e8)}`);let ot=P(null),Yt=P(!1),G=P(null),k=P(je(w.UNVERIFIED)),U=P(void 0),Gt=P(null),Ke=P(null),me=P(null),Kn=P(null),Ct=P(null),O=P(null),At=P(null),at=P(null),Pe=null,z=P(null),st=P(!1),Xe=[],Xn=P(!1),Oe=P(null);Pn(()=>{aa(o(at))}),Pn(()=>{sa(o(k))}),fo(()=>{Jo(),p(At,null),o(O)&&(o(O).removeEventListener("submit",Ri),o(O).removeEventListener("reset",ki),o(O).removeEventListener("focusin",Ii),p(O,null)),Pe&&(clearTimeout(Pe),Pe=null),document.removeEventListener("click",Ci),document.removeEventListener("scroll",Ai),window.removeEventListener("resize",Si)}),oi(()=>{var r;$("mounted","2.1.0"),$("workers",Et()),Qo(),$("plugins",Xe.length?Xe.map(u=>u.constructor.pluginName).join(", "):"none"),we()&&$("using test mode"),N()&&Qn(N()),l()!==void 0&&$("auto",l()),E()!==void 0&&Li(E()),p(O,(r=o(U))==null?void 0:r.closest("form"),!0),o(O)&&(o(O).addEventListener("submit",Ri,{capture:!0}),o(O).addEventListener("reset",ki),(l()==="onfocus"||te()==="focus")&&o(O).addEventListener("focusin",Ii)),Re()&&Pi(!0),l()==="onload"&&(We()?Zt():Ue()),o(Jn)&&(ae()||ne())&&$("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{Je("load")})});function En(r,u){return btoa(JSON.stringify({algorithm:r.algorithm,challenge:r.challenge,number:u.number,salt:r.salt,signature:r.signature,test:we()?!0:void 0,took:u.took}))}function Jo(){for(const r of Xe)r.destroy()}function bi(){s()&&Bt()&&o(k)===w.VERIFIED?Ue():ut(w.EXPIRED,o(M).expired)}async function Ko(){if(qt())throw $("mocking error"),new Error("Mocked error.");if(o(wn))return $("using provided json data"),Ni(o(wn).salt),o(wn);if(we())return $("generating test challenge",{test:we()}),wo(typeof we()!="boolean"?+we():void 0);{if(!s()&&o(O)){const v=o(O).getAttribute("action");v!=null&&v.includes("/form/")&&s(v+"/altcha")}if(!s())throw new Error("Attribute challengeurl not set.");$("fetching challenge from",s());const r={credentials:typeof d()=="boolean"?"include":d(),headers:Le()!==!1?{"x-altcha-spam-filter":"1"}:{}},u=await pi()(s(),r);if(!u||!(u instanceof Response))throw new Error("Custom fetch function did not return a response.");if(u.status!==200)throw new Error(`Server responded with ${u.status}.`);const g=u.headers.get("X-Altcha-Config"),_=await u.json();if(Ni(_.salt),g)try{const v=JSON.parse(g);v&&typeof v=="object"&&(v.verifyurl&&!v.verifyurl.startsWith("fn:")&&(v.verifyurl=Ei(v.verifyurl)),Vi(v))}catch(v){$("unable to configure from X-Altcha-Config",v)}return _}}function Xo(r){var g,_;const u=(g=o(O))==null?void 0:g.querySelector(typeof r=="string"?`input[name="${r}"]`:'input[type="email"]:not([data-no-spamfilter])');return((_=u==null?void 0:u.value)==null?void 0:_.slice(u.value.indexOf("@")))||void 0}function pi(){let r=fetch;if(b())if($("using customfetch"),typeof b()=="string"){if(r=globalThis[b()]||null,!r)throw new Error(`Custom fetch function not found: ${b()}`)}else r=b();return r}function yi(r,u=[H()||"",document.documentElement.lang||"",...navigator.languages]){const g=Object.keys(r).map(v=>v.toLowerCase()),_=u.reduce((v,C)=>(C=C.toLowerCase(),v||(r[C]?C:null)||g.find(R=>C.split("-")[0]===R.split("-")[0])||null),null);return r[_||"en"]}function zo(){return Le()==="ipAddress"?{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}:typeof Le()=="object"?Le():{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}}function wi(r){var g;return[...((g=o(O))==null?void 0:g.querySelectorAll(r!=null&&r.length?r.map(_=>`input[name="${_}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])'))||[]].reduce((_,v)=>{const C=v.name,R=v.value;return C&&R&&(_[C]=/\n/.test(R)?R.replace(new RegExp("(?<!\\r)\\n","g"),`\r
|
|
3
|
+
`):R),_},{})}function Ei(r,u){const g=new URL(s()||location.origin),_=new URL(r,g);if(_.search||(_.search=g.search),u)for(const v in u)u[v]!==void 0&&u[v]!==null&&_.searchParams.set(v,u[v]);return _.toString()}function Qo(){const r=yn()!==void 0?yn().split(","):void 0;for(const u of globalThis.altchaPlugins)(!r||r.includes(u.pluginName))&&Xe.push(new u({el:o(U),clarify:Zt,dispatch:Je,getConfiguration:Mi,getFloatingAnchor:Ui,getState:qi,log:$,reset:ut,solve:Fi,setState:Fe,setFloatingAnchor:ji,verify:Ue}))}function $(...r){(h()||r.some(u=>u instanceof Error))&&console[r[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${ce()}]`,...r)}function ea(){p(z,ee.PAUSED,!0)}function ta(r){p(z,ee.ERROR,!0)}function na(){p(z,ee.READY,!0)}function ra(){p(z,ee.LOADING,!0)}function ia(){p(z,ee.PLAYING,!0)}function la(){p(z,ee.PAUSED,!0)}function oa(r){var u;if(r.preventDefault(),r.stopPropagation(),o(G)){const g=new FormData(r.target),_=String(g.get("code"));if((u=se())!=null&&u.startsWith("fn:")){const v=se().replace(/^fn:/,"");if($(`calling ${v} function instead of verifyurl`),!(v in globalThis))throw new Error(`Global function "${v}" is undefined.`);return globalThis[v]({challenge:o(G).challenge,code:_,solution:o(G).solution})}p(st,!0),Di(En(o(G).challenge,o(G).solution),_).then(({reason:v,verified:C})=>{C?(p(G,null),Fe(w.VERIFIED),$("verified"),jn().then(()=>{var R;(R=o(Kn))==null||R.focus(),Je("verified",{payload:o(Oe)}),l()==="onsubmit"?zn(o(At)):Re()&&Wt()})):(ut(),p(at,v||"Verification failed",!0))}).catch(v=>{p(G,null),Fe(w.ERROR,v),$("sentinel verification failed:",v)}).finally(()=>{p(st,!1)})}}function Ci(r){var g;const u=r.target;E()&&u&&!o(U).contains(u)&&(o(k)===w.VERIFIED&&te()===!1||o(k)===w.VERIFIED&&te()==="focus"&&!((g=o(O))!=null&&g.matches(":focus-within"))||l()==="off"&&o(k)===w.UNVERIFIED)&&Wt()}function Ai(){E()&&o(k)!==w.UNVERIFIED&&Jt()}function aa(r){for(const u of Xe)typeof u.onErrorChange=="function"&&u.onErrorChange(o(at))}function Ii(r){o(k)===w.UNVERIFIED?Ue():E()&&te()==="focus"&&o(k)===w.VERIFIED&&Cn()}function Ri(r){var _;const u=r.target;u!=null&&u.hasAttribute("data-code-challenge-form")||(p(At,r.submitter,!0),o(O)&&l()==="onsubmit"?((_=o(At))==null||_.blur(),o(k)===w.UNVERIFIED?(r.preventDefault(),r.stopPropagation(),Ue().then(()=>{zn(o(At))})):o(k)!==w.VERIFIED&&(r.preventDefault(),r.stopPropagation(),o(k)===w.VERIFYING&&$i())):o(O)&&E()&&l()==="off"&&o(k)===w.UNVERIFIED&&(r.preventDefault(),r.stopPropagation(),Cn()))}function ki(){ut()}function $i(){o(k)===w.VERIFYING&&o(M).waitAlert&&alert(o(M).waitAlert)}function xi(){o(Ke)?o(Ke).paused?(o(Ke).currentTime=0,o(Ke).play()):o(Ke).pause():(p(Xn,!0),requestAnimationFrame(()=>{var r;(r=o(Ke))==null||r.play()}))}function sa(r){for(const u of Xe)typeof u.onStateChange=="function"&&u.onStateChange(o(k));E()&&o(k)!==w.UNVERIFIED&&requestAnimationFrame(()=>{Jt()}),p(Yt,o(k)===w.VERIFIED),Re()&&o(me)&&(o(k)!==w.UNVERIFIED?Cn():Wt())}function Si(){E()&&Jt()}function Ti(r){return JSON.parse(r)}function Ni(r){var _;const u=new URLSearchParams((_=r.split("?"))==null?void 0:_[1]),g=u.get("expires")||u.get("expire");if(g){const v=new Date(+g*1e3),C=isNaN(v.getTime())?0:v.getTime()-Date.now();C>0&&Qn(C)}else Pe&&(clearTimeout(Pe),Pe=null)}async function ua(r){if(!se())throw new Error("Attribute verifyurl not set.");$("requesting server verification from",se());const u={payload:r};if(Le()!==!1){const{blockedCountries:v,classifier:C,disableRules:R,email:Y,expectedLanguages:q,expectedCountries:re,fields:de,ipAddress:ct,text:Rt,timeZone:dt}=zo();u.blockedCountries=v,u.classifier=C,u.disableRules=R,u.email=Y===!1?void 0:Xo(Y),u.expectedCountries=re,u.expectedLanguages=q||(_i?[_i]:void 0),u.fields=de===!1?void 0:wi(de),u.ipAddress=ct===!1?void 0:ct||"auto",u.text=Rt,u.timeZone=dt===!1?void 0:dt||di()}const g=await pi()(se(),{body:JSON.stringify(u),headers:{"content-type":"application/json"},method:"POST"});if(!g||!(g instanceof Response))throw new Error("Custom fetch function did not return a response.");if(g.status!==200)throw new Error(`Server responded with ${g.status}.`);const _=await g.json();if(_!=null&&_.payload&&p(Oe,_.payload,!0),Je("serververification",_),f()&&_.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function Di(r,u){if(!se())throw new Error("Attribute verifyurl not set.");$("requesting sentinel verification from",se());const g={code:u,payload:r};lt()&&(g.fields=lt().fields?wi():void 0,g.timeZone=lt().timeZone?di():void 0);const _=await fetch(se(),{body:JSON.stringify(g),headers:{"content-type":"application/json"},method:"POST"});if(!_||!(_ instanceof Response))throw new Error("Fetch function did not return a response.");if(_.status!==200)throw new Error(`Server responded with ${_.status}.`);const v=await _.json();return v!=null&&v.payload&&p(Oe,v.payload,!0),Je("sentinelverification",v),v}function zn(r){var u;o(O)&&"requestSubmit"in o(O)?o(O).requestSubmit(r):(u=o(O))!=null&&u.reportValidity()&&(r?r.click():o(O).submit())}function Qn(r){$("expire",r),Pe&&(clearTimeout(Pe),Pe=null),r<1?bi():Pe=setTimeout(bi,r)}function Li(r){$("floating",r),E()!==r&&(o(U).style.left="",o(U).style.top=""),E(r===!0||r===""?"auto":r===!1||r==="false"?void 0:E()),E()?(l()||l("onsubmit"),document.addEventListener("scroll",Ai),document.addEventListener("click",Ci),window.addEventListener("resize",Si)):l()==="onsubmit"&&l(void 0)}function Pi(r){var u,g;if($("overlay",r),Re(r),r){if(l()||l("onsubmit"),o(me)&&o(U).parentElement&&o(me).replaceWith(o(U).parentElement),(g=(u=o(U))==null?void 0:u.parentElement)!=null&&g.parentElement){p(me,document.createElement("div"),!0),o(U).parentElement.parentElement.appendChild(o(me));const _=document.createElement("div"),v=document.createElement("button");v.type="button",v.innerHTML="×",v.addEventListener("click",C=>{C.preventDefault(),ut()}),o(me).classList.add("altcha-overlay-backdrop"),v.classList.add("altcha-overlay-close-button"),_.classList.add("altcha-overlay"),o(me).append(_),_.append(v),jt()&&_.append(...document.querySelectorAll(jt())),_.append(o(U).parentElement)}}else o(me)&&o(U).parentElement&&(o(me).replaceWith(o(U).parentElement),o(U).style.display="block")}function Oi(r){if(!r.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(r.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!gi.includes(r.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${gi.join(", ")}`);if(!r.challenge||r.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!r.salt||r.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function Fi(r){let u=null,g=null;if("Worker"in window){try{u=fa(r,r.maxNumber||r.maxnumber||Ie()),p(ot,u.controller,!0);try{g=await u.promise}finally{p(ot,null)}}catch(_){$(_)}if(g===null||(g==null?void 0:g.number)!==void 0||"obfuscated"in r)return{data:r,solution:g}}if("obfuscated"in r){const _=await Io(r.obfuscated,r.key,r.maxNumber||r.maxnumber);return{data:r,solution:await _.promise}}u=Eo(r.challenge,r.salt,r.algorithm,r.maxNumber||r.maxnumber||Ie()),p(ot,u.controller,!0);try{g=await u.promise}finally{p(ot,null)}return{data:r,solution:g}}function fa(r,u=typeof we()=="number"?we():r.maxNumber||r.maxnumber||Ie(),g=Math.ceil(Et())){const _=new AbortController,v=[];g=Math.min(16,u,Math.max(1,g));for(let Y=0;Y<g;Y++)v.push(altchaCreateWorker(Ht()));const C=Math.ceil(u/g);return{promise:(async()=>{const Y=await Promise.all(v.map((q,re)=>{const de=re*C;return _.signal.addEventListener("abort",()=>{q.postMessage({type:"abort"})}),new Promise(ct=>{q.addEventListener("message",Rt=>{if(Rt.data)for(const dt of v)dt!==q&&dt.postMessage({type:"abort"});ct(Rt.data)}),q.postMessage({payload:r,max:de+C,start:de,type:"work"})})}));for(const q of v)q.terminate();return Y.find(q=>!!q)||null})(),controller:_}}async function Zt(){if(!We()){Fe(w.ERROR);return}const r=Xe.find(u=>u.constructor.pluginName==="obfuscation");if(!r||!("clarify"in r)){Fe(w.ERROR),$("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in r&&typeof r.clarify=="function")return r.clarify()}function Vi(r){r.obfuscated!==void 0&&We(r.obfuscated),r.auto!==void 0&&(l(r.auto),l()==="onload"&&(We()?Zt():Ue())),r.blockspam!==void 0&&f(!!r.blockspam),r.customfetch!==void 0&&b(r.customfetch),r.floatinganchor!==void 0&&j(r.floatinganchor),r.delay!==void 0&&m(r.delay),r.floatingoffset!==void 0&&_e(r.floatingoffset),r.floating!==void 0&&Li(r.floating),r.expire!==void 0&&(Qn(r.expire),N(r.expire)),r.challenge&&(c(typeof r.challenge=="string"?r.challenge:JSON.stringify(r.challenge)),Oi(o(wn))),r.challengeurl!==void 0&&s(r.challengeurl),r.debug!==void 0&&h(!!r.debug),r.hidefooter!==void 0&&ae(!!r.hidefooter),r.hidelogo!==void 0&&ne(!!r.hidelogo),r.language!==void 0&&wt(yi(a(),[r.language])),r.maxnumber!==void 0&&Ie(+r.maxnumber),r.mockerror!==void 0&&qt(!!r.mockerror),r.name!==void 0&&ce(r.name),r.overlaycontent!==void 0&&jt(r.overlaycontent),r.overlay!==void 0&&Pi(r.overlay),r.refetchonexpire!==void 0&&Bt(!!r.refetchonexpire),r.sentinel!==void 0&&typeof r.sentinel=="object"&<(r.sentinel),r.spamfilter!==void 0&&Le(typeof r.spamfilter=="object"?r.spamfilter:!!r.spamfilter),r.strings&&wt(typeof r.strings=="string"?r.strings:JSON.stringify(r.strings)),r.test!==void 0&&we(typeof r.test=="number"?r.test:!!r.test),r.verifyurl!==void 0&&se(r.verifyurl),r.workers!==void 0&&Et(+r.workers),r.workerurl!==void 0&&Ht(r.workerurl)}function Mi(){return{auto:l(),blockspam:f(),challengeurl:s(),debug:h(),delay:m(),expire:N(),floating:E(),floatinganchor:j(),floatingoffset:_e(),hidefooter:ae(),hidelogo:ne(),name:ce(),maxnumber:Ie(),mockerror:qt(),obfuscated:We(),overlay:Re(),refetchonexpire:Bt(),spamfilter:Le(),strings:o(M),test:we(),verifyurl:se(),workers:Et(),workerurl:Ht()}}function Ui(){return o(Ct)}function ca(r){return Xe.find(u=>u.constructor.pluginName===r)}function qi(){return o(k)}function Wt(){o(U).style.display="none",Re()&&o(me)&&(o(me).style.display="none")}function Jt(r=20){var u;if(o(U))if(o(Ct)||p(Ct,(j()?document.querySelector(j()):(u=o(O))==null?void 0:u.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||o(O),!0),o(Ct)){const g=parseInt(_e(),10)||12,_=o(Ct).getBoundingClientRect(),v=o(U).getBoundingClientRect(),C=document.documentElement.clientHeight,R=document.documentElement.clientWidth,Y=E()==="auto"?_.bottom+v.height+g+r>C:E()==="top",q=Math.max(r,Math.min(R-r-v.width,_.left+_.width/2-v.width/2));if(Y?o(U).style.top=`${_.top-(v.height+g)}px`:o(U).style.top=`${_.bottom+g}px`,o(U).style.left=`${q}px`,o(U).setAttribute("data-floating",Y?"top":"bottom"),o(Gt)){const re=o(Gt).getBoundingClientRect();o(Gt).style.left=_.left-q+_.width/2-re.width/2+"px"}}else $("unable to find floating anchor element")}function ut(r=w.UNVERIFIED,u=null){o(ot)&&(o(ot).abort(),p(ot,null)),p(Yt,!1),p(Oe,null),p(G,null),p(Xn,!1),p(z,null),Fe(r,u)}function ji(r){p(Ct,r,!0)}function Fe(r,u=null){p(k,r,!0),p(at,u,!0),Je("statechange",{payload:o(Oe),state:o(k)})}function Cn(){o(U).style.display="block",E()&&Jt(),Re()&&o(me)&&(o(me).style.display="flex")}async function Ue(){return ut(w.VERIFYING),await new Promise(r=>setTimeout(r,m()||0)),Ko().then(r=>(Oi(r),$("challenge",r),Fi(r))).then(({data:r,solution:u})=>{var g;if($("solution",u),!u||r&&"challenge"in r&&!("clearText"in u)){if((u==null?void 0:u.number)!==void 0&&"challenge"in r)if(se()&&"codeChallenge"in r)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(((g=document.activeElement)==null?void 0:g.tagName)||"")&&y()===!1&&document.activeElement.blur(),p(G,{challenge:r,solution:u},!0);else{if(se()&<()!==void 0)return Di(En(r,u));if(se())return ua(En(r,u));p(Oe,En(r,u),!0),$("payload",o(Oe))}else if(o(k)!==w.EXPIRED)throw $("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}}).then(()=>{o(G)?(Fe(w.CODE),jn().then(()=>{Je("code",{codeChallenge:o(G)})})):o(Oe)&&(Fe(w.VERIFIED),$("verified"),jn().then(()=>{Je("verified",{payload:o(Oe)}),l()==="onsubmit"?zn(o(At)):Re()&&Wt()}))}).catch(r=>{$(r),Fe(w.ERROR,r.message)})}var Bi=Ho(),Hi=Nt(Bi);no(Hi,t,"default",{});var It=K(Hi,2),er=J(It),An=J(er);let Yi;var Gi=J(An);{var da=r=>{Wn(r)};X(Gi,r=>{o(k)===w.VERIFYING&&r(da)})}var ft=K(Gi,2);ni(ft),ft.__change=[xo,k,Le,O,Yt,We,Zt,Ue],_n(ft,r=>p(Kn,r),()=>o(Kn)),W(An);var In=K(An,2),va=J(In);{var ha=r=>{var u=gn(),g=Nt(u);it(g,()=>o(M).verified),B(r,u)},ga=(r,u)=>{{var g=v=>{var C=gn(),R=Nt(C);it(R,()=>o(M).verifying),B(v,C)},_=(v,C)=>{{var R=q=>{var re=gn(),de=Nt(re);it(de,()=>o(M).verificationRequired),B(q,re)},Y=q=>{var re=gn(),de=Nt(re);it(de,()=>o(M).label),B(q,re)};X(v,q=>{o(k)===w.CODE?q(R):q(Y,!1)},C)}};X(r,v=>{o(k)===w.VERIFYING?v(g):v(_,!1)},u)}};X(va,r=>{o(k)===w.VERIFIED?r(ha):r(ga,!1)})}W(In);var Zi=K(In,2);{var _a=r=>{var u=To();ni(u),Se(()=>{T(u,"name",ce()),ao(u,o(Oe))}),B(r,u)};X(Zi,r=>{o(k)===w.VERIFIED&&r(_a)})}var Wi=K(Zi,2);{var ma=r=>{var u=No(),g=J(u);T(g,"href",Zo),W(u),Se(()=>T(g,"aria-label",o(M).ariaLinkLabel)),B(r,u)};X(Wi,r=>{(ne()!==!0||o(Jn))&&r(ma)})}var ba=K(Wi,2);{var pa=r=>{var u=Vo(),g=K(J(u),2),_=J(g),v=K(_,2);Jl(v,!y()),v.__keydown=[ko,xi];var C=K(v,2),R=J(C),Y=J(R);{var q=ke=>{var Q=Oo();Q.__click=xi;var Rn=J(Q);{var Kt=kt=>{Wn(kt,()=>20)},ka=(kt,$a)=>{{var xa=$t=>{var tr=Do();B($t,tr)},Sa=($t,tr)=>{{var Ta=xt=>{var nr=Lo();B(xt,nr)},Na=xt=>{var nr=Po();B(xt,nr)};X($t,xt=>{o(z)===ee.PLAYING?xt(Ta):xt(Na,!1)},tr)}};X(kt,$t=>{o(z)===ee.ERROR?$t(xa):$t(Sa,!1)},$a)}};X(Rn,kt=>{o(z)===ee.LOADING?kt(Kt):kt(ka,!1)})}W(Q),Se(()=>{T(Q,"title",o(M).getAudioChallenge),Q.disabled=o(z)===ee.LOADING||o(z)===ee.ERROR||o(st),T(Q,"aria-label",o(z)===ee.LOADING?o(M).loading:o(M).getAudioChallenge)}),B(ke,Q)};X(Y,ke=>{o(G).challenge.codeChallenge.audio&&ke(q)})}var re=K(Y,2);re.__click=[$o,Ue],W(R);var de=K(R,2),ct=J(de);{var Rt=ke=>{Wn(ke,()=>16)};X(ct,ke=>{o(st)&&ke(Rt)})}var dt=K(ct);W(de),W(C);var Ia=K(C,2);{var Ra=ke=>{var Q=Fo(),Rn=J(Q);W(Q),_n(Q,Kt=>p(Ke,Kt),()=>o(Ke)),Se(Kt=>T(Rn,"src",Kt),[()=>Ei(o(G).challenge.codeChallenge.audio,{language:H()})]),Ze("loadstart",Q,ra),Ze("canplay",Q,na),Ze("pause",Q,la),Ze("playing",Q,ia),Ze("ended",Q,ea),Ze("error",Rn,ta),B(ke,Q)};X(Ia,ke=>{o(G).challenge.codeChallenge.audio&&o(Xn)&&ke(Ra)})}W(g),W(u),Se(()=>{T(u,"aria-label",o(M).verificationRequired),T(_,"src",o(G).challenge.codeChallenge.image),T(v,"minlength",o(G).challenge.codeChallenge.length||1),T(v,"maxlength",o(G).challenge.codeChallenge.length),T(v,"placeholder",o(M).enterCode),T(v,"aria-label",o(z)===ee.LOADING?o(M).loading:o(z)===ee.PLAYING?"":o(M).enterCodeAria),T(v,"aria-live",o(z)?"assertive":"polite"),T(v,"aria-busy",o(z)===ee.LOADING),v.disabled=o(st),T(re,"aria-label",o(M).reload),T(re,"title",o(M).reload),re.disabled=o(st),de.disabled=o(st),T(de,"aria-label",o(M).verify),Ql(dt,` ${o(M).verify??""}`)}),Ze("submit",g,oa,!0),B(r,u)};X(ba,r=>{var u;(u=o(G))!=null&&u.challenge.codeChallenge&&r(pa)})}W(er);var Ji=K(er,2);{var ya=r=>{var u=qo(),g=K(J(u),2);{var _=C=>{var R=Mo(),Y=J(R);it(Y,()=>o(M).expired),W(R),Se(()=>T(R,"title",o(at))),B(C,R)},v=C=>{var R=Uo(),Y=J(R);it(Y,()=>o(M).error),W(R),Se(()=>T(R,"title",o(at))),B(C,R)};X(g,C=>{o(k)===w.EXPIRED?C(_):C(v,!1)})}W(u),B(r,u)};X(Ji,r=>{(o(at)||o(k)===w.EXPIRED)&&r(ya)})}var Ki=K(Ji,2);{var wa=r=>{var u=jo(),g=J(u),_=J(g);it(_,()=>o(M).footer),W(g),W(u),B(r,u)};X(Ki,r=>{o(M).footer&&(ae()!==!0||o(Jn))&&r(wa)})}var Ea=K(Ki,2);{var Ca=r=>{var u=Bo();_n(u,g=>p(Gt,g),()=>o(Gt)),B(r,u)};X(Ea,r=>{E()&&r(Ca)})}W(It),_n(It,r=>p(U,r),()=>o(U)),Se(r=>{T(It,"data-state",o(k)),T(It,"data-floating",E()),T(It,"data-overlay",Re()),Yi=io(An,1,"altcha-checkbox",null,Yi,r),T(ft,"id",o(mi)),ft.required=l()!=="onsubmit"&&(!E()||l()!=="off"),T(In,"for",o(mi))},[()=>({"altcha-checkbox-verifying":o(k)===w.VERIFYING})]),Ze("invalid",ft,$i),uo(ft,()=>o(Yt),r=>p(Yt,r)),B(e,Bi);var Aa=Zr({clarify:Zt,configure:Vi,getConfiguration:Mi,getFloatingAnchor:Ui,getPlugin:ca,getState:qi,hide:Wt,repositionFloating:Jt,reset:ut,setFloatingAnchor:ji,setState:Fe,show:Cn,verify:Ue,get auto(){return l()},set auto(r=void 0){l(r),A()},get blockspam(){return f()},set blockspam(r=void 0){f(r),A()},get challengeurl(){return s()},set challengeurl(r=void 0){s(r),A()},get challengejson(){return c()},set challengejson(r=void 0){c(r),A()},get credentials(){return d()},set credentials(r=void 0){d(r),A()},get customfetch(){return b()},set customfetch(r=void 0){b(r),A()},get debug(){return h()},set debug(r=!1){h(r),A()},get delay(){return m()},set delay(r=0){m(r),A()},get disableautofocus(){return y()},set disableautofocus(r=!1){y(r),A()},get expire(){return N()},set expire(r=void 0){N(r),A()},get floating(){return E()},set floating(r=void 0){E(r),A()},get floatinganchor(){return j()},set floatinganchor(r=void 0){j(r),A()},get floatingoffset(){return _e()},set floatingoffset(r=void 0){_e(r),A()},get floatingpersist(){return te()},set floatingpersist(r=!1){te(r),A()},get hidefooter(){return ae()},set hidefooter(r=!1){ae(r),A()},get hidelogo(){return ne()},set hidelogo(r=!1){ne(r),A()},get id(){return yt()},set id(r=void 0){yt(r),A()},get language(){return H()},set language(r=void 0){H(r),A()},get name(){return ce()},set name(r="altcha"){ce(r),A()},get maxnumber(){return Ie()},set maxnumber(r=1e6){Ie(r),A()},get mockerror(){return qt()},set mockerror(r=!1){qt(r),A()},get obfuscated(){return We()},set obfuscated(r=void 0){We(r),A()},get overlay(){return Re()},set overlay(r=void 0){Re(r),A()},get overlaycontent(){return jt()},set overlaycontent(r=void 0){jt(r),A()},get plugins(){return yn()},set plugins(r=void 0){yn(r),A()},get refetchonexpire(){return Bt()},set refetchonexpire(r=!0){Bt(r),A()},get sentinel(){return lt()},set sentinel(r=void 0){lt(r),A()},get spamfilter(){return Le()},set spamfilter(r=!1){Le(r),A()},get strings(){return wt()},set strings(r=void 0){wt(r),A()},get test(){return we()},set test(r=!1){we(r),A()},get verifyurl(){return se()},set verifyurl(r=void 0){se(r),A()},get workers(){return Et()},set workers(r=Math.min(16,navigator.hardwareConcurrency||8)){Et(r),A()},get workerurl(){return Ht()},set workerurl(r=void 0){Ht(r),A()}});return i(),Aa}zl(["change","keydown","click"]),customElements.define("altcha-widget",po(vi,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{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",typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:S&&S.tagName.toUpperCase()==="SCRIPT"&&S.src||new URL("altcha.umd.cjs",document.baseURI).href)),x.Altcha=vi,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'altcha/i18n/africa';
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
const l = () => {
|
|
2
|
+
};
|
|
3
|
+
function g(e, i) {
|
|
4
|
+
return e != e ? i == i : e !== i || e !== null && typeof e == "object" || typeof e == "function";
|
|
5
|
+
}
|
|
6
|
+
let u = !1;
|
|
7
|
+
function b(e) {
|
|
8
|
+
var i = u;
|
|
9
|
+
try {
|
|
10
|
+
return u = !0, e();
|
|
11
|
+
} finally {
|
|
12
|
+
u = i;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function A(e, i, r) {
|
|
16
|
+
if (e == null)
|
|
17
|
+
return i(void 0), l;
|
|
18
|
+
const t = b(
|
|
19
|
+
() => e.subscribe(
|
|
20
|
+
i,
|
|
21
|
+
// @ts-expect-error
|
|
22
|
+
r
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
return t.unsubscribe ? () => t.unsubscribe() : t;
|
|
26
|
+
}
|
|
27
|
+
const n = [];
|
|
28
|
+
function k(e, i = l) {
|
|
29
|
+
let r = null;
|
|
30
|
+
const t = /* @__PURE__ */ new Set();
|
|
31
|
+
function s(o) {
|
|
32
|
+
if (g(e, o) && (e = o, r)) {
|
|
33
|
+
const c = !n.length;
|
|
34
|
+
for (const a of t)
|
|
35
|
+
a[1](), n.push(a, e);
|
|
36
|
+
if (c) {
|
|
37
|
+
for (let a = 0; a < n.length; a += 2)
|
|
38
|
+
n[a][0](n[a + 1]);
|
|
39
|
+
n.length = 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function h(o) {
|
|
44
|
+
s(o(
|
|
45
|
+
/** @type {T} */
|
|
46
|
+
e
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
function f(o, c = l) {
|
|
50
|
+
const a = [o, c];
|
|
51
|
+
return t.add(a), t.size === 1 && (r = i(s, h) || l), o(
|
|
52
|
+
/** @type {T} */
|
|
53
|
+
e
|
|
54
|
+
), () => {
|
|
55
|
+
t.delete(a), t.size === 0 && r && (r(), r = null);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return { set: s, update: h, subscribe: f };
|
|
59
|
+
}
|
|
60
|
+
function d(e) {
|
|
61
|
+
let i;
|
|
62
|
+
return A(e, (r) => i = r)(), i;
|
|
63
|
+
}
|
|
64
|
+
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
65
|
+
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
66
|
+
get: (e) => d(globalThis.altchaI18n.store)[e],
|
|
67
|
+
set: (e, i) => {
|
|
68
|
+
Object.assign(d(globalThis.altchaI18n.store), {
|
|
69
|
+
[e]: i
|
|
70
|
+
}), globalThis.altchaI18n.store.set(d(globalThis.altchaI18n.store));
|
|
71
|
+
},
|
|
72
|
+
store: k({})
|
|
73
|
+
};
|
|
74
|
+
const p = {
|
|
75
|
+
ariaLinkLabel: "Besoek Altcha.org",
|
|
76
|
+
enterCode: "Voer kode in",
|
|
77
|
+
enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
|
|
78
|
+
error: "Verifikasie het misluk. Probeer later weer.",
|
|
79
|
+
expired: "Verifikasie het verval. Probeer weer.",
|
|
80
|
+
footer: 'Beskerm deur <a href="https://altcha.org/" target="_blank" aria-label="Besoek Altcha.org">ALTCHA</a>',
|
|
81
|
+
getAudioChallenge: "Kry 'n klankuitdaging",
|
|
82
|
+
label: "Ek is nie 'n robot nie",
|
|
83
|
+
loading: "Laai...",
|
|
84
|
+
reload: "Laai weer",
|
|
85
|
+
verify: "Verifieer",
|
|
86
|
+
verificationRequired: "Verifikasie is vereis!",
|
|
87
|
+
verified: "Geverifieer",
|
|
88
|
+
verifying: "Verifieer...",
|
|
89
|
+
waitAlert: "Verifieer... wag asseblief."
|
|
90
|
+
};
|
|
91
|
+
globalThis.altchaI18n.set("af", p);
|
|
92
|
+
const v = {
|
|
93
|
+
ariaLinkLabel: "Altcha.org ይጎብኙ",
|
|
94
|
+
enterCode: "ኮድ አስገባ",
|
|
95
|
+
enterCodeAria: "የሚሰማዎትን ኮድ ያስገቡ። ድምጽ ለመጫወት Space ን ይጫኑ።",
|
|
96
|
+
error: "ማረጋገጫ አልተሳካም። በኋላ ላይ እንደገና ይሞክሩ።",
|
|
97
|
+
expired: "ማረጋገጫው ጊዜው አልፏል። እንደገና ይሞክሩ።",
|
|
98
|
+
footer: 'በ <a href="https://altcha.org/" target="_blank" aria-label="Altcha.org ይጎብኙ">ALTCHA</a> የተጠበቀ',
|
|
99
|
+
getAudioChallenge: "የድምጽ ፈተና ያግኙ",
|
|
100
|
+
label: "እኔ ሮቦት አይደለሁም",
|
|
101
|
+
loading: "በመጫን ላይ...",
|
|
102
|
+
reload: "እንደገና ጫን",
|
|
103
|
+
verify: "አረጋግጥ",
|
|
104
|
+
verificationRequired: "ማረጋገጫ ያስፈልጋል!",
|
|
105
|
+
verified: "ተረጋግጧል",
|
|
106
|
+
verifying: "በማረጋገጥ ላይ...",
|
|
107
|
+
waitAlert: "በማረጋገጥ ላይ... እባክዎ ይጠብቁ።"
|
|
108
|
+
};
|
|
109
|
+
globalThis.altchaI18n.set("am", v);
|
|
110
|
+
const y = {
|
|
111
|
+
ariaLinkLabel: "زور Altcha.org",
|
|
112
|
+
enterCode: "أدخل الرمز",
|
|
113
|
+
enterCodeAria: "أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",
|
|
114
|
+
error: "فشل التحقق. حاول مرة أخرى لاحقاً.",
|
|
115
|
+
expired: "انتهت صلاحية التحقق. حاول مرة أخرى.",
|
|
116
|
+
verificationRequired: "مطلوب التحقق!",
|
|
117
|
+
footer: 'محمي بواسطة <a href="https://altcha.org/" target="_blank" aria-label="زور Altcha.org">ALTCHA</a>',
|
|
118
|
+
getAudioChallenge: "احصل على تحدي صوتي",
|
|
119
|
+
label: "أنا لست روبوتاً",
|
|
120
|
+
loading: "جارٍ التحميل...",
|
|
121
|
+
reload: "إعادة تحميل",
|
|
122
|
+
verify: "تحقق",
|
|
123
|
+
verified: "تم التحقق",
|
|
124
|
+
verifying: "جارٍ التحقق...",
|
|
125
|
+
waitAlert: "جارٍ التحقق... يرجى الانتظار."
|
|
126
|
+
};
|
|
127
|
+
globalThis.altchaI18n.set("ar", y);
|
|
128
|
+
const T = {
|
|
129
|
+
ariaLinkLabel: "Visitez Altcha.org",
|
|
130
|
+
enterCode: "Entrez le code",
|
|
131
|
+
enterCodeAria: "Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",
|
|
132
|
+
error: "Échec de la vérification. Essayez à nouveau plus tard.",
|
|
133
|
+
expired: "La vérification a expiré. Essayez à nouveau.",
|
|
134
|
+
verificationRequired: "Vérification requise !",
|
|
135
|
+
footer: 'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',
|
|
136
|
+
getAudioChallenge: "Obtenir un défi audio",
|
|
137
|
+
label: "Pas un robot",
|
|
138
|
+
loading: "Chargement...",
|
|
139
|
+
reload: "Recharger",
|
|
140
|
+
verify: "Vérifier",
|
|
141
|
+
verified: "Vérifié",
|
|
142
|
+
verifying: "Vérification en cours...",
|
|
143
|
+
waitAlert: "Vérification en cours... veuillez patienter."
|
|
144
|
+
};
|
|
145
|
+
globalThis.altchaI18n.set("fr-fr", T);
|
|
146
|
+
const C = {
|
|
147
|
+
ariaLinkLabel: "Visitar Altcha.org",
|
|
148
|
+
enterCode: "Introduza o código",
|
|
149
|
+
enterCodeAria: "Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",
|
|
150
|
+
error: "A verificação falhou. Por favor, tente novamente mais tarde.",
|
|
151
|
+
expired: "Verificação expirada. Por favor, tente novamente.",
|
|
152
|
+
verificationRequired: "Verificação necessária!",
|
|
153
|
+
footer: 'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',
|
|
154
|
+
getAudioChallenge: "Obter desafio de áudio",
|
|
155
|
+
label: "Não sou um robô",
|
|
156
|
+
loading: "A carregar...",
|
|
157
|
+
reload: "Recarregar",
|
|
158
|
+
verify: "Verificar",
|
|
159
|
+
verified: "Verificado",
|
|
160
|
+
verifying: "A verificar...",
|
|
161
|
+
waitAlert: "A verificar... por favor aguarde."
|
|
162
|
+
};
|
|
163
|
+
globalThis.altchaI18n.set("pt-pt", C);
|
|
164
|
+
const w = {
|
|
165
|
+
ariaLinkLabel: "Tembelea Altcha.org",
|
|
166
|
+
enterCode: "Weka nambari",
|
|
167
|
+
enterCodeAria: "Weka nambari unayosikia. Bonyeza Space kucheza sauti.",
|
|
168
|
+
error: "Uthibitishaji umeshindwa. Jaribu tena baadaye.",
|
|
169
|
+
expired: "Uthibitishaji umeisha. Jaribu tena.",
|
|
170
|
+
footer: 'Imealindwa na <a href="https://altcha.org/" target="_blank" aria-label="Tembelea Altcha.org">ALTCHA</a>',
|
|
171
|
+
getAudioChallenge: "Pata changamoto ya sauti",
|
|
172
|
+
label: "Mimi sio roboti",
|
|
173
|
+
loading: "Inapakia...",
|
|
174
|
+
reload: "Pakia tena",
|
|
175
|
+
verify: "Thibitisha",
|
|
176
|
+
verificationRequired: "Uthibitishaji unahitajika!",
|
|
177
|
+
verified: "Imethibitishwa",
|
|
178
|
+
verifying: "Inathibitisha...",
|
|
179
|
+
waitAlert: "Inathibitisha... tafadhali subiri."
|
|
180
|
+
};
|
|
181
|
+
globalThis.altchaI18n.set("sw", w);
|
|
182
|
+
const L = {
|
|
183
|
+
ariaLinkLabel: "Ṣe abẹwo si Altcha.org",
|
|
184
|
+
enterCode: "Tẹ koodu sii",
|
|
185
|
+
enterCodeAria: "Tẹ koodu ti o ngbọ sii. Tẹ Space lati ṣe ohun orin.",
|
|
186
|
+
error: "Ìdájọ́kòwò kò ṣẹ́ṣe. Gbiyanju lẹẹkansi ni ọjọ́ iwájú.",
|
|
187
|
+
expired: "Ìdájọ́kòwò ti pari. Gbiyanju lẹẹkansi.",
|
|
188
|
+
footer: 'Ti wa ni ààbò nipasẹ <a href="https://altcha.org/" target="_blank" aria-label="Ṣe abẹwo si Altcha.org">ALTCHA</a>',
|
|
189
|
+
getAudioChallenge: "Gba ìjàdú ohùn",
|
|
190
|
+
label: "Emi kii ṣe ẹrọ",
|
|
191
|
+
loading: "Ó ń gbé sílẹ̀...",
|
|
192
|
+
reload: "Tún gbé wọlé",
|
|
193
|
+
verify: "Ṣàdájọ́",
|
|
194
|
+
verificationRequired: "Ìdájọ́kòwò ni a nílò!",
|
|
195
|
+
verified: "A ti dájọ́",
|
|
196
|
+
verifying: "Ó ń ṣàdájọ́...",
|
|
197
|
+
waitAlert: "Ó ń ṣàdájọ́... ẹ jọ̀ọ́ ẹ duro."
|
|
198
|
+
};
|
|
199
|
+
globalThis.altchaI18n.set("yo", L);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(o){typeof define=="function"&&define.amd?define(o):o()})(function(){"use strict";const o=()=>{};function h(e,i){return e!=e?i==i:e!==i||e!==null&&typeof e=="object"||typeof e=="function"}let s=!1;function g(e){var i=s;try{return s=!0,e()}finally{s=i}}function b(e,i,r){if(e==null)return i(void 0),o;const t=g(()=>e.subscribe(i,r));return t.unsubscribe?()=>t.unsubscribe():t}const l=[];function A(e,i=o){let r=null;const t=new Set;function u(n){if(h(e,n)&&(e=n,r)){const d=!l.length;for(const a of t)a[1](),l.push(a,e);if(d){for(let a=0;a<l.length;a+=2)l[a][0](l[a+1]);l.length=0}}}function f(n){u(n(e))}function L(n,d=o){const a=[n,d];return t.add(a),t.size===1&&(r=i(u,f)||o),n(e),()=>{t.delete(a),t.size===0&&r&&(r(),r=null)}}return{set:u,update:f,subscribe:L}}function c(e){let i;return b(e,r=>i=r)(),i}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>c(globalThis.altchaI18n.store)[e],set:(e,i)=>{Object.assign(c(globalThis.altchaI18n.store),{[e]:i}),globalThis.altchaI18n.store.set(c(globalThis.altchaI18n.store))},store:A({})};const k={ariaLinkLabel:"Besoek Altcha.org",enterCode:"Voer kode in",enterCodeAria:"Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",error:"Verifikasie het misluk. Probeer later weer.",expired:"Verifikasie het verval. Probeer weer.",footer:'Beskerm deur <a href="https://altcha.org/" target="_blank" aria-label="Besoek Altcha.org">ALTCHA</a>',getAudioChallenge:"Kry 'n klankuitdaging",label:"Ek is nie 'n robot nie",loading:"Laai...",reload:"Laai weer",verify:"Verifieer",verificationRequired:"Verifikasie is vereis!",verified:"Geverifieer",verifying:"Verifieer...",waitAlert:"Verifieer... wag asseblief."};globalThis.altchaI18n.set("af",k);const p={ariaLinkLabel:"Altcha.org ይጎብኙ",enterCode:"ኮድ አስገባ",enterCodeAria:"የሚሰማዎትን ኮድ ያስገቡ። ድምጽ ለመጫወት Space ን ይጫኑ።",error:"ማረጋገጫ አልተሳካም። በኋላ ላይ እንደገና ይሞክሩ።",expired:"ማረጋገጫው ጊዜው አልፏል። እንደገና ይሞክሩ።",footer:'በ <a href="https://altcha.org/" target="_blank" aria-label="Altcha.org ይጎብኙ">ALTCHA</a> የተጠበቀ',getAudioChallenge:"የድምጽ ፈተና ያግኙ",label:"እኔ ሮቦት አይደለሁም",loading:"በመጫን ላይ...",reload:"እንደገና ጫን",verify:"አረጋግጥ",verificationRequired:"ማረጋገጫ ያስፈልጋል!",verified:"ተረጋግጧል",verifying:"በማረጋገጥ ላይ...",waitAlert:"በማረጋገጥ ላይ... እባክዎ ይጠብቁ።"};globalThis.altchaI18n.set("am",p);const v={ariaLinkLabel:"زور Altcha.org",enterCode:"أدخل الرمز",enterCodeAria:"أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",error:"فشل التحقق. حاول مرة أخرى لاحقاً.",expired:"انتهت صلاحية التحقق. حاول مرة أخرى.",verificationRequired:"مطلوب التحقق!",footer:'محمي بواسطة <a href="https://altcha.org/" target="_blank" aria-label="زور Altcha.org">ALTCHA</a>',getAudioChallenge:"احصل على تحدي صوتي",label:"أنا لست روبوتاً",loading:"جارٍ التحميل...",reload:"إعادة تحميل",verify:"تحقق",verified:"تم التحقق",verifying:"جارٍ التحقق...",waitAlert:"جارٍ التحقق... يرجى الانتظار."};globalThis.altchaI18n.set("ar",v);const y={ariaLinkLabel:"Visitez Altcha.org",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",error:"Échec de la vérification. Essayez à nouveau plus tard.",expired:"La vérification a expiré. Essayez à nouveau.",verificationRequired:"Vérification requise !",footer:'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter."};globalThis.altchaI18n.set("fr-fr",y);const T={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Introduza o código",enterCodeAria:"Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",error:"A verificação falhou. Por favor, tente novamente mais tarde.",expired:"Verificação expirada. Por favor, tente novamente.",verificationRequired:"Verificação necessária!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obter desafio de áudio",label:"Não sou um robô",loading:"A carregar...",reload:"Recarregar",verify:"Verificar",verified:"Verificado",verifying:"A verificar...",waitAlert:"A verificar... por favor aguarde."};globalThis.altchaI18n.set("pt-pt",T);const C={ariaLinkLabel:"Tembelea Altcha.org",enterCode:"Weka nambari",enterCodeAria:"Weka nambari unayosikia. Bonyeza Space kucheza sauti.",error:"Uthibitishaji umeshindwa. Jaribu tena baadaye.",expired:"Uthibitishaji umeisha. Jaribu tena.",footer:'Imealindwa na <a href="https://altcha.org/" target="_blank" aria-label="Tembelea Altcha.org">ALTCHA</a>',getAudioChallenge:"Pata changamoto ya sauti",label:"Mimi sio roboti",loading:"Inapakia...",reload:"Pakia tena",verify:"Thibitisha",verificationRequired:"Uthibitishaji unahitajika!",verified:"Imethibitishwa",verifying:"Inathibitisha...",waitAlert:"Inathibitisha... tafadhali subiri."};globalThis.altchaI18n.set("sw",C);const w={ariaLinkLabel:"Ṣe abẹwo si Altcha.org",enterCode:"Tẹ koodu sii",enterCodeAria:"Tẹ koodu ti o ngbọ sii. Tẹ Space lati ṣe ohun orin.",error:"Ìdájọ́kòwò kò ṣẹ́ṣe. Gbiyanju lẹẹkansi ni ọjọ́ iwájú.",expired:"Ìdájọ́kòwò ti pari. Gbiyanju lẹẹkansi.",footer:'Ti wa ni ààbò nipasẹ <a href="https://altcha.org/" target="_blank" aria-label="Ṣe abẹwo si Altcha.org">ALTCHA</a>',getAudioChallenge:"Gba ìjàdú ohùn",label:"Emi kii ṣe ẹrọ",loading:"Ó ń gbé sílẹ̀...",reload:"Tún gbé wọlé",verify:"Ṣàdájọ́",verificationRequired:"Ìdájọ́kòwò ni a nílò!",verified:"A ti dájọ́",verifying:"Ó ń ṣàdájọ́...",waitAlert:"Ó ń ṣàdájọ́... ẹ jọ̀ọ́ ẹ duro."};globalThis.altchaI18n.set("yo",w)});
|