@prosopo/procaptcha-react 2.14.9 → 2.14.10

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 (192) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +1 -1
  2. package/.turbo/{turbo-build.log → turbo-build$colon$esm.log} +13 -14
  3. package/.turbo/turbo-build$colon$tsc.log +20 -20
  4. package/.turbo/turbo-build$colon$types.log +1 -0
  5. package/CHANGELOG.md +18 -0
  6. package/dist/tsc/components/button.d.ts.map +1 -0
  7. package/dist/tsc/components/button.js +106 -0
  8. package/dist/tsc/components/button.js.map +1 -0
  9. package/dist/tsc/components/captchaComponent.d.ts.map +1 -0
  10. package/dist/tsc/components/captchaComponent.js +234 -0
  11. package/dist/tsc/components/captchaComponent.js.map +1 -0
  12. package/dist/tsc/components/captchaWidget.d.ts.map +1 -0
  13. package/dist/tsc/components/captchaWidget.js +213 -0
  14. package/dist/tsc/components/captchaWidget.js.map +1 -0
  15. package/dist/tsc/components/collector.d.ts.map +1 -0
  16. package/dist/tsc/components/collector.js +43 -0
  17. package/dist/tsc/components/collector.js.map +1 -0
  18. package/dist/tsc/components/index.d.ts.map +1 -0
  19. package/dist/tsc/components/index.js +8 -0
  20. package/dist/tsc/components/index.js.map +1 -0
  21. package/dist/tsc/components/modal.d.ts.map +1 -0
  22. package/dist/tsc/components/modal.js +36 -0
  23. package/dist/tsc/components/modal.js.map +1 -0
  24. package/dist/tsc/components/procaptcha.d.ts.map +1 -0
  25. package/dist/tsc/components/procaptcha.js +19 -0
  26. package/dist/tsc/components/procaptcha.js.map +1 -0
  27. package/dist/tsc/components/procaptchaWidget.d.ts.map +1 -0
  28. package/dist/tsc/components/procaptchaWidget.js +218 -0
  29. package/dist/tsc/components/procaptchaWidget.js.map +1 -0
  30. package/dist/tsc/errorSites.d.ts.map +1 -0
  31. package/dist/{errorSites.js.map → tsc/errorSites.js.map} +1 -1
  32. package/dist/tsc/index.d.ts.map +1 -0
  33. package/dist/tsc/index.js +3 -0
  34. package/dist/tsc/index.js.map +1 -0
  35. package/dist/tsc/tests/button.unit.test.d.ts.map +1 -0
  36. package/dist/tsc/tests/button.unit.test.js.map +1 -0
  37. package/dist/tsc/tests/captchaComponent.unit.test.d.ts.map +1 -0
  38. package/dist/tsc/tests/captchaComponent.unit.test.js.map +1 -0
  39. package/dist/tsc/tests/captchaWidget.unit.test.d.ts.map +1 -0
  40. package/dist/tsc/tests/captchaWidget.unit.test.js.map +1 -0
  41. package/dist/tsc/tests/collector.unit.test.d.ts.map +1 -0
  42. package/dist/tsc/tests/collector.unit.test.js.map +1 -0
  43. package/dist/tsc/tests/harness.d.ts.map +1 -0
  44. package/dist/tsc/tests/harness.js.map +1 -0
  45. package/dist/tsc/tests/modal.unit.test.d.ts.map +1 -0
  46. package/dist/tsc/tests/modal.unit.test.js.map +1 -0
  47. package/dist/tsc/tests/procaptcha.unit.test.d.ts.map +1 -0
  48. package/dist/tsc/tests/procaptcha.unit.test.js.map +1 -0
  49. package/dist/tsc/tests/procaptchaReact.test-d.d.ts.map +1 -0
  50. package/dist/tsc/tests/procaptchaReact.test-d.js.map +1 -0
  51. package/dist/tsc/tests/procaptchaWidget.unit.test.d.ts.map +1 -0
  52. package/dist/tsc/tests/procaptchaWidget.unit.test.js.map +1 -0
  53. package/dist/tsc/tests/render.d.ts.map +1 -0
  54. package/dist/tsc/tests/render.js.map +1 -0
  55. package/dist/tsc/tests/util.unit.test.d.ts.map +1 -0
  56. package/dist/tsc/tests/util.unit.test.js.map +1 -0
  57. package/dist/tsc/util/index.d.ts.map +1 -0
  58. package/dist/tsc/util/index.js +19 -0
  59. package/dist/tsc/util/index.js.map +1 -0
  60. package/dist/types/components/button.d.ts +9 -0
  61. package/dist/types/components/button.d.ts.map +1 -0
  62. package/dist/types/components/captchaComponent.d.ts +18 -0
  63. package/dist/types/components/captchaComponent.d.ts.map +1 -0
  64. package/dist/types/components/captchaWidget.d.ts +10 -0
  65. package/dist/types/components/captchaWidget.d.ts.map +1 -0
  66. package/dist/types/components/collector.d.ts +10 -0
  67. package/dist/types/components/collector.d.ts.map +1 -0
  68. package/dist/types/components/index.d.ts +8 -0
  69. package/dist/types/components/index.d.ts.map +1 -0
  70. package/dist/types/components/modal.d.ts +14 -0
  71. package/dist/types/components/modal.d.ts.map +1 -0
  72. package/dist/types/components/procaptcha.d.ts +7 -0
  73. package/dist/types/components/procaptcha.d.ts.map +1 -0
  74. package/dist/types/components/procaptchaWidget.d.ts +7 -0
  75. package/dist/types/components/procaptchaWidget.d.ts.map +1 -0
  76. package/dist/types/errorSites.d.ts +7 -0
  77. package/dist/types/errorSites.d.ts.map +1 -0
  78. package/dist/types/index.d.ts +3 -0
  79. package/dist/types/index.d.ts.map +1 -0
  80. package/dist/types/tests/button.unit.test.d.ts +2 -0
  81. package/dist/types/tests/button.unit.test.d.ts.map +1 -0
  82. package/dist/types/tests/captchaComponent.unit.test.d.ts +2 -0
  83. package/dist/types/tests/captchaComponent.unit.test.d.ts.map +1 -0
  84. package/dist/types/tests/captchaWidget.unit.test.d.ts +2 -0
  85. package/dist/types/tests/captchaWidget.unit.test.d.ts.map +1 -0
  86. package/dist/types/tests/collector.unit.test.d.ts +2 -0
  87. package/dist/types/tests/collector.unit.test.d.ts.map +1 -0
  88. package/dist/types/tests/harness.d.ts +14 -0
  89. package/dist/types/tests/harness.d.ts.map +1 -0
  90. package/dist/types/tests/modal.unit.test.d.ts +2 -0
  91. package/dist/types/tests/modal.unit.test.d.ts.map +1 -0
  92. package/dist/types/tests/procaptcha.unit.test.d.ts +2 -0
  93. package/dist/types/tests/procaptcha.unit.test.d.ts.map +1 -0
  94. package/dist/types/tests/procaptchaReact.test-d.d.ts +2 -0
  95. package/dist/types/tests/procaptchaReact.test-d.d.ts.map +1 -0
  96. package/dist/types/tests/procaptchaWidget.unit.test.d.ts +2 -0
  97. package/dist/types/tests/procaptchaWidget.unit.test.d.ts.map +1 -0
  98. package/dist/types/tests/render.d.ts +23 -0
  99. package/dist/types/tests/render.d.ts.map +1 -0
  100. package/dist/types/tests/util.unit.test.d.ts +2 -0
  101. package/dist/types/tests/util.unit.test.d.ts.map +1 -0
  102. package/dist/types/util/index.d.ts +10 -0
  103. package/dist/types/util/index.d.ts.map +1 -0
  104. package/package.json +16 -17
  105. package/dist/components/button.d.ts.map +0 -1
  106. package/dist/components/button.js.map +0 -1
  107. package/dist/components/captchaComponent.d.ts.map +0 -1
  108. package/dist/components/captchaComponent.js.map +0 -1
  109. package/dist/components/captchaWidget.d.ts.map +0 -1
  110. package/dist/components/captchaWidget.js.map +0 -1
  111. package/dist/components/collector.d.ts.map +0 -1
  112. package/dist/components/collector.js.map +0 -1
  113. package/dist/components/index.d.ts.map +0 -1
  114. package/dist/components/index.js.map +0 -1
  115. package/dist/components/modal.d.ts.map +0 -1
  116. package/dist/components/modal.js.map +0 -1
  117. package/dist/components/procaptcha.d.ts.map +0 -1
  118. package/dist/components/procaptcha.js.map +0 -1
  119. package/dist/components/procaptchaWidget.d.ts.map +0 -1
  120. package/dist/components/procaptchaWidget.js.map +0 -1
  121. package/dist/errorSites.d.ts.map +0 -1
  122. package/dist/index.d.ts.map +0 -1
  123. package/dist/index.js.map +0 -1
  124. package/dist/tests/button.unit.test.d.ts.map +0 -1
  125. package/dist/tests/button.unit.test.js.map +0 -1
  126. package/dist/tests/captchaComponent.unit.test.d.ts.map +0 -1
  127. package/dist/tests/captchaComponent.unit.test.js.map +0 -1
  128. package/dist/tests/captchaWidget.unit.test.d.ts.map +0 -1
  129. package/dist/tests/captchaWidget.unit.test.js.map +0 -1
  130. package/dist/tests/collector.unit.test.d.ts.map +0 -1
  131. package/dist/tests/collector.unit.test.js.map +0 -1
  132. package/dist/tests/harness.d.ts.map +0 -1
  133. package/dist/tests/harness.js.map +0 -1
  134. package/dist/tests/modal.unit.test.d.ts.map +0 -1
  135. package/dist/tests/modal.unit.test.js.map +0 -1
  136. package/dist/tests/procaptcha.unit.test.d.ts.map +0 -1
  137. package/dist/tests/procaptcha.unit.test.js.map +0 -1
  138. package/dist/tests/procaptchaReact.test-d.d.ts.map +0 -1
  139. package/dist/tests/procaptchaReact.test-d.js.map +0 -1
  140. package/dist/tests/procaptchaWidget.unit.test.d.ts.map +0 -1
  141. package/dist/tests/procaptchaWidget.unit.test.js.map +0 -1
  142. package/dist/tests/render.d.ts.map +0 -1
  143. package/dist/tests/render.js.map +0 -1
  144. package/dist/tests/util.unit.test.d.ts.map +0 -1
  145. package/dist/tests/util.unit.test.js.map +0 -1
  146. package/dist/util/index.d.ts.map +0 -1
  147. package/dist/util/index.js.map +0 -1
  148. /package/dist/{_virtual → esm/_virtual}/_rolldown/runtime.js +0 -0
  149. /package/dist/{components → esm/components}/button.js +0 -0
  150. /package/dist/{components → esm/components}/captchaComponent.js +0 -0
  151. /package/dist/{components → esm/components}/captchaWidget.js +0 -0
  152. /package/dist/{components → esm/components}/collector.js +0 -0
  153. /package/dist/{components → esm/components}/index.js +0 -0
  154. /package/dist/{components → esm/components}/modal.js +0 -0
  155. /package/dist/{components → esm/components}/procaptcha.js +0 -0
  156. /package/dist/{components → esm/components}/procaptchaWidget.js +0 -0
  157. /package/dist/{index.js → esm/index.js} +0 -0
  158. /package/dist/{util → esm/util}/index.js +0 -0
  159. /package/dist/{components → tsc/components}/button.d.ts +0 -0
  160. /package/dist/{components → tsc/components}/captchaComponent.d.ts +0 -0
  161. /package/dist/{components → tsc/components}/captchaWidget.d.ts +0 -0
  162. /package/dist/{components → tsc/components}/collector.d.ts +0 -0
  163. /package/dist/{components → tsc/components}/index.d.ts +0 -0
  164. /package/dist/{components → tsc/components}/modal.d.ts +0 -0
  165. /package/dist/{components → tsc/components}/procaptcha.d.ts +0 -0
  166. /package/dist/{components → tsc/components}/procaptchaWidget.d.ts +0 -0
  167. /package/dist/{errorSites.d.ts → tsc/errorSites.d.ts} +0 -0
  168. /package/dist/{errorSites.js → tsc/errorSites.js} +0 -0
  169. /package/dist/{index.d.ts → tsc/index.d.ts} +0 -0
  170. /package/dist/{tests → tsc/tests}/button.unit.test.d.ts +0 -0
  171. /package/dist/{tests → tsc/tests}/button.unit.test.js +0 -0
  172. /package/dist/{tests → tsc/tests}/captchaComponent.unit.test.d.ts +0 -0
  173. /package/dist/{tests → tsc/tests}/captchaComponent.unit.test.js +0 -0
  174. /package/dist/{tests → tsc/tests}/captchaWidget.unit.test.d.ts +0 -0
  175. /package/dist/{tests → tsc/tests}/captchaWidget.unit.test.js +0 -0
  176. /package/dist/{tests → tsc/tests}/collector.unit.test.d.ts +0 -0
  177. /package/dist/{tests → tsc/tests}/collector.unit.test.js +0 -0
  178. /package/dist/{tests → tsc/tests}/harness.d.ts +0 -0
  179. /package/dist/{tests → tsc/tests}/harness.js +0 -0
  180. /package/dist/{tests → tsc/tests}/modal.unit.test.d.ts +0 -0
  181. /package/dist/{tests → tsc/tests}/modal.unit.test.js +0 -0
  182. /package/dist/{tests → tsc/tests}/procaptcha.unit.test.d.ts +0 -0
  183. /package/dist/{tests → tsc/tests}/procaptcha.unit.test.js +0 -0
  184. /package/dist/{tests → tsc/tests}/procaptchaReact.test-d.d.ts +0 -0
  185. /package/dist/{tests → tsc/tests}/procaptchaReact.test-d.js +0 -0
  186. /package/dist/{tests → tsc/tests}/procaptchaWidget.unit.test.d.ts +0 -0
  187. /package/dist/{tests → tsc/tests}/procaptchaWidget.unit.test.js +0 -0
  188. /package/dist/{tests → tsc/tests}/render.d.ts +0 -0
  189. /package/dist/{tests → tsc/tests}/render.js +0 -0
  190. /package/dist/{tests → tsc/tests}/util.unit.test.d.ts +0 -0
  191. /package/dist/{tests → tsc/tests}/util.unit.test.js +0 -0
  192. /package/dist/{util → tsc/util}/index.d.ts +0 -0
