altcha 2.0.0-beta.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +142 -93
  3. package/dist/altcha.d.ts +5 -2
  4. package/dist/altcha.i18n.d.ts +158 -0
  5. package/dist/altcha.i18n.js +4017 -0
  6. package/dist/altcha.i18n.umd.js +4 -0
  7. package/dist/altcha.js +1888 -1763
  8. package/dist/altcha.umd.cjs +4 -14
  9. package/dist_external/altcha.css +1 -255
  10. package/dist_external/altcha.d.ts +5 -2
  11. package/dist_external/altcha.js +1844 -1728
  12. package/dist_external/altcha.umd.cjs +3 -13
  13. package/dist_i18n/af.d.ts +1 -0
  14. package/dist_i18n/af.js +76 -3
  15. package/dist_i18n/af.umd.cjs +1 -1
  16. package/dist_i18n/all.d.ts +1 -0
  17. package/dist_i18n/all.js +178 -105
  18. package/dist_i18n/all.umd.cjs +1 -1
  19. package/dist_i18n/americas.d.ts +1 -0
  20. package/dist_i18n/americas.js +80 -7
  21. package/dist_i18n/americas.umd.cjs +1 -1
  22. package/dist_i18n/ar.d.ts +1 -0
  23. package/dist_i18n/ar.js +76 -3
  24. package/dist_i18n/ar.umd.cjs +1 -1
  25. package/dist_i18n/asia.d.ts +1 -0
  26. package/dist_i18n/asia.js +105 -32
  27. package/dist_i18n/asia.umd.cjs +1 -1
  28. package/dist_i18n/bg.d.ts +1 -0
  29. package/dist_i18n/bg.js +76 -3
  30. package/dist_i18n/bg.umd.cjs +1 -1
  31. package/dist_i18n/bn.d.ts +1 -0
  32. package/dist_i18n/bn.js +76 -3
  33. package/dist_i18n/bn.umd.cjs +1 -1
  34. package/dist_i18n/bs.d.ts +1 -0
  35. package/dist_i18n/bs.js +76 -3
  36. package/dist_i18n/bs.umd.cjs +1 -1
  37. package/dist_i18n/ca.d.ts +1 -0
  38. package/dist_i18n/ca.js +76 -3
  39. package/dist_i18n/ca.umd.cjs +1 -1
  40. package/dist_i18n/cs.d.ts +1 -0
  41. package/dist_i18n/cs.js +76 -3
  42. package/dist_i18n/cs.umd.cjs +1 -1
  43. package/dist_i18n/da.d.ts +1 -0
  44. package/dist_i18n/da.js +76 -3
  45. package/dist_i18n/da.umd.cjs +1 -1
  46. package/dist_i18n/de.d.ts +1 -0
  47. package/dist_i18n/de.js +76 -3
  48. package/dist_i18n/de.umd.cjs +1 -1
  49. package/dist_i18n/el.d.ts +1 -0
  50. package/dist_i18n/el.js +76 -3
  51. package/dist_i18n/el.umd.cjs +1 -1
  52. package/dist_i18n/en.d.ts +1 -0
  53. package/dist_i18n/en.js +76 -3
  54. package/dist_i18n/en.umd.cjs +1 -1
  55. package/dist_i18n/es-419.d.ts +1 -0
  56. package/dist_i18n/es-419.js +76 -3
  57. package/dist_i18n/es-419.umd.cjs +1 -1
  58. package/dist_i18n/es-es.d.ts +1 -0
  59. package/dist_i18n/es-es.js +76 -3
  60. package/dist_i18n/es-es.umd.cjs +1 -1
  61. package/dist_i18n/et.d.ts +1 -0
  62. package/dist_i18n/et.js +76 -3
  63. package/dist_i18n/et.umd.cjs +1 -1
  64. package/dist_i18n/eu.d.ts +1 -0
  65. package/dist_i18n/eu.js +76 -3
  66. package/dist_i18n/eu.umd.cjs +1 -1
  67. package/dist_i18n/europe.d.ts +1 -0
  68. package/dist_i18n/europe.js +139 -66
  69. package/dist_i18n/europe.umd.cjs +1 -1
  70. package/dist_i18n/fi.d.ts +1 -0
  71. package/dist_i18n/fi.js +76 -3
  72. package/dist_i18n/fi.umd.cjs +1 -1
  73. package/dist_i18n/fr-ca.d.ts +1 -0
  74. package/dist_i18n/fr-ca.js +77 -4
  75. package/dist_i18n/fr-ca.umd.cjs +1 -1
  76. package/dist_i18n/fr-fr.d.ts +1 -0
  77. package/dist_i18n/fr-fr.js +77 -4
  78. package/dist_i18n/fr-fr.umd.cjs +1 -1
  79. package/dist_i18n/ga.d.ts +1 -0
  80. package/dist_i18n/ga.js +76 -3
  81. package/dist_i18n/ga.umd.cjs +1 -1
  82. package/dist_i18n/he.d.ts +1 -0
  83. package/dist_i18n/he.js +76 -3
  84. package/dist_i18n/he.umd.cjs +1 -1
  85. package/dist_i18n/hi.d.ts +1 -0
  86. package/dist_i18n/hi.js +76 -3
  87. package/dist_i18n/hi.umd.cjs +1 -1
  88. package/dist_i18n/hr.d.ts +1 -0
  89. package/dist_i18n/hr.js +76 -3
  90. package/dist_i18n/hr.umd.cjs +1 -1
  91. package/dist_i18n/hu.d.ts +1 -0
  92. package/dist_i18n/hu.js +76 -3
  93. package/dist_i18n/hu.umd.cjs +1 -1
  94. package/dist_i18n/id.d.ts +1 -0
  95. package/dist_i18n/id.js +76 -3
  96. package/dist_i18n/id.umd.cjs +1 -1
  97. package/dist_i18n/is.d.ts +1 -0
  98. package/dist_i18n/is.js +76 -3
  99. package/dist_i18n/is.umd.cjs +1 -1
  100. package/dist_i18n/it.d.ts +1 -0
  101. package/dist_i18n/it.js +76 -3
  102. package/dist_i18n/it.umd.cjs +1 -1
  103. package/dist_i18n/ja.d.ts +1 -0
  104. package/dist_i18n/ja.js +76 -3
  105. package/dist_i18n/ja.umd.cjs +1 -1
  106. package/dist_i18n/ko.d.ts +1 -0
  107. package/dist_i18n/ko.js +76 -3
  108. package/dist_i18n/ko.umd.cjs +1 -1
  109. package/dist_i18n/lt.d.ts +1 -0
  110. package/dist_i18n/lt.js +76 -3
  111. package/dist_i18n/lt.umd.cjs +1 -1
  112. package/dist_i18n/lv.d.ts +1 -0
  113. package/dist_i18n/lv.js +76 -3
  114. package/dist_i18n/lv.umd.cjs +1 -1
  115. package/dist_i18n/mr.d.ts +1 -0
  116. package/dist_i18n/mr.js +76 -3
  117. package/dist_i18n/mr.umd.cjs +1 -1
  118. package/dist_i18n/mt.d.ts +1 -0
  119. package/dist_i18n/mt.js +76 -3
  120. package/dist_i18n/mt.umd.cjs +1 -1
  121. package/dist_i18n/nb.d.ts +1 -0
  122. package/dist_i18n/nb.js +77 -4
  123. package/dist_i18n/nb.umd.cjs +1 -1
  124. package/dist_i18n/nl.d.ts +1 -0
  125. package/dist_i18n/nl.js +76 -3
  126. package/dist_i18n/nl.umd.cjs +1 -1
  127. package/dist_i18n/pl.d.ts +1 -0
  128. package/dist_i18n/pl.js +76 -3
  129. package/dist_i18n/pl.umd.cjs +1 -1
  130. package/dist_i18n/pt-br.d.ts +1 -0
  131. package/dist_i18n/pt-br.js +76 -3
  132. package/dist_i18n/pt-br.umd.cjs +1 -1
  133. package/dist_i18n/pt-pt.d.ts +1 -0
  134. package/dist_i18n/pt-pt.js +76 -3
  135. package/dist_i18n/pt-pt.umd.cjs +1 -1
  136. package/dist_i18n/ro.d.ts +1 -0
  137. package/dist_i18n/ro.js +76 -3
  138. package/dist_i18n/ro.umd.cjs +1 -1
  139. package/dist_i18n/ru.d.ts +1 -0
  140. package/dist_i18n/ru.js +76 -3
  141. package/dist_i18n/ru.umd.cjs +1 -1
  142. package/dist_i18n/sk.d.ts +1 -0
  143. package/dist_i18n/sk.js +76 -3
  144. package/dist_i18n/sk.umd.cjs +1 -1
  145. package/dist_i18n/sl.d.ts +1 -0
  146. package/dist_i18n/sl.js +76 -3
  147. package/dist_i18n/sl.umd.cjs +1 -1
  148. package/dist_i18n/sr.d.ts +1 -0
  149. package/dist_i18n/sr.js +76 -3
  150. package/dist_i18n/sr.umd.cjs +1 -1
  151. package/dist_i18n/sv.d.ts +1 -0
  152. package/dist_i18n/sv.js +76 -3
  153. package/dist_i18n/sv.umd.cjs +1 -1
  154. package/dist_i18n/ta.d.ts +1 -0
  155. package/dist_i18n/ta.js +76 -3
  156. package/dist_i18n/ta.umd.cjs +1 -1
  157. package/dist_i18n/te.d.ts +1 -0
  158. package/dist_i18n/te.js +76 -3
  159. package/dist_i18n/te.umd.cjs +1 -1
  160. package/dist_i18n/th.d.ts +1 -0
  161. package/dist_i18n/th.js +76 -3
  162. package/dist_i18n/th.umd.cjs +1 -1
  163. package/dist_i18n/tr.d.ts +1 -0
  164. package/dist_i18n/tr.js +76 -3
  165. package/dist_i18n/tr.umd.cjs +1 -1
  166. package/dist_i18n/uk.d.ts +1 -0
  167. package/dist_i18n/uk.js +76 -3
  168. package/dist_i18n/uk.umd.cjs +1 -1
  169. package/dist_i18n/ur.d.ts +1 -0
  170. package/dist_i18n/ur.js +76 -3
  171. package/dist_i18n/ur.umd.cjs +1 -1
  172. package/dist_i18n/vi.d.ts +1 -0
  173. package/dist_i18n/vi.js +76 -3
  174. package/dist_i18n/vi.umd.cjs +1 -1
  175. package/dist_i18n/zh-cn.d.ts +1 -0
  176. package/dist_i18n/zh-cn.js +76 -3
  177. package/dist_i18n/zh-cn.umd.cjs +1 -1
  178. package/dist_i18n/zh-tw.d.ts +1 -0
  179. package/dist_i18n/zh-tw.js +76 -3
  180. package/dist_i18n/zh-tw.umd.cjs +1 -1
  181. package/package.json +13 -7
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const l = () => {
2
+ };
3
+ function h(e, r) {
4
+ return e != e ? r == r : e !== r || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let u = !1;
7
+ function d(e) {
8
+ var r = u;
9
+ try {
10
+ return u = !0, e();
11
+ } finally {
12
+ u = r;
13
+ }
14
+ }
15
+ function p(e, r, t) {
16
+ if (e == null)
17
+ return r(void 0), l;
18
+ const n = d(
19
+ () => e.subscribe(
20
+ r,
21
+ // @ts-expect-error
22
+ t
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const o = [];
28
+ function v(e, r = l) {
29
+ let t = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function s(a) {
32
+ if (h(e, a) && (e = a, t)) {
33
+ const c = !o.length;
34
+ for (const i of n)
35
+ i[1](), o.push(i, e);
36
+ if (c) {
37
+ for (let i = 0; i < o.length; i += 2)
38
+ o[i][0](o[i + 1]);
39
+ o.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function b(a) {
44
+ s(a(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function g(a, c = l) {
50
+ const i = [a, c];
51
+ return n.add(i), n.size === 1 && (t = r(s, b) || l), a(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ n.delete(i), n.size === 0 && t && (t(), t = null);
56
+ };
57
+ }
58
+ return { set: s, update: b, subscribe: g };
59
+ }
60
+ function f(e) {
61
+ let r;
62
+ return p(e, (t) => r = t)(), r;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => f(globalThis.altchaI18n.store)[e],
67
+ set: (e, r) => {
68
+ Object.assign(f(globalThis.altchaI18n.store), {
69
+ [e]: r
70
+ }), globalThis.altchaI18n.store.set(f(globalThis.altchaI18n.store));
71
+ },
72
+ store: v({})
73
+ };
74
+ const T = {
2
75
  ariaLinkLabel: "Visitar Altcha.org",
3
76
  enterCode: "Ingresa el código",
4
77
  enterCodeAria: "Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Verificando...",
16
89
  waitAlert: "Verificando... por favor espera."
17
90
  };
18
- globalThis.altchaI18n.register("es-419", e);
91
+ globalThis.altchaI18n.set("es-419", T);
19
92
  export {
20
- e as i18n
93
+ T as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e["[name]"]={}))})(this,function(e){"use strict";const i={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Ingresa el código",enterCodeAria:"Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",error:"Falló la verificación. Por favor vuelve a intentarlo más tarde.",expired:"La verificación expiró. Por favor inténtalo de nuevo.",verificationRequired:"¡Verificación requerida!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtener un reto de audio",label:"No soy un robot",loading:"Cargando...",reload:"Volver a cargar",verify:"Verificar",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espera."};globalThis.altchaI18n.register("es-419",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (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 h(e,i){return e!=e?i==i:e!==i||e!==null&&typeof e=="object"||typeof e=="function"}let c=!1;function p(e){var i=c;try{return c=!0,e()}finally{c=i}}function T(e,i,r){if(e==null)return i(void 0),o;const n=p(()=>e.subscribe(i,r));return n.unsubscribe?()=>n.unsubscribe():n}const l=[];function v(e,i=o){let r=null;const n=new Set;function f(a){if(h(e,a)&&(e=a,r)){const d=!l.length;for(const t of n)t[1](),l.push(t,e);if(d){for(let t=0;t<l.length;t+=2)l[t][0](l[t+1]);l.length=0}}}function g(a){f(a(e))}function y(a,d=o){const t=[a,d];return n.add(t),n.size===1&&(r=i(f,g)||o),a(e),()=>{n.delete(t),n.size===0&&r&&(r(),r=null)}}return{set:f,update:g,subscribe:y}}function u(e){let i;return T(e,r=>i=r)(),i}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>u(globalThis.altchaI18n.store)[e],set:(e,i)=>{Object.assign(u(globalThis.altchaI18n.store),{[e]:i}),globalThis.altchaI18n.store.set(u(globalThis.altchaI18n.store))},store:v({})};const b={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Ingresa el código",enterCodeAria:"Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",error:"Falló la verificación. Por favor vuelve a intentarlo más tarde.",expired:"La verificación expiró. Por favor inténtalo de nuevo.",verificationRequired:"¡Verificación requerida!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtener un reto de audio",label:"No soy un robot",loading:"Cargando...",reload:"Volver a cargar",verify:"Verificar",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espera."};globalThis.altchaI18n.set("es-419",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/es-es';
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const s = () => {
2
+ };
3
+ function d(e, r) {
4
+ return e != e ? r == r : e !== r || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let u = !1;
7
+ function h(e) {
8
+ var r = u;
9
+ try {
10
+ return u = !0, e();
11
+ } finally {
12
+ u = r;
13
+ }
14
+ }
15
+ function p(e, r, i) {
16
+ if (e == null)
17
+ return r(void 0), s;
18
+ const n = h(
19
+ () => e.subscribe(
20
+ r,
21
+ // @ts-expect-error
22
+ i
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const o = [];
28
+ function T(e, r = s) {
29
+ let i = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function l(a) {
32
+ if (d(e, a) && (e = a, i)) {
33
+ const c = !o.length;
34
+ for (const t of n)
35
+ t[1](), o.push(t, e);
36
+ if (c) {
37
+ for (let t = 0; t < o.length; t += 2)
38
+ o[t][0](o[t + 1]);
39
+ o.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function b(a) {
44
+ l(a(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function g(a, c = s) {
50
+ const t = [a, c];
51
+ return n.add(t), n.size === 1 && (i = r(l, b) || s), a(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ n.delete(t), n.size === 0 && i && (i(), i = null);
56
+ };
57
+ }
58
+ return { set: l, update: b, subscribe: g };
59
+ }
60
+ function f(e) {
61
+ let r;
62
+ return p(e, (i) => r = i)(), r;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => f(globalThis.altchaI18n.store)[e],
67
+ set: (e, r) => {
68
+ Object.assign(f(globalThis.altchaI18n.store), {
69
+ [e]: r
70
+ }), globalThis.altchaI18n.store.set(f(globalThis.altchaI18n.store));
71
+ },
72
+ store: T({})
73
+ };
74
+ const I = {
2
75
  ariaLinkLabel: "Visitar Altcha.org",
3
76
  enterCode: "Introduce el código",
4
77
  enterCodeAria: "Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Verificando...",
16
89
  waitAlert: "Verificando... por favor espere."
17
90
  };
18
- globalThis.altchaI18n.register("es-es", e);
91
+ globalThis.altchaI18n.set("es-es", I);
19
92
  export {
20
- e as i18n
93
+ I as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e["[name]"]={}))})(this,function(e){"use strict";const i={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Introduce el código",enterCodeAria:"Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",error:"Falló la verificación. Por favor intente nuevamente más tarde.",expired:"Verificación expirada. Por favor intente nuevamente.",verificationRequired:"¡Verificación requerida!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtener un desafío de audio",label:"No soy un robot",loading:"Cargando...",reload:"Recargar",verify:"Verificar",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espere."};globalThis.altchaI18n.register("es-es",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (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 h(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let u=!1;function p(e){var t=u;try{return u=!0,e()}finally{u=t}}function T(e,t,n){if(e==null)return t(void 0),o;const r=p(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const l=[];function y(e,t=o){let n=null;const r=new Set;function f(a){if(h(e,a)&&(e=a,n)){const d=!l.length;for(const i of r)i[1](),l.push(i,e);if(d){for(let i=0;i<l.length;i+=2)l[i][0](l[i+1]);l.length=0}}}function g(a){f(a(e))}function v(a,d=o){const i=[a,d];return r.add(i),r.size===1&&(n=t(f,g)||o),a(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:f,update:g,subscribe:v}}function c(e){let t;return T(e,n=>t=n)(),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 b={ariaLinkLabel:"Visitar Altcha.org",enterCode:"Introduce el código",enterCodeAria:"Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",error:"Falló la verificación. Por favor intente nuevamente más tarde.",expired:"Verificación expirada. Por favor intente nuevamente.",verificationRequired:"¡Verificación requerida!",footer:'Protegido por <a href="https://altcha.org/" target="_blank" aria-label="Visitar Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtener un desafío de audio",label:"No soy un robot",loading:"Cargando...",reload:"Recargar",verify:"Verificar",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espere."};globalThis.altchaI18n.set("es-es",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/et';
package/dist_i18n/et.js CHANGED
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const s = () => {
2
+ };
3
+ function f(t, e) {
4
+ return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
5
+ }
6
+ let c = !1;
7
+ function d(t) {
8
+ var e = c;
9
+ try {
10
+ return c = !0, t();
11
+ } finally {
12
+ c = e;
13
+ }
14
+ }
15
+ function p(t, e, n) {
16
+ if (t == null)
17
+ return e(void 0), s;
18
+ const a = d(
19
+ () => t.subscribe(
20
+ e,
21
+ // @ts-expect-error
22
+ n
23
+ )
24
+ );
25
+ return a.unsubscribe ? () => a.unsubscribe() : a;
26
+ }
27
+ const l = [];
28
+ function k(t, e = s) {
29
+ let n = null;
30
+ const a = /* @__PURE__ */ new Set();
31
+ function r(o) {
32
+ if (f(t, o) && (t = o, n)) {
33
+ const u = !l.length;
34
+ for (const i of a)
35
+ i[1](), l.push(i, t);
36
+ if (u) {
37
+ for (let i = 0; i < l.length; i += 2)
38
+ l[i][0](l[i + 1]);
39
+ l.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function h(o) {
44
+ r(o(
45
+ /** @type {T} */
46
+ t
47
+ ));
48
+ }
49
+ function g(o, u = s) {
50
+ const i = [o, u];
51
+ return a.add(i), a.size === 1 && (n = e(r, h) || s), o(
52
+ /** @type {T} */
53
+ t
54
+ ), () => {
55
+ a.delete(i), a.size === 0 && n && (n(), n = null);
56
+ };
57
+ }
58
+ return { set: r, update: h, subscribe: g };
59
+ }
60
+ function b(t) {
61
+ let e;
62
+ return p(t, (n) => e = n)(), e;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (t) => b(globalThis.altchaI18n.store)[t],
67
+ set: (t, e) => {
68
+ Object.assign(b(globalThis.altchaI18n.store), {
69
+ [t]: e
70
+ }), globalThis.altchaI18n.store.set(b(globalThis.altchaI18n.store));
71
+ },
72
+ store: k({})
73
+ };
74
+ const K = {
2
75
  ariaLinkLabel: "Külasta Altcha.org",
3
76
  enterCode: "Sisesta kood",
4
77
  enterCodeAria: "Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Kinnitamine...",
16
89
  waitAlert: "Kinnitamine... palun oota."
17
90
  };
18
- globalThis.altchaI18n.register("et", e);
91
+ globalThis.altchaI18n.set("et", K);
19
92
  export {
20
- e as i18n
93
+ K as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e["[name]"]={}))})(this,function(e){"use strict";const i={ariaLinkLabel:"Külasta Altcha.org",enterCode:"Sisesta kood",enterCodeAria:"Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",error:"Kinnitamine ebaõnnestus. Proovi hiljem uuesti.",expired:"Kinnitamine aegus. Proovi uuesti.",verificationRequired:"Kontroll on vajalik!",footer:'Kaitstud <a href="https://altcha.org/" target="_blank" aria-label="Külasta Altcha.org">ALTCHA</a> poolt',getAudioChallenge:"Hangi heliülesanne",label:"Ma ei ole robot",loading:"Laadimine...",reload:"Laadi uuesti",verify:"Kinnita",verified:"Kinnitatud",verifying:"Kinnitamine...",waitAlert:"Kinnitamine... palun oota."};globalThis.altchaI18n.register("et",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(l,a){typeof exports=="object"&&typeof module<"u"?a(exports):typeof define=="function"&&define.amd?define(["exports"],a):(l=typeof globalThis<"u"?globalThis:l||self,a(l["[name]"]={}))})(this,function(l){"use strict";const a=()=>{};function g(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let u=!1;function p(e){var t=u;try{return u=!0,e()}finally{u=t}}function T(e,t,i){if(e==null)return t(void 0),a;const o=p(()=>e.subscribe(t,i));return o.unsubscribe?()=>o.unsubscribe():o}const r=[];function k(e,t=a){let i=null;const o=new Set;function f(s){if(g(e,s)&&(e=s,i)){const b=!r.length;for(const n of o)n[1](),r.push(n,e);if(b){for(let n=0;n<r.length;n+=2)r[n][0](r[n+1]);r.length=0}}}function d(s){f(s(e))}function m(s,b=a){const n=[s,b];return o.add(n),o.size===1&&(i=t(f,d)||a),s(e),()=>{o.delete(n),o.size===0&&i&&(i(),i=null)}}return{set:f,update:d,subscribe:m}}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:k({})};const h={ariaLinkLabel:"Külasta Altcha.org",enterCode:"Sisesta kood",enterCodeAria:"Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",error:"Kinnitamine ebaõnnestus. Proovi hiljem uuesti.",expired:"Kinnitamine aegus. Proovi uuesti.",verificationRequired:"Kontroll on vajalik!",footer:'Kaitstud <a href="https://altcha.org/" target="_blank" aria-label="Külasta Altcha.org">ALTCHA</a> poolt',getAudioChallenge:"Hangi heliülesanne",label:"Ma ei ole robot",loading:"Laadimine...",reload:"Laadi uuesti",verify:"Kinnita",verified:"Kinnitatud",verifying:"Kinnitamine...",waitAlert:"Kinnitamine... palun oota."};globalThis.altchaI18n.set("et",h),l.i18n=h,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/eu';
package/dist_i18n/eu.js CHANGED
@@ -1,4 +1,77 @@
1
- const a = {
1
+ const u = () => {
2
+ };
3
+ function h(t, e) {
4
+ return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
5
+ }
6
+ let c = !1;
7
+ function d(t) {
8
+ var e = c;
9
+ try {
10
+ return c = !0, t();
11
+ } finally {
12
+ c = e;
13
+ }
14
+ }
15
+ function z(t, e, i) {
16
+ if (t == null)
17
+ return e(void 0), u;
18
+ const r = d(
19
+ () => t.subscribe(
20
+ e,
21
+ // @ts-expect-error
22
+ i
23
+ )
24
+ );
25
+ return r.unsubscribe ? () => r.unsubscribe() : r;
26
+ }
27
+ const o = [];
28
+ function k(t, e = u) {
29
+ let i = null;
30
+ const r = /* @__PURE__ */ new Set();
31
+ function s(n) {
32
+ if (h(t, n) && (t = n, i)) {
33
+ const l = !o.length;
34
+ for (const a of r)
35
+ a[1](), o.push(a, t);
36
+ if (l) {
37
+ for (let a = 0; a < o.length; a += 2)
38
+ o[a][0](o[a + 1]);
39
+ o.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function g(n) {
44
+ s(n(
45
+ /** @type {T} */
46
+ t
47
+ ));
48
+ }
49
+ function f(n, l = u) {
50
+ const a = [n, l];
51
+ return r.add(a), r.size === 1 && (i = e(s, g) || u), n(
52
+ /** @type {T} */
53
+ t
54
+ ), () => {
55
+ r.delete(a), r.size === 0 && i && (i(), i = null);
56
+ };
57
+ }
58
+ return { set: s, update: g, subscribe: f };
59
+ }
60
+ function b(t) {
61
+ let e;
62
+ return z(t, (i) => e = i)(), e;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (t) => b(globalThis.altchaI18n.store)[t],
67
+ set: (t, e) => {
68
+ Object.assign(b(globalThis.altchaI18n.store), {
69
+ [t]: e
70
+ }), globalThis.altchaI18n.store.set(b(globalThis.altchaI18n.store));
71
+ },
72
+ store: k({})
73
+ };
74
+ const p = {
2
75
  ariaLinkLabel: "Bisitatu Altcha.org",
3
76
  enterCode: "Sartu kodea",
4
77
  enterCodeAria: "Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",
@@ -15,7 +88,7 @@ const a = {
15
88
  verifying: "Egiaztatzen...",
16
89
  waitAlert: "Egiaztatzen... itxaron mesedez."
17
90
  };
18
- globalThis.altchaI18n.register("eu", a);
91
+ globalThis.altchaI18n.set("eu", p);
19
92
  export {
20
- a as i18n
93
+ p as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(e,a){typeof exports=="object"&&typeof module<"u"?a(exports):typeof define=="function"&&define.amd?define(["exports"],a):(e=typeof globalThis<"u"?globalThis:e||self,a(e["[name]"]={}))})(this,function(e){"use strict";const a={ariaLinkLabel:"Bisitatu Altcha.org",enterCode:"Sartu kodea",enterCodeAria:"Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",error:"Egiaztatzeak huts egin du. Saiatu berriro geroago.",expired:"Egiaztatzea iraungi da. Saiatu berriro.",verificationRequired:"Egiaztatzea beharrezkoa da!",footer:'<a href="https://altcha.org/" target="_blank" aria-label="Bisitatu Altcha.org">ALTCHA</a>k babestuta',getAudioChallenge:"Jaso audio-erronka bat",label:"Ez naiz robot bat",loading:"Kargatzen...",reload:"Birkargatu",verify:"Egiaztatu",verified:"Egiaztatuta",verifying:"Egiaztatzen...",waitAlert:"Egiaztatzen... itxaron mesedez."};globalThis.altchaI18n.register("eu",a),e.i18n=a,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(u,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(u=typeof globalThis<"u"?globalThis:u||self,r(u["[name]"]={}))})(this,function(u){"use strict";const r=()=>{};function h(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let l=!1;function z(e){var t=l;try{return l=!0,e()}finally{l=t}}function p(e,t,i){if(e==null)return t(void 0),r;const n=z(()=>e.subscribe(t,i));return n.unsubscribe?()=>n.unsubscribe():n}const s=[];function k(e,t=r){let i=null;const n=new Set;function b(o){if(h(e,o)&&(e=o,i)){const f=!s.length;for(const a of n)a[1](),s.push(a,e);if(f){for(let a=0;a<s.length;a+=2)s[a][0](s[a+1]);s.length=0}}}function d(o){b(o(e))}function T(o,f=r){const a=[o,f];return n.add(a),n.size===1&&(i=t(b,d)||r),o(e),()=>{n.delete(a),n.size===0&&i&&(i(),i=null)}}return{set:b,update:d,subscribe:T}}function c(e){let t;return p(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:k({})};const g={ariaLinkLabel:"Bisitatu Altcha.org",enterCode:"Sartu kodea",enterCodeAria:"Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",error:"Egiaztatzeak huts egin du. Saiatu berriro geroago.",expired:"Egiaztatzea iraungi da. Saiatu berriro.",verificationRequired:"Egiaztatzea beharrezkoa da!",footer:'<a href="https://altcha.org/" target="_blank" aria-label="Bisitatu Altcha.org">ALTCHA</a>k babestuta',getAudioChallenge:"Jaso audio-erronka bat",label:"Ez naiz robot bat",loading:"Kargatzen...",reload:"Birkargatu",verify:"Egiaztatu",verified:"Egiaztatuta",verifying:"Egiaztatzen...",waitAlert:"Egiaztatzen... itxaron mesedez."};globalThis.altchaI18n.set("eu",g),u.i18n=g,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/europe';