UNPKG

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.36 kB
(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["[name]"]={}))})(this,function(s){"use strict";const o=()=>{};function d(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 T(e,t,i){if(e==null)return t(void 0),o;const r=p(()=>e.subscribe(t,i));return r.unsubscribe?()=>r.unsubscribe():r}const u=[];function y(e,t=o){let i=null;const r=new Set;function f(l){if(d(e,l)&&(e=l,i)){const b=!u.length;for(const n of r)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 g(l){f(l(e))}function A(l,b=o){const n=[l,b];return r.add(n),r.size===1&&(i=t(f,g)||o),l(e),()=>{r.delete(n),r.size===0&&i&&(i(),i=null)}}return{set:f,update:g,subscribe:A}}function c(e){let t;return T(e,i=>t=i)(),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:y({})};const h={ariaLinkLabel:"Επισκεφθείτε το Altcha.org",enterCode:"Εισαγάγετε κωδικό",enterCodeAria:"Εισαγάγετε τον κωδικό που ακούτε. Πατήστε Space για να παίξετε τον ήχο.",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("el",h),s.i18n=h,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});