@@ -58,4 +58,4 @@ dist/cjs/components/procaptchaWidget.cjs 6.87 kB │ gzip: 2.21 kB
58
58
  dist/cjs/components/captchaWidget.cjs 7.53 kB │ gzip: 2.72 kB
59
59
  dist/cjs/components/captchaComponent.cjs 8.86 kB │ gzip: 2.29 kB
60
60
 
61
- ✓ built in 64ms
61
+ ✓ built in 31ms
@@ -1,5 +1,4 @@
1
- $ pnpm run build:cross-env --mode ${NODE_ENV:-development}
2
- $ vite build --config vite.esm.config.ts --mode production
1
+ $ vite build --config vite.esm.config.ts --mode ${NODE_ENV:-development}
3
2
  ViteEsmConfig: .
4
3
  {
5
4
  tsConfigPaths: [
@@ -48,16 +47,16 @@ Bundle build started
48
47
  ✓ 11 modules transformed.
49
48
  rendering chunks...
50
49
  computing gzip size...
51
- dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
52
- dist/components/index.js 0.53 kB │ gzip: 0.19 kB
53
- dist/util/index.js 0.56 kB │ gzip: 0.35 kB
54
- dist/index.js 0.65 kB │ gzip: 0.21 kB
55
- dist/components/procaptcha.js 0.68 kB │ gzip: 0.38 kB
56
- dist/components/modal.js 1.25 kB │ gzip: 0.62 kB
57
- dist/components/collector.js 1.44 kB │ gzip: 0.66 kB
58
- dist/components/button.js 3.03 kB │ gzip: 1.22 kB
59
- dist/components/procaptchaWidget.js 6.51 kB │ gzip: 2.20 kB
60
- dist/components/captchaWidget.js 6.93 kB │ gzip: 2.70 kB
61
- dist/components/captchaComponent.js 7.82 kB │ gzip: 2.25 kB
50
+ dist/esm/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
51
+ dist/esm/components/index.js 0.53 kB │ gzip: 0.19 kB
52
+ dist/esm/util/index.js 0.56 kB │ gzip: 0.35 kB
53
+ dist/esm/index.js 0.65 kB │ gzip: 0.21 kB
54
+ dist/esm/components/procaptcha.js 0.68 kB │ gzip: 0.38 kB
55
+ dist/esm/components/modal.js 1.25 kB │ gzip: 0.62 kB
56
+ dist/esm/components/collector.js 1.44 kB │ gzip: 0.66 kB
57
+ dist/esm/components/button.js 3.03 kB │ gzip: 1.22 kB
58
+ dist/esm/components/procaptchaWidget.js 6.51 kB │ gzip: 2.20 kB
59
+ dist/esm/components/captchaWidget.js 6.93 kB │ gzip: 2.70 kB
60
+ dist/esm/components/captchaComponent.js 7.82 kB │ gzip: 2.25 kB
62
61
 
63
- ✓ built in 68ms
62
+ ✓ built in 39ms
@@ -1,5 +1,5 @@
1
1
  $ tsc --build --verbose
2
- 4:00:15 PM - Projects in this build:
2
+ 11:55:01 AM - Projects in this build:
3
3
  * ../../dev/config/tsconfig.json
4
4
  * ../util/tsconfig.json
5
5
  * ../locale/tsconfig.json
@@ -19,41 +19,41 @@ $ tsc --build --verbose
19
19
  * ../procaptcha/tsconfig.json
20
20
  * tsconfig.json
21
21
 
22
- 4:00:15 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
22
+ 11:55:01 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/dist/tsc/tsconfig.tsbuildinfo'
23
23
 
24
- 4:00:15 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
24
+ 11:55:01 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/dist/tsc/tsconfig.tsbuildinfo'
25
25
 
26
- 4:00:15 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/process.ts' is older than output '../locale/tsconfig.tsbuildinfo'
26
+ 11:55:01 AM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/process.ts' is older than output '../locale/dist/tsc/tsconfig.tsbuildinfo'
27
27
 
28
- 4:00:15 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
28
+ 11:55:01 AM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/dist/tsc/tsconfig.tsbuildinfo'
29
29
 
30
- 4:00:15 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
30
+ 11:55:01 AM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/dist/tsc/tsconfig.tsbuildinfo'
31
31
 
32
- 4:00:15 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/errorSites.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
32
+ 11:55:02 AM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/dist/tsc/tsconfig.tsbuildinfo'
33
33
 
34
- 4:00:15 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/tests/loggerBrowser.unit.test.ts' is older than output '../logger/tsconfig.tsbuildinfo'
34
+ 11:55:02 AM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/dist/tsc/tsconfig.tsbuildinfo'
35
35
 
36
- 4:00:15 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/tests/mocks/data/captchas.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
36
+ 11:55:02 AM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/errorSites.ts' is older than output '../datasets/dist/tsc/tsconfig.tsbuildinfo'
37
37
 
38
- 4:00:15 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
38
+ 11:55:02 AM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/dist/tsc/tsconfig.tsbuildinfo'
39
39
 
40
- 4:00:15 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/productionProviderList.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
40
+ 11:55:02 AM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/balancer.ts' is older than output '../load-balancer/dist/tsc/tsconfig.tsbuildinfo'
41
41
 
42
- 4:00:15 PM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/theme.ts' is older than output '../widget-skeleton/tsconfig.tsbuildinfo'
42
+ 11:55:02 AM - Project '../widget-skeleton/tsconfig.json' is up to date because newest input '../widget-skeleton/src/webComponent/createWidget.ts' is older than output '../widget-skeleton/dist/tsc/tsconfig.tsbuildinfo'
43
43
 
44
- 4:00:15 PM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/tsconfig.tsbuildinfo'
44
+ 11:55:02 AM - Project '../fingerprintjs/tsconfig.json' is up to date because newest input '../fingerprintjs/src/utils/browser.ts' is older than output '../fingerprintjs/dist/tsc/tsconfig.tsbuildinfo'
45
45
 
46
- 4:00:15 PM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.test.ts' is older than output '../fingerprint/tsconfig.tsbuildinfo'
46
+ 11:55:02 AM - Project '../fingerprint/tsconfig.json' is up to date because newest input '../fingerprint/src/index.test.ts' is older than output '../fingerprint/dist/tsc/tsconfig.tsbuildinfo'
47
47
 
48
- 4:00:15 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/keyring/keyring.test.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
48
+ 11:55:02 AM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/errorSites.ts' is older than output '../keyring/dist/tsc/tsconfig.tsbuildinfo'
49
49
 
50
- 4:00:15 PM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/errorSites.ts' is older than output '../account/tsconfig.tsbuildinfo'
50
+ 11:55:02 AM - Project '../account/tsconfig.json' is up to date because newest input '../account/src/custom.d.ts' is older than output '../account/dist/tsc/tsconfig.tsbuildinfo'
51
51
 
52
- 4:00:15 PM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/extensionLoader.ts' is older than output '../procaptcha-common/tsconfig.tsbuildinfo'
52
+ 11:55:02 AM - Project '../procaptcha-common/tsconfig.json' is up to date because newest input '../procaptcha-common/src/extensionLoader.ts' is older than output '../procaptcha-common/dist/tsc/tsconfig.tsbuildinfo'
53
53
 
54
- 4:00:15 PM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/modules/ProsopoCaptchaApi.ts' is older than output '../procaptcha/tsconfig.tsbuildinfo'
54
+ 11:55:02 AM - Project '../procaptcha/tsconfig.json' is up to date because newest input '../procaptcha/src/index.ts' is older than output '../procaptcha/dist/tsc/tsconfig.tsbuildinfo'
55
55
 
56
- 4:00:15 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
56
+ 11:55:02 AM - Project 'tsconfig.json' is out of date because output file 'dist/tsc/tsconfig.tsbuildinfo' does not exist
57
57
 
58
- 4:00:15 PM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-react/tsconfig.json'...
58
+ 11:55:02 AM - Building project '/home/runner/work/captcha/captcha/packages/procaptcha-react/tsconfig.json'...
59
59
 
@@ -0,0 +1 @@
1
+ $ tsc --project tsconfig.types.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @prosopo/procaptcha-react
2
2
 
3
+ ## 2.14.10
4
+ ### Patch Changes
5
+
6
+ - 2086040: Each kind of build now writes to its own folder under dist: dist/esm (vite ESM), dist/cjs (vite CommonJS), dist/types (declarations), dist/tsc (plain tsc), dist/bundle and dist/bundle-webpack (bundles) and dist/native (the Rust addons). Turbo caches each folder separately, so building one variant no longer overwrites or invalidates another. Package exports point at the new folders; anything importing a file from dist by path has to add the variant folder.
7
+
8
+ The Rust addons are no longer committed. They are built into dist/native, in debug for development and tests and fully optimised when NODE_ENV=production, so building them now needs a Rust toolchain.
9
+
10
+ Code that found the repo root or its certificates by climbing a fixed number of folders up from its own file now starts from its package's folder instead (new `packageDir` in @prosopo/util/node). The fixed count stopped working once the build output moved one folder deeper.
11
+ - Updated dependencies [2086040]
12
+ - Updated dependencies [915f30b]
13
+ - @prosopo/common@3.3.1
14
+ - @prosopo/locale@3.13.1
15
+ - @prosopo/procaptcha-common@2.21.9
16
+ - @prosopo/procaptcha@2.11.36
17
+ - @prosopo/types@5.19.0
18
+ - @prosopo/util@3.3.17
19
+ - @prosopo/widget-skeleton@2.10.4
20
+
3
21
  ## 2.14.9
4
22
  ### Patch Changes
5
23
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button.ts"],"names":[],"mappings":"AAaA,OAAO,EACN,KAAK,SAAS,EAMd,MAAM,4BAA4B,CAAC;AASpC,MAAM,WAAW,WAAW;IAC3B,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACb;AA6BD,eAAO,MAAM,WAAW,cACZ,WAAW,gBACR,WAAW,KACvB,SAAS,CAAC,WAAW,CAuGvB,CAAC"}
@@ -0,0 +1,106 @@
1
+ import { Teardown, applyAttributes, applyStyles, createControl, } from "@prosopo/procaptcha-common";
2
+ import { canHover, darkTheme, lightTheme, withAlpha, } from "@prosopo/widget-skeleton";
3
+ import addDataAttr from "../util/index.js";
4
+ const buttonStyleBase = {
5
+ display: "inline-flex",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ position: "relative",
9
+ boxSizing: "border-box",
10
+ outline: "0px",
11
+ margin: "0px",
12
+ cursor: "pointer",
13
+ userSelect: "none",
14
+ verticalAlign: "middle",
15
+ textDecoration: "none",
16
+ textTransform: "none",
17
+ minWidth: "64px",
18
+ minHeight: "44px",
19
+ borderRadius: "100px",
20
+ border: "none",
21
+ transition: "background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, filter 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
22
+ backgroundColor: "transparent",
23
+ };
24
+ export const mountButton = (container, initialProps) => {
25
+ const teardown = new Teardown();
26
+ let props = initialProps;
27
+ let hover = false;
28
+ let focusVisible = false;
29
+ const button = createControl(teardown, {
30
+ onActivate: (event) => {
31
+ event.preventDefault();
32
+ props.onClick();
33
+ },
34
+ });
35
+ const buttonStyle = () => {
36
+ const theme = "light" === props.themeColor ? lightTheme : darkTheme;
37
+ const baseStyle = {
38
+ ...buttonStyleBase,
39
+ ...theme.typography.labelLarge,
40
+ borderRadius: theme.shape.button,
41
+ fontFamily: theme.font.fontFamily,
42
+ width: "100%",
43
+ outline: focusVisible ? `3px solid ${theme.palette.primary.main}` : "0px",
44
+ outlineOffset: focusVisible ? "2px" : undefined,
45
+ };
46
+ if ("cancel" === props.buttonType) {
47
+ return {
48
+ ...baseStyle,
49
+ padding: "8px 12px",
50
+ backgroundColor: hover
51
+ ? withAlpha(theme.palette.primary.main, theme.stateLayer.hover)
52
+ : "transparent",
53
+ color: theme.palette.primary.main,
54
+ boxShadow: undefined,
55
+ };
56
+ }
57
+ return {
58
+ ...baseStyle,
59
+ padding: "8px 24px",
60
+ backgroundColor: theme.palette.primary.main,
61
+ color: theme.palette.primary.contrastText,
62
+ boxShadow: hover
63
+ ? `inset 0 0 0 100px ${withAlpha(theme.palette.primary.contrastText, theme.stateLayer.hover)}`
64
+ : theme.elevation.buttonPrimary,
65
+ };
66
+ };
67
+ const render = () => {
68
+ applyStyles(button, buttonStyle());
69
+ applyAttributes(button, {
70
+ ...addDataAttr({ dev: { cy: `button-${props.buttonType}` } }),
71
+ "aria-label": props.text,
72
+ });
73
+ button.textContent = props.text;
74
+ };
75
+ if (canHover()) {
76
+ teardown.addEventListener(button, "mouseenter", () => {
77
+ hover = true;
78
+ render();
79
+ });
80
+ teardown.addEventListener(button, "mouseleave", () => {
81
+ hover = false;
82
+ render();
83
+ });
84
+ }
85
+ teardown.addEventListener(button, "focus", () => {
86
+ focusVisible = button.matches(":focus-visible");
87
+ render();
88
+ });
89
+ teardown.addEventListener(button, "blur", () => {
90
+ focusVisible = false;
91
+ render();
92
+ });
93
+ render();
94
+ container.appendChild(button);
95
+ return {
96
+ update: (nextProps) => {
97
+ props = nextProps;
98
+ render();
99
+ },
100
+ destroy: () => {
101
+ teardown.run();
102
+ button.parentNode?.removeChild(button);
103
+ },
104
+ };
105
+ };
106
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button.ts"],"names":[],"mappings":"AAaA,OAAO,EAGN,QAAQ,EACR,eAAe,EACf,WAAW,EACX,aAAa,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAS3C,MAAM,eAAe,GAAa;IACjC,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;IACxB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,QAAQ;IACvB,cAAc,EAAE,MAAM;IAEtB,aAAa,EAAE,MAAM;IACrB,QAAQ,EAAE,MAAM;IAIhB,SAAS,EAAE,MAAM;IAEjB,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,MAAM;IACd,UAAU,EACT,yMAAyM;IAC1M,eAAe,EAAE,aAAa;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAC1B,SAAsB,EACtB,YAAyB,EACA,EAAE;IAC3B,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;IAChC,IAAI,KAAK,GAAG,YAAY,CAAC;IACzB,IAAI,KAAK,GAAG,KAAK,CAAC;IAGlB,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,MA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AE,GAAG,EAAE;QAC9C,YAAY,GAAG,KAAK,CAAC;QACrB,MAAM,EAAE,CAAC;IACV,CAAC,CAAC,CAAC;IACH,MAAM,EAAE,CAAC;IACT,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAE9B,OAAO;QACN,MAAM,EAAE,CAAC,SAAsB,EAAE,EAAE;YAClC,KAAK,GAAG,SAAS,CAAC;YAClB,MAAM,EAAE,CAAC;QACV,CAAC;QACD,OAAO,EAAE,GAAG,EAAE;YACb,QAAQ,CAAC,GAAG,EAAE,CAAC;YACf,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QACxC,CAAC;KACD,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captchaComponent.d.ts","sourceRoot":"","sources":["../../../src/components/captchaComponent.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACN,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EASd,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACX,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,MAAM,gBAAgB,CAAC;AAYxB,MAAM,WAAW,qBAAqB;IACrC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC;IAC9B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,CACR,IAAI,EAAE,MAAM,EACZ,CAAC,CAAC,EAAE,MAAM,EACV,CAAC,CAAC,EAAE,MAAM,EACV,WAAW,CAAC,EAAE,WAAW,KACrB,IAAI,CAAC;IACV,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC;IAEvB,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CACzC;AAgFD,eAAO,MAAM,qBAAqB,cACtB,WAAW,gBACR,qBAAqB,KACjC,SAAS,CAAC,qBAAqB,CAoOjC,CAAC"}
@@ -0,0 +1,234 @@
1
+ import { applyAttributes, applyStyles, createElement, mountAudioAlternativeSlot, mountReloadButton, threeColumnBasis, wrapRandomly, } from "@prosopo/procaptcha-common";
2
+ import { at } from "@prosopo/util";
3
+ import { darkTheme, lightTheme, randomInt, } from "@prosopo/widget-skeleton";
4
+ import addDataAttr from "../util/index.js";
5
+ import { mountButton } from "./button.js";
6
+ import { mountCaptchaWidget } from "./captchaWidget.js";
7
+ const outerStyle = (theme) => ({
8
+ overflowX: "auto",
9
+ overflowY: "auto",
10
+ maxWidth: "500px",
11
+ maxHeight: "100%",
12
+ display: "flex",
13
+ flexDirection: "column",
14
+ border: `1px solid ${theme.palette.border}`,
15
+ boxShadow: theme.elevation.card,
16
+ borderRadius: theme.shape.card,
17
+ backgroundColor: theme.palette.background.default,
18
+ userSelect: "none",
19
+ touchAction: "pan-y pinch-zoom",
20
+ overscrollBehavior: "none",
21
+ });
22
+ const promptStyle = (theme) => ({
23
+ ...theme.typography.titleMedium,
24
+ color: theme.palette.primaryContainer.contrastText,
25
+ margin: 0,
26
+ });
27
+ const hintStyle = (theme) => ({
28
+ ...theme.typography.bodyMedium,
29
+ color: theme.palette.onSurfaceVariant,
30
+ margin: "4px 0 0 0",
31
+ });
32
+ const targetStyle = (theme) => ({
33
+ color: theme.palette.titleAccent,
34
+ fontWeight: 700,
35
+ });
36
+ const columnStyle = (gap) => ({
37
+ position: "relative",
38
+ flexGrow: 1,
39
+ flexBasis: threeColumnBasis(gap),
40
+ });
41
+ const SPACING_JITTER = 4;
42
+ const MIN_CONTROL_GAP = 6;
43
+ const MAX_CONTROL_GAP = 14;
44
+ const HEADER_PADDING_Y = 12;
45
+ const HEADER_PADDING_X = 14;
46
+ const HEADER_PADDING_JITTER = 3;
47
+ const MIN_WRAPPER_DEPTH = 0;
48
+ const MAX_WRAPPER_DEPTH = 2;
49
+ const decoy = (element) => wrapRandomly(element, MIN_WRAPPER_DEPTH, MAX_WRAPPER_DEPTH);
50
+ const jittered = (base, jitter = SPACING_JITTER) => Math.max(0, base + randomInt(-jitter, jitter));
51
+ export const mountCaptchaComponent = (container, initialProps) => {
52
+ let props = initialProps;
53
+ const themeOf = (themeColor) => "light" === themeColor ? lightTheme : darkTheme;
54
+ const currentCaptcha = () => at(props.challenge.captchas, props.index, { noWrap: true });
55
+ const currentSolution = () => at(props.solutions, props.index, { noWrap: true });
56
+ const isLastRound = () => props.index >= props.challenge.captchas.length - 1;
57
+ const theme = themeOf(props.themeColor);
58
+ const controlGap = randomInt(MIN_CONTROL_GAP, MAX_CONTROL_GAP);
59
+ const column = columnStyle(controlGap);
60
+ const targetLabel = createElement("span", { style: targetStyle(theme) });
61
+ const promptText = createElement("p", {
62
+ style: promptStyle(theme),
63
+ attributes: addDataAttr({ dev: { cy: "captcha-prompt" } }),
64
+ });
65
+ const hintText = createElement("p", { style: hintStyle(theme) });
66
+ const header = createElement("div", {
67
+ style: {
68
+ padding: `${jittered(HEADER_PADDING_Y, HEADER_PADDING_JITTER)}px ${jittered(HEADER_PADDING_X, HEADER_PADDING_JITTER)}px`,
69
+ fontFamily: theme.font.fontFamily,
70
+ },
71
+ children: [decoy(promptText), decoy(hintText)],
72
+ });
73
+ const headerBar = createElement("div", {
74
+ style: {
75
+ backgroundColor: theme.palette.primaryContainer.main,
76
+ borderRadius: theme.shape.header,
77
+ width: "100%",
78
+ marginTop: `${jittered(theme.spacing.unit)}px`,
79
+ },
80
+ children: [decoy(header)],
81
+ });
82
+ const headerRow = createElement("div", {
83
+ style: { display: "flex", alignItems: "center", width: "100%" },
84
+ children: [decoy(headerBar)],
85
+ });
86
+ const gridHost = createElement("div", {
87
+ style: { overflow: "hidden" },
88
+ attributes: addDataAttr({ dev: { cy: `captcha-${props.index}` } }),
89
+ });
90
+ const cancelHost = createElement("div", { style: column });
91
+ const reloadHost = createElement("div", { style: column });
92
+ const nextHost = createElement("div", { style: column });
93
+ const controls = createElement("div", {
94
+ style: {
95
+ width: "100%",
96
+ height: "100%",
97
+ display: "flex",
98
+ flexDirection: "row",
99
+ justifyContent: "space-between",
100
+ gap: `${controlGap}px`,
101
+ },
102
+ children: [decoy(cancelHost), decoy(reloadHost), decoy(nextHost)],
103
+ });
104
+ const controlsRow = createElement("div", {
105
+ style: {
106
+ display: "flex",
107
+ alignItems: "center",
108
+ justifyContent: "space-between",
109
+ lineHeight: 1.75,
110
+ padding: `${jittered(theme.spacing.unit)}px 0 ${jittered(theme.spacing.unit * 2)}px 0`,
111
+ },
112
+ children: [decoy(controls)],
113
+ });
114
+ const audioAlternativeRow = createElement("div", {
115
+ style: {
116
+ textAlign: "center",
117
+ paddingBottom: `${theme.spacing.unit * 2}px`,
118
+ },
119
+ });
120
+ const inner = createElement("div", {
121
+ style: {
122
+ backgroundColor: theme.palette.background.default,
123
+ display: "flex",
124
+ flexDirection: "column",
125
+ minWidth: "300px",
126
+ marginLeft: `${jittered(theme.spacing.unit)}px`,
127
+ marginRight: `${jittered(theme.spacing.unit)}px`,
128
+ justifyContent: "center",
129
+ },
130
+ children: [
131
+ decoy(headerRow),
132
+ decoy(gridHost),
133
+ decoy(controlsRow),
134
+ audioAlternativeRow,
135
+ ],
136
+ });
137
+ const root = createElement("div", {
138
+ style: outerStyle(theme),
139
+ attributes: addDataAttr({ dev: { cy: "captcha-panel" } }),
140
+ children: [decoy(inner)],
141
+ });
142
+ const grid = mountCaptchaWidget(gridHost, {
143
+ challenge: currentCaptcha(),
144
+ solution: currentSolution(),
145
+ onClick: props.onClick,
146
+ themeColor: props.themeColor,
147
+ });
148
+ const cancelButton = mountButton(cancelHost, {
149
+ themeColor: props.themeColor,
150
+ buttonType: "cancel",
151
+ onClick: () => props.onCancel(),
152
+ text: props.translator.t("WIDGET.CANCEL"),
153
+ });
154
+ const reloadButton = mountReloadButton(reloadHost, {
155
+ themeColor: props.themeColor,
156
+ label: props.translator.t("WIDGET.RELOAD"),
157
+ onReload: () => props.onReload(),
158
+ });
159
+ const nextButton = mountButton(nextHost, {
160
+ themeColor: props.themeColor,
161
+ buttonType: "next",
162
+ onClick: () => (isLastRound() ? props.onSubmit() : props.onNext()),
163
+ text: props.translator.t("WIDGET.SUBMIT"),
164
+ });
165
+ const audioAlternative = mountAudioAlternativeSlot(audioAlternativeRow, {
166
+ offer: props.audioAlternative,
167
+ theme,
168
+ });
169
+ const render = () => {
170
+ const activeTheme = themeOf(props.themeColor);
171
+ applyStyles(root, outerStyle(activeTheme));
172
+ applyStyles(inner, {
173
+ backgroundColor: activeTheme.palette.background.default,
174
+ });
175
+ applyStyles(headerBar, {
176
+ backgroundColor: activeTheme.palette.primaryContainer.main,
177
+ borderRadius: activeTheme.shape.header,
178
+ });
179
+ applyStyles(header, { fontFamily: activeTheme.font.fontFamily });
180
+ applyStyles(promptText, promptStyle(activeTheme));
181
+ applyStyles(hintText, hintStyle(activeTheme));
182
+ applyStyles(targetLabel, targetStyle(activeTheme));
183
+ const t = props.translator.t;
184
+ targetLabel.textContent = `${currentCaptcha().target} `;
185
+ promptText.textContent = `${t("WIDGET.SELECT_ALL")}:\u00a0`;
186
+ promptText.appendChild(targetLabel);
187
+ hintText.textContent = t("WIDGET.IF_NONE_CLICK_NEXT");
188
+ applyAttributes(gridHost, addDataAttr({ dev: { cy: `captcha-${props.index}` } }));
189
+ grid.update({
190
+ challenge: currentCaptcha(),
191
+ solution: currentSolution(),
192
+ onClick: props.onClick,
193
+ themeColor: props.themeColor,
194
+ });
195
+ cancelButton.update({
196
+ themeColor: props.themeColor,
197
+ buttonType: "cancel",
198
+ onClick: () => props.onCancel(),
199
+ text: t("WIDGET.CANCEL"),
200
+ });
201
+ reloadButton.update({
202
+ themeColor: props.themeColor,
203
+ label: props.translator.t("WIDGET.RELOAD"),
204
+ onReload: () => props.onReload(),
205
+ });
206
+ nextButton.update({
207
+ themeColor: props.themeColor,
208
+ buttonType: "next",
209
+ onClick: () => (isLastRound() ? props.onSubmit() : props.onNext()),
210
+ text: isLastRound() ? t("WIDGET.SUBMIT") : t("WIDGET.NEXT"),
211
+ });
212
+ audioAlternative.update({
213
+ offer: props.audioAlternative,
214
+ theme: activeTheme,
215
+ });
216
+ };
217
+ render();
218
+ container.appendChild(root);
219
+ return {
220
+ update: (nextProps) => {
221
+ props = nextProps;
222
+ render();
223
+ },
224
+ destroy: () => {
225
+ grid.destroy();
226
+ cancelButton.destroy();
227
+ reloadButton.destroy();
228
+ nextButton.destroy();
229
+ audioAlternative.destroy();
230
+ root.parentNode?.removeChild(root);
231
+ },
232
+ };
233
+ };
234
+ //# sourceMappingURL=captchaComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"captchaComponent.js","sourceRoot":"","sources":["../../../src/components/captchaComponent.ts"],"names":[],"mappings":"AAcA,OAAO,EAIN,eAAe,EACf,WAAW,EACX,aAAa,EACb,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,GACZ,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACnC,OAAO,EAEN,SAAS,EACT,UAAU,EACV,SAAS,GACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAsBxD,MAAM,UAAU,GAAG,CAAC,KAAY,EAAY,EAAE,CAAC,CAAC;IAE/C,SAAS,EAAE,MAAM;IACjB,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,MAAM;IACjB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE,aAAa,KAAK,CAAC,OAAO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