@jjlmoya/utils-forensic-science 1.1.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 (316) hide show
  1. package/package.json +69 -0
  2. package/scripts/crystal-lattice-catalog-translations.mjs +459 -0
  3. package/scripts/postinstall.mjs +27 -0
  4. package/scripts/sync-crystal-lattice-i18n.mjs +50 -0
  5. package/src/category/i18n/de.ts +55 -0
  6. package/src/category/i18n/en.ts +55 -0
  7. package/src/category/i18n/es.ts +55 -0
  8. package/src/category/i18n/fr.ts +55 -0
  9. package/src/category/i18n/id.ts +55 -0
  10. package/src/category/i18n/it.ts +55 -0
  11. package/src/category/i18n/ja.ts +56 -0
  12. package/src/category/i18n/ko.ts +56 -0
  13. package/src/category/i18n/nl.ts +55 -0
  14. package/src/category/i18n/pl.ts +55 -0
  15. package/src/category/i18n/pt.ts +55 -0
  16. package/src/category/i18n/ru.ts +55 -0
  17. package/src/category/i18n/sv.ts +55 -0
  18. package/src/category/i18n/tr.ts +55 -0
  19. package/src/category/i18n/zh.ts +56 -0
  20. package/src/category/index.ts +48 -0
  21. package/src/category/seo.astro +15 -0
  22. package/src/components/PreviewNavSidebar.astro +116 -0
  23. package/src/components/PreviewToolbar.astro +143 -0
  24. package/src/data.ts +10 -0
  25. package/src/entries.ts +48 -0
  26. package/src/env.d.ts +5 -0
  27. package/src/index.ts +29 -0
  28. package/src/layouts/PreviewLayout.astro +117 -0
  29. package/src/pages/[locale]/[slug].astro +162 -0
  30. package/src/pages/[locale].astro +261 -0
  31. package/src/pages/index.astro +3 -0
  32. package/src/tests/diacritics_density.test.ts +140 -0
  33. package/src/tests/faq_count.test.ts +19 -0
  34. package/src/tests/i18n_coverage.test.ts +36 -0
  35. package/src/tests/inverted_punctuation.test.ts +84 -0
  36. package/src/tests/locale_completeness.test.ts +24 -0
  37. package/src/tests/mocks/astro_mock.js +2 -0
  38. package/src/tests/no_en_dash.test.ts +70 -0
  39. package/src/tests/no_h1_in_components.test.ts +48 -0
  40. package/src/tests/schemas_fulfillment.test.ts +23 -0
  41. package/src/tests/script_density.test.ts +94 -0
  42. package/src/tests/seo_length.test.ts +46 -0
  43. package/src/tests/shared-test-helpers.ts +56 -0
  44. package/src/tests/slug_language_code_format.test.ts +23 -0
  45. package/src/tests/slug_uniqueness.test.ts +81 -0
  46. package/src/tests/title_quality.test.ts +55 -0
  47. package/src/tests/tool_exports.test.ts +34 -0
  48. package/src/tests/tool_validation.test.ts +16 -0
  49. package/src/tests/widmark.test.ts +28 -0
  50. package/src/tool/forensic-age-estimator/bibliography.astro +14 -0
  51. package/src/tool/forensic-age-estimator/bibliography.ts +16 -0
  52. package/src/tool/forensic-age-estimator/component.astro +321 -0
  53. package/src/tool/forensic-age-estimator/dental-skeletal-third-molar-age-estimator.css +634 -0
  54. package/src/tool/forensic-age-estimator/entry.ts +32 -0
  55. package/src/tool/forensic-age-estimator/i18n/de.ts +245 -0
  56. package/src/tool/forensic-age-estimator/i18n/en.ts +245 -0
  57. package/src/tool/forensic-age-estimator/i18n/es.ts +245 -0
  58. package/src/tool/forensic-age-estimator/i18n/fr.ts +245 -0
  59. package/src/tool/forensic-age-estimator/i18n/id.ts +245 -0
  60. package/src/tool/forensic-age-estimator/i18n/it.ts +245 -0
  61. package/src/tool/forensic-age-estimator/i18n/ja.ts +245 -0
  62. package/src/tool/forensic-age-estimator/i18n/ko.ts +245 -0
  63. package/src/tool/forensic-age-estimator/i18n/nl.ts +245 -0
  64. package/src/tool/forensic-age-estimator/i18n/pl.ts +245 -0
  65. package/src/tool/forensic-age-estimator/i18n/pt.ts +245 -0
  66. package/src/tool/forensic-age-estimator/i18n/ru.ts +245 -0
  67. package/src/tool/forensic-age-estimator/i18n/sv.ts +245 -0
  68. package/src/tool/forensic-age-estimator/i18n/tr.ts +245 -0
  69. package/src/tool/forensic-age-estimator/i18n/zh.ts +246 -0
  70. package/src/tool/forensic-age-estimator/index.ts +11 -0
  71. package/src/tool/forensic-age-estimator/logic.ts +81 -0
  72. package/src/tool/forensic-age-estimator/seo.astro +15 -0
  73. package/src/tool/forensic-blood-test-simulator/bibliography.astro +6 -0
  74. package/src/tool/forensic-blood-test-simulator/bibliography.ts +12 -0
  75. package/src/tool/forensic-blood-test-simulator/component.astro +168 -0
  76. package/src/tool/forensic-blood-test-simulator/dom-utils.ts +40 -0
  77. package/src/tool/forensic-blood-test-simulator/entry.ts +32 -0
  78. package/src/tool/forensic-blood-test-simulator/forensic-presumptive-blood-testing-luminol-kastle-meyer-simulator.css +532 -0
  79. package/src/tool/forensic-blood-test-simulator/helpers.ts +16 -0
  80. package/src/tool/forensic-blood-test-simulator/i18n/de.ts +185 -0
  81. package/src/tool/forensic-blood-test-simulator/i18n/en.ts +185 -0
  82. package/src/tool/forensic-blood-test-simulator/i18n/es.ts +185 -0
  83. package/src/tool/forensic-blood-test-simulator/i18n/fr.ts +220 -0
  84. package/src/tool/forensic-blood-test-simulator/i18n/id.ts +220 -0
  85. package/src/tool/forensic-blood-test-simulator/i18n/it.ts +220 -0
  86. package/src/tool/forensic-blood-test-simulator/i18n/ja.ts +220 -0
  87. package/src/tool/forensic-blood-test-simulator/i18n/ko.ts +220 -0
  88. package/src/tool/forensic-blood-test-simulator/i18n/nl.ts +220 -0
  89. package/src/tool/forensic-blood-test-simulator/i18n/pl.ts +220 -0
  90. package/src/tool/forensic-blood-test-simulator/i18n/pt.ts +220 -0
  91. package/src/tool/forensic-blood-test-simulator/i18n/ru.ts +220 -0
  92. package/src/tool/forensic-blood-test-simulator/i18n/sv.ts +220 -0
  93. package/src/tool/forensic-blood-test-simulator/i18n/tr.ts +220 -0
  94. package/src/tool/forensic-blood-test-simulator/i18n/zh.ts +220 -0
  95. package/src/tool/forensic-blood-test-simulator/index.ts +11 -0
  96. package/src/tool/forensic-blood-test-simulator/logic.ts +174 -0
  97. package/src/tool/forensic-blood-test-simulator/script.ts +192 -0
  98. package/src/tool/forensic-blood-test-simulator/seo.astro +15 -0
  99. package/src/tool/forensic-fiber-comparison-microscope/bibliography.astro +6 -0
  100. package/src/tool/forensic-fiber-comparison-microscope/bibliography.ts +16 -0
  101. package/src/tool/forensic-fiber-comparison-microscope/component.astro +146 -0
  102. package/src/tool/forensic-fiber-comparison-microscope/entry.ts +32 -0
  103. package/src/tool/forensic-fiber-comparison-microscope/forensic-fiber-comparison-microscope.css +629 -0
  104. package/src/tool/forensic-fiber-comparison-microscope/i18n/de.ts +250 -0
  105. package/src/tool/forensic-fiber-comparison-microscope/i18n/en.ts +246 -0
  106. package/src/tool/forensic-fiber-comparison-microscope/i18n/es.ts +246 -0
  107. package/src/tool/forensic-fiber-comparison-microscope/i18n/fr.ts +246 -0
  108. package/src/tool/forensic-fiber-comparison-microscope/i18n/id.ts +250 -0
  109. package/src/tool/forensic-fiber-comparison-microscope/i18n/it.ts +246 -0
  110. package/src/tool/forensic-fiber-comparison-microscope/i18n/ja.ts +250 -0
  111. package/src/tool/forensic-fiber-comparison-microscope/i18n/ko.ts +246 -0
  112. package/src/tool/forensic-fiber-comparison-microscope/i18n/nl.ts +246 -0
  113. package/src/tool/forensic-fiber-comparison-microscope/i18n/pl.ts +250 -0
  114. package/src/tool/forensic-fiber-comparison-microscope/i18n/pt.ts +250 -0
  115. package/src/tool/forensic-fiber-comparison-microscope/i18n/ru.ts +250 -0
  116. package/src/tool/forensic-fiber-comparison-microscope/i18n/sv.ts +250 -0
  117. package/src/tool/forensic-fiber-comparison-microscope/i18n/tr.ts +246 -0
  118. package/src/tool/forensic-fiber-comparison-microscope/i18n/zh.ts +250 -0
  119. package/src/tool/forensic-fiber-comparison-microscope/index.ts +11 -0
  120. package/src/tool/forensic-fiber-comparison-microscope/logic.ts +244 -0
  121. package/src/tool/forensic-fiber-comparison-microscope/render.ts +265 -0
  122. package/src/tool/forensic-fiber-comparison-microscope/seo.astro +15 -0
  123. package/src/tool/forensic-fiber-comparison-microscope/view.ts +267 -0
  124. package/src/tool/forensic-glass-becke-line-simulator/bibliography.astro +6 -0
  125. package/src/tool/forensic-glass-becke-line-simulator/bibliography.ts +16 -0
  126. package/src/tool/forensic-glass-becke-line-simulator/component.astro +81 -0
  127. package/src/tool/forensic-glass-becke-line-simulator/entry.ts +32 -0
  128. package/src/tool/forensic-glass-becke-line-simulator/forensic-glass-becke-line-simulator.css +392 -0
  129. package/src/tool/forensic-glass-becke-line-simulator/i18n/de.ts +231 -0
  130. package/src/tool/forensic-glass-becke-line-simulator/i18n/en.ts +231 -0
  131. package/src/tool/forensic-glass-becke-line-simulator/i18n/es.ts +231 -0
  132. package/src/tool/forensic-glass-becke-line-simulator/i18n/fr.ts +231 -0
  133. package/src/tool/forensic-glass-becke-line-simulator/i18n/id.ts +231 -0
  134. package/src/tool/forensic-glass-becke-line-simulator/i18n/it.ts +231 -0
  135. package/src/tool/forensic-glass-becke-line-simulator/i18n/ja.ts +231 -0
  136. package/src/tool/forensic-glass-becke-line-simulator/i18n/ko.ts +231 -0
  137. package/src/tool/forensic-glass-becke-line-simulator/i18n/nl.ts +231 -0
  138. package/src/tool/forensic-glass-becke-line-simulator/i18n/pl.ts +231 -0
  139. package/src/tool/forensic-glass-becke-line-simulator/i18n/pt.ts +231 -0
  140. package/src/tool/forensic-glass-becke-line-simulator/i18n/ru.ts +231 -0
  141. package/src/tool/forensic-glass-becke-line-simulator/i18n/sv.ts +231 -0
  142. package/src/tool/forensic-glass-becke-line-simulator/i18n/tr.ts +231 -0
  143. package/src/tool/forensic-glass-becke-line-simulator/i18n/zh.ts +231 -0
  144. package/src/tool/forensic-glass-becke-line-simulator/index.ts +11 -0
  145. package/src/tool/forensic-glass-becke-line-simulator/logic.ts +100 -0
  146. package/src/tool/forensic-glass-becke-line-simulator/seo.astro +15 -0
  147. package/src/tool/forensic-glass-becke-line-simulator/view.ts +281 -0
  148. package/src/tool/forensic-image-authenticity-analyzer/bibliography.astro +9 -0
  149. package/src/tool/forensic-image-authenticity-analyzer/bibliography.ts +7 -0
  150. package/src/tool/forensic-image-authenticity-analyzer/component.astro +250 -0
  151. package/src/tool/forensic-image-authenticity-analyzer/entry.ts +29 -0
  152. package/src/tool/forensic-image-authenticity-analyzer/forensic-image-metadata-authenticity-analyzer.css +679 -0
  153. package/src/tool/forensic-image-authenticity-analyzer/i18n/de.ts +105 -0
  154. package/src/tool/forensic-image-authenticity-analyzer/i18n/en.ts +105 -0
  155. package/src/tool/forensic-image-authenticity-analyzer/i18n/es.ts +105 -0
  156. package/src/tool/forensic-image-authenticity-analyzer/i18n/fr.ts +105 -0
  157. package/src/tool/forensic-image-authenticity-analyzer/i18n/id.ts +76 -0
  158. package/src/tool/forensic-image-authenticity-analyzer/i18n/it.ts +105 -0
  159. package/src/tool/forensic-image-authenticity-analyzer/i18n/ja.ts +72 -0
  160. package/src/tool/forensic-image-authenticity-analyzer/i18n/ko.ts +72 -0
  161. package/src/tool/forensic-image-authenticity-analyzer/i18n/nl.ts +75 -0
  162. package/src/tool/forensic-image-authenticity-analyzer/i18n/pl.ts +75 -0
  163. package/src/tool/forensic-image-authenticity-analyzer/i18n/pt.ts +105 -0
  164. package/src/tool/forensic-image-authenticity-analyzer/i18n/ru.ts +75 -0
  165. package/src/tool/forensic-image-authenticity-analyzer/i18n/sv.ts +76 -0
  166. package/src/tool/forensic-image-authenticity-analyzer/i18n/tr.ts +76 -0
  167. package/src/tool/forensic-image-authenticity-analyzer/i18n/zh.ts +71 -0
  168. package/src/tool/forensic-image-authenticity-analyzer/index.ts +11 -0
  169. package/src/tool/forensic-image-authenticity-analyzer/logic.ts +283 -0
  170. package/src/tool/forensic-image-authenticity-analyzer/seo.astro +10 -0
  171. package/src/tool/forensic-microcrystal-drug-simulator/bibliography.astro +6 -0
  172. package/src/tool/forensic-microcrystal-drug-simulator/bibliography.ts +12 -0
  173. package/src/tool/forensic-microcrystal-drug-simulator/component.astro +240 -0
  174. package/src/tool/forensic-microcrystal-drug-simulator/entry.ts +32 -0
  175. package/src/tool/forensic-microcrystal-drug-simulator/forensic-microcrystal-drug-simulator.css +430 -0
  176. package/src/tool/forensic-microcrystal-drug-simulator/i18n/de.ts +244 -0
  177. package/src/tool/forensic-microcrystal-drug-simulator/i18n/en.ts +244 -0
  178. package/src/tool/forensic-microcrystal-drug-simulator/i18n/es.ts +244 -0
  179. package/src/tool/forensic-microcrystal-drug-simulator/i18n/fr.ts +244 -0
  180. package/src/tool/forensic-microcrystal-drug-simulator/i18n/id.ts +244 -0
  181. package/src/tool/forensic-microcrystal-drug-simulator/i18n/it.ts +244 -0
  182. package/src/tool/forensic-microcrystal-drug-simulator/i18n/ja.ts +244 -0
  183. package/src/tool/forensic-microcrystal-drug-simulator/i18n/ko.ts +244 -0
  184. package/src/tool/forensic-microcrystal-drug-simulator/i18n/nl.ts +244 -0
  185. package/src/tool/forensic-microcrystal-drug-simulator/i18n/pl.ts +244 -0
  186. package/src/tool/forensic-microcrystal-drug-simulator/i18n/pt.ts +244 -0
  187. package/src/tool/forensic-microcrystal-drug-simulator/i18n/ru.ts +244 -0
  188. package/src/tool/forensic-microcrystal-drug-simulator/i18n/sv.ts +244 -0
  189. package/src/tool/forensic-microcrystal-drug-simulator/i18n/tr.ts +244 -0
  190. package/src/tool/forensic-microcrystal-drug-simulator/i18n/zh.ts +244 -0
  191. package/src/tool/forensic-microcrystal-drug-simulator/index.ts +11 -0
  192. package/src/tool/forensic-microcrystal-drug-simulator/logic.ts +189 -0
  193. package/src/tool/forensic-microcrystal-drug-simulator/seo.astro +15 -0
  194. package/src/tool/forensic-sex-determinator/bibliography.astro +14 -0
  195. package/src/tool/forensic-sex-determinator/bibliography.ts +12 -0
  196. package/src/tool/forensic-sex-determinator/component.astro +463 -0
  197. package/src/tool/forensic-sex-determinator/entry.ts +32 -0
  198. package/src/tool/forensic-sex-determinator/forensic-sex-determinator.css +413 -0
  199. package/src/tool/forensic-sex-determinator/i18n/de.ts +211 -0
  200. package/src/tool/forensic-sex-determinator/i18n/en.ts +211 -0
  201. package/src/tool/forensic-sex-determinator/i18n/es.ts +211 -0
  202. package/src/tool/forensic-sex-determinator/i18n/fr.ts +211 -0
  203. package/src/tool/forensic-sex-determinator/i18n/id.ts +211 -0
  204. package/src/tool/forensic-sex-determinator/i18n/it.ts +211 -0
  205. package/src/tool/forensic-sex-determinator/i18n/ja.ts +211 -0
  206. package/src/tool/forensic-sex-determinator/i18n/ko.ts +211 -0
  207. package/src/tool/forensic-sex-determinator/i18n/nl.ts +211 -0
  208. package/src/tool/forensic-sex-determinator/i18n/pl.ts +211 -0
  209. package/src/tool/forensic-sex-determinator/i18n/pt.ts +211 -0
  210. package/src/tool/forensic-sex-determinator/i18n/ru.ts +211 -0
  211. package/src/tool/forensic-sex-determinator/i18n/sv.ts +211 -0
  212. package/src/tool/forensic-sex-determinator/i18n/tr.ts +211 -0
  213. package/src/tool/forensic-sex-determinator/i18n/zh.ts +211 -0
  214. package/src/tool/forensic-sex-determinator/index.ts +11 -0
  215. package/src/tool/forensic-sex-determinator/logic.ts +89 -0
  216. package/src/tool/forensic-sex-determinator/seo.astro +15 -0
  217. package/src/tool/forensic-stature-estimator/bibliography.astro +14 -0
  218. package/src/tool/forensic-stature-estimator/bibliography.ts +12 -0
  219. package/src/tool/forensic-stature-estimator/component.astro +49 -0
  220. package/src/tool/forensic-stature-estimator/components/EstimationPanel.astro +65 -0
  221. package/src/tool/forensic-stature-estimator/components/OsteometricBoard.astro +39 -0
  222. package/src/tool/forensic-stature-estimator/components/OsteometricSelector.astro +109 -0
  223. package/src/tool/forensic-stature-estimator/dom-utils.ts +71 -0
  224. package/src/tool/forensic-stature-estimator/entry.ts +32 -0
  225. package/src/tool/forensic-stature-estimator/forensic-stature-estimator.css +689 -0
  226. package/src/tool/forensic-stature-estimator/helpers.ts +51 -0
  227. package/src/tool/forensic-stature-estimator/i18n/de.ts +196 -0
  228. package/src/tool/forensic-stature-estimator/i18n/en.ts +196 -0
  229. package/src/tool/forensic-stature-estimator/i18n/es.ts +196 -0
  230. package/src/tool/forensic-stature-estimator/i18n/fr.ts +196 -0
  231. package/src/tool/forensic-stature-estimator/i18n/id.ts +196 -0
  232. package/src/tool/forensic-stature-estimator/i18n/it.ts +196 -0
  233. package/src/tool/forensic-stature-estimator/i18n/ja.ts +196 -0
  234. package/src/tool/forensic-stature-estimator/i18n/ko.ts +196 -0
  235. package/src/tool/forensic-stature-estimator/i18n/nl.ts +196 -0
  236. package/src/tool/forensic-stature-estimator/i18n/pl.ts +196 -0
  237. package/src/tool/forensic-stature-estimator/i18n/pt.ts +196 -0
  238. package/src/tool/forensic-stature-estimator/i18n/ru.ts +196 -0
  239. package/src/tool/forensic-stature-estimator/i18n/sv.ts +196 -0
  240. package/src/tool/forensic-stature-estimator/i18n/tr.ts +196 -0
  241. package/src/tool/forensic-stature-estimator/i18n/zh.ts +196 -0
  242. package/src/tool/forensic-stature-estimator/index.ts +11 -0
  243. package/src/tool/forensic-stature-estimator/logic.ts +119 -0
  244. package/src/tool/forensic-stature-estimator/script.ts +288 -0
  245. package/src/tool/forensic-stature-estimator/seo.astro +15 -0
  246. package/src/tool/forensic-tlc-ink-simulator/bibliography.astro +6 -0
  247. package/src/tool/forensic-tlc-ink-simulator/bibliography.ts +16 -0
  248. package/src/tool/forensic-tlc-ink-simulator/component.astro +245 -0
  249. package/src/tool/forensic-tlc-ink-simulator/entry.ts +32 -0
  250. package/src/tool/forensic-tlc-ink-simulator/forensic-tlc-ink-simulator.css +462 -0
  251. package/src/tool/forensic-tlc-ink-simulator/i18n/de.ts +243 -0
  252. package/src/tool/forensic-tlc-ink-simulator/i18n/en.ts +243 -0
  253. package/src/tool/forensic-tlc-ink-simulator/i18n/es.ts +243 -0
  254. package/src/tool/forensic-tlc-ink-simulator/i18n/fr.ts +243 -0
  255. package/src/tool/forensic-tlc-ink-simulator/i18n/id.ts +243 -0
  256. package/src/tool/forensic-tlc-ink-simulator/i18n/it.ts +243 -0
  257. package/src/tool/forensic-tlc-ink-simulator/i18n/ja.ts +235 -0
  258. package/src/tool/forensic-tlc-ink-simulator/i18n/ko.ts +235 -0
  259. package/src/tool/forensic-tlc-ink-simulator/i18n/nl.ts +243 -0
  260. package/src/tool/forensic-tlc-ink-simulator/i18n/pl.ts +243 -0
  261. package/src/tool/forensic-tlc-ink-simulator/i18n/pt.ts +243 -0
  262. package/src/tool/forensic-tlc-ink-simulator/i18n/ru.ts +243 -0
  263. package/src/tool/forensic-tlc-ink-simulator/i18n/sv.ts +243 -0
  264. package/src/tool/forensic-tlc-ink-simulator/i18n/tr.ts +243 -0
  265. package/src/tool/forensic-tlc-ink-simulator/i18n/zh.ts +235 -0
  266. package/src/tool/forensic-tlc-ink-simulator/index.ts +11 -0
  267. package/src/tool/forensic-tlc-ink-simulator/logic.ts +152 -0
  268. package/src/tool/forensic-tlc-ink-simulator/seo.astro +15 -0
  269. package/src/tool/gsr-dispersion-calculator/bibliography.astro +6 -0
  270. package/src/tool/gsr-dispersion-calculator/bibliography.ts +16 -0
  271. package/src/tool/gsr-dispersion-calculator/component.astro +294 -0
  272. package/src/tool/gsr-dispersion-calculator/entry.ts +32 -0
  273. package/src/tool/gsr-dispersion-calculator/gsr-dispersion-calculator.css +305 -0
  274. package/src/tool/gsr-dispersion-calculator/i18n/de.ts +272 -0
  275. package/src/tool/gsr-dispersion-calculator/i18n/en.ts +272 -0
  276. package/src/tool/gsr-dispersion-calculator/i18n/es.ts +272 -0
  277. package/src/tool/gsr-dispersion-calculator/i18n/fr.ts +272 -0
  278. package/src/tool/gsr-dispersion-calculator/i18n/id.ts +272 -0
  279. package/src/tool/gsr-dispersion-calculator/i18n/it.ts +272 -0
  280. package/src/tool/gsr-dispersion-calculator/i18n/ja.ts +272 -0
  281. package/src/tool/gsr-dispersion-calculator/i18n/ko.ts +272 -0
  282. package/src/tool/gsr-dispersion-calculator/i18n/nl.ts +272 -0
  283. package/src/tool/gsr-dispersion-calculator/i18n/pl.ts +272 -0
  284. package/src/tool/gsr-dispersion-calculator/i18n/pt.ts +272 -0
  285. package/src/tool/gsr-dispersion-calculator/i18n/ru.ts +272 -0
  286. package/src/tool/gsr-dispersion-calculator/i18n/sv.ts +272 -0
  287. package/src/tool/gsr-dispersion-calculator/i18n/tr.ts +272 -0
  288. package/src/tool/gsr-dispersion-calculator/i18n/zh.ts +272 -0
  289. package/src/tool/gsr-dispersion-calculator/index.ts +11 -0
  290. package/src/tool/gsr-dispersion-calculator/logic.ts +148 -0
  291. package/src/tool/gsr-dispersion-calculator/seo.astro +15 -0
  292. package/src/tool/widmark-alcohol-simulator/bibliography.astro +14 -0
  293. package/src/tool/widmark-alcohol-simulator/bibliography.ts +12 -0
  294. package/src/tool/widmark-alcohol-simulator/component.astro +453 -0
  295. package/src/tool/widmark-alcohol-simulator/entry.ts +32 -0
  296. package/src/tool/widmark-alcohol-simulator/i18n/de.ts +193 -0
  297. package/src/tool/widmark-alcohol-simulator/i18n/en.ts +206 -0
  298. package/src/tool/widmark-alcohol-simulator/i18n/es.ts +193 -0
  299. package/src/tool/widmark-alcohol-simulator/i18n/fr.ts +193 -0
  300. package/src/tool/widmark-alcohol-simulator/i18n/id.ts +193 -0
  301. package/src/tool/widmark-alcohol-simulator/i18n/it.ts +193 -0
  302. package/src/tool/widmark-alcohol-simulator/i18n/ja.ts +193 -0
  303. package/src/tool/widmark-alcohol-simulator/i18n/ko.ts +193 -0
  304. package/src/tool/widmark-alcohol-simulator/i18n/nl.ts +193 -0
  305. package/src/tool/widmark-alcohol-simulator/i18n/pl.ts +193 -0
  306. package/src/tool/widmark-alcohol-simulator/i18n/pt.ts +193 -0
  307. package/src/tool/widmark-alcohol-simulator/i18n/ru.ts +193 -0
  308. package/src/tool/widmark-alcohol-simulator/i18n/sv.ts +193 -0
  309. package/src/tool/widmark-alcohol-simulator/i18n/tr.ts +193 -0
  310. package/src/tool/widmark-alcohol-simulator/i18n/zh.ts +193 -0
  311. package/src/tool/widmark-alcohol-simulator/index.ts +11 -0
  312. package/src/tool/widmark-alcohol-simulator/logic.ts +97 -0
  313. package/src/tool/widmark-alcohol-simulator/seo.astro +15 -0
  314. package/src/tool/widmark-alcohol-simulator/widmark-alcohol-simulator.css +386 -0
  315. package/src/tools.ts +27 -0
  316. package/src/types.ts +70 -0
