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.05 kB
(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 d(n,e){return n!=n?e==e:n!==e||n!==null&&typeof n=="object"||typeof n=="function"}let u=!1;function p(n){var e=u;try{return u=!0,n()}finally{u=e}}function T(n,e,i){if(n==null)return e(void 0),r;const l=p(()=>n.subscribe(e,i));return l.unsubscribe?()=>l.unsubscribe():l}const c=[];function m(n,e=r){let i=null;const l=new Set;function a(o){if(d(n,o)&&(n=o,i)){const f=!c.length;for(const t of l)t[1](),c.push(t,n);if(f){for(let t=0;t<c.length;t+=2)c[t][0](c[t+1]);c.length=0}}}function g(o){a(o(n))}function y(o,f=r){const t=[o,f];return l.add(t),l.size===1&&(i=e(a,g)||r),o(n),()=>{l.delete(t),l.size===0&&i&&(i(),i=null)}}return{set:a,update:g,subscribe:y}}function h(n){let e;return T(n,i=>e=i)(),e}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:n=>h(globalThis.altchaI18n.store)[n],set:(n,e)=>{Object.assign(h(globalThis.altchaI18n.store),{[n]:e}),globalThis.altchaI18n.store.set(h(globalThis.altchaI18n.store))},store:m({})};const b={ariaLinkLabel:"Truy cập Altcha.org",enterCode:"Nhập mã",enterCodeAria:"Nhập mã bạn nghe được. Nhấn Phím cách để phát âm thanh.",error:"Xác minh thất bại. Vui lòng thử lại sau.",expired:"Xác minh đã hết hạn. Vui lòng thử lại.",verificationRequired:"Yêu cầu xác minh!",footer:'Được bảo vệ bởi <a href="https://altcha.org/" target="_blank" aria-label="Truy cập Altcha.org">ALTCHA</a>',getAudioChallenge:"Nhận thử thách âm thanh",label:"Tôi không phải là robot",loading:"Đang tải...",reload:"Tải lại",verify:"Xác minh",verified:"Đã xác minh",verifying:"Đang xác minh...",waitAlert:"Đang xác minh... vui lòng chờ."};globalThis.altchaI18n.set("vi",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});