@prosopo/procaptcha-bundle 3.1.6 → 3.2.3

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 (174) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/dist/cjs/index.cjs +10 -1
  3. package/dist/cjs/util/configCreator.cjs +0 -1
  4. package/dist/index.js +10 -1
  5. package/dist/util/configCreator.js +0 -1
  6. package/package.json +16 -16
  7. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -5
  8. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -1
  9. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -5
  10. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -1
  11. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -16
  12. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +0 -1
  13. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js +0 -135
  14. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -1
  15. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -2
  16. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
  17. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -36
  18. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -1
  19. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -2
  20. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -1
  21. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -69
  22. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -1
  23. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -2
  24. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
  25. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -136
  26. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -1
  27. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -8
  28. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
  29. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -15
  30. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -1
  31. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -6
  32. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
  33. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -11
  34. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -1
  35. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -10
  36. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
  37. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -2
  38. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -1
  39. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -24
  40. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
  41. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -49
  42. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -1
  43. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -3
  44. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
  45. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -8
  46. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -1
  47. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
  48. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  49. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -14
  50. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -1
  51. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -4
  52. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
  53. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -9
  54. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -1
  55. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -4
  56. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
  57. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -9
  58. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -1
  59. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -6
  60. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -1
  61. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -13
  62. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -1
  63. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -5
  64. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +0 -1
  65. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -24
  66. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +0 -1
  67. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -3
  68. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -1
  69. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -17
  70. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -1
  71. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -3
  72. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -1
  73. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -9
  74. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -1
  75. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -18
  76. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +0 -1
  77. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -66
  78. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -1
  79. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -9
  80. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
  81. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -19
  82. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -1
  83. package/dist/bundle/ProcaptchaWidget-CJ-4hVS1.js +0 -187
  84. package/dist/bundle/ProcaptchaWidget-Cw3s7cGX.js +0 -1014
  85. package/dist/bundle/Signer-DP9drQ55.js +0 -23
  86. package/dist/bundle/bnChunk-DRlDxTFg.js +0 -1137
  87. package/dist/bundle/browser-ponyfill-CvzSbL_o.js +0 -339
  88. package/dist/bundle/builder-ByZ5z580.js +0 -46
  89. package/dist/bundle/captchaComponentProvider-Cn75EmSH.js +0 -1002
  90. package/dist/bundle/captchaRenderer-s4QuLEen.js +0 -71
  91. package/dist/bundle/commonChunk-BjvuHlB1.js +0 -180
  92. package/dist/bundle/components.d.ts +0 -5
  93. package/dist/bundle/components.d.ts.map +0 -1
  94. package/dist/bundle/emotion-element-c39617d8.browser.esm-BNNnmykm.js +0 -916
  95. package/dist/bundle/fp.esm-DYWeNGcH.js +0 -1654
  96. package/dist/bundle/index-BuQg3Zno.js +0 -1884
  97. package/dist/bundle/index-DIdd2cUz.js +0 -5416
  98. package/dist/bundle/index-IgqrmVIs.js +0 -601
  99. package/dist/bundle/index.d.ts +0 -16
  100. package/dist/bundle/index.d.ts.map +0 -1
  101. package/dist/bundle/locales/ar/translation.json +0 -57
  102. package/dist/bundle/locales/az/translation.json +0 -57
  103. package/dist/bundle/locales/cs/translation.json +0 -57
  104. package/dist/bundle/locales/de/translation.json +0 -57
  105. package/dist/bundle/locales/el/translation.json +0 -57
  106. package/dist/bundle/locales/en/translation.json +0 -57
  107. package/dist/bundle/locales/es/translation.json +0 -57
  108. package/dist/bundle/locales/fi/translation.json +0 -57
  109. package/dist/bundle/locales/fr/translation.json +0 -57
  110. package/dist/bundle/locales/hi/translation.json +0 -57
  111. package/dist/bundle/locales/hu/translation.json +0 -57
  112. package/dist/bundle/locales/id/translation.json +0 -57
  113. package/dist/bundle/locales/it/translation.json +0 -57
  114. package/dist/bundle/locales/ja/translation.json +0 -57
  115. package/dist/bundle/locales/jv/translation.json +0 -57
  116. package/dist/bundle/locales/ko/translation.json +0 -57
  117. package/dist/bundle/locales/ml/translation.json +0 -57
  118. package/dist/bundle/locales/ms/translation.json +0 -57
  119. package/dist/bundle/locales/nl/translation.json +0 -57
  120. package/dist/bundle/locales/no/translation.json +0 -57
  121. package/dist/bundle/locales/pl/translation.json +0 -57
  122. package/dist/bundle/locales/pt/translation.json +0 -57
  123. package/dist/bundle/locales/pt-BR/translation.json +0 -57
  124. package/dist/bundle/locales/ro/translation.json +0 -57
  125. package/dist/bundle/locales/ru/translation.json +0 -57
  126. package/dist/bundle/locales/sr/translation.json +0 -57
  127. package/dist/bundle/locales/sv/translation.json +0 -57
  128. package/dist/bundle/locales/th/translation.json +0 -57
  129. package/dist/bundle/locales/tr/translation.json +0 -57
  130. package/dist/bundle/locales/uk/translation.json +0 -57
  131. package/dist/bundle/locales/vi/translation.json +0 -57
  132. package/dist/bundle/locales/zh-CN/translation.json +0 -57
  133. package/dist/bundle/nobleChunk-Bbltwf44.js +0 -2728
  134. package/dist/bundle/procaptcha.bundle.js +0 -8
  135. package/dist/bundle/tests/util/captchaType.test.d.ts +0 -2
  136. package/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -1
  137. package/dist/bundle/tests/util/config.test.d.ts +0 -2
  138. package/dist/bundle/tests/util/config.test.d.ts.map +0 -1
  139. package/dist/bundle/tests/util/renderLogic.test.d.ts +0 -2
  140. package/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -1
  141. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -8
  142. package/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -1
  143. package/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -6
  144. package/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -1
  145. package/dist/bundle/util/captcha/captchaProps.d.ts +0 -10
  146. package/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -1
  147. package/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -24
  148. package/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -1
  149. package/dist/bundle/util/captcha/captchaType.d.ts +0 -3
  150. package/dist/bundle/util/captcha/captchaType.d.ts.map +0 -1
  151. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -4
  152. package/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -1
  153. package/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -4
  154. package/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -1
  155. package/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -4
  156. package/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -1
  157. package/dist/bundle/util/config.d.ts +0 -6
  158. package/dist/bundle/util/config.d.ts.map +0 -1
  159. package/dist/bundle/util/configCreator.d.ts +0 -5
  160. package/dist/bundle/util/configCreator.d.ts.map +0 -1
  161. package/dist/bundle/util/language.d.ts +0 -3
  162. package/dist/bundle/util/language.d.ts.map +0 -1
  163. package/dist/bundle/util/timeout.d.ts +0 -3
  164. package/dist/bundle/util/timeout.d.ts.map +0 -1
  165. package/dist/bundle/util/widgetFactory.d.ts +0 -18
  166. package/dist/bundle/util/widgetFactory.d.ts.map +0 -1
  167. package/dist/bundle/util/widgetThemeResolver.d.ts +0 -9
  168. package/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -1
  169. package/dist/bundle/utilChunk-DPr6oTOj.js +0 -317
  170. package/dist/bundle/utilCryptoChunk-D6ZLkbFV.js +0 -1236
  171. package/dist/bundle/web2Chunk-CNoojUDK.js +0 -3967
  172. package/dist/bundle/web3Chunk-BlYvY4Ea.js +0 -525
  173. package/dist/bundle/zodChunk-aEfPZzrp.js +0 -2882
  174. package/stats.html +0 -4842
