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 +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:"Vieraile sivulla Altcha.org",enterCode:"Syötä koodi",enterCodeAria:"Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",error:"Varmennus epäonnistui. Yritä myöhemmin uudelleen.",expired:"Varmennus vanhentui. Yritä uudelleen.",verificationRequired:"Vahvistus vaaditaan!",footer:'Suojattu <a href="https://altcha.org/" target="_blank" aria-label="Vieraile sivulla Altcha.org">ALTCHA</a>:lla',getAudioChallenge:"Hae äänitehtävä",label:"En ole robotti",loading:"Ladataan...",reload:"Lataa uudelleen",verify:"Vahvista",verified:"Vahvistettu",verifying:"Vahvistetaan...",waitAlert:"Vahvistetaan... odota hetki."};globalThis.altchaI18n.register("fi",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(s,l){typeof exports=="object"&&typeof module<"u"?l(exports):typeof define=="function"&&define.amd?define(["exports"],l):(s=typeof globalThis<"u"?globalThis:s||self,l(s["[name]"]={}))})(this,function(s){"use strict";const l=()=>{};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 v(e,t,i){if(e==null)return t(void 0),l;const a=p(()=>e.subscribe(t,i));return a.unsubscribe?()=>a.unsubscribe():a}const r=[];function y(e,t=l){let i=null;const a=new Set;function f(o){if(g(e,o)&&(e=o,i)){const h=!r.length;for(const n of a)n[1](),r.push(n,e);if(h){for(let n=0;n<r.length;n+=2)r[n][0](r[n+1]);r.length=0}}}function d(o){f(o(e))}function T(o,h=l){const n=[o,h];return a.add(n),a.size===1&&(i=t(f,d)||l),o(e),()=>{a.delete(n),a.size===0&&i&&(i(),i=null)}}return{set:f,update:d,subscribe:T}}function c(e){let t;return v(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 b={ariaLinkLabel:"Vieraile sivulla Altcha.org",enterCode:"Syötä koodi",enterCodeAria:"Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",error:"Varmennus epäonnistui. Yritä myöhemmin uudelleen.",expired:"Varmennus vanhentui. Yritä uudelleen.",verificationRequired:"Vahvistus vaaditaan!",footer:'Suojattu <a href="https://altcha.org/" target="_blank" aria-label="Vieraile sivulla Altcha.org">ALTCHA</a>:lla',getAudioChallenge:"Hae äänitehtävä",label:"En ole robotti",loading:"Ladataan...",reload:"Lataa uudelleen",verify:"Vahvista",verified:"Vahvistettu",verifying:"Vahvistetaan...",waitAlert:"Vahvistetaan... odota hetki."};globalThis.altchaI18n.set("fi",b),s.i18n=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/fr-ca';
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const s = () => {
2
+ };
3
+ function g(e, t) {
4
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let c = !1;
7
+ function d(e) {
8
+ var t = c;
9
+ try {
10
+ return c = !0, e();
11
+ } finally {
12
+ c = t;
13
+ }
14
+ }
15
+ function p(e, t, i) {
16
+ if (e == null)
17
+ return t(void 0), s;
18
+ const n = d(
19
+ () => e.subscribe(
20
+ t,
21
+ // @ts-expect-error
22
+ i
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const o = [];
28
+ function z(e, t = s) {
29
+ let i = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function l(a) {
32
+ if (g(e, a) && (e = a, i)) {
33
+ const u = !o.length;
34
+ for (const r of n)
35
+ r[1](), o.push(r, e);
36
+ if (u) {
37
+ for (let r = 0; r < o.length; r += 2)
38
+ o[r][0](o[r + 1]);
39
+ o.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function b(a) {
44
+ l(a(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function h(a, u = s) {
50
+ const r = [a, u];
51
+ return n.add(r), n.size === 1 && (i = t(l, b) || s), a(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ n.delete(r), n.size === 0 && i && (i(), i = null);
56
+ };
57
+ }
58
+ return { set: l, update: b, subscribe: h };
59
+ }
60
+ function f(e) {
61
+ let t;
62
+ return p(e, (i) => t = i)(), t;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => f(globalThis.altchaI18n.store)[e],
67
+ set: (e, t) => {
68
+ Object.assign(f(globalThis.altchaI18n.store), {
69
+ [e]: t
70
+ }), globalThis.altchaI18n.store.set(f(globalThis.altchaI18n.store));
71
+ },
72
+ store: z({})
73
+ };
74
+ const T = {
2
75
  ariaLinkLabel: "Visitez Altcha.org",
3
76
  enterCode: "Entrez le code",
4
77
  enterCodeAria: "Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",
@@ -7,7 +80,7 @@ const e = {
7
80
  verificationRequired: "Vérification requise !",
8
81
  footer: 'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',
9
82
  getAudioChallenge: "Obtenir un défi audio",
10
- label: "Je ne suis pas un robot",
83
+ label: "Pas un robot",
11
84
  loading: "Chargement...",
12
85
  reload: "Recharger",
13
86
  verify: "Vérifier",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Vérification en cours...",
16
89
  waitAlert: "Vérification en cours... veuillez patienter."
17
90
  };
18
- globalThis.altchaI18n.register("fr-ca", e);
91
+ globalThis.altchaI18n.set("fr-ca", 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:"Visitez Altcha.org",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",error:"Échec de la vérification. Réessayez plus tard.",expired:"La vérification a expiré. Réessayez.",verificationRequired:"Vérification requise !",footer:'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Je ne suis pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter."};globalThis.altchaI18n.register("fr-ca",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(a,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(a=typeof globalThis<"u"?globalThis:a||self,o(a["[name]"]={}))})(this,function(a){"use strict";const o=()=>{};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 y(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 T(e,t=o){let n=null;const r=new Set;function f(s){if(g(e,s)&&(e=s,n)){const b=!l.length;for(const i of r)i[1](),l.push(i,e);if(b){for(let i=0;i<l.length;i+=2)l[i][0](l[i+1]);l.length=0}}}function h(s){f(s(e))}function z(s,b=o){const i=[s,b];return r.add(i),r.size===1&&(n=t(f,h)||o),s(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:f,update:h,subscribe:z}}function c(e){let t;return y(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:T({})};const d={ariaLinkLabel:"Visitez Altcha.org",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",error:"Échec de la vérification. Réessayez plus tard.",expired:"La vérification a expiré. Réessayez.",verificationRequired:"Vérification requise !",footer:'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter."};globalThis.altchaI18n.set("fr-ca",d),a.i18n=d,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/fr-fr';
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const s = () => {
2
+ };
3
+ function g(e, t) {
4
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let c = !1;
7
+ function d(e) {
8
+ var t = c;
9
+ try {
10
+ return c = !0, e();
11
+ } finally {
12
+ c = t;
13
+ }
14
+ }
15
+ function p(e, t, r) {
16
+ if (e == null)
17
+ return t(void 0), s;
18
+ const n = d(
19
+ () => e.subscribe(
20
+ t,
21
+ // @ts-expect-error
22
+ r
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const a = [];
28
+ function z(e, t = s) {
29
+ let r = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function l(o) {
32
+ if (g(e, o) && (e = o, r)) {
33
+ const u = !a.length;
34
+ for (const i of n)
35
+ i[1](), a.push(i, e);
36
+ if (u) {
37
+ for (let i = 0; i < a.length; i += 2)
38
+ a[i][0](a[i + 1]);
39
+ a.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function b(o) {
44
+ l(o(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function h(o, u = s) {
50
+ const i = [o, u];
51
+ return n.add(i), n.size === 1 && (r = t(l, b) || s), o(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ n.delete(i), n.size === 0 && r && (r(), r = null);
56
+ };
57
+ }
58
+ return { set: l, update: b, subscribe: h };
59
+ }
60
+ function f(e) {
61
+ let t;
62
+ return p(e, (r) => t = r)(), t;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => f(globalThis.altchaI18n.store)[e],
67
+ set: (e, t) => {
68
+ Object.assign(f(globalThis.altchaI18n.store), {
69
+ [e]: t
70
+ }), globalThis.altchaI18n.store.set(f(globalThis.altchaI18n.store));
71
+ },
72
+ store: z({})
73
+ };
74
+ const T = {
2
75
  ariaLinkLabel: "Visitez Altcha.org",
3
76
  enterCode: "Entrez le code",
4
77
  enterCodeAria: "Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",
@@ -7,7 +80,7 @@ const e = {
7
80
  verificationRequired: "Vérification requise !",
8
81
  footer: 'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',
9
82
  getAudioChallenge: "Obtenir un défi audio",
10
- label: "Je ne suis pas un robot",
83
+ label: "Pas un robot",
11
84
  loading: "Chargement...",
12
85
  reload: "Recharger",
13
86
  verify: "Vérifier",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Vérification en cours...",
16
89
  waitAlert: "Vérification en cours... veuillez patienter."
17
90
  };
18
- globalThis.altchaI18n.register("fr-fr", e);
91
+ globalThis.altchaI18n.set("fr-fr", 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:"Visitez Altcha.org",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",error:"Échec de la vérification. Essayez à nouveau plus tard.",expired:"La vérification a expiré. Essayez à nouveau.",verificationRequired:"Vérification requise !",footer:'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Je ne suis pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter."};globalThis.altchaI18n.register("fr-fr",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(a,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(a=typeof globalThis<"u"?globalThis:a||self,o(a["[name]"]={}))})(this,function(a){"use strict";const o=()=>{};function g(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}let l=!1;function p(e){var t=l;try{return l=!0,e()}finally{l=t}}function y(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 u=[];function T(e,t=o){let n=null;const r=new Set;function f(s){if(g(e,s)&&(e=s,n)){const b=!u.length;for(const i of r)i[1](),u.push(i,e);if(b){for(let i=0;i<u.length;i+=2)u[i][0](u[i+1]);u.length=0}}}function d(s){f(s(e))}function z(s,b=o){const i=[s,b];return r.add(i),r.size===1&&(n=t(f,d)||o),s(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:f,update:d,subscribe:z}}function c(e){let t;return y(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:T({})};const h={ariaLinkLabel:"Visitez Altcha.org",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",error:"Échec de la vérification. Essayez à nouveau plus tard.",expired:"La vérification a expiré. Essayez à nouveau.",verificationRequired:"Vérification requise !",footer:'Protégé par <a href="https://altcha.org/" target="_blank" aria-label="Visitez Altcha.org">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter."};globalThis.altchaI18n.set("fr-fr",h),a.i18n=h,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/ga';
package/dist_i18n/ga.js CHANGED
@@ -1,4 +1,77 @@
1
- const a = {
1
+ const s = () => {
2
+ };
3
+ function g(t, a) {
4
+ return t != t ? a == a : t !== a || t !== null && typeof t == "object" || typeof t == "function";
5
+ }
6
+ let u = !1;
7
+ function d(t) {
8
+ var a = u;
9
+ try {
10
+ return u = !0, t();
11
+ } finally {
12
+ u = a;
13
+ }
14
+ }
15
+ function T(t, a, i) {
16
+ if (t == null)
17
+ return a(void 0), s;
18
+ const n = d(
19
+ () => t.subscribe(
20
+ a,
21
+ // @ts-expect-error
22
+ i
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const l = [];
28
+ function p(t, a = s) {
29
+ let i = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function o(r) {
32
+ if (g(t, r) && (t = r, i)) {
33
+ const c = !l.length;
34
+ for (const e of n)
35
+ e[1](), l.push(e, t);
36
+ if (c) {
37
+ for (let e = 0; e < l.length; e += 2)
38
+ l[e][0](l[e + 1]);
39
+ l.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function b(r) {
44
+ o(r(
45
+ /** @type {T} */
46
+ t
47
+ ));
48
+ }
49
+ function f(r, c = s) {
50
+ const e = [r, c];
51
+ return n.add(e), n.size === 1 && (i = a(o, b) || s), r(
52
+ /** @type {T} */
53
+ t
54
+ ), () => {
55
+ n.delete(e), n.size === 0 && i && (i(), i = null);
56
+ };
57
+ }
58
+ return { set: o, update: b, subscribe: f };
59
+ }
60
+ function h(t) {
61
+ let a;
62
+ return T(t, (i) => a = i)(), a;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (t) => h(globalThis.altchaI18n.store)[t],
67
+ set: (t, a) => {
68
+ Object.assign(h(globalThis.altchaI18n.store), {
69
+ [t]: a
70
+ }), globalThis.altchaI18n.store.set(h(globalThis.altchaI18n.store));
71
+ },
72
+ store: p({})
73
+ };
74
+ const A = {
2
75
  ariaLinkLabel: "Tabhair cuairt ar Altcha.org",
3
76
  enterCode: "Iontráil cód",
4
77
  enterCodeAria: "Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",
@@ -15,7 +88,7 @@ const a = {
15
88
  verifying: "Fíorú ar siúl...",
16
89
  waitAlert: "Fíorú ar siúl... fan go fóill."
17
90
  };
18
- globalThis.altchaI18n.register("ga", a);
91
+ globalThis.altchaI18n.set("ga", A);
19
92
  export {
20
- a as i18n
93
+ A as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a["[name]"]={}))})(this,function(a){"use strict";const e={ariaLinkLabel:"Tabhair cuairt ar Altcha.org",enterCode:"Iontráil cód",enterCodeAria:"Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",error:"Theip ar an bhfíorú. Bain triail eile as níos déanaí.",expired:"Tá an fíorú as feidhm. Bain triail eile as.",verificationRequired:"Fíorú riachtanach!",footer:'Cosanta ag <a href="https://altcha.org/" target="_blank" aria-label="Tabhair cuairt ar Altcha.org">ALTCHA</a>',getAudioChallenge:"Faigh dúshlán fuaime",label:"Níl mé i mo róbat",loading:"Á luchtú...",reload:"Athluchtaigh",verify:"Fíoraigh",verified:"Fíoraithe",verifying:"Fíorú ar siúl...",waitAlert:"Fíorú ar siúl... fan go fóill."};globalThis.altchaI18n.register("ga",e),a.i18n=e,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
1
+ (function(l,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(l=typeof globalThis<"u"?globalThis:l||self,r(l["[name]"]={}))})(this,function(l){"use strict";const r=()=>{};function d(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),r;const a=p(()=>e.subscribe(t,n));return a.unsubscribe?()=>a.unsubscribe():a}const s=[];function m(e,t=r){let n=null;const a=new Set;function h(o){if(d(e,o)&&(e=o,n)){const f=!s.length;for(const i of a)i[1](),s.push(i,e);if(f){for(let i=0;i<s.length;i+=2)s[i][0](s[i+1]);s.length=0}}}function g(o){h(o(e))}function y(o,f=r){const i=[o,f];return a.add(i),a.size===1&&(n=t(h,g)||r),o(e),()=>{a.delete(i),a.size===0&&n&&(n(),n=null)}}return{set:h,update:g,subscribe:y}}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:m({})};const b={ariaLinkLabel:"Tabhair cuairt ar Altcha.org",enterCode:"Iontráil cód",enterCodeAria:"Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",error:"Theip ar an bhfíorú. Bain triail eile as níos déanaí.",expired:"Tá an fíorú as feidhm. Bain triail eile as.",verificationRequired:"Fíorú riachtanach!",footer:'Cosanta ag <a href="https://altcha.org/" target="_blank" aria-label="Tabhair cuairt ar Altcha.org">ALTCHA</a>',getAudioChallenge:"Faigh dúshlán fuaime",label:"Níl mé i mo róbat",loading:"Á luchtú...",reload:"Athluchtaigh",verify:"Fíoraigh",verified:"Fíoraithe",verifying:"Fíorú ar siúl...",waitAlert:"Fíorú ar siúl... fan go fóill."};globalThis.altchaI18n.set("ga",b),l.i18n=b,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/he';
package/dist_i18n/he.js CHANGED
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const o = () => {
2
+ };
3
+ function g(e, t) {
4
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let c = !1;
7
+ function d(e) {
8
+ var t = c;
9
+ try {
10
+ return c = !0, e();
11
+ } finally {
12
+ c = t;
13
+ }
14
+ }
15
+ function p(e, t, r) {
16
+ if (e == null)
17
+ return t(void 0), o;
18
+ const i = d(
19
+ () => e.subscribe(
20
+ t,
21
+ // @ts-expect-error
22
+ r
23
+ )
24
+ );
25
+ return i.unsubscribe ? () => i.unsubscribe() : i;
26
+ }
27
+ const s = [];
28
+ function T(e, t = o) {
29
+ let r = null;
30
+ const i = /* @__PURE__ */ new Set();
31
+ function a(l) {
32
+ if (g(e, l) && (e = l, r)) {
33
+ const u = !s.length;
34
+ for (const n of i)
35
+ n[1](), s.push(n, e);
36
+ if (u) {
37
+ for (let n = 0; n < s.length; n += 2)
38
+ s[n][0](s[n + 1]);
39
+ s.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function f(l) {
44
+ a(l(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function h(l, u = o) {
50
+ const n = [l, u];
51
+ return i.add(n), i.size === 1 && (r = t(a, f) || o), l(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ i.delete(n), i.size === 0 && r && (r(), r = null);
56
+ };
57
+ }
58
+ return { set: a, update: f, subscribe: h };
59
+ }
60
+ function b(e) {
61
+ let t;
62
+ return p(e, (r) => t = r)(), t;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => b(globalThis.altchaI18n.store)[e],
67
+ set: (e, t) => {
68
+ Object.assign(b(globalThis.altchaI18n.store), {
69
+ [e]: t
70
+ }), globalThis.altchaI18n.store.set(b(globalThis.altchaI18n.store));
71
+ },
72
+ store: T({})
73
+ };
74
+ const A = {
2
75
  ariaLinkLabel: "בקר באתר Altcha.org",
3
76
  enterCode: "הזן קוד",
4
77
  enterCodeAria: "הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "מאמת...",
16
89
  waitAlert: "מבצע אימות... אנא המתן."
17
90
  };
18
- globalThis.altchaI18n.register("he", e);
91
+ globalThis.altchaI18n.set("he", A);
19
92
  export {
20
- e as i18n
93
+ A 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:"בקר באתר Altcha.org",enterCode:"הזן קוד",enterCodeAria:"הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",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.register("he",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(l,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(l=typeof globalThis<"u"?globalThis:l||self,o(l["[name]"]={}))})(this,function(l){"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(s){if(d(e,s)&&(e=s,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(s){f(s(e))}function A(s,b=o){const n=[s,b];return r.add(n),r.size===1&&(i=t(f,g)||o),s(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:"הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",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("he",h),l.i18n=h,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/hi';
package/dist_i18n/hi.js CHANGED
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const o = () => {
2
+ };
3
+ function g(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, r) {
16
+ if (t == null)
17
+ return e(void 0), o;
18
+ const i = d(
19
+ () => t.subscribe(
20
+ e,
21
+ // @ts-expect-error
22
+ r
23
+ )
24
+ );
25
+ return i.unsubscribe ? () => i.unsubscribe() : i;
26
+ }
27
+ const s = [];
28
+ function T(t, e = o) {
29
+ let r = null;
30
+ const i = /* @__PURE__ */ new Set();
31
+ function a(l) {
32
+ if (g(t, l) && (t = l, r)) {
33
+ const u = !s.length;
34
+ for (const n of i)
35
+ n[1](), s.push(n, t);
36
+ if (u) {
37
+ for (let n = 0; n < s.length; n += 2)
38
+ s[n][0](s[n + 1]);
39
+ s.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function f(l) {
44
+ a(l(
45
+ /** @type {T} */
46
+ t
47
+ ));
48
+ }
49
+ function h(l, u = o) {
50
+ const n = [l, u];
51
+ return i.add(n), i.size === 1 && (r = e(a, f) || o), l(
52
+ /** @type {T} */
53
+ t
54
+ ), () => {
55
+ i.delete(n), i.size === 0 && r && (r(), r = null);
56
+ };
57
+ }
58
+ return { set: a, update: f, subscribe: h };
59
+ }
60
+ function b(t) {
61
+ let e;
62
+ return p(t, (r) => e = r)(), 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: T({})
73
+ };
74
+ const A = {
2
75
  ariaLinkLabel: "Altcha.org पर जाएं",
3
76
  enterCode: "कोड दर्ज करेंं",
4
77
  enterCodeAria: "आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "सत्यापित कर रहे हैं...",
16
89
  waitAlert: "सत्यापित किया जा रहा है... कृपया प्रतीक्षा करें।"
17
90
  };
18
- globalThis.altchaI18n.register("hi", e);
91
+ globalThis.altchaI18n.set("hi", A);
19
92
  export {
20
- e as i18n
93
+ A 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:"Altcha.org पर जाएं",enterCode:"कोड दर्ज करेंं",enterCodeAria:"आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",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.register("hi",i),e.i18n=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (function(l,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(l=typeof globalThis<"u"?globalThis:l||self,o(l["[name]"]={}))})(this,function(l){"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(s){if(d(e,s)&&(e=s,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(s){f(s(e))}function A(s,b=o){const n=[s,b];return r.add(n),r.size===1&&(i=t(f,g)||o),s(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:"आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",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("hi",h),l.i18n=h,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/hr';
package/dist_i18n/hr.js CHANGED
@@ -1,4 +1,77 @@
1
- const e = {
1
+ const s = () => {
2
+ };
3
+ function j(e, t) {
4
+ return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
5
+ }
6
+ let c = !1;
7
+ function g(e) {
8
+ var t = c;
9
+ try {
10
+ return c = !0, e();
11
+ } finally {
12
+ c = t;
13
+ }
14
+ }
15
+ function d(e, t, r) {
16
+ if (e == null)
17
+ return t(void 0), s;
18
+ const n = g(
19
+ () => e.subscribe(
20
+ t,
21
+ // @ts-expect-error
22
+ r
23
+ )
24
+ );
25
+ return n.unsubscribe ? () => n.unsubscribe() : n;
26
+ }
27
+ const a = [];
28
+ function p(e, t = s) {
29
+ let r = null;
30
+ const n = /* @__PURE__ */ new Set();
31
+ function l(i) {
32
+ if (j(e, i) && (e = i, r)) {
33
+ const u = !a.length;
34
+ for (const o of n)
35
+ o[1](), a.push(o, e);
36
+ if (u) {
37
+ for (let o = 0; o < a.length; o += 2)
38
+ a[o][0](a[o + 1]);
39
+ a.length = 0;
40
+ }
41
+ }
42
+ }
43
+ function f(i) {
44
+ l(i(
45
+ /** @type {T} */
46
+ e
47
+ ));
48
+ }
49
+ function h(i, u = s) {
50
+ const o = [i, u];
51
+ return n.add(o), n.size === 1 && (r = t(l, f) || s), i(
52
+ /** @type {T} */
53
+ e
54
+ ), () => {
55
+ n.delete(o), n.size === 0 && r && (r(), r = null);
56
+ };
57
+ }
58
+ return { set: l, update: f, subscribe: h };
59
+ }
60
+ function b(e) {
61
+ let t;
62
+ return d(e, (r) => t = r)(), t;
63
+ }
64
+ globalThis.altchaPlugins = globalThis.altchaPlugins || [];
65
+ globalThis.altchaI18n = globalThis.altchaI18n || {
66
+ get: (e) => b(globalThis.altchaI18n.store)[e],
67
+ set: (e, t) => {
68
+ Object.assign(b(globalThis.altchaI18n.store), {
69
+ [e]: t
70
+ }), globalThis.altchaI18n.store.set(b(globalThis.altchaI18n.store));
71
+ },
72
+ store: p({})
73
+ };
74
+ const k = {
2
75
  ariaLinkLabel: "Posjetite Altcha.org",
3
76
  enterCode: "Unesite kod",
4
77
  enterCodeAria: "Unesite kod koji čujete. Pritisnite razmaknicu za reprodukciju zvuka.",
@@ -15,7 +88,7 @@ const e = {
15
88
  verifying: "Provjeravanje...",
16
89
  waitAlert: "Provjera je u tijeku... molimo pričekajte."
17
90
  };
18
- globalThis.altchaI18n.register("hr", e);
91
+ globalThis.altchaI18n.set("hr", k);
19
92
  export {
20
- e as i18n
93
+ k as i18n
21
94
  };
@@ -1 +1 @@
1
- (function(e,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(e=typeof globalThis<"u"?globalThis:e||self,o(e["[name]"]={}))})(this,function(e){"use strict";const o={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.register("hr",o),e.i18n=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
1
+ (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"})});
@@ -0,0 +1 @@
1
+ declare module 'altcha/i18n/hu';