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(s,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(s=typeof globalThis<"u"?globalThis:s||self,r(s["[name]"]={}))})(this,function(s){"use strict";const r=()=>{};function j(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let u=!1;function g(e){var t=u;try{return u=!0,e()}finally{u=t}}function p(e,t,o){if(e==null)return t(void 0),r;const i=g(()=>e.subscribe(t,o));return i.unsubscribe?()=>i.unsubscribe():i}const l=[];function k(e,t=r){let o=null;const i=new Set;function f(a){if(j(e,a)&&(e=a,o)){const b=!l.length;for(const n of i)n[1](),l.push(n,e);if(b){for(let n=0;n<l.length;n+=2)l[n][0](l[n+1]);l.length=0}}}function d(a){f(a(e))}function v(a,b=r){const n=[a,b];return i.add(n),i.size===1&&(o=t(f,d)||r),a(e),()=>{i.delete(n),i.size===0&&o&&(o(),o=null)}}return{set:f,update:d,subscribe:v}}function c(e){let t;return p(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:"Posjetite Altcha.org",enterCode:"Unesite kod",enterCodeAria:"Unesite kod koji čujete. Pritisnite razmaknicu za reprodukciju zvuka.",error:"Provjera nije uspjela. Molimo pokušajte kasnije.",expired:"Provjera je istekla. Molimo pokušajte ponovo.",verificationRequired:"Potrebna je provjera!",footer:'Zaštićeno od strane <a href="https://altcha.org/" target="_blank" aria-label="Posjetite Altcha.org">ALTCHA</a>',getAudioChallenge:"Audio provjera",label:"Ja nisam robot",loading:"Učitavanje...",reload:"Ponovno učitaj",verify:"Provjeri",verified:"Provjereno",verifying:"Provjeravanje...",waitAlert:"Provjera je u tijeku... molimo pričekajte."};globalThis.altchaI18n.set("hr",h),s.i18n=h,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});