UNPKG

altcha

Version:

Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.

95 lines (94 loc) 2.58 kB
const o = () => { }; function g(e, t) { return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function"; } let c = !1; function d(e) { var t = c; try { return c = !0, e(); } finally { c = t; } } function p(e, t, r) { if (e == null) return t(void 0), o; const i = d( () => e.subscribe( t, // @ts-expect-error r ) ); return i.unsubscribe ? () => i.unsubscribe() : i; } const s = []; function T(e, t = o) { let r = null; const i = /* @__PURE__ */ new Set(); function a(l) { if (g(e, l) && (e = l, r)) { const u = !s.length; for (const n of i) n[1](), s.push(n, e); if (u) { for (let n = 0; n < s.length; n += 2) s[n][0](s[n + 1]); s.length = 0; } } } function f(l) { a(l( /** @type {T} */ e )); } function h(l, u = o) { const n = [l, u]; return i.add(n), i.size === 1 && (r = t(a, f) || o), l( /** @type {T} */ e ), () => { i.delete(n), i.size === 0 && r && (r(), r = null); }; } return { set: a, update: f, subscribe: h }; } function b(e) { let t; return p(e, (r) => t = r)(), t; } globalThis.altchaPlugins = globalThis.altchaPlugins || []; globalThis.altchaI18n = globalThis.altchaI18n || { get: (e) => b(globalThis.altchaI18n.store)[e], set: (e, t) => { Object.assign(b(globalThis.altchaI18n.store), { [e]: t }), globalThis.altchaI18n.store.set(b(globalThis.altchaI18n.store)); }, store: T({}) }; const A = { 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("fa", A); export { A as i18n };