@@ -1,339 +0,0 @@
1
- import { g as V, c as R } from "./bnChunk-DRlDxTFg.js";
2
- function z(w, d) {
3
- for (var b = 0; b < d.length; b++) {
4
- const y = d[b];
5
- if (typeof y != "string" && !Array.isArray(y)) {
6
- for (const h in y)
7
- if (h !== "default" && !(h in w)) {
8
- const p = Object.getOwnPropertyDescriptor(y, h);
9
- p && Object.defineProperty(w, h, p.get ? p : {
10
- enumerable: !0,
11
- get: () => y[h]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var O = { exports: {} };
19
- (function(w, d) {
20
- var b = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof R < "u" && R, y = function() {
21
- function p() {
22
- this.fetch = !1, this.DOMException = b.DOMException;
23
- }
24
- return p.prototype = b, new p();
25
- }();
26
- (function(p) {
27
- (function(u) {
28
- var a = typeof p < "u" && p || typeof self < "u" && self || typeof a < "u" && a, f = {
29
- searchParams: "URLSearchParams" in a,
30
- iterable: "Symbol" in a && "iterator" in Symbol,
31
- blob: "FileReader" in a && "Blob" in a && function() {
32
- try {
33
- return new Blob(), !0;
34
- } catch {
35
- return !1;
36
- }
37
- }(),
38
- formData: "FormData" in a,
39
- arrayBuffer: "ArrayBuffer" in a
40
- };
41
- function j(e) {
42
- return e && DataView.prototype.isPrototypeOf(e);
43
- }
44
- if (f.arrayBuffer)
45
- var S = [
46
- "[object Int8Array]",
47
- "[object Uint8Array]",
48
- "[object Uint8ClampedArray]",
49
- "[object Int16Array]",
50
- "[object Uint16Array]",
51
- "[object Int32Array]",
52
- "[object Uint32Array]",
53
- "[object Float32Array]",
54
- "[object Float64Array]"
55
- ], F = ArrayBuffer.isView || function(e) {
56
- return e && S.indexOf(Object.prototype.toString.call(e)) > -1;
57
- };
58
- function v(e) {
59
- if (typeof e != "string" && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === "")
60
- throw new TypeError('Invalid character in header field name: "' + e + '"');
61
- return e.toLowerCase();
62
- }
63
- function A(e) {
64
- return typeof e != "string" && (e = String(e)), e;
65
- }
66
- function E(e) {
67
- var t = {
68
- next: function() {
69
- var r = e.shift();
70
- return { done: r === void 0, value: r };
71
- }
72
- };
73
- return f.iterable && (t[Symbol.iterator] = function() {
74
- return t;
75
- }), t;
76
- }
77
- function s(e) {
78
- this.map = {}, e instanceof s ? e.forEach(function(t, r) {
79
- this.append(r, t);
80
- }, this) : Array.isArray(e) ? e.forEach(function(t) {
81
- this.append(t[0], t[1]);
82
- }, this) : e && Object.getOwnPropertyNames(e).forEach(function(t) {
83
- this.append(t, e[t]);
84
- }, this);
85
- }
86
- s.prototype.append = function(e, t) {
87
- e = v(e), t = A(t);
88
- var r = this.map[e];
89
- this.map[e] = r ? r + ", " + t : t;
90
- }, s.prototype.delete = function(e) {
91
- delete this.map[v(e)];
92
- }, s.prototype.get = function(e) {
93
- return e = v(e), this.has(e) ? this.map[e] : null;
94
- }, s.prototype.has = function(e) {
95
- return this.map.hasOwnProperty(v(e));
96
- }, s.prototype.set = function(e, t) {
97
- this.map[v(e)] = A(t);
98
- }, s.prototype.forEach = function(e, t) {
99
- for (var r in this.map)
100
- this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this);
101
- }, s.prototype.keys = function() {
102
- var e = [];
103
- return this.forEach(function(t, r) {
104
- e.push(r);
105
- }), E(e);
106
- }, s.prototype.values = function() {
107
- var e = [];
108
- return this.forEach(function(t) {
109
- e.push(t);
110
- }), E(e);
111
- }, s.prototype.entries = function() {
112
- var e = [];
113
- return this.forEach(function(t, r) {
114
- e.push([r, t]);
115
- }), E(e);
116
- }, f.iterable && (s.prototype[Symbol.iterator] = s.prototype.entries);
117
- function T(e) {
118
- if (e.bodyUsed)
119
- return Promise.reject(new TypeError("Already read"));
120
- e.bodyUsed = !0;
121
- }
122
- function P(e) {
123
- return new Promise(function(t, r) {
124
- e.onload = function() {
125
- t(e.result);
126
- }, e.onerror = function() {
127
- r(e.error);
128
- };
129
- });
130
- }
131
- function I(e) {
132
- var t = new FileReader(), r = P(t);
133
- return t.readAsArrayBuffer(e), r;
134
- }
135
- function M(e) {
136
- var t = new FileReader(), r = P(t);
137
- return t.readAsText(e), r;
138
- }
139
- function H(e) {
140
- for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++)
141
- r[n] = String.fromCharCode(t[n]);
142
- return r.join("");
143
- }
144
- function D(e) {
145
- if (e.slice)
146
- return e.slice(0);
147
- var t = new Uint8Array(e.byteLength);
148
- return t.set(new Uint8Array(e)), t.buffer;
149
- }
150
- function x() {
151
- return this.bodyUsed = !1, this._initBody = function(e) {
152
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? typeof e == "string" ? this._bodyText = e : f.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : f.arrayBuffer && f.blob && j(e) ? (this._bodyArrayBuffer = D(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : f.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || F(e)) ? this._bodyArrayBuffer = D(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || (typeof e == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : f.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
153
- }, f.blob && (this.blob = function() {
154
- var e = T(this);
155
- if (e)
156
- return e;
157
- if (this._bodyBlob)
158
- return Promise.resolve(this._bodyBlob);
159
- if (this._bodyArrayBuffer)
160
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
161
- if (this._bodyFormData)
162
- throw new Error("could not read FormData body as blob");
163
- return Promise.resolve(new Blob([this._bodyText]));
164
- }, this.arrayBuffer = function() {
165
- if (this._bodyArrayBuffer) {
166
- var e = T(this);
167
- return e || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
168
- this._bodyArrayBuffer.buffer.slice(
169
- this._bodyArrayBuffer.byteOffset,
170
- this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
171
- )
172
- ) : Promise.resolve(this._bodyArrayBuffer));
173
- } else
174
- return this.blob().then(I);
175
- }), this.text = function() {
176
- var e = T(this);
177
- if (e)
178
- return e;
179
- if (this._bodyBlob)
180
- return M(this._bodyBlob);
181
- if (this._bodyArrayBuffer)
182
- return Promise.resolve(H(this._bodyArrayBuffer));
183
- if (this._bodyFormData)
184
- throw new Error("could not read FormData body as text");
185
- return Promise.resolve(this._bodyText);
186
- }, f.formData && (this.formData = function() {
187
- return this.text().then(C);
188
- }), this.json = function() {
189
- return this.text().then(JSON.parse);
190
- }, this;
191
- }
192
- var q = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
193
- function L(e) {
194
- var t = e.toUpperCase();
195
- return q.indexOf(t) > -1 ? t : e;
196
- }
197
- function m(e, t) {
198
- if (!(this instanceof m))
199
- throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
200
- t = t || {};
201
- var r = t.body;
202
- if (e instanceof m) {
203
- if (e.bodyUsed)
204
- throw new TypeError("Already read");
205
- this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, !r && e._bodyInit != null && (r = e._bodyInit, e.bodyUsed = !0);
206
- } else
207
- this.url = String(e);
208
- if (this.credentials = t.credentials || this.credentials || "same-origin", (t.headers || !this.headers) && (this.headers = new s(t.headers)), this.method = L(t.method || this.method || "GET"), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && r)
209
- throw new TypeError("Body not allowed for GET or HEAD requests");
210
- if (this._initBody(r), (this.method === "GET" || this.method === "HEAD") && (t.cache === "no-store" || t.cache === "no-cache")) {
211
- var n = /([?&])_=[^&]*/;
212
- if (n.test(this.url))
213
- this.url = this.url.replace(n, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
214
- else {
215
- var i = /\?/;
216
- this.url += (i.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
217
- }
218
- }
219
- }
220
- m.prototype.clone = function() {
221
- return new m(this, { body: this._bodyInit });
222
- };
223
- function C(e) {
224
- var t = new FormData();
225
- return e.trim().split("&").forEach(function(r) {
226
- if (r) {
227
- var n = r.split("="), i = n.shift().replace(/\+/g, " "), o = n.join("=").replace(/\+/g, " ");
228
- t.append(decodeURIComponent(i), decodeURIComponent(o));
229
- }
230
- }), t;
231
- }
232
- function k(e) {
233
- var t = new s(), r = e.replace(/\r?\n[\t ]+/g, " ");
234
- return r.split("\r").map(function(n) {
235
- return n.indexOf(`
236
- `) === 0 ? n.substr(1, n.length) : n;
237
- }).forEach(function(n) {
238
- var i = n.split(":"), o = i.shift().trim();
239
- if (o) {
240
- var _ = i.join(":").trim();
241
- t.append(o, _);
242
- }
243
- }), t;
244
- }
245
- x.call(m.prototype);
246
- function l(e, t) {
247
- if (!(this instanceof l))
248
- throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
249
- t || (t = {}), this.type = "default", this.status = t.status === void 0 ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = t.statusText === void 0 ? "" : "" + t.statusText, this.headers = new s(t.headers), this.url = t.url || "", this._initBody(e);
250
- }
251
- x.call(l.prototype), l.prototype.clone = function() {
252
- return new l(this._bodyInit, {
253
- status: this.status,
254
- statusText: this.statusText,
255
- headers: new s(this.headers),
256
- url: this.url
257
- });
258
- }, l.error = function() {
259
- var e = new l(null, { status: 0, statusText: "" });
260
- return e.type = "error", e;
261
- };
262
- var N = [301, 302, 303, 307, 308];
263
- l.redirect = function(e, t) {
264
- if (N.indexOf(t) === -1)
265
- throw new RangeError("Invalid status code");
266
- return new l(null, { status: t, headers: { location: e } });
267
- }, u.DOMException = a.DOMException;
268
- try {
269
- new u.DOMException();
270
- } catch {
271
- u.DOMException = function(t, r) {
272
- this.message = t, this.name = r;
273
- var n = Error(t);
274
- this.stack = n.stack;
275
- }, u.DOMException.prototype = Object.create(Error.prototype), u.DOMException.prototype.constructor = u.DOMException;
276
- }
277
- function B(e, t) {
278
- return new Promise(function(r, n) {
279
- var i = new m(e, t);
280
- if (i.signal && i.signal.aborted)
281
- return n(new u.DOMException("Aborted", "AbortError"));
282
- var o = new XMLHttpRequest();
283
- function _() {
284
- o.abort();
285
- }
286
- o.onload = function() {
287
- var c = {
288
- status: o.status,
289
- statusText: o.statusText,
290
- headers: k(o.getAllResponseHeaders() || "")
291
- };
292
- c.url = "responseURL" in o ? o.responseURL : c.headers.get("X-Request-URL");
293
- var g = "response" in o ? o.response : o.responseText;
294
- setTimeout(function() {
295
- r(new l(g, c));
296
- }, 0);
297
- }, o.onerror = function() {
298
- setTimeout(function() {
299
- n(new TypeError("Network request failed"));
300
- }, 0);
301
- }, o.ontimeout = function() {
302
- setTimeout(function() {
303
- n(new TypeError("Network request failed"));
304
- }, 0);
305
- }, o.onabort = function() {
306
- setTimeout(function() {
307
- n(new u.DOMException("Aborted", "AbortError"));
308
- }, 0);
309
- };
310
- function G(c) {
311
- try {
312
- return c === "" && a.location.href ? a.location.href : c;
313
- } catch {
314
- return c;
315
- }
316
- }
317
- o.open(i.method, G(i.url), !0), i.credentials === "include" ? o.withCredentials = !0 : i.credentials === "omit" && (o.withCredentials = !1), "responseType" in o && (f.blob ? o.responseType = "blob" : f.arrayBuffer && i.headers.get("Content-Type") && i.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (o.responseType = "arraybuffer")), t && typeof t.headers == "object" && !(t.headers instanceof s) ? Object.getOwnPropertyNames(t.headers).forEach(function(c) {
318
- o.setRequestHeader(c, A(t.headers[c]));
319
- }) : i.headers.forEach(function(c, g) {
320
- o.setRequestHeader(g, c);
321
- }), i.signal && (i.signal.addEventListener("abort", _), o.onreadystatechange = function() {
322
- o.readyState === 4 && i.signal.removeEventListener("abort", _);
323
- }), o.send(typeof i._bodyInit > "u" ? null : i._bodyInit);
324
- });
325
- }
326
- return B.polyfill = !0, a.fetch || (a.fetch = B, a.Headers = s, a.Request = m, a.Response = l), u.Headers = s, u.Request = m, u.Response = l, u.fetch = B, u;
327
- })({});
328
- })(y), y.fetch.ponyfill = !0, delete y.fetch.polyfill;
329
- var h = b.fetch ? b : y;
330
- d = h.fetch, d.default = h.fetch, d.fetch = h.fetch, d.Headers = h.Headers, d.Request = h.Request, d.Response = h.Response, w.exports = d;
331
- })(O, O.exports);
332
- var U = O.exports;
333
- const $ = /* @__PURE__ */ V(U), J = /* @__PURE__ */ z({
334
- __proto__: null,
335
- default: $
336
- }, [U]);
337
- export {
338
- J as b
339
- };
@@ -1,46 +0,0 @@
1
- const F = (s, i) => (c) => {
2
- Object.assign(s, c), i(c);
3
- }, d = (s, i) => {
4
- const c = s(i), l = (n) => {
5
- c.current = n;
6
- };
7
- return [c.current, l];
8
- }, G = (s, i) => {
9
- const [c, l] = s(!1), [u, n] = s(0), [r, f] = s(
10
- []
11
- ), [p, m] = d(i, void 0), [h, v] = s(!1), [a, g] = s(
12
- void 0
13
- ), [A, C] = s(!1), [b, w] = s(void 0), [I, M] = s(void 0), [D, H] = d(i, void 0), [T, j] = d(
14
- i,
15
- void 0
16
- ), [E, L] = d(i, void 0), [O, P] = s(!1), [U, k] = s(0), [q, y] = s(void 0), [z, B] = s(void 0);
17
- return [
18
- // the state
19
- {
20
- isHuman: c,
21
- index: u,
22
- solutions: r,
23
- captchaApi: p,
24
- showModal: h,
25
- challenge: a,
26
- loading: A,
27
- account: b,
28
- dappAccount: I,
29
- submission: D,
30
- timeout: T,
31
- successfullChallengeTimeout: E,
32
- sendData: O,
33
- attemptCount: U,
34
- error: q,
35
- sessionId: z
36
- },
37
- // and method to update the state
38
- (o) => {
39
- o.account !== void 0 && w(o.account), o.isHuman !== void 0 && l(o.isHuman), o.index !== void 0 && n(o.index), o.solutions !== void 0 && f(o.solutions.slice()), o.captchaApi !== void 0 && m(o.captchaApi), o.showModal !== void 0 && v(o.showModal), o.challenge !== void 0 && g(o.challenge), o.loading !== void 0 && C(o.loading), o.showModal !== void 0 && v(o.showModal), o.dappAccount !== void 0 && M(o.dappAccount), o.submission !== void 0 && H(o.submission), o.timeout !== void 0 && j(o.timeout), o.successfullChallengeTimeout !== void 0 && L(o.timeout), o.sendData !== void 0 && P(o.sendData), o.attemptCount !== void 0 && k(o.attemptCount), o.error !== void 0 && y(o.error), o.sessionId !== void 0 && B(o.sessionId);
40
- }
41
- ];
42
- };
43
- export {
44
- F as b,
45
- G as u
46
- };