altcha
Version:
Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.
2 lines (1 loc) • 2.02 kB
JavaScript
(function(l,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(l=typeof globalThis<"u"?globalThis:l||self,r(l["[name]"]={}))})(this,function(l){"use strict";const r=()=>{};function g(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let a=!1;function p(e){var t=a;try{return a=!0,e()}finally{a=t}}function v(e,t,o){if(e==null)return t(void 0),r;const i=p(()=>e.subscribe(t,o));return i.unsubscribe?()=>i.unsubscribe():i}const u=[];function k(e,t=r){let o=null;const i=new Set;function f(s){if(g(e,s)&&(e=s,o)){const b=!u.length;for(const n of i)n[1](),u.push(n,e);if(b){for(let n=0;n<u.length;n+=2)u[n][0](u[n+1]);u.length=0}}}function d(s){f(s(e))}function y(s,b=r){const n=[s,b];return i.add(n),i.size===1&&(o=t(f,d)||r),s(e),()=>{i.delete(n),i.size===0&&o&&(o(),o=null)}}return{set:f,update:d,subscribe:y}}function c(e){let t;return v(e,o=>t=o)(),t}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>c(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(c(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(c(globalThis.altchaI18n.store))},store:k({})};const h={ariaLinkLabel:"Navštivte Altcha.org",enterCode:"Zadejte kód",enterCodeAria:"Zadejte kód, který slyšíte. Stisknutím mezerníku přehrajete zvuk.",error:"Ověření selhalo. Zkuste to prosím později.",expired:"Ověření vypršelo. Zkuste to prosím znovu.",verificationRequired:"Vyžaduje se ověření!",footer:'Chráněno pomocí <a href="https://altcha.org/" target="_blank" aria-label="Navštivte Altcha.org">ALTCHA</a>',getAudioChallenge:"Získat audio výzvu",label:"Nejsem robot",loading:"Načítání...",reload:"Znovu načíst",verify:"Ověřit",verified:"Ověřeno",verifying:"Ověřování...",waitAlert:"Probíhá ověření... prosím počkejte."};globalThis.altchaI18n.set("cs",h),l.i18n=h,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});