@@ -0,0 +1,679 @@
1
+ .fia-lab {
2
+ --ink: #0f2430;
3
+ --muted: #5f7c86;
4
+ --line: rgba(15, 130, 140, 0.18);
5
+ --cyan: #0aa7b5;
6
+ --amber: #c98512;
7
+ --red: #d84d63;
8
+ --panel: rgba(255, 255, 255, 0.78);
9
+ --panel-strong: #fff;
10
+ --well: #eaf7f7;
11
+ --shadow: 0 22px 60px rgba(13, 44, 52, 0.12);
12
+
13
+ box-sizing: border-box;
14
+ width: 100%;
15
+ min-width: 0;
16
+ max-width: 1180px;
17
+ margin: auto;
18
+ padding: 1rem;
19
+ overflow: hidden;
20
+ color: var(--ink);
21
+ background:
22
+ radial-gradient(circle at 80% 0, rgba(10, 167, 181, 0.15), transparent 34%),
23
+ linear-gradient(180deg, #f8fdfd 0%, #edf8f8 100%);
24
+ border: 1px solid var(--line);
25
+ border-radius: 28px;
26
+ box-shadow: var(--shadow);
27
+ }
28
+
29
+ .theme-dark .fia-lab {
30
+ --ink: #dffcff;
31
+ --muted: #86a3aa;
32
+ --line: rgba(112, 235, 229, 0.18);
33
+ --cyan: #50f3e8;
34
+ --amber: #ffbf5b;
35
+ --red: #ff657a;
36
+ --panel: rgba(255, 255, 255, 0.025);
37
+ --panel-strong: #020607;
38
+ --well: #09191d;
39
+ --shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
40
+
41
+ background:
42
+ radial-gradient(circle at 80% 0, rgba(28, 180, 177, 0.16), transparent 34%),
43
+ #071114;
44
+ }
45
+
46
+ .fia-lab * {
47
+ box-sizing: border-box;
48
+ }
49
+
50
+ .fia-header,
51
+ .fia-panel-title,
52
+ .fia-pulse,
53
+ .fia-score {
54
+ display: flex;
55
+ align-items: center;
56
+ }
57
+
58
+ .fia-header {
59
+ justify-content: space-between;
60
+ padding: 0.4rem 0.4rem 1rem;
61
+ font-size: 0.72rem;
62
+ letter-spacing: 0.14em;
63
+ text-transform: uppercase;
64
+ }
65
+
66
+ .fia-kicker {
67
+ color: var(--cyan);
68
+ }
69
+
70
+ .fia-pulse {
71
+ gap: 0.5rem;
72
+ color: var(--muted);
73
+ }
74
+
75
+ .fia-pulse i {
76
+ width: 8px;
77
+ height: 8px;
78
+ background: var(--cyan);
79
+ border-radius: 50%;
80
+ box-shadow: 0 0 14px var(--cyan);
81
+ }
82
+
83
+ .fia-drop {
84
+ display: grid;
85
+ grid-template-columns: 1fr;
86
+ place-items: center;
87
+ width: 100%;
88
+ min-width: 0;
89
+ min-height: 340px;
90
+ padding: 1.25rem;
91
+ overflow: hidden;
92
+ text-align: center;
93
+ cursor: pointer;
94
+ background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent);
95
+ border: 1px dashed color-mix(in srgb, var(--cyan) 45%, transparent);
96
+ border-radius: 22px;
97
+ transition: 0.2s;
98
+ }
99
+
100
+ .fia-drop:hover,
101
+ .fia-drop.is-dragging {
102
+ background: color-mix(in srgb, var(--cyan) 12%, transparent);
103
+ border-color: var(--cyan);
104
+ transform: translateY(-2px);
105
+ }
106
+
107
+ .fia-drop input {
108
+ position: absolute;
109
+ opacity: 0;
110
+ pointer-events: none;
111
+ }
112
+
113
+ .fia-drop-copy {
114
+ z-index: 2;
115
+ display: flex;
116
+ flex-direction: column;
117
+ align-items: center;
118
+ min-width: 0;
119
+ }
120
+
121
+ .fia-drop strong {
122
+ max-width: 720px;
123
+ overflow-wrap: anywhere;
124
+ font-size: clamp(1.7rem, 7vw, 3.4rem);
125
+ font-weight: 800;
126
+ line-height: 1.02;
127
+ }
128
+
129
+ .fia-drop small {
130
+ max-width: 520px;
131
+ margin: 1rem 0 1.5rem;
132
+ color: var(--muted);
133
+ line-height: 1.5;
134
+ }
135
+
136
+ .fia-button {
137
+ display: inline-flex;
138
+ gap: 0.55rem;
139
+ align-items: center;
140
+ padding: 0.8rem 1.2rem;
141
+ color: var(--panel-strong);
142
+ font-weight: 800;
143
+ background: var(--cyan);
144
+ border: 1px solid var(--cyan);
145
+ border-radius: 999px;
146
+ box-shadow: 0 12px 32px color-mix(in srgb, var(--cyan) 24%, transparent);
147
+ transition:
148
+ transform 0.2s ease,
149
+ padding 0.2s ease,
150
+ font-size 0.2s ease,
151
+ opacity 0.2s ease;
152
+ }
153
+
154
+ .fia-button-icon {
155
+ font-size: 1.2rem;
156
+ line-height: 1;
157
+ }
158
+
159
+ .fia-button-label {
160
+ line-height: 1;
161
+ }
162
+
163
+ .fia-drop[data-has-image='true'] .fia-button {
164
+ padding: 0.55rem 0.95rem;
165
+ font-size: 0.86rem;
166
+ box-shadow: 0 8px 20px color-mix(in srgb, var(--cyan) 18%, transparent);
167
+ }
168
+
169
+ .fia-drop[data-has-image='true'] .fia-button-icon {
170
+ font-size: 0.95rem;
171
+ }
172
+
173
+ .fia-scene {
174
+ position: relative;
175
+ display: grid;
176
+ place-items: center;
177
+ width: 210px;
178
+ height: 170px;
179
+ }
180
+
181
+ .fia-aperture {
182
+ position: relative;
183
+ display: grid;
184
+ place-items: center;
185
+ width: 82px;
186
+ height: 82px;
187
+ border: 1px solid var(--cyan);
188
+ border-radius: 50%;
189
+ box-shadow:
190
+ inset 0 0 28px color-mix(in srgb, var(--cyan) 16%, transparent),
191
+ 0 0 30px color-mix(in srgb, var(--cyan) 12%, transparent);
192
+ }
193
+
194
+ .fia-aperture i {
195
+ width: 32px;
196
+ height: 32px;
197
+ background: conic-gradient(from 20deg, var(--cyan), transparent, var(--cyan));
198
+ border-radius: 50%;
199
+ animation: fia-spin 9s linear infinite;
200
+ }
201
+
202
+ .fia-orbit {
203
+ position: absolute;
204
+ border: 1px solid color-mix(in srgb, var(--cyan) 24%, transparent);
205
+ border-radius: 50%;
206
+ transform: rotate(-18deg);
207
+ }
208
+
209
+ .fia-orbit-a {
210
+ width: 155px;
211
+ height: 82px;
212
+ }
213
+
214
+ .fia-orbit-b {
215
+ width: 190px;
216
+ height: 115px;
217
+ transform: rotate(25deg);
218
+ }
219
+
220
+ .fia-scan-line {
221
+ position: absolute;
222
+ width: 150px;
223
+ height: 1px;
224
+ background: linear-gradient(90deg, transparent, var(--cyan), transparent);
225
+ box-shadow: 0 0 12px var(--cyan);
226
+ animation: fia-scan 3s ease-in-out infinite;
227
+ }
228
+
229
+ .fia-scene-label {
230
+ position: absolute;
231
+ padding: 0.25rem 0.4rem;
232
+ color: var(--muted);
233
+ font-size: 0.6rem;
234
+ background: var(--panel-strong);
235
+ border: 1px solid var(--line);
236
+ border-radius: 5px;
237
+ }
238
+
239
+ .fia-label-exif {
240
+ top: 28px;
241
+ left: 0;
242
+ }
243
+
244
+ .fia-label-gps {
245
+ top: 58px;
246
+ right: 1px;
247
+ }
248
+
249
+ .fia-label-hex {
250
+ bottom: 15px;
251
+ left: 26px;
252
+ color: var(--amber);
253
+ }
254
+
255
+ .fia-workbench {
256
+ display: grid;
257
+ grid-template-columns: 1fr;
258
+ gap: 1rem;
259
+ margin-top: 1rem;
260
+ }
261
+
262
+ .fia-workbench[hidden] {
263
+ display: none;
264
+ }
265
+
266
+ .fia-panel {
267
+ min-width: 0;
268
+ padding: 1rem;
269
+ overflow: hidden;
270
+ background: var(--panel);
271
+ border: 1px solid var(--line);
272
+ border-radius: 18px;
273
+ backdrop-filter: blur(6px);
274
+ }
275
+
276
+ .fia-panel-title {
277
+ gap: 0.8rem;
278
+ margin-bottom: 1rem;
279
+ }
280
+
281
+ .fia-panel-title > span {
282
+ flex: 0 0 auto;
283
+ padding: 0.35rem;
284
+ color: var(--cyan);
285
+ font-size: 0.7rem;
286
+ border: 1px solid var(--line);
287
+ border-radius: 50%;
288
+ }
289
+
290
+ .fia-panel h3 {
291
+ margin: 0;
292
+ font-size: 1.05rem;
293
+ font-weight: 700;
294
+ }
295
+
296
+ .fia-panel-title p {
297
+ margin: 0.25rem 0 0;
298
+ color: var(--muted);
299
+ font-size: 0.65rem;
300
+ }
301
+
302
+ .fia-preview {
303
+ height: 210px;
304
+ overflow: hidden;
305
+ background: var(--panel-strong);
306
+ border-radius: 12px;
307
+ }
308
+
309
+ .fia-preview img {
310
+ width: 100%;
311
+ height: 100%;
312
+ object-fit: contain;
313
+ }
314
+
315
+ .fia-panel dl {
316
+ margin: 1rem 0 0;
317
+ }
318
+
319
+ .fia-panel dl div {
320
+ display: flex;
321
+ flex-wrap: wrap;
322
+ justify-content: space-between;
323
+ gap: 0.45rem 1rem;
324
+ padding: 0.65rem 0;
325
+ border-bottom: 1px solid var(--line);
326
+ }
327
+
328
+ .fia-panel dt {
329
+ color: var(--muted);
330
+ font-size: 0.7rem;
331
+ text-transform: uppercase;
332
+ }
333
+
334
+ .fia-panel dd {
335
+ max-width: 100%;
336
+ margin: 0;
337
+ font-size: 0.78rem;
338
+ text-align: right;
339
+ overflow-wrap: anywhere;
340
+ }
341
+
342
+ .fia-score-ring {
343
+ position: relative;
344
+ display: grid;
345
+ place-items: center;
346
+ width: 180px;
347
+ height: 180px;
348
+ margin: 0 auto 1rem;
349
+ }
350
+
351
+ .fia-score-ring svg {
352
+ position: absolute;
353
+ inset: 0;
354
+ width: 100%;
355
+ height: 100%;
356
+ transform: rotate(-90deg);
357
+ }
358
+
359
+ .fia-score-ring circle {
360
+ fill: none;
361
+ stroke: color-mix(in srgb, var(--cyan) 12%, transparent);
362
+ stroke-width: 7;
363
+ }
364
+
365
+ .fia-score-ring circle + circle {
366
+ stroke: var(--cyan);
367
+ stroke-linecap: round;
368
+ stroke-dasharray: 320;
369
+ stroke-dashoffset: 320;
370
+ transition: stroke-dashoffset 0.8s ease;
371
+ }
372
+
373
+ .fia-score {
374
+ position: relative;
375
+ z-index: 1;
376
+ display: grid;
377
+ place-items: center;
378
+ align-content: center;
379
+ justify-items: center;
380
+ gap: 0.15rem;
381
+ padding: 0.1rem 0;
382
+ text-align: center;
383
+ }
384
+
385
+ .fia-score strong {
386
+ display: block;
387
+ color: var(--cyan);
388
+ font-size: 3.4rem;
389
+ font-weight: 800;
390
+ line-height: 0.8;
391
+ }
392
+
393
+ .fia-score span {
394
+ color: var(--muted);
395
+ font-size: 0.58rem;
396
+ line-height: 1;
397
+ text-transform: uppercase;
398
+ }
399
+
400
+ .fia-score small {
401
+ max-width: 78px;
402
+ color: var(--muted);
403
+ font-size: 0.48rem;
404
+ line-height: 1.3;
405
+ letter-spacing: 0.18em;
406
+ text-transform: uppercase;
407
+ }
408
+
409
+ .fia-status {
410
+ padding: 0.7rem;
411
+ font-weight: 700;
412
+ background: color-mix(in srgb, var(--cyan) 8%, transparent);
413
+ border-left: 3px solid var(--cyan);
414
+ }
415
+
416
+ .fia-status[data-level='editing-signatures-detected'] {
417
+ color: var(--red);
418
+ border-color: var(--red);
419
+ }
420
+
421
+ .fia-status[data-level='review-recommended'] {
422
+ color: var(--amber);
423
+ border-color: var(--amber);
424
+ }
425
+
426
+ .fia-findings {
427
+ display: grid;
428
+ gap: 0.5rem;
429
+ margin-top: 1rem;
430
+ }
431
+
432
+ .fia-finding {
433
+ display: flex;
434
+ flex-direction: column;
435
+ gap: 0.3rem;
436
+ padding: 0.7rem;
437
+ background: color-mix(in srgb, var(--panel-strong) 65%, transparent);
438
+ border: 1px solid var(--line);
439
+ border-radius: 10px;
440
+ }
441
+
442
+ .fia-finding strong {
443
+ font-size: 0.75rem;
444
+ }
445
+
446
+ .fia-finding small {
447
+ color: var(--muted);
448
+ line-height: 1.4;
449
+ }
450
+
451
+ .fia-finding.fia-alert {
452
+ border-color: color-mix(in srgb, var(--red) 45%, transparent);
453
+ }
454
+
455
+ .fia-finding.fia-warning {
456
+ border-color: color-mix(in srgb, var(--amber) 40%, transparent);
457
+ }
458
+
459
+ .fia-map {
460
+ position: relative;
461
+ height: 230px;
462
+ overflow: hidden;
463
+ background: var(--well);
464
+ border: 1px solid var(--line);
465
+ border-radius: 12px;
466
+ }
467
+
468
+ .fia-grid {
469
+ position: absolute;
470
+ inset: 0;
471
+ background-image:
472
+ linear-gradient(var(--line) 1px, transparent 1px),
473
+ linear-gradient(90deg, var(--line) 1px, transparent 1px);
474
+ background-size: 12.5% 25%;
475
+ }
476
+
477
+ .fia-equator,
478
+ .fia-meridian {
479
+ position: absolute;
480
+ background: color-mix(in srgb, var(--cyan) 35%, transparent);
481
+ }
482
+
483
+ .fia-equator {
484
+ top: 50%;
485
+ right: 0;
486
+ left: 0;
487
+ height: 1px;
488
+ }
489
+
490
+ .fia-meridian {
491
+ top: 0;
492
+ bottom: 0;
493
+ left: 50%;
494
+ width: 1px;
495
+ }
496
+
497
+ .fia-pin {
498
+ position: absolute;
499
+ width: 16px;
500
+ height: 16px;
501
+ background: var(--amber);
502
+ border: 3px solid var(--panel-strong);
503
+ border-radius: 50%;
504
+ box-shadow:
505
+ 0 0 0 7px color-mix(in srgb, var(--amber) 24%, transparent),
506
+ 0 0 24px var(--amber);
507
+ transform: translate(-50%, -50%);
508
+ }
509
+
510
+ .fia-location p,
511
+ .fia-location a {
512
+ color: var(--muted);
513
+ font-size: 0.75rem;
514
+ }
515
+
516
+ .fia-location a {
517
+ color: var(--cyan);
518
+ }
519
+
520
+ .fia-hex {
521
+ grid-column: 1 / -1;
522
+ }
523
+
524
+ .fia-hex pre {
525
+ max-width: 100%;
526
+ margin: 0;
527
+ padding: 1rem;
528
+ overflow: auto;
529
+ background: var(--panel-strong);
530
+ border-radius: 12px;
531
+ font-size: 0.68rem;
532
+ line-height: 1.65;
533
+ }
534
+
535
+ .fia-hex-row {
536
+ display: block;
537
+ color: #71868b;
538
+ }
539
+
540
+ .fia-hex-row.fia-header {
541
+ padding: 0;
542
+ color: var(--cyan);
543
+ letter-spacing: normal;
544
+ text-transform: none;
545
+ }
546
+
547
+ .fia-hex-row.fia-metadata {
548
+ color: var(--amber);
549
+ }
550
+
551
+ .fia-disclaimer {
552
+ margin: 0;
553
+ padding: 0.8rem 0.4rem 0;
554
+ color: var(--muted);
555
+ font-size: 0.7rem;
556
+ line-height: 1.55;
557
+ }
558
+
559
+ @keyframes fia-spin {
560
+ to {
561
+ transform: rotate(360deg);
562
+ }
563
+ }
564
+
565
+ @keyframes fia-scan {
566
+ 0%,
567
+ 100% {
568
+ opacity: 0.25;
569
+ transform: translateY(-42px);
570
+ }
571
+
572
+ 50% {
573
+ opacity: 1;
574
+ transform: translateY(42px);
575
+ }
576
+ }
577
+
578
+ @media (max-width: 480px) {
579
+ .fia-lab {
580
+ padding: 0.65rem;
581
+ border-radius: 18px;
582
+ }
583
+
584
+ .fia-header {
585
+ gap: 0.75rem;
586
+ align-items: flex-start;
587
+ }
588
+
589
+ .fia-kicker {
590
+ max-width: 55%;
591
+ line-height: 1.45;
592
+ }
593
+
594
+ .fia-pulse {
595
+ max-width: 42%;
596
+ line-height: 1.35;
597
+ text-align: right;
598
+ justify-content: flex-end;
599
+ }
600
+
601
+ .fia-drop {
602
+ min-height: 500px;
603
+ padding: 1rem;
604
+ }
605
+
606
+ .fia-scene {
607
+ width: 180px;
608
+ height: 155px;
609
+ }
610
+
611
+ .fia-drop small {
612
+ font-size: 0.74rem;
613
+ }
614
+
615
+ .fia-button {
616
+ width: 100%;
617
+ max-width: 230px;
618
+ justify-content: center;
619
+ }
620
+
621
+ .fia-panel {
622
+ padding: 0.85rem;
623
+ }
624
+
625
+ .fia-map {
626
+ height: 190px;
627
+ }
628
+ }
629
+
630
+ @media (min-width: 760px) {
631
+ .fia-lab {
632
+ padding: 1.5rem;
633
+ }
634
+
635
+ .fia-drop {
636
+ grid-template-columns: 0.75fr 1.25fr;
637
+ padding: 2rem 3rem;
638
+ text-align: left;
639
+ }
640
+
641
+ .fia-drop-copy {
642
+ align-items: flex-start;
643
+ }
644
+
645
+ .fia-workbench {
646
+ grid-template-columns: repeat(2, 1fr);
647
+ }
648
+
649
+ .fia-file {
650
+ grid-row: span 2;
651
+ }
652
+
653
+ .fia-integrity {
654
+ grid-row: span 2;
655
+ }
656
+ }
657
+
658
+ @media (min-width: 1080px) {
659
+ .fia-workbench {
660
+ grid-template-columns: 1.05fr 0.85fr 1.1fr;
661
+ }
662
+
663
+ .fia-file {
664
+ grid-column: 1;
665
+ }
666
+
667
+ .fia-integrity {
668
+ grid-column: 2;
669
+ }
670
+
671
+ .fia-metadata,
672
+ .fia-location {
673
+ grid-column: 3;
674
+ }
675
+
676
+ .fia-hex {
677
+ grid-column: 1 / -1;
678
+ }
679
+ }