@rr0/ufoathome 0.199.0 → 0.201.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 (576) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BRmuWrAg.js +1 -0
  2. package/dist-embed-interview/InterviewMessages_es-BTotimwY.js +1 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DBCdGB0r.js +1 -0
  4. package/dist-embed-interview/InterviewMessages_it-B5EyMD-k.js +1 -0
  5. package/dist-embed-interview/rr0-interview.mjs +1 -1
  6. package/dist-embed-scene/{AdsbLolArchiveProvider-BtF4baVw.js → AdsbLolArchiveProvider-C6FJmrLQ.js} +1 -1
  7. package/dist-embed-scene/AirshipEditor-BnRmKeVs.js +16 -0
  8. package/dist-embed-scene/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  9. package/dist-embed-scene/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  10. package/dist-embed-scene/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  11. package/dist-embed-scene/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  12. package/dist-embed-scene/AirshipFlight-C9DSPGwk.js +1 -0
  13. package/dist-embed-scene/AirshipKindMessages_en-DzGapVTV.js +1 -0
  14. package/dist-embed-scene/AirshipKindMessages_es-TE93uMSC.js +1 -0
  15. package/dist-embed-scene/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  16. package/dist-embed-scene/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  17. package/dist-embed-scene/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  18. package/dist-embed-scene/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  19. package/dist-embed-scene/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  20. package/dist-embed-scene/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  21. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  22. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  23. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  24. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  25. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  26. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  27. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  28. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  29. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  30. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  31. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  32. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  33. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  34. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  35. package/dist-embed-scene/AuroraSimulation-BZpjImM0.js +152 -0
  36. package/dist-embed-scene/BalloonEditor-BehJs6H-.js +24 -0
  37. package/dist-embed-scene/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  38. package/dist-embed-scene/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  39. package/dist-embed-scene/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  40. package/dist-embed-scene/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  41. package/dist-embed-scene/BalloonFlight-BYn4diw1.js +1 -0
  42. package/dist-embed-scene/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  43. package/dist-embed-scene/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  44. package/dist-embed-scene/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  45. package/dist-embed-scene/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  46. package/dist-embed-scene/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  47. package/dist-embed-scene/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  48. package/dist-embed-scene/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  49. package/dist-embed-scene/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  50. package/dist-embed-scene/{BeamEditor-Dj1Wt50v.js → BeamEditor-BbbtyCOw.js} +1 -1
  51. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  52. package/dist-embed-scene/{BirdEditor-CKpe681e.js → BirdEditor-dOp1sGsz.js} +1 -1
  53. package/dist-embed-scene/{BirdFlock-B2SbkMme.js → BirdFlock-CfJeXvWu.js} +1 -1
  54. package/dist-embed-scene/DroneEditor-CBoR4fJ_.js +16 -0
  55. package/dist-embed-scene/{DroneFlight-BTFHGVWd.js → DroneFlight-DSE1OXqh.js} +1 -1
  56. package/dist-embed-scene/DroneParameters-D3EOg4oe.js +1 -0
  57. package/dist-embed-scene/{Flightradar24Provider-BBj_wixV.js → Flightradar24Provider-BZDUU8WC.js} +1 -1
  58. package/dist-embed-scene/{GLTFLoader-CKDxld-A.js → GLTFLoader-Dwb-fLT2.js} +1 -1
  59. package/dist-embed-scene/{LanternEditor-iByq1q3j.js → LanternEditor-CbcA7K8y.js} +1 -1
  60. package/dist-embed-scene/{LaserBeam-BQWS_xWa.js → LaserBeam-AjgGxDIq.js} +1 -1
  61. package/dist-embed-scene/{LaunchEditor-CjpESdIe.js → LaunchEditor-tMadX67W.js} +1 -1
  62. package/dist-embed-scene/{LaunchPlume-DVsshxQE.js → LaunchPlume-C7lTPaXd.js} +1 -1
  63. package/dist-embed-scene/{LaunchSimulation-BU7X_C8t.js → LaunchSimulation-ByGBMtSW.js} +1 -1
  64. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  65. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  66. package/dist-embed-scene/{ParameterForm-BHRESNZ4.js → ParameterForm-CRC9iA-m.js} +1 -1
  67. package/dist-embed-scene/{ReentryEditor-DpNPIxOG.js → ReentryEditor-Bjh0q9Ii.js} +1 -1
  68. package/dist-embed-scene/{ReentrySimulation-m-TICP2i.js → ReentrySimulation-Bgnppel8.js} +1 -1
  69. package/dist-embed-scene/ReferenceSystem-D1BkjwT7.js +1 -0
  70. package/dist-embed-scene/{SceneNames_en-Dn90NisJ.js → SceneNames_en-BFJsR6Cc.js} +1 -1
  71. package/dist-embed-scene/{SceneNames_es-DH6GZWja.js → SceneNames_es-BHBTwcJ3.js} +1 -1
  72. package/dist-embed-scene/{SceneNames_fr-rltu5c_j.js → SceneNames_fr-CFsA4XeK.js} +1 -1
  73. package/dist-embed-scene/{SceneNames_it-DsNshdIp.js → SceneNames_it-DkIgwviv.js} +1 -1
  74. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  75. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  76. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  77. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  78. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  79. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  80. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  81. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  82. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  83. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  84. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  85. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  86. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  87. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  88. package/dist-embed-scene/{SkyLantern-BKxwl7Po.js → SkyLantern-Dp_B40X0.js} +1 -1
  89. package/dist-embed-scene/{TimelineTracks-Cjt0OHJS.js → TimelineTracks-iym9uOfD.js} +1 -1
  90. package/dist-embed-scene/{UfoMessages_en-A8Ku1B0Y.js → UfoMessages_en-CqQ-VdQJ.js} +1 -1
  91. package/dist-embed-scene/rr0-scene.mjs +401 -326
  92. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  93. package/dist-embed-sighting/{AdsbLolArchiveProvider-BfWrS1jn.js → AdsbLolArchiveProvider-CsuxO9wl.js} +1 -1
  94. package/dist-embed-sighting/AirshipEditor-DkDCkwGG.js +16 -0
  95. package/dist-embed-sighting/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  96. package/dist-embed-sighting/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  97. package/dist-embed-sighting/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  98. package/dist-embed-sighting/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  99. package/dist-embed-sighting/AirshipFlight-D8fH97A1.js +1 -0
  100. package/dist-embed-sighting/AirshipKindMessages_en-DzGapVTV.js +1 -0
  101. package/dist-embed-sighting/AirshipKindMessages_es-TE93uMSC.js +1 -0
  102. package/dist-embed-sighting/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  103. package/dist-embed-sighting/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  104. package/dist-embed-sighting/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  105. package/dist-embed-sighting/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  106. package/dist-embed-sighting/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  107. package/dist-embed-sighting/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  108. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  109. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  110. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  111. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  112. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  113. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  114. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  115. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  116. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  117. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  118. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  119. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  120. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  121. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  122. package/dist-embed-sighting/AuroraSimulation-C9hvCV0W.js +152 -0
  123. package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +24 -0
  124. package/dist-embed-sighting/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  125. package/dist-embed-sighting/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  126. package/dist-embed-sighting/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  127. package/dist-embed-sighting/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  128. package/dist-embed-sighting/BalloonFlight-MN_clHSJ.js +1 -0
  129. package/dist-embed-sighting/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  130. package/dist-embed-sighting/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  131. package/dist-embed-sighting/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  132. package/dist-embed-sighting/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  133. package/dist-embed-sighting/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  134. package/dist-embed-sighting/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  135. package/dist-embed-sighting/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  136. package/dist-embed-sighting/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  137. package/dist-embed-sighting/{BeamEditor--mMu1zwv.js → BeamEditor-DDzw-fB_.js} +2 -2
  138. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  139. package/dist-embed-sighting/{BirdEditor-DZ1Ybqeu.js → BirdEditor-BgNNcdhv.js} +1 -1
  140. package/dist-embed-sighting/{BirdFlock-BZScQXfR.js → BirdFlock-DBgkxsxp.js} +1 -1
  141. package/dist-embed-sighting/{CaseReportExport-CAuwP-Ec.js → CaseReportExport-DVVsc8gA.js} +1 -1
  142. package/dist-embed-sighting/DroneEditor-5nuq52EG.js +16 -0
  143. package/dist-embed-sighting/{DroneFlight-WxqILFs6.js → DroneFlight-sMbiog9j.js} +1 -1
  144. package/dist-embed-sighting/DroneParameters-DHeJ7KyU.js +1 -0
  145. package/dist-embed-sighting/{Flightradar24Provider-DJmvd2AL.js → Flightradar24Provider-p4a3_chL.js} +1 -1
  146. package/dist-embed-sighting/{GLTFLoader-FWVFviG5.js → GLTFLoader-fbsNsHlp.js} +1 -1
  147. package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +1 -0
  148. package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +1 -0
  149. package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +1 -0
  150. package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +1 -0
  151. package/dist-embed-sighting/{LanternEditor-Do0kggi8.js → LanternEditor-Be5Io1J-.js} +1 -1
  152. package/dist-embed-sighting/{LaserBeam-CMO6tMze.js → LaserBeam-BRdhNOMZ.js} +1 -1
  153. package/dist-embed-sighting/{LaunchEditor-CZri7DN4.js → LaunchEditor-BGyLgkGS.js} +1 -1
  154. package/dist-embed-sighting/{LaunchPlume-DxDfUSlS.js → LaunchPlume-iiiayJ8I.js} +1 -1
  155. package/dist-embed-sighting/{LaunchSimulation-CTxbrEJw.js → LaunchSimulation-DvexI06i.js} +1 -1
  156. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  157. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  158. package/dist-embed-sighting/{ParameterForm-B8nX9qW-.js → ParameterForm-DFHcolwG.js} +1 -1
  159. package/dist-embed-sighting/{ReentryEditor-BbhQfIPi.js → ReentryEditor-C6EJJf4l.js} +1 -1
  160. package/dist-embed-sighting/{ReentrySimulation-BHbW9YNO.js → ReentrySimulation-BFVBOWrm.js} +1 -1
  161. package/dist-embed-sighting/ReferenceSystem-zTvTqp5y.js +1 -0
  162. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  163. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  164. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  165. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  166. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  167. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  168. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  169. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  170. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  171. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  172. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  173. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  174. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  175. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  176. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  177. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  178. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  179. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  180. package/dist-embed-sighting/{SkyLantern-COmog7pF.js → SkyLantern-yYihsrun.js} +1 -1
  181. package/dist-embed-sighting/{TimelineTracks-CYIJdyPF.js → TimelineTracks-Cw7W2uiK.js} +1 -1
  182. package/dist-embed-sighting/rr0-sighting.mjs +417 -342
  183. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  184. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-CWpyBqG3.js} +1 -1
  185. package/dist-embed-sighting-editor/AirshipEditor-BvnVNcF4.js +16 -0
  186. package/dist-embed-sighting-editor/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  187. package/dist-embed-sighting-editor/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  188. package/dist-embed-sighting-editor/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  189. package/dist-embed-sighting-editor/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  190. package/dist-embed-sighting-editor/AirshipFlight-CB1Quf68.js +1 -0
  191. package/dist-embed-sighting-editor/AirshipKindMessages_en-DzGapVTV.js +1 -0
  192. package/dist-embed-sighting-editor/AirshipKindMessages_es-TE93uMSC.js +1 -0
  193. package/dist-embed-sighting-editor/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  194. package/dist-embed-sighting-editor/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  195. package/dist-embed-sighting-editor/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  196. package/dist-embed-sighting-editor/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  197. package/dist-embed-sighting-editor/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  198. package/dist-embed-sighting-editor/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  199. package/dist-embed-sighting-editor/Aurora-BRXvgyRM.js +1 -0
  200. package/dist-embed-sighting-editor/AuroraEditor-JQ3kRqrq.js +8 -0
  201. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  202. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  203. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  204. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  205. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  206. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  207. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  208. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  209. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  210. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  211. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  212. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  213. package/dist-embed-sighting-editor/AuroraSimulation-i64MFW2z.js +152 -0
  214. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BL_yzudf.js → BallesterGuaspAssessor-BaKKAdY3.js} +1 -1
  215. package/dist-embed-sighting-editor/BalloonEditor-C2oHClW7.js +24 -0
  216. package/dist-embed-sighting-editor/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  217. package/dist-embed-sighting-editor/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  218. package/dist-embed-sighting-editor/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  219. package/dist-embed-sighting-editor/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  220. package/dist-embed-sighting-editor/BalloonFlight-B9A6MoCj.js +1 -0
  221. package/dist-embed-sighting-editor/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  222. package/dist-embed-sighting-editor/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  223. package/dist-embed-sighting-editor/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  224. package/dist-embed-sighting-editor/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  225. package/dist-embed-sighting-editor/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  226. package/dist-embed-sighting-editor/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  227. package/dist-embed-sighting-editor/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  228. package/dist-embed-sighting-editor/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  229. package/dist-embed-sighting-editor/{BeamEditor-DA29mfqm.js → BeamEditor-CW7mTQjS.js} +1 -1
  230. package/dist-embed-sighting-editor/BeamSystem-CSfJjLCb.js +1 -0
  231. package/dist-embed-sighting-editor/BirdEditor-BdxhCoW9.js +16 -0
  232. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-DCbrukNp.js} +1 -1
  233. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-DE8ZQrqe.js} +1 -1
  234. package/dist-embed-sighting-editor/{CaseElement--JmpOsUW.js → CaseElement-C46wM-nU.js} +3 -3
  235. package/dist-embed-sighting-editor/{CaseReportExport-nFM_7lq4.js → CaseReportExport-UVrInf6H.js} +3 -3
  236. package/dist-embed-sighting-editor/{ContrailSystem-B0cQbaHc.js → ContrailSystem-CDSSxouG.js} +1 -1
  237. package/dist-embed-sighting-editor/{ControlPasses-BvS8haeS.js → ControlPasses-CsOVa-jq.js} +1 -1
  238. package/dist-embed-sighting-editor/{CoverageAssessor-DD1kSvun.js → CoverageAssessor-DWY_gJJX.js} +1 -1
  239. package/dist-embed-sighting-editor/DroneEditor-DgeuaHdb.js +16 -0
  240. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-CFztr-9j.js} +1 -1
  241. package/dist-embed-sighting-editor/DroneParameters-CHmDmRoC.js +1 -0
  242. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-e6_3o9Jf.js} +1 -1
  243. package/dist-embed-sighting-editor/{GLTFLoader-DuqJVU4y.js → GLTFLoader-Df-r7_lf.js} +1 -1
  244. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-CmqG-T2c.js} +1 -1
  245. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Wjc5YKlM.js} +1 -1
  246. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-BSPGzTbG.js} +1 -1
  247. package/dist-embed-sighting-editor/GeographicFigures-D_TfLkj9.js +1 -0
  248. package/dist-embed-sighting-editor/{HeadlightSystem-BejdfHqe.js → HeadlightSystem-DljWmzj5.js} +1 -1
  249. package/dist-embed-sighting-editor/{HynekAssessor-CwzpS7YP.js → HynekAssessor-BCDwoOI9.js} +1 -1
  250. package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +277 -0
  251. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-DDa53uMq.js} +1 -1
  252. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  253. package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +1 -0
  254. package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +1 -0
  255. package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +1 -0
  256. package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +1 -0
  257. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-B46AfaoJ.js} +1 -1
  258. package/dist-embed-sighting-editor/LanternEditor-CkbeitJh.js +24 -0
  259. package/dist-embed-sighting-editor/{LaserBeam-tqM2fwHf.js → LaserBeam-Ber-PT8j.js} +1 -1
  260. package/dist-embed-sighting-editor/LaunchEditor-BsvHahqK.js +22 -0
  261. package/dist-embed-sighting-editor/{LaunchPlume-DWyU0YyJ.js → LaunchPlume-BmPMeGMN.js} +1 -1
  262. package/dist-embed-sighting-editor/{LaunchSimulation-C_OJQoKC.js → LaunchSimulation-g-ETWhEH.js} +1 -1
  263. package/dist-embed-sighting-editor/ModelSource-DOUnBBhu.js +1 -0
  264. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-TwG1snwZ.js} +1 -1
  265. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-Y_B6eM4z.js} +1 -1
  266. package/dist-embed-sighting-editor/ModuleConformance-CO1S9pa3.js +2 -0
  267. package/dist-embed-sighting-editor/ModuleSession-VLS0tjAb.js +3 -0
  268. package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +1 -0
  269. package/dist-embed-sighting-editor/{ModulesPanelElement-hDjGLhRa.js → ModulesPanelElement--YQ0QtcW.js} +3 -3
  270. package/dist-embed-sighting-editor/{NearestApproach-D6tQo7dk.js → NearestApproach-C_8Uvp6i.js} +1 -1
  271. package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +1 -0
  272. package/dist-embed-sighting-editor/{PoherAssessor-BTYpHucH.js → PoherAssessor-DtDcuhWK.js} +1 -1
  273. package/dist-embed-sighting-editor/QuestionnaireFeed-CvLtuLIH.js +1 -0
  274. package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +1 -0
  275. package/dist-embed-sighting-editor/QuestionnaireImport-BYj5QoJS.js +5 -0
  276. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  277. package/dist-embed-sighting-editor/{RailwaySystem-D_8D64Bu.js → RailwaySystem-eT-ZKfZl.js} +1 -1
  278. package/dist-embed-sighting-editor/ReentryEditor-CW8H7KaA.js +28 -0
  279. package/dist-embed-sighting-editor/{ReentrySimulation-Bom073AV.js → ReentrySimulation-DVl__RjO.js} +1 -1
  280. package/dist-embed-sighting-editor/ReferenceSystem-DxVYO7g9.js +1 -0
  281. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-DJraHdS6.js} +1 -1
  282. package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +1 -0
  283. package/dist-embed-sighting-editor/ScenarioSweep-Ddtuo_Af.js +1 -0
  284. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  285. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  286. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  287. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  288. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-p5YNYZhA.js} +1 -1
  289. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-DlMqYLL9.js} +1 -1
  290. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-lFA7hY3x.js} +1 -1
  291. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CDwvX1Nw.js} +1 -1
  292. package/dist-embed-sighting-editor/SearchlightEditor-BSI8hB1V.js +8 -0
  293. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  294. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  295. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  296. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  297. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  298. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  299. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  300. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  301. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  302. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  303. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  304. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  305. package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +1 -0
  306. package/{dist-embed-ufoathome/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  307. package/dist-embed-sighting-editor/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  308. package/{dist-embed-ufoathome/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  309. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  310. package/dist-embed-sighting-editor/{SightingElement-DsR4mBCh.js → SightingElement-T0x4j9Zt.js} +4 -4
  311. package/dist-embed-sighting-editor/{SightingFileEditor-0VZmtiOX.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  312. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  313. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  314. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  315. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  316. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-Dl4yl-lc.js} +1 -1
  317. package/dist-embed-sighting-editor/{TraceSystem-B1mmypS3.js → TraceSystem-Dbu_bgfE.js} +2 -2
  318. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-BAuHAGgq.js} +1 -1
  319. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-C8eRmv7A.js} +1 -1
  320. package/dist-embed-sighting-editor/{WaterSystem-mZ-f2CcD.js → WaterSystem-DpJCe_2Q.js} +2 -2
  321. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  322. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  323. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  324. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  325. package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +7 -0
  326. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-zzDGCbXd.js} +1 -1
  327. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-DngUPqK8.js} +1 -1
  328. package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +1 -0
  329. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  330. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +543 -443
  331. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  332. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-lvh4Rw5C.js} +1 -1
  333. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Drx7CE9H.js} +1 -1
  334. package/dist-embed-ufoathome/AdsbLolArchiveProvider-CqedGYi5.js +1 -0
  335. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  336. package/dist-embed-ufoathome/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  337. package/dist-embed-ufoathome/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  338. package/dist-embed-ufoathome/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  339. package/dist-embed-ufoathome/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  340. package/dist-embed-ufoathome/AirshipFlight-Dzpw8HRM.js +1 -0
  341. package/dist-embed-ufoathome/AirshipKindMessages_en-DzGapVTV.js +1 -0
  342. package/dist-embed-ufoathome/AirshipKindMessages_es-TE93uMSC.js +1 -0
  343. package/dist-embed-ufoathome/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  344. package/dist-embed-ufoathome/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  345. package/dist-embed-ufoathome/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  346. package/dist-embed-ufoathome/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  347. package/dist-embed-ufoathome/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  348. package/dist-embed-ufoathome/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  349. package/dist-embed-ufoathome/Aurora-CpZx9hQ3.js +1 -0
  350. package/dist-embed-ufoathome/AuroraEditor-D2v8sWVE.js +8 -0
  351. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  352. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  353. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  354. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  355. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  356. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  357. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  358. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  359. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  360. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  361. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  362. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  363. package/dist-embed-ufoathome/AuroraSimulation-DdSP66LD.js +152 -0
  364. package/dist-embed-ufoathome/BallesterGuaspAssessor-C4IktJ1l.js +1 -0
  365. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  366. package/dist-embed-ufoathome/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  367. package/dist-embed-ufoathome/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  368. package/dist-embed-ufoathome/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  369. package/dist-embed-ufoathome/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  370. package/dist-embed-ufoathome/BalloonFlight-CztT6ddg.js +1 -0
  371. package/dist-embed-ufoathome/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  372. package/dist-embed-ufoathome/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  373. package/dist-embed-ufoathome/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  374. package/dist-embed-ufoathome/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  375. package/dist-embed-ufoathome/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  376. package/dist-embed-ufoathome/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  377. package/dist-embed-ufoathome/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  378. package/dist-embed-ufoathome/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  379. package/dist-embed-ufoathome/{BeamEditor-CFYAfywp.js → BeamEditor-CuW3LVO-.js} +2 -2
  380. package/dist-embed-ufoathome/BeamSystem-BPEYuCF4.js +1 -0
  381. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  382. package/dist-embed-ufoathome/{BodyEditor-B96fap0d.js → BodyEditor-COMX-T65.js} +1 -1
  383. package/dist-embed-ufoathome/CaseEditorElement-C5BHP8jT.js +3173 -0
  384. package/dist-embed-ufoathome/{CaseElement-BFDRYL5v.js → CaseElement-CIZvyRVi.js} +3 -3
  385. package/dist-embed-ufoathome/{CaseReportExport-VrulN0VG.js → CaseReportExport-BFbswUIB.js} +3 -3
  386. package/dist-embed-ufoathome/{ColumnResize-DD0wwlp2.js → ColumnResize-Dh6Xyspd.js} +6 -6
  387. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  388. package/dist-embed-ufoathome/ControlPasses-CnL1GmT-.js +29 -0
  389. package/dist-embed-ufoathome/CoverageAssessor-CiqUEJkN.js +1 -0
  390. package/dist-embed-ufoathome/DroneEditor-D60uhSHO.js +16 -0
  391. package/dist-embed-ufoathome/DroneParameters-CfTAaLCT.js +1 -0
  392. package/dist-embed-ufoathome/Flightradar24Provider-_tNmWf11.js +1 -0
  393. package/dist-embed-ufoathome/GLTFLoader-BLk8prLt.js +1 -0
  394. package/dist-embed-ufoathome/GeoJsonExport-DkPKk-7q.js +2 -0
  395. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  396. package/dist-embed-ufoathome/{GeographicFigures-Ds8kfyn7.js → GeographicFigures-l-PfHdSR.js} +1 -1
  397. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  398. package/dist-embed-ufoathome/HynekAssessor-BhnvqsYz.js +1 -0
  399. package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +277 -0
  400. package/dist-embed-ufoathome/{InterviewElement-BrlawcDm.js → InterviewElement-CuRmQ0d3.js} +2 -2
  401. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  402. package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +1 -0
  403. package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +1 -0
  404. package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +1 -0
  405. package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +1 -0
  406. package/dist-embed-ufoathome/KmlExport-BUl3gOrw.js +19 -0
  407. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  408. package/dist-embed-ufoathome/{LaserBeam-Ced8VujI.js → LaserBeam-C7glTvQN.js} +1 -1
  409. package/dist-embed-ufoathome/LaunchEditor-DvudtAzp.js +22 -0
  410. package/dist-embed-ufoathome/{LaunchPlume-DdeLDyDg.js → LaunchPlume-CrDBzsQe.js} +1 -1
  411. package/dist-embed-ufoathome/LaunchSimulation-DyOA4lPb.js +1 -0
  412. package/dist-embed-ufoathome/ModelSource-CoT4mxTx.js +1 -0
  413. package/dist-embed-ufoathome/ModelThumbnails-t59SZ3Vn.js +1 -0
  414. package/dist-embed-ufoathome/ModelViewer-DEdruEtl.js +1 -0
  415. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  416. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  417. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  418. package/dist-embed-ufoathome/{ModulesPanelElement-Bio6lzC6.js → ModulesPanelElement-N-ccpGxl.js} +3 -3
  419. package/dist-embed-ufoathome/{NearestApproach-DAiByBN2.js → NearestApproach-Do15yfeg.js} +1 -1
  420. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  421. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  422. package/dist-embed-ufoathome/PoherAssessor-Cs8-ZBge.js +1 -0
  423. package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +1 -0
  424. package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +1 -0
  425. package/dist-embed-ufoathome/QuestionnaireImport-Cx1dQiha.js +5 -0
  426. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  427. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  428. package/dist-embed-ufoathome/ReentryEditor-CJUFkVFO.js +28 -0
  429. package/dist-embed-ufoathome/ReentrySimulation-B5QcdOTq.js +1 -0
  430. package/dist-embed-ufoathome/ReferenceSystem-DyzOUClN.js +1 -0
  431. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  432. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  433. package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +1 -0
  434. package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +1 -0
  435. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  436. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  437. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  438. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  439. package/dist-embed-ufoathome/SearchlightEditor-CPDNpfNC.js +8 -0
  440. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  441. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  442. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  443. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  444. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  445. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  446. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  447. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  448. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  449. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  450. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  451. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  452. package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +1 -0
  453. package/dist-embed-ufoathome/ShareDialogElement-CBeU9ChH.js +5182 -0
  454. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  455. package/{dist-embed-sighting-editor/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  456. package/dist-embed-ufoathome/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  457. package/{dist-embed-sighting-editor/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  458. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  459. package/dist-embed-ufoathome/{SightingElement-DTADTDwh.js → SightingElement-BveOM4nF.js} +4 -4
  460. package/dist-embed-ufoathome/{SightingFileEditor-Cllslp2u.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  461. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  462. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  463. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  464. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  465. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  466. package/dist-embed-ufoathome/{TraceSystem-BcWYbjQM.js → TraceSystem-CoHX04R3.js} +2 -2
  467. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  468. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  469. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  470. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  471. package/dist-embed-ufoathome/VideoButton-DNQmWtfv.js +1 -0
  472. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  473. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  474. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  475. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  476. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  477. package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +7 -0
  478. package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +1 -0
  479. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  480. package/dist-embed-ufoathome/rr0-ufoathome.mjs +27 -17
  481. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  482. package/dist-embed-ufoathome/surroundingsSources-C823p3dG.js +1 -0
  483. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  484. package/dist-embed-ufoathome/trafficRuntime-DtXb9B2f.js +2 -0
  485. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  486. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  487. package/package.json +4 -2
  488. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  489. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  490. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  491. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  492. package/dist-embed-scene/BeamSystem-CaNus1WN.js +0 -1
  493. package/dist-embed-scene/DroneEditor-BDDLiZPp.js +0 -16
  494. package/dist-embed-scene/ModuleSession-Hj3QwLuw.js +0 -3
  495. package/dist-embed-scene/ModuleThree-D1uz5JiH.js +0 -1
  496. package/dist-embed-scene/ReferenceSystem-B6FHr1Pb.js +0 -1
  497. package/dist-embed-scene/sightingSchema-CgwoRMl-.js +0 -1
  498. package/dist-embed-sighting/BeamSystem-Cqe7QaN4.js +0 -1
  499. package/dist-embed-sighting/DroneEditor-Bo19kUte.js +0 -16
  500. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  501. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  502. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  503. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  504. package/dist-embed-sighting/ModuleSession-BCtFMDJY.js +0 -3
  505. package/dist-embed-sighting/ModuleThree-DPVHqcup.js +0 -1
  506. package/dist-embed-sighting/ReferenceSystem-DCSdp9Bq.js +0 -1
  507. package/dist-embed-sighting/sightingSchema-CgwoRMl-.js +0 -1
  508. package/dist-embed-sighting-editor/BeamSystem-DYohqXlF.js +0 -1
  509. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  510. package/dist-embed-sighting-editor/DroneEditor-BRB2-dAw.js +0 -16
  511. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  512. package/dist-embed-sighting-editor/InterviewEditorElement-DbVrB3-g.js +0 -242
  513. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  514. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  515. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  516. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  517. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  518. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  519. package/dist-embed-sighting-editor/LaunchEditor-vwecAGwH.js +0 -22
  520. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  521. package/dist-embed-sighting-editor/ModuleConformance-DYi4XZdB.js +0 -2
  522. package/dist-embed-sighting-editor/ModuleSession-BDbaoiCf.js +0 -3
  523. package/dist-embed-sighting-editor/ModuleThree-DRf9SEr_.js +0 -1
  524. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  525. package/dist-embed-sighting-editor/ReentryEditor-D7HxkvKP.js +0 -28
  526. package/dist-embed-sighting-editor/ReferenceSystem-D_eueNAb.js +0 -1
  527. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  528. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  529. package/dist-embed-sighting-editor/sightingSchema-CgwoRMl-.js +0 -1
  530. package/dist-embed-ufoathome/AdsbLolArchiveProvider-B9MGq-iQ.js +0 -1
  531. package/dist-embed-ufoathome/BallesterGuaspAssessor-BehuINgj.js +0 -1
  532. package/dist-embed-ufoathome/BeamSystem-Bt5Dnpzy.js +0 -1
  533. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  534. package/dist-embed-ufoathome/CaseEditorElement-D-RKShTH.js +0 -3148
  535. package/dist-embed-ufoathome/ContrailSystem-BKeTHlcZ.js +0 -1
  536. package/dist-embed-ufoathome/ControlPasses-D3vc-NmG.js +0 -29
  537. package/dist-embed-ufoathome/CoverageAssessor-Be38W7Im.js +0 -1
  538. package/dist-embed-ufoathome/DroneEditor-ByVlCauS.js +0 -16
  539. package/dist-embed-ufoathome/Flightradar24Provider-DdPjGVJg.js +0 -1
  540. package/dist-embed-ufoathome/GLTFLoader-D1_vI_Fe.js +0 -1
  541. package/dist-embed-ufoathome/GeoJsonExport-B2qogWLj.js +0 -2
  542. package/dist-embed-ufoathome/HeadlightSystem-BdhHphIq.js +0 -34
  543. package/dist-embed-ufoathome/HynekAssessor-MqnQfg3F.js +0 -1
  544. package/dist-embed-ufoathome/InterviewEditorElement-DjQuGytO.js +0 -242
  545. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  546. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  547. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  548. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  549. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  550. package/dist-embed-ufoathome/KmlExport-AzofE76s.js +0 -19
  551. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  552. package/dist-embed-ufoathome/LaunchEditor-D-5OJi90.js +0 -22
  553. package/dist-embed-ufoathome/LaunchSimulation-BeCHjgE5.js +0 -1
  554. package/dist-embed-ufoathome/ModelSource-LY5T91ay.js +0 -1
  555. package/dist-embed-ufoathome/ModelThumbnails-C25E4WMl.js +0 -1
  556. package/dist-embed-ufoathome/ModelViewer-D6JaOQS7.js +0 -1
  557. package/dist-embed-ufoathome/ModuleConformance-DGjaEwAM.js +0 -2
  558. package/dist-embed-ufoathome/ModuleSession-pXE1aOJF.js +0 -3
  559. package/dist-embed-ufoathome/ModuleThree-xQDeVLs0.js +0 -1
  560. package/dist-embed-ufoathome/PictureRegistration-Dbr0O7NF.js +0 -1
  561. package/dist-embed-ufoathome/PoherAssessor-C7NN73NP.js +0 -1
  562. package/dist-embed-ufoathome/RailwaySystem-D3u3j_tw.js +0 -41
  563. package/dist-embed-ufoathome/ReentryEditor-s-AkSgbU.js +0 -28
  564. package/dist-embed-ufoathome/ReentrySimulation-2UWwXU7K.js +0 -1
  565. package/dist-embed-ufoathome/ReferenceSystem-BhEFpIis.js +0 -1
  566. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  567. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  568. package/dist-embed-ufoathome/ShareDialogElement-C9Uiwt0F.js +0 -9222
  569. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  570. package/dist-embed-ufoathome/VideoButton-CgfBskVu.js +0 -1
  571. package/dist-embed-ufoathome/WaterSystem-BsGtTimO.js +0 -19
  572. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  573. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  574. package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +0 -1
  575. package/dist-embed-ufoathome/surroundingsSources-B--F7TR5.js +0 -1
  576. package/dist-embed-ufoathome/trafficRuntime-B97u9ZY_.js +0 -2
@@ -1,242 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BrowserWhisperProvider-Dn44ZE45.js","./TranscriptionAudio-C_xvRUv2.js","./TranscriptionError-D_TCbYbt.js","./OpenAiTranscriptionProvider-DDW446tK.js","./AssemblyAiTranscriptionProvider-o2kkPD5o.js","./interviewImport-ym5iXO4Z.js","./interviewJson-D-i14LTf.js","./rr0-ufoathome.mjs","./SightingFileEditor-Cllslp2u.js","./index-C8cdeM8E.js","./sightingSchema-CgwoRMl-.js"])))=>i.map(i=>d[i]);
2
- import{e as M,_ as w,r as j,f as R,H as z,s as V,U as J,B as G,S as C,g as v,D as K}from"./rr0-ufoathome.mjs";import{an as A,l as I,X as O}from"./ShareDialogElement-C9Uiwt0F.js";import{I as x,S as $}from"./SaidPosition-CXZLm-ck.js";import{InterviewMedia as N}from"./InterviewMedia-CvAxC62V.js";import{c as S}from"./ColumnResize-DD0wwlp2.js";import{I as ke}from"./ColumnResize-DD0wwlp2.js";import{register as Y}from"./InterviewElement-BrlawcDm.js";import{InterviewFile as f}from"./interviewJson-D-i14LTf.js";import{W as P,A as B}from"./ParameterForm-DcVFxrcO.js";import{I as X}from"./CaseEditorElement-D-RKShTH.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./TimelineTracks-BgZmkKhn.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BGuLpdwu.js";import"./Account-C4jhsVtN.js";class g{static partsOf(e){return e.parts?e.parts:e.redacted?[]:[{text:e.text??""}]}static shownRanges(e){const t=[];let r="",s=0;return e.forEach((i,a)=>{const n="redacted"in i?"▮":f.plain(i.text);/[\p{L}\p{N}.,;:!?)»”…▮]$/u.test(r)&&/^[\p{L}\p{N}(«“▮]/u.test(n)&&(s+=1);const o="redacted"in i?0:n.length;t.push({part:a,from:s,to:s+o}),s+=o,r=n}),t}static words(e){return e.trim()===""?0:e.trim().split(/\s+/u).length}static redact(e,t,r,s){const i=[...g.partsOf(e)],a=g.shownRanges(i).find(E=>!("redacted"in i[E.part])&&t>=E.from&&r<=E.to);if(!a)return;const n=f.plain(i[a.part].text),o=/[\p{L}\p{N}'’-]/u;let h=t-a.from,d=r-a.from;for(;h>0&&o.test(n[h-1])&&o.test(n[h]);)h--;for(;d<n.length&&o.test(n[d])&&o.test(n[d-1]);)d++;const l=n.slice(h,d);if(l.trim()==="")return;const c=n.slice(0,h).trimEnd(),m=n.slice(d).trimStart(),p=[...c!==""?[{text:c}]:[],{redacted:{reason:s,words:g.words(l)}},...m!==""?[{text:m}]:[]],b=i.slice(0,a.part).filter(E=>"redacted"in E).length;return i.splice(a.part,1,...p),g.setParts(e,i),{text:l.trim(),nth:b}}static redactWhole(e,t){const r=JSON.stringify({text:e.text,parts:e.parts}),s=g.partsOf(e).reduce((i,a)=>i+("redacted"in a?a.redacted.words??0:g.words(f.plain(a.text))),0);if(delete e.text,delete e.parts,e.redacted={reason:t,...s>0?{words:s}:{}},e.refs)for(const i of e.refs)delete i.range;return r}static restoreWhole(e,t){const{text:r,parts:s}=JSON.parse(t);delete e.redacted,s?e.parts=s:e.text=r??""}static restorePart(e,t,r){const s=[...g.partsOf(e)];let i=-1;const a=s.findIndex(n=>"redacted"in n&&++i===t);a!==-1&&(s.splice(a,1,{text:r}),g.setParts(e,s))}static raw(e,t=()=>{}){let r=-1,s="",i="";for(const a of g.partsOf(e)){const n="redacted"in a?`⟦${t(++r)??"…"}⟧`:a.text;s!==""&&!/\s$/u.test(i)&&!/^\s/u.test(n)&&(s+=" "),s+=n,i=n}return s}static fromRaw(e,t,r){const s=g.partsOf(e).filter(o=>"redacted"in o),i=[],a=new Map;let n=-1;return t.split(/⟦([^⟧]*)⟧/u).forEach((o,h)=>{if(h%2===0){o.trim()!==""&&i.push({text:o.trim()});return}n++;const d=o.trim();d===""||d==="…"||d==="..."?i.push({redacted:s[n]?.redacted??{reason:r}}):(i.push({redacted:{reason:r,words:g.words(d)}}),a.set(n,d))}),delete e.redacted,g.setParts(e,i),a}static setParts(e,t){const r=[];for(const s of t){const i=r[r.length-1],a=!("redacted"in s)&&/^[,.;:!?)»”…]/u.test(s.text)?"":" ";i&&!("redacted"in i)&&!("redacted"in s)?r[r.length-1]={text:`${i.text}${a}${s.text}`.replace(/\s+/gu," ").trim()}:r.push(s)}if(r.some(s=>"redacted"in s)){if(e.parts=r,delete e.text,e.refs)for(const s of e.refs)delete s.range}else e.text=r.map(s=>s.text).join(" "),delete e.parts}}class W{constructor(e,t,r){this.host=t,this.messages=r,e.classList.add("player"),e.innerHTML=`<div class="player-video" hidden></div>
3
- <div class="player-bar">
4
- <button type="button" class="icon-btn player-play" disabled>${x.PLAY}</button>
5
- <span class="player-time">0:00</span>
6
- <div class="speaker-track" role="slider" tabindex="0" aria-valuemin="0"></div>
7
- <span class="player-time player-end">0:00</span>
8
- <button type="button" class="pill-btn player-recordings"></button>
9
- </div>
10
- <p class="player-empty"></p>
11
- <dialog class="recordings-window"><h3></h3><div class="recording-rows"></div><button type="button" class="pill-btn recording-add">${x.PLUS}<span></span></button></dialog>`,this.play=e.querySelector(".player-play"),this.time=e.querySelector(".player-time"),this.end=e.querySelector(".player-end"),this.track=e.querySelector(".speaker-track"),this.video=e.querySelector(".player-video"),this.empty=e.querySelector(".player-empty"),this.open=e.querySelector(".player-recordings"),this.window=e.querySelector(".recordings-window"),this.play.addEventListener("click",()=>{this.media&&(this.media.paused?this.media.play().catch(()=>{}):this.media.pause())}),this.track.addEventListener("pointerdown",s=>{const i=this.track.getBoundingClientRect();i.width>0&&this.seek((s.clientX-i.left)/i.width*this.duration)}),this.track.addEventListener("keydown",s=>{(s.key==="ArrowRight"||s.key==="ArrowLeft")&&this.seek(this.now+(s.key==="ArrowRight"?5:-5))}),this.open.addEventListener("click",()=>this.showWindow()),e.querySelector(".recording-add").addEventListener("click",()=>this.edit(s=>s.push({kind:"audio",src:""}))),P.dialog(this.window,r.close,()=>this.window.close())}static CSS=`
12
- .player { margin: 0 0 4px; border-radius: 12px; }
13
- .player-video { aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: 10px; overflow: hidden; background: #0b1020; }
14
- .player-video video { width: 100%; height: 100%; display: block; }
15
- .player-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground-sunken); }
16
- .player-time { font: 500 13px/1 var(--mono); color: var(--ink-dim); font-variant-numeric: tabular-nums; }
17
- .speaker-track { position: relative; flex: 1 1 auto; height: 28px; border-radius: 6px; cursor: pointer; overflow: hidden;
18
- background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 4px); }
19
- .speaker-track .seg { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
20
- .speaker-track .seg[data-role="witness"] { background: #c9a14a; }
21
- .speaker-track .seg[data-role="interviewer"] { background: #5b8fc4; }
22
- .speaker-track .seg[data-role="other"] { background: var(--ink-faint); }
23
- .speaker-track .seg.redacted { background: repeating-linear-gradient(135deg, var(--ink-faint) 0 3px, transparent 3px 6px); }
24
- .speaker-track .head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #f5c451; }
25
- .player-empty { margin: 6px 2px 0; font-size: 13px; color: var(--ink-faint); }
26
- .recordings-window { max-width: min(36em, 94vw); padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ground-raised); color: var(--ink); }
27
- .recordings-window::backdrop { background: rgba(7, 10, 18, .5); }
28
- .recordings-window h3 { margin: 0 0 12px; font: 600 19px/1.3 var(--serif); }
29
- .recording-row { display: grid; grid-template-columns: 8em minmax(0, 1fr) 7em auto; gap: 8px; align-items: end; margin-bottom: 10px; }
30
- .recording-row label { display: flex; flex-direction: column; gap: 4px; font: 600 12px/1.3 var(--sans); color: var(--ink-dim); }
31
- .recording-row input, .recording-row select { box-sizing: border-box; width: 100%; font-weight: 400; }
32
- .recording-file { display: flex; gap: 6px; }
33
- .recording-row .with-unit { display: flex; align-items: center; gap: 4px; font-weight: 400; color: var(--ink); }
34
- .recording-status { grid-column: 1 / -1; margin: -4px 0 0; font-size: 12px; color: var(--ink-faint); }
35
- .recording-status.error { color: var(--error); }
36
- `;json;base;media;mediaFor="";picked=new Map;messages;play;time;end;track;video;empty;open;window;setMessages(e){this.messages=e,this.render()}show(e,t){this.json=e,this.base=t,this.render()}get now(){return this.media?Math.max(0,this.media.currentTime-(this.recordings[0]?.offset??0)):this.position}seek(e){this.position=Math.min(this.duration,Math.max(0,e)),this.media&&(this.media.currentTime=this.position+(this.recordings[0]?.offset??0)),this.placeHead(),this.host.timeChanged(this.position)}position=0;get recordings(){return Array.isArray(this.json?.recordings)?this.json.recordings:[]}get duration(){const e=this.media&&Number.isFinite(this.media.duration)?this.media.duration-(this.recordings[0]?.offset??0):0,t=Math.max(0,...(this.json?.segments??[]).map(r=>r.end??r.start??0));return Math.max(1,e,t)}render(){const e=this.messages,t=this.recordings;this.open.innerHTML='<svg class="icon" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12V3.5l7-1.5V10.5"/><circle cx="4.5" cy="12" r="1.5"/><circle cx="11.5" cy="10.5" r="1.5"/></svg>',this.open.append(e.recordings.replace("{n}",String(t.length))),this.empty.textContent=t.length===0?e.noRecording:"",this.empty.hidden=t.length>0,this.play.title=e.play,this.play.setAttribute("aria-label",e.play),this.track.setAttribute("aria-label",e.recordingsTitle),this.ensureMedia(),this.drawTrack(),this.window.open&&this.drawRows()}ensureMedia(){const e=this.recordings[0],t=e?`${e.kind}|${e.src}`:"";if(t===this.mediaFor||(this.mediaFor=t,this.media?.pause(),this.media=void 0,this.video.replaceChildren(),this.video.hidden=!0,this.play.disabled=!0,!e||e.src===""))return;const r=document.createElement(e.kind==="video"?"video":"audio");r.preload="metadata",r.src=this.urlOf(e.src),r.addEventListener("loadedmetadata",()=>this.drawTrack()),r.addEventListener("timeupdate",()=>{this.placeHead(),this.host.timeChanged(this.now)});const s=()=>{const i=!r.paused;this.play.innerHTML=i?x.PAUSE:x.PLAY;const a=i?this.messages.pause:this.messages.play;this.play.title=a,this.play.setAttribute("aria-label",a)};r.addEventListener("play",s),r.addEventListener("pause",s),e.kind==="video"&&(this.video.append(r),this.video.hidden=!1),this.media=r,this.play.disabled=!1}recordingUrl(){const e=this.recordings[0];return e&&e.src!==""?this.urlOf(e.src):void 0}urlOf(e){const t=this.picked.get(e);if(t)return t;try{return new URL(e,this.base??location.href).href}catch{return e}}drawTrack(){const e=this.json,t=this.duration,r=(e?.segments??[]).filter(i=>i.start!==void 0);this.track.replaceChildren(...r.map(i=>{const a=document.createElement("span"),n=e?.speakers?.[i.speaker]?.role;a.className=i.redacted?"seg redacted":"seg",a.dataset.role=n==="witness"||n==="interviewer"?n:"other";const o=i.start??0,h=i.end??o+1;return a.style.left=`${o/t*100}%`,a.style.width=`${Math.max(.3,(h-o)/t*100)}%`,a}));const s=document.createElement("span");s.className="head",this.track.append(s),this.track.setAttribute("aria-valuemax",String(Math.round(t))),this.end.textContent=f.clock(t),this.placeHead()}placeHead(){const e=this.now,t=this.track.querySelector(".head");t&&(t.style.left=`${Math.min(e,this.duration)/this.duration*100}%`),this.time.textContent=f.clock(Math.floor(e)),this.track.setAttribute("aria-valuenow",String(Math.round(e)))}showWindow(){this.drawRows(),typeof this.window.showModal=="function"?this.window.showModal():this.window.setAttribute("open","")}drawRows(){const e=this.messages;this.window.querySelector("h3").textContent=e.recordingsTitle,this.window.querySelector(".recording-add span").textContent=e.recordingAdd,P.dialog(this.window,e.close,()=>this.window.close()),this.window.querySelector(".recording-rows").replaceChildren(...this.recordings.map((r,s)=>{const i=document.createElement("div");i.className="recording-row";const a=document.createElement("select");a.append(new Option(e.recordingAudio,"audio"),new Option(e.recordingVideo,"video")),a.value=r.kind,a.addEventListener("change",()=>this.edit(p=>{p[s].kind=a.value}));const n=document.createElement("input");n.type="text",n.value=r.src,n.placeholder="interview.mp3",n.addEventListener("change",()=>this.edit(p=>{p[s].src=n.value.trim()}));const o=document.createElement("input");o.type="file",o.accept="audio/*,video/*",o.hidden=!0,o.addEventListener("change",()=>{const p=o.files?.[0];p&&(this.picked.set(p.name,URL.createObjectURL(p)),this.edit(b=>{b[s].src=p.name,p.type.startsWith("video/")&&(b[s].kind="video")}))});const h=document.createElement("button");h.type="button",h.className="icon-btn",h.title=e.recordingFile,h.setAttribute("aria-label",e.recordingFile),h.innerHTML='<svg class="icon" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 4.5h4l1.5 1.5h5.5v6.5h-11z"/></svg>',h.addEventListener("click",()=>o.click());const d=document.createElement("span");d.className="recording-file",d.append(n,h,o);const l=document.createElement("input");l.type="number",l.step="0.1",l.value=r.offset!==void 0?String(r.offset):"",l.placeholder="0",l.addEventListener("change",()=>this.edit(p=>{const b=Number(l.value);l.value.trim()===""||!Number.isFinite(b)||b===0?delete p[s].offset:p[s].offset=b}));const c=document.createElement("button");c.type="button",c.className="icon-btn",c.innerHTML=x.TRASH,c.title=e.recordingRemove,c.setAttribute("aria-label",e.recordingRemove),c.addEventListener("click",()=>this.edit(p=>{p.splice(s,1)}));const m=document.createElement("p");return m.className="recording-status",this.check(r,m),i.append(this.labelled(e.recordingKind,a),this.labelled(e.recordingFile,d),this.labelled(e.recordingOffset,l,"s"),c,m),i}))}labelled(e,t,r){const s=document.createElement("label"),i=document.createElement("span");if(i.textContent=e,r){const a=document.createElement("span");a.className="with-unit",a.append(t,r),s.append(i,a)}else s.append(i,t);return s}check(e,t){if(e.src==="")return;const r=document.createElement(e.kind==="video"?"video":"audio");r.preload="metadata",r.addEventListener("loadedmetadata",()=>{t.textContent=f.clock(Math.round(r.duration)),t.classList.remove("error")}),r.addEventListener("error",()=>{t.textContent=this.messages.loadFailed,t.classList.add("error")}),r.src=this.urlOf(e.src)}edit(e){const t=structuredClone(this.recordings);e(t),this.host.recordingsChanged(t)}}class L{constructor(e,t,r,s){this.sendsAudio=e,this.engine=t,this.load=r,this.downloadBytes=s}loaded;transcribe(e){return this.loaded??=this.load().catch(t=>{throw this.loaded=void 0,t}),this.loaded.then(t=>t.transcribe(e))}}const F="groq",U="openai",H="assemblyai",T=M.point("transcription").provide(M.BUILT_IN,[{id:"whisper-browser",name:"Whisper",credit:"OpenAI Whisper large-v3-turbo (MIT), run by Transformers.js (Apache 2.0)",creditUrl:"https://huggingface.co/onnx-community/whisper-large-v3-turbo",create:()=>new L(!1,"whisper-large-v3-turbo (Transformers.js, in the browser)",async()=>new(await w(async()=>{const{BrowserWhisperProvider:k}=await import("./BrowserWhisperProvider-Dn44ZE45.js");return{BrowserWhisperProvider:k}},__vite__mapDeps([0,1,2]),import.meta.url)).BrowserWhisperProvider,76e7)},{id:F,name:"Groq",credit:"Groq, Whisper large-v3-turbo, on your own key",creditUrl:"https://groq.com/terms-of-use",keyUrl:"https://console.groq.com/keys",create:()=>new L(!0,"whisper-large-v3-turbo (Groq)",async()=>new(await w(async()=>{const{OpenAiTranscriptionProvider:k}=await import("./OpenAiTranscriptionProvider-DDW446tK.js");return{OpenAiTranscriptionProvider:k}},__vite__mapDeps([3,1,2]),import.meta.url)).OpenAiTranscriptionProvider({base:"https://api.groq.com/openai/v1",model:"whisper-large-v3-turbo",key:()=>A.of(F)}))},{id:U,name:"OpenAI",credit:"OpenAI, Whisper, on your own key",creditUrl:"https://openai.com/policies/row-terms-of-use/",keyUrl:"https://platform.openai.com/api-keys",create:()=>new L(!0,"whisper-1 (OpenAI)",async()=>new(await w(async()=>{const{OpenAiTranscriptionProvider:k}=await import("./OpenAiTranscriptionProvider-DDW446tK.js");return{OpenAiTranscriptionProvider:k}},__vite__mapDeps([3,1,2]),import.meta.url)).OpenAiTranscriptionProvider({base:"https://api.openai.com/v1",model:"whisper-1",key:()=>A.of(U)}))},{id:H,name:"AssemblyAI",credit:"AssemblyAI, voices told apart, on your own key",creditUrl:"https://www.assemblyai.com/legal/terms-of-service",keyUrl:"https://www.assemblyai.com/app/api-keys",create:()=>new L(!0,"AssemblyAI (speaker labels)",async()=>new(await w(async()=>{const{AssemblyAiTranscriptionProvider:k}=await import("./AssemblyAiTranscriptionProvider-o2kkPD5o.js");return{AssemblyAiTranscriptionProvider:k}},__vite__mapDeps([4,1,2]),import.meta.url)).AssemblyAiTranscriptionProvider({base:"https://api.assemblyai.com",key:()=>A.of(H)}))}]),_="rr0-interview-editor",Q=`
37
- <style>
38
- :host { display: block; }
39
- /* The colours of the transcript's text editor (see SightingFileEditor): a key, a string, a number or a word, and a mistake. Dark mode redefines them. */
40
- :host { --file-key: #1a5fb4; --file-string: #26662f; --file-literal: #a5321f; --rr0-alert: #c33; }
41
- @media (prefers-color-scheme: dark) { :host { --file-key: #8cb8ff; --file-string: #8fd39a; --file-literal: #ffa08a; } }
42
- [hidden] { display: none !important; }
43
- /* Two groups as the recording's editor has its own (see sightingEditorTemplate): the open tab raised and joined to its panel. */
44
- .group-tabs { --tab-line: color-mix(in srgb, CanvasText 35%, transparent); --tab-surface: color-mix(in srgb, CanvasText 5%, Canvas);
45
- --tab-recessed: color-mix(in srgb, CanvasText 11%, Canvas); --tab-accent: #4a9eff;
46
- display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--tab-line); }
47
- .group-tab { -webkit-user-select: none; user-select: none; font: inherit; font-weight: 600; cursor: pointer; color: color-mix(in srgb, CanvasText 70%, transparent); background: var(--tab-recessed);
48
- border: 1px solid var(--tab-line); border-radius: 8px 8px 0 0; padding: .4em .6em; margin: 0 0 -1px -1px; position: relative; }
49
- .group-tab:hover { color: CanvasText; background: color-mix(in srgb, CanvasText 16%, Canvas); }
50
- .group-tab[aria-expanded="true"] { color: CanvasText; background: var(--tab-surface); border-bottom-color: var(--tab-surface); box-shadow: inset 0 2px 0 var(--tab-accent); z-index: 1; }
51
- .group-tab:focus-visible { outline: 2px solid #4af; outline-offset: -2px; }
52
- .group-panel { border: 1px solid var(--tab-line, color-mix(in srgb, CanvasText 35%, transparent)); border-top: 0; border-radius: 0 0 4px 4px;
53
- background: color-mix(in srgb, CanvasText 5%, Canvas); padding: .5em .75em; margin: 0 0 .5em; }
54
- .row { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; margin-bottom: .5em; }
55
- .group-panel > .row:last-child { margin-bottom: 0; }
56
- label { display: flex; align-items: center; gap: .4em; }
57
- label.wide { flex: 1 1 100%; align-items: flex-start; }
58
- label.wide textarea { flex: 1 1 auto; min-width: 0; min-height: 9em; }
59
- label.fill { flex: 1 1 100%; }
60
- label.fill input { flex: 1 1 auto; }
61
- input[type="text"] { min-width: 0; }
62
- #by { width: 16em; }
63
- input[type="url"] { width: 18em; max-width: 100%; }
64
- ${X.CSS}
65
- select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
66
- fieldset.witnesses { display: flex; flex-wrap: wrap; align-items: center; gap: .25em .75em; border: 0; margin: 0; padding: 0; min-width: 0; }
67
- fieldset.witnesses legend { float: left; padding: 0; margin-right: .4em; }
68
- #exchanges { --rr0-interview-max-height: 32em; --rr0-interview-overflow: auto; }
69
- .file-note { margin: .3em 0; }
70
- ${v.rules([".file-note"])}
71
- .file-editor { min-height: 18em; margin-top: .5em; }
72
- /* ---- The design handoff's look (design_handoff_editeurs_ufoathome, §2 and §5) ---- */
73
- :host {
74
- ${R.TOKENS}
75
- --rr0-field-radius: 8px;
76
- --rr0-input-font-size: 15px;
77
- container-type: inline-size;
78
- font: 400 15px/1.5 var(--sans);
79
- color: var(--ink);
80
- }
81
- ${R.HEAD}
82
- ${R.fields(".interview-app")}
83
- .recordings-window :is(button, input, select) { font: inherit; }
84
- .recordings-window .pill-btn { min-height: 36px; }
85
- /* Its parts, underlined, as the case's are. */
86
- #tabs { display: flex; gap: 6px; padding: 0; border-bottom: 1px solid var(--line); }
87
- #tabs .group-tab {
88
- display: inline-flex; align-items: center; gap: 8px; min-height: 0; margin: 0 0 -1px; padding: 12px 10px;
89
- border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--ink-dim); font: 600 15px/1.2 var(--sans);
90
- }
91
- /* A pictogram before each name, as the case's and the observation's tabs have. */
92
- #tabs .group-tab > svg { flex: none; width: 16px; height: 16px; }
93
- #tabs .group-tab:hover { background: none; color: var(--ink); }
94
- #tabs .group-tab[aria-expanded="true"] { color: var(--ink); border-bottom-color: var(--glow-solid); background: none; box-shadow: none; }
95
- .interview-app > .group-panel { margin: 0; padding: 18px 0 0; border: 0; border-radius: 0; background: none; color: var(--ink); }
96
- /* Fields: the label above, the value under it, on a grid that fills the width; the title and what was established the whole width. */
97
- #group-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; }
98
- #group-summary > .row { display: contents; }
99
- #group-summary label, #group-transcript label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font: 600 13px/1.3 var(--sans); color: var(--ink-dim); }
100
- #group-summary :is(label.fill, label.wide) { grid-column: 1 / -1; }
101
- #group-summary :is(input, select, textarea), #group-transcript input[type="text"] { box-sizing: border-box; width: 100%; font-weight: 400; }
102
- #group-summary input[type="text"], #group-transcript input[type="text"] { height: 38px; }
103
- #group-summary textarea { min-height: 9em; }
104
- fieldset.witnesses { flex-direction: column; align-items: flex-start; gap: 6px; font: 600 13px/1.3 var(--sans); color: var(--ink-dim); }
105
- /* A witness's name stays on one line beside its box: shrunk to its words, the label broke "Q. B." in two. */
106
- #group-summary fieldset.witnesses label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); white-space: nowrap; }
107
- /* The exchanges, one card an intervention, the speaker's colour down its side: a list that scrolls past 520 px (440 on a phone). */
108
- #exchanges { --rr0-interview-max-height: 520px; --rr0-interview-line: var(--line-strong); }
109
- #exchanges .rr0-interview-turns { padding-right: 4px; }
110
- #exchanges .intervention { margin: 0 0 10px; padding: 6px 4px; border: 1px solid var(--line-strong); border-left: 3px solid var(--speaker); border-radius: 10px; background: var(--ground); }
111
- #exchanges .intervention:hover { background: var(--ground-sunken); }
112
- #exchanges .turn .who { display: inline-block; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--speaker) 18%, transparent); color: var(--ink); font: 700 12px/1.5 var(--sans); }
113
- #exchanges .turn .said { font-size: 15px; line-height: 1.55; color: var(--ink); }
114
- #exchanges .turn .ref { border-color: var(--glow-dim); background: var(--warn-bg); color: var(--ink); font: 600 12px/1.6 var(--sans); padding: 1px 9px; }
115
- #exchanges .turn.flash { background: var(--warn-bg); }
116
- #exchanges .rr0-interview-status { padding: 8px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--ink-dim); font-size: 13px; }
117
- #group-transcript > .row { margin-bottom: 12px; }
118
- @container (max-width: 640px) { #exchanges { --rr0-interview-max-height: 440px; } }
119
- ${W.CSS}
120
- ${I.CSS}
121
- ${P.CSS}
122
- ${B.CSS}
123
- ${x.CSS}
124
- /* Who has proofread it, said once above the exchanges, with a box each to say they have (see renderReview); the reader's own line goes. */
125
- #exchanges .rr0-interview-status { display: none; }
126
- .review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; padding: 10px 14px;
127
- border-radius: 10px; background: var(--warn-bg); font-size: 13px; color: var(--ink-dim); }
128
- .review[data-done] { background: var(--neutral-bg); }
129
- .review-boxes { display: flex; flex-wrap: wrap; gap: 14px; }
130
- .review-boxes label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
131
- /* Where the words selected, or the passage taken out pressed, are: why it is taken out, and what to do with it. Fixed, as it is placed
132
- against what it is about (see openRedactPop); in the top layer where popovers are known. */
133
- .redact-pop { position: fixed; inset: auto; margin: 0; text-align: start; width: min(24em, calc(100vw - 32px)); box-sizing: border-box; padding: 10px 12px;
134
- border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ground-raised); color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
135
- .redact-pop[hidden] { display: none; }
136
- /* The words the popover is about, still marked once typing the reason has taken the selection away. */
137
- ::highlight(rr0-redact-pending) { background-color: var(--warn-bg, #fde9b0); color: inherit; text-decoration: underline 2px var(--glow-dim, #c90); }
138
- .redact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
139
- .redact-actions button[hidden] { display: none; }
140
- .transcribe { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
141
- .transcribe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
142
- .transcribe-row label { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--sans); color: var(--ink-dim); }
143
- .transcribe-row input[type="password"] { width: 14em; }
144
- .transcribe .source-credit { font-size: 12px; color: var(--ink-faint); }
145
- .transcribe-note { margin: .4em 0 0; }
146
- .transcribe progress { width: 100%; margin-top: 6px; }
147
- .redact-reason { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: start; font: 600 12px/1.3 var(--sans); color: var(--ink-dim); }
148
- .redact-reason input { box-sizing: border-box; width: 100%; font-weight: 400; }
149
- .redact-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); }
150
- .redact-note:empty { display: none; }
151
- .redact-note.error { color: var(--error); }
152
- /* Each turn: its time, which plays from there; what is taken out as a label that says how much, and puts it back while it is known. */
153
- #exchanges .turn { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 14px; padding: 8px 10px; }
154
- #exchanges .turn > .turn-time { grid-row: 1; grid-column: 1; }
155
- #exchanges .turn > .who { grid-column: 1; align-self: start; }
156
- #exchanges .turn > :not(.who, .turn-time) { grid-column: 2; }
157
- #exchanges .turn > .said, #exchanges .turn > .redacted { grid-row: 1 / span 2; }
158
- #exchanges .turn.goes-on > .who, #exchanges .turn.is-redacted > .who { display: block; visibility: hidden; }
159
- /* The time is on the turn itself here: the reader's tooltip of it would say it twice. */
160
- #exchanges .turn[data-time]::after { content: none !important; display: none !important; }
161
- .turn-time { justify-self: start; min-height: 0; padding: 0; border: 0; background: none; color: var(--sky); font: 600 13px/1.4 var(--mono); cursor: pointer; }
162
- .turn-time:hover:not(:disabled) { background: none; text-decoration: underline; }
163
- #exchanges .bar.redacted-label { width: auto; height: auto; padding: 0 8px; border: 1px dashed var(--line-strong); border-radius: 999px; background: none; color: var(--ink-faint);
164
- font: 600 12px/1.6 var(--sans); vertical-align: baseline; cursor: default; }
165
- #exchanges .bar.redacted-label { cursor: pointer; }
166
- #exchanges .bar.redacted-label:hover { border-color: var(--glow-dim); color: var(--ink); }
167
- .turn-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; margin-top: 6px; }
168
- .turn-tools button { min-height: 0; padding: 2px 4px; border: 0; background: none; color: var(--ink-faint); font: 600 13px/1.4 var(--sans); }
169
- .turn-tools button:hover:not(:disabled) { background: none; color: var(--ink); }
170
- .turn-tools .icon-btn { min-width: 0; }
171
- #exchanges .turn.current { background: var(--warn-bg); border-radius: 8px; }
172
- #exchanges .intervention:has(.turn.current) { border-color: var(--glow-dim); }
173
- #exchanges .turn .refs { align-items: center; }
174
- #exchanges .turn .ref { display: inline-block; max-width: calc(100% - 2em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
175
- #exchanges .turn .ref .moment-letter { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 4px; border-radius: 50%; background: var(--glow-solid); color: var(--glow-on-solid); font: 700 11px/1 var(--sans); }
176
- #exchanges .turn .ref-unlink { min-height: 0; padding: 0 4px; border: 0; background: none; color: var(--ink-faint); font: 600 13px/1 var(--sans); }
177
- .turn-edit { display: flex; flex-direction: column; gap: 6px; }
178
- .turn-edit textarea { box-sizing: border-box; width: 100%; min-height: 6em; }
179
- .turn-edit .hint { font-size: 12px; color: var(--ink-faint); }
180
- .turn-edit .buttons { display: flex; gap: 8px; }
181
- </style>
182
- <div class="interview-app">
183
- <!-- The player: what plays the interview's recordings, with who speaks along it (see InterviewPlayer). -->
184
- <div id="player"></div>
185
- <div id="tabs" class="group-tabs">
186
- <button class="group-tab" type="button" aria-controls="group-summary" aria-expanded="true">${x.SUMMARY}<span id="label-summary-group"></span></button>
187
- <button class="group-tab" type="button" aria-controls="group-exchanges" aria-expanded="false">${x.INTERVIEW}<span id="label-exchanges-group"></span></button>
188
- <button class="group-tab" type="button" aria-controls="group-transcript" aria-expanded="false">${x.FILES}<span id="label-file-group"></span></button>
189
- </div>
190
- <section class="group-panel" id="group-summary" aria-labelledby="label-summary-group">
191
- <div class="row">
192
- <label class="fill"><span id="label-title"></span> <input id="title" type="text"/></label>
193
- </div>
194
- <div class="row">
195
- <fieldset id="witness" class="witnesses"><legend id="label-witness"></legend></fieldset>
196
- <label><span id="label-medium"></span> <select id="medium"></select></label>
197
- <label><span id="label-time"></span> <input id="time" type="text" size="16" placeholder="2026-10-13 21:27"/></label>
198
- <label><span id="label-by"></span> <input id="by" type="text" autocomplete="off" spellcheck="false"/></label>
199
- </div>
200
- <div class="row">
201
- <label class="wide"><span id="label-summary"></span> <textarea id="summary"></textarea></label>
202
- </div>
203
- </section>
204
- <section class="group-panel" id="group-exchanges" aria-labelledby="label-exchanges-group" hidden>
205
- <!-- Transcribing the recording (see TranscriptionProvider): what with, what it sends or downloads, how far it has got. -->
206
- <div id="transcribe" class="transcribe">
207
- <div class="transcribe-row">
208
- <span><button id="transcribe-start" type="button" class="pill-btn primary"></button> <span id="transcribe-hint"></span></span>
209
- <label><span id="label-transcribe-with"></span> <select id="transcribe-source"></select></label>
210
- <a id="transcribe-credit" class="source-credit" target="_blank" rel="noopener noreferrer"></a>
211
- <label id="transcribe-key-row" hidden><span id="label-transcribe-key"></span> <input id="transcribe-key" type="password" autocomplete="off" spellcheck="false"/> <a id="transcribe-key-get" class="source-credit" target="_blank" rel="noopener noreferrer"></a></label>
212
- <button id="transcribe-stop" type="button" class="pill-btn" hidden></button>
213
- </div>
214
- <p id="transcribe-note" class="transcribe-note" role="status"></p>
215
- <progress id="transcribe-progress" hidden></progress>
216
- </div>
217
- <div id="review" class="review" hidden></div>
218
- <div id="redact-pop" class="redact-pop" role="dialog" hidden>
219
- <label class="redact-reason"><span id="label-redact-reason"></span><input id="redact-reason" type="text" list="redact-reasons" autocomplete="off"/></label>
220
- <datalist id="redact-reasons"></datalist>
221
- <p id="redact-note" class="redact-note" role="status"></p>
222
- <div class="redact-actions">
223
- <button id="redact-restore" type="button" class="pill-btn"></button>
224
- <button id="redact-take" type="button" class="pill-btn primary"></button>
225
- </div>
226
- </div>
227
- <rr0-interview id="exchanges"></rr0-interview>
228
- </section>
229
- <section class="group-panel" id="group-transcript" aria-labelledby="label-file-group" hidden>
230
- <div class="row">
231
- <label class="fill"><span id="label-url"></span> <input id="url" type="text" autocomplete="off" spellcheck="false" placeholder="interview-….json"/></label>
232
- </div>
233
- <div class="row toolbar">
234
- <span class="input-file-row"><span id="label-import-file"></span> <rr0-input-file id="import" name="import" accept="application/json,.json,.txt,.md,.vtt,.srt,text/*" placeholder="https://…/interview.json"></rr0-input-file></span>
235
- <button id="save" type="button"></button>
236
- </div>
237
- <p id="file-note" class="file-note" hidden role="status"></p>
238
- <div id="file-editor" class="file-editor"></div>
239
- </section>
240
- </div>
241
- `;class u extends HTMLElement{shadow=this.attachShadow({mode:"open"});get importInput(){return this.shadow.getElementById("import")}messages;said=new $(["en"]);language="en";localeToken=0;current;options=[];group="summary";base;text;fileEditor;fileEditorLoading;shownFor;ready=Promise.resolve();player;drawn;takenOut=new Map;redactTarget;exchangesShown=Promise.resolve();lastReason;static transcriptionSourceId=T[0].id;transcribing;constructor(){super(),this.shadow.innerHTML=Q,customElements.upgrade(this.shadow),this.importInput.build();for(const r of["title","time","by","url","summary","witness","medium"])this.shadow.getElementById(r).addEventListener(r==="witness"||r==="medium"?"change":"input",()=>this.write(r));for(const r of this.shadow.querySelectorAll("#tabs .group-tab"))r.addEventListener("click",()=>this.openGroup(u.GROUPS[r.getAttribute("aria-controls")]??"summary"));this.shadow.getElementById("url").addEventListener("change",()=>{this.shownFor=void 0,this.text===void 0&&this.group==="file"&&this.showTranscript()}),this.importInput.addEventListener("filepick",r=>{const s=r.detail;s.file?this.importFromFile(s.file):this.importFromUrl(s.url)}),this.shadow.getElementById("save").addEventListener("click",()=>this.save()),this.shadow.getElementById("transcribe-start").addEventListener("click",()=>void this.transcribe()),this.shadow.getElementById("transcribe-stop").addEventListener("click",()=>this.transcribing?.abort()),this.shadow.getElementById("transcribe-source").addEventListener("change",r=>{u.transcriptionSourceId=r.target.value,this.transcribeOutcome=void 0,this.renderTranscribe()}),this.shadow.getElementById("transcribe-key").addEventListener("input",r=>{A.set(u.transcriptionSourceId,r.target.value),this.renderTranscribeStart()});const e=this.shadow.getElementById("exchanges");e.addEventListener("pointerup",()=>setTimeout(()=>this.selectionMade(),0)),e.addEventListener("keyup",r=>{r.shiftKey&&this.selectionMade()}),e.addEventListener("click",r=>{const s=r.target.closest(".bar.redacted-label");s&&this.openBar(s)}),e.addEventListener("keydown",r=>{const s=r.target.closest(".bar.redacted-label");s&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.openBar(s))}),this.shadow.getElementById("redact-take").addEventListener("click",()=>void this.redactSelection()),this.shadow.getElementById("redact-restore").addEventListener("click",()=>{const r=this.redactTarget;this.closeRedactPop(),r?.kind==="bar"&&r.restorable&&this.restore(r.restorable)});const t=this.field("redact-reason");t.addEventListener("change",()=>{this.redactTarget?.kind==="bar"&&this.changeReason()}),t.addEventListener("keydown",r=>{r.key==="Escape"&&this.closeRedactPop(),r.key==="Enter"&&(r.preventDefault(),this.redactTarget?.kind==="selection"?this.redactSelection():this.changeReason().then(()=>this.closeRedactPop()))})}static GROUPS={"group-summary":"summary","group-exchanges":"exchanges","group-transcript":"file"};static get observedAttributes(){return["readonly"]}attributeChangedCallback(){this.applyReadonly()}connectedCallback(){this.ready=this.loadLocale(),document.addEventListener("pointerdown",this.pressedElsewhere,!0)}pressedElsewhere=e=>{const t=this.shadow.getElementById("redact-pop");t&&!t.hidden&&!e.composedPath().includes(t)&&this.closeRedactPop()};disconnectedCallback(){document.removeEventListener("pointerdown",this.pressedElsewhere,!0),queueMicrotask(()=>{this.isConnected||this.releaseFileEditor()})}releaseFileEditor(){this.fileEditor&&(this.text=this.fileEditor.text,this.fileEditor.destroy(),this.fileEditor=void 0,this.fileEditorLoading=void 0,this.shownFor=void 0)}get event(){return this.current}set event(e){e!==this.current&&(this.shownFor=void 0),this.current=e,this.render(),this.takenOut.clear(),this.group==="file"&&this.showTranscript(),queueMicrotask(()=>{this.current===e&&this.showExchanges()})}set witnesses(e){this.options=e,this.render()}set documentUrl(e){this.base=e}get transcriptText(){return this.text}set transcriptText(e){this.text=e,this.shownFor=void 0}field(e){return this.shadow.getElementById(e)}async loadLocale(){const e=++this.localeToken,t=z.preferencesFor(this),r=V(t,J),s=await G.load(r);e===this.localeToken&&(this.language=r,this.said=new $(t),this.messages=s,this.player||(this.player=new W(this.shadow.getElementById("player"),{timeChanged:i=>this.markCurrentTurn(i),recordingsChanged:i=>void this.editTranscript(a=>{i.length===0?delete a.recordings:a.recordings=i})},s),this.render()),this.render())}applyReadonly(){const e=this.hasAttribute("readonly");for(const t of["title","time","by","url","summary"])this.field(t).readOnly=e;for(const t of this.shadow.querySelectorAll("#witness input"))t.disabled=e;this.field("medium").disabled=e,this.importInput.disabled=e,this.shadow.getElementById("transcribe").hidden=e}static byText(e){return(e??[]).map(t=>"people"in t?t.people:"org"in t?t.org:t.title??"").filter(t=>t!=="").join(", ")}render(){const e=this.messages;if(!e)return;const t=(l,c)=>{this.shadow.getElementById(l).textContent=c};t("label-summary-group",e.summaryTab),t("label-file-group",e.fileTab),t("label-exchanges-group",e.exchangesTab),t("label-title",e.title),t("label-witness",e.witness),t("label-medium",e.medium),t("label-time",e.time),t("label-by",e.by),t("label-summary",e.summary),t("label-url",e.transcript),I.say(this.shadow.getElementById("label-import-file"),e.importFile,e.importFileHint),t("redact-take",e.redactSelection),t("redact-restore",e.redactRestore),t("label-redact-reason",e.redactReasonLabel);const r=this.field("redact-reason");r.placeholder=e.redactReason,r.title=e.redactReasonHint,t("transcribe-start",e.transcribe),this.shadow.getElementById("transcribe-hint").replaceChildren(I.of(e.transcribeHint)),t("label-transcribe-with",e.transcribeWith),t("label-transcribe-key",e.transcribeKey),t("transcribe-key-get",e.transcribeKeyGet),t("transcribe-stop",e.transcribeStop),this.field("transcribe-key").title=e.transcribeKeyHint,this.renderTranscribe(),this.player?.setMessages(e),this.importInput.messages=e,t("save",e.saveButton),this.field("url").title=e.transcriptHint,this.field("by").title=e.byHint;const s=this.current,i=this.shadow.activeElement,a=(l,c)=>{this.field(l)!==i&&(this.field(l).value=c)};a("title",this.said.read(s?.title)??""),a("time",s?.time??""),a("by",u.byText(s?.by)),a("url",s?.url??""),a("summary",this.said.read(s?.summary)??"");const n=[s?.interviewOf].flat().filter(l=>typeof l=="string"),o=this.shadow.getElementById("witness"),h=[...this.options,...n.filter(l=>!this.options.some(c=>c.id===l)).map(l=>({id:l,label:l}))];o.replaceChildren(o.querySelector("legend"),...h.map(l=>{const c=document.createElement("label"),m=document.createElement("input");return m.type="checkbox",m.value=l.id,m.checked=n.includes(l.id),c.append(m,l.label),c}));const d=this.shadow.getElementById("medium");if(d.replaceChildren(...N.ALL.map(l=>new Option(N.label(l,this.language),l))),s?.medium!==void 0&&!N.ALL.includes(s.medium)&&d.append(new Option(String(s.medium),String(s.medium))),s?.medium===void 0){const l=new Option(e.witnessNone,"");l.disabled=!0,l.hidden=!0,d.prepend(l)}d.value=s?.medium??"",this.applyReadonly()}write(e){const t=this.current;if(!t)return;const r=e==="witness"?"":this.field(e).value;switch(e){case"title":{const s=this.said.write(t.title,r,this.language);s===void 0?delete t.title:t.title=s;break}case"summary":{const s=this.said.write(t.summary,r,this.language);s===void 0?delete t.summary:t.summary=s;break}case"time":r.trim()===""?delete t.time:t.time=r.trim();break;case"url":r.trim()===""?delete t.url:t.url=r.trim();break;case"by":{const s=r.split(",").map(i=>i.trim()).filter(i=>i!=="");s.length===0?delete t.by:t.by=s.map(i=>({people:i}));break}case"witness":{const s=[...this.shadow.querySelectorAll("#witness input:checked")].map(i=>i.value);if(s.length===0){this.render();return}t.interviewOf=s.length===1?s[0]:s;break}case"medium":r===""?delete t.medium:t.medium=r;break}this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{field:e,event:t}})),e==="medium"&&this.render(),e!=="url"&&this.syncFileFromEvent()}openGroup(e){this.group=e;const t={summary:"group-summary",exchanges:"group-exchanges",file:"group-transcript"};for(const r of this.shadow.querySelectorAll("#tabs .group-tab"))r.setAttribute("aria-expanded",String(r.getAttribute("aria-controls")===t[e]));for(const[r,s]of Object.entries(t))this.shadow.getElementById(s).hidden=r!==e;e==="file"&&this.showTranscript(),e==="exchanges"&&this.showExchanges()}exchangesToken=0;async transcriptJson(e){try{const t=this.fileEditor?.text??this.text;if(t!==void 0)return f.read(JSON.parse(t));const r=this.transcriptUrl(e);if(r!==void 0)return f.read(await C.json(r))}catch{}}async showExchanges(){const e=this.current;if(!e)return;const t=++this.exchangesToken,r=await this.transcriptJson(e);await this.ready,!(t!==this.exchangesToken||this.current!==e)&&this.drawExchanges(r)}drawExchanges(e){const t=this.shadow.getElementById("exchanges");t.documentUrl=this.current?this.transcriptUrl(this.current):void 0,t.interview=e,this.drawn=e,this.player?.show(e,this.current?this.transcriptUrl(this.current):void 0),this.renderReview(e),this.renderRedactReasons(e),this.decorateExchanges(e),this.renderTranscribe()}async editTranscript(e){const t=this.current;if(!t||this.hasAttribute("readonly"))return;const r=await this.transcriptJson(t)??JSON.parse(this.template(t));Array.isArray(r.segments)||(r.segments=[]),e(r);const s=u.pretty(u.withEventFields(r,t));this.fileEditor?.replaceText(s,!1),this.onEdited(s),await this.exchangesShown}get redactReason(){return this.reasonOf(this.lastReason)}reasonOf(e){e=e?.trim()||this.messages.redactReason;const t=this.givenReasons(this.drawn).find(r=>this.said.read(r)===e);return t!==void 0?typeof t=="string"?t:{...t}:this.said.write(void 0,e,this.language)??e}givenReasons(e){const t=new Map;for(const r of e?.segments??[])for(const s of[r.redacted,...(r.parts??[]).map(i=>"redacted"in i?i.redacted:void 0)]){if(!s)continue;const i=JSON.stringify(s.reason),a=t.get(i);a?a.n++:t.set(i,{reason:s.reason,n:1})}return[...t.values()].sort((r,s)=>s.n-r.n).map(r=>r.reason)}renderRedactReasons(e){const t=this.messages;if(!t)return;const r=this.givenReasons(e).map(a=>this.said.read(a)??"").filter(a=>a!==""),s=t.redactReasons.filter(a=>!r.some(n=>n.toLowerCase().startsWith(a.toLowerCase()))),i=[...new Set([...r,...s])];this.shadow.getElementById("redact-reasons").replaceChildren(...i.map(a=>new Option(a,a)))}speakerLabel(e,t){const r=f.speakerName(e,t),s=e.speakers?.[t]?.role;return s===f.UNATTRIBUTED&&e.speakers[t].title?this.messages.voiceNamed.replace("{name}",r):r===s&&s in this.messages.roles?this.messages.roles[s]:r}renderReview(e){const t=this.shadow.getElementById("review"),r=Object.entries(e?.speakers??{}).filter(([,o])=>o.role!==f.UNATTRIBUTED).map(([o])=>o);if(t.hidden=!e||r.length===0,!e||r.length===0)return;const s=o=>["approved","covered"].includes(e.proofreading?.[o]?.status??""),i=r.filter(o=>!s(o)),a=document.createElement("span");a.textContent=i.length===0?this.messages.proofreadAll:this.messages.proofreadPending.replace("{names}",i.map(o=>this.speakerLabel(e,o)).join(", ")),t.toggleAttribute("data-done",i.length===0);const n=document.createElement("span");n.className="review-boxes";for(const o of r){const h=document.createElement("label"),d=document.createElement("input");d.type="checkbox",d.checked=s(o),d.disabled=this.hasAttribute("readonly"),d.addEventListener("change",()=>void this.editTranscript(l=>{l.proofreading??={},d.checked?l.proofreading[o]={status:"approved",date:new Date().toISOString().slice(0,10)}:l.proofreading[o]={status:"pending"}})),h.append(d,this.messages.reviewedBy.replace("{name}",this.speakerLabel(e,o))),n.append(h)}t.replaceChildren(a,n)}momentsOf(e,t){const r=e.speakers?.[t]?.of??f.sightingsOf(e)[0];return this.options.find(s=>s.id===r)?.moments??this.options.flatMap(s=>s.moments??[])}decorateExchanges(e){if(!e)return;const t=this.messages,r=this.hasAttribute("readonly");for(const s of this.shadow.querySelectorAll("#exchanges .turn[data-segment]")){const i=Number(s.dataset.segment),a=e.segments[i];if(!a)continue;if(a.start!==void 0){const h=document.createElement("button");h.type="button",h.className="turn-time",h.textContent=f.clock(a.start),h.addEventListener("click",()=>this.player?.seek(a.start)),s.prepend(h)}const n=a.redacted?[a.redacted]:g.partsOf(a).flatMap(h=>"redacted"in h?[h.redacted]:[]);s.querySelectorAll(".bar").forEach((h,d)=>{const l=n[d]?.words;h.textContent=l!==void 0?t.redactedWords.replace("{n}",String(l)):t.redacted,h.classList.add("redacted-label");const c=a.redacted?`${i}:all`:`${i}:${d}`;this.takenOut.has(c)&&(h.dataset.restorable=c)});const o=this.momentsOf(e,a.speaker);s.querySelectorAll(".ref").forEach((h,d)=>{const l=a.refs?.[d];if(!l)return;const c=o.find(p=>Math.abs(p.at-l.at)<.05);if(c){const p=document.createElement("span");p.className="moment-letter",p.textContent=c.label.slice(0,2),h.replaceChildren(p,t.momentLabel.replace("{k}",c.label).replace("{text}",c.note??f.clock(l.at)))}if(r)return;const m=document.createElement("button");m.type="button",m.className="ref-unlink",m.textContent="×",m.title=t.unlinkMoment,m.setAttribute("aria-label",t.unlinkMoment),m.addEventListener("click",()=>void this.editTranscript(p=>{p.segments[i].refs?.splice(d,1),p.segments[i].refs?.length===0&&delete p.segments[i].refs})),h.after(m)}),r||s.append(this.turnTools(e,i,a,o))}}turnTools(e,t,r,s){const i=this.messages,a=document.createElement("div");a.className="turn-tools";const n=(d,l)=>{const c=document.createElement("button");return c.type="button",c.textContent=d,c.addEventListener("click",l),c};if(e.speakers?.[r.speaker]?.role==="witness"&&!r.redacted){const d=n(i.linkMoment,()=>{});a.append(d),new B(d,`moment-menu-${t}`,c=>void this.editTranscript(m=>{const p=m.segments[t].refs??[];p.some(b=>Math.abs(b.at-Number(c))<.05)||p.push({at:Number(c)}),m.segments[t].refs=p}),c=>`moment-${t}-${c}`).setKinds(s.length>0?s.map(c=>({value:String(c.at),label:i.momentLabel.replace("{k}",c.label).replace("{text}",c.note??f.clock(c.at))})):[{value:"",label:i.noMoments,disabledReason:i.noMoments}])}if(r.redacted||a.append(n(i.editTurn,()=>this.editTurn(t))),!r.redacted&&!this.hasAttribute("readonly")){const d=n(i.whoSpeaks,()=>{});a.append(d),new B(d,`speaker-menu-${t}`,c=>void w(async()=>{const{InterviewImport:m}=await import("./interviewImport-ym5iXO4Z.js");return{InterviewImport:m}},__vite__mapDeps([5,6,7]),import.meta.url).then(({InterviewImport:m})=>this.editTranscript(p=>{m.attribute(p,t,c)})),c=>`speaker-${t}-${c}`).setKinds(Object.keys(e.speakers??{}).map(c=>({value:c,label:this.speakerLabel(e,c),...c===r.speaker?{disabledReason:this.speakerLabel(e,c)}:{}})))}const o=this.takenOut.has(`${t}:all`)||[...this.takenOut.keys()].some(d=>d.startsWith(`${t}:`));if(r.redacted||r.parts&&o){const d=n(i.restoreAll,()=>void this.restoreAll(t));d.disabled=!o,a.append(d)}else a.append(n(i.redactAll,()=>void this.editTranscript(d=>{this.forget(t),this.takenOut.set(`${t}:all`,g.redactWhole(d.segments[t],this.redactReason))}).then(()=>{const d=this.shadow.querySelector(`#exchanges .turn[data-segment="${t}"] .bar.redacted-label`);d&&this.openBar(d)})));const h=n("",()=>void this.editTranscript(d=>{d.segments.splice(t,1),this.shiftTakenOut(t)}));return h.className="icon-btn",h.innerHTML=x.TRASH,h.title=i.deleteTurn,h.setAttribute("aria-label",i.deleteTurn),a.append(h),a}selectionMade(){const e=this.messages;if(!e||this.hasAttribute("readonly"))return;const t=this.shadow.getSelection?.()??document.getSelection(),r=t&&t.rangeCount>0?t.getRangeAt(0):void 0,s=this.shadow.getElementById("exchanges");if(!r||r.collapsed||!s.contains(r.startContainer)||!s.contains(r.endContainer))return;const i=c=>c instanceof Element?c:c.parentElement,a=i(r.startContainer)?.closest(".said");if(!a&&!i(r.endContainer)?.closest(".said"))return;const n=a&&i(r.endContainer)?.closest(".said")===a&&!i(r.startContainer)?.closest(".bar")&&!i(r.endContainer)?.closest(".bar"),o=r.getBoundingClientRect();if(!n){this.openRedactPop({kind:"selection",index:-1,from:0,to:0},o,e.selectionOnePassage);return}const h=Number(a.closest(".turn").dataset.segment),d=u.offsetIn(a,r.startContainer,r.startOffset),l=u.offsetIn(a,r.endContainer,r.endOffset);this.openRedactPop({kind:"selection",index:h,from:Math.min(d,l),to:Math.max(d,l)},o),u.markPending(r)}static PENDING="rr0-redact-pending";static markPending(e){const t=globalThis.CSS?.highlights,r=globalThis.Highlight;!t||!r||(e?t.set(u.PENDING,new r(e.cloneRange())):t.delete(u.PENDING))}openBar(e){if(this.hasAttribute("readonly"))return;const t=e.closest(".turn");if(!t)return;const r=Number(t.dataset.segment),s=[...t.querySelectorAll(".bar")].indexOf(e),i=this.drawn?.segments[r];if(!i)return;const a=i.redacted?"all":s,n=`${r}:${a}`;this.openRedactPop({kind:"bar",index:r,nth:a,restorable:this.takenOut.has(n)?n:void 0},e.getBoundingClientRect())}openRedactPop(e,t,r){const s=this.shadow.getElementById("redact-pop"),i=this.field("redact-reason");u.markPending(),this.redactTarget=e;const a=this.shadow.getElementById("redact-take"),n=this.shadow.getElementById("redact-restore");a.hidden=e.kind!=="selection",a.disabled=!!r,n.hidden=e.kind!=="bar"||!e.restorable,i.disabled=!!r,i.value=e.kind==="bar"?this.said.read(this.redactionAt(this.drawn,e.index,e.nth)?.reason)??"":this.lastReason??"";const o=this.shadow.getElementById("redact-note");o.textContent=r??"",o.classList.toggle("error",!!r),s.hidden=!1,typeof s.showPopover=="function"&&s.isConnected&&(s.setAttribute("popover","manual"),s.matches(":popover-open")||s.showPopover());const h=s.offsetWidth||320,d=s.offsetHeight||120,l=t.bottom+6+d<=window.innerHeight;s.style.top=`${Math.max(8,l?t.bottom+6:t.top-6-d)}px`,s.style.left=`${Math.max(8,Math.min(t.left,window.innerWidth-h-8))}px`,r||i.focus({preventScroll:!0})}closeRedactPop(){const e=this.shadow.getElementById("redact-pop");this.redactTarget=void 0,u.markPending(),typeof e.hidePopover=="function"&&e.matches?.(":popover-open")&&e.hidePopover(),e.hidden=!0}redactionAt(e,t,r){const s=e?.segments[t];if(s)return r==="all"?s.redacted:g.partsOf(s).flatMap(i=>"redacted"in i?[i.redacted]:[])[r]}async changeReason(){const e=this.redactTarget;if(e?.kind!=="bar")return;const t=this.reasonOf(this.field("redact-reason").value),r=this.redactionAt(this.drawn,e.index,e.nth);!r||JSON.stringify(r.reason)===JSON.stringify(t)||await this.editTranscript(s=>{if(e.nth!=="all"){const a=this.redactionAt(s,e.index,e.nth);a&&(a.reason=t);return}const i=JSON.stringify(s.segments[e.index].redacted?.reason);for(let a=e.index;a<s.segments.length;a++){const n=s.segments[a].redacted;if(!n||a>e.index&&JSON.stringify(n.reason)!==i)break;n.reason=t}})}async redactSelection(){const e=this.messages,t=this.redactTarget;if(t?.kind!=="selection"||t.index<0)return;this.lastReason=this.field("redact-reason").value.trim()||void 0;const r=this.redactReason;let s=!1;if(await this.editTranscript(i=>{const a=g.redact(i.segments[t.index],t.from,t.to,r);a&&(s=!0,this.shiftParts(t.index,a.nth),this.takenOut.set(`${t.index}:${a.nth}`,a.text))}),!s){const i=this.shadow.getElementById("redact-note");i.textContent=e.selectionOnePassage,i.classList.add("error");return}this.closeRedactPop(),(this.shadow.getSelection?.()??document.getSelection())?.removeAllRanges()}static offsetIn(e,t,r){let s=0;const i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:a=>a.parentElement?.closest(".bar")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(let a=i.nextNode();a;a=i.nextNode()){if(a===t)return s+r;if(t.contains(a)&&t!==a){const o=[...t.childNodes].slice(0,r);return s+o.reduce((h,d)=>h+(d instanceof Element&&d.closest(".bar")?0:(d.textContent??"").length),0)}s+=(a.textContent??"").length}return s}async restore(e){const t=this.takenOut.get(e);if(t===void 0)return;const[r,s]=e.split(":"),i=Number(r);await this.editTranscript(a=>{s==="all"?g.restoreWhole(a.segments[i],t):(g.restorePart(a.segments[i],Number(s),t),this.shiftParts(i,Number(s),-1)),this.takenOut.delete(e)})}async restoreAll(e){if(this.takenOut.has(`${e}:all`)){await this.restore(`${e}:all`);return}const t=[...this.takenOut.keys()].filter(r=>r.startsWith(`${e}:`)).map(r=>Number(r.split(":")[1])).sort((r,s)=>s-r);for(const r of t)await this.restore(`${e}:${r}`)}editTurn(e){const r=this.drawn?.segments[e],s=this.shadow.querySelector(`#exchanges .turn[data-segment="${e}"] .said`);if(!r||!s)return;const i=this.messages,a=document.createElement("div");a.className="turn-edit";const n=document.createElement("textarea");n.value=g.raw(r,c=>this.takenOut.get(`${e}:${c}`));const o=document.createElement("span");o.className="hint",o.textContent=i.turnEditHint;const h=document.createElement("div");h.className="buttons";const d=document.createElement("button");d.type="button",d.className="pill-btn primary",d.textContent=i.saveTurn,d.addEventListener("click",()=>void this.editTranscript(c=>{const m=g.fromRaw(c.segments[e],n.value,this.redactReason);this.forget(e);for(const[p,b]of m)this.takenOut.set(`${e}:${p}`,b)}));const l=document.createElement("button");l.type="button",l.className="pill-btn",l.textContent=i.cancelTurn,l.addEventListener("click",()=>this.drawExchanges(this.drawn)),h.append(d,l),a.append(n,o,h),s.replaceWith(a),n.focus()}forget(e){for(const t of[...this.takenOut.keys()])t.startsWith(`${e}:`)&&this.takenOut.delete(t)}shiftParts(e,t,r=1){const s=[...this.takenOut].filter(([i])=>i.startsWith(`${e}:`)&&i!==`${e}:all`&&Number(i.split(":")[1])>=t+(r<0?1:0));for(const[i]of s)this.takenOut.delete(i);for(const[i,a]of s)this.takenOut.set(`${e}:${Number(i.split(":")[1])+r}`,a)}shiftTakenOut(e){const t=[...this.takenOut];this.takenOut.clear();for(const[r,s]of t){const[i,a]=r.split(":"),n=Number(i);n<e?this.takenOut.set(r,s):n>e&&this.takenOut.set(`${n-1}:${a}`,s)}}markCurrentTurn(e){const t=this.drawn?.segments??[];let r=-1;t.forEach((a,n)=>{a.start!==void 0&&a.start<=e&&(r=n)});for(const a of this.shadow.querySelectorAll("#exchanges .turn.current"))a.classList.remove("current");const s=this.shadow.querySelector(`#exchanges .turn[data-segment="${r}"]`);if(!s)return;s.classList.add("current");const i=s.closest(".rr0-interview-turns");i&&(s.offsetTop<i.scrollTop||s.offsetTop>i.scrollTop+i.clientHeight-s.offsetHeight)&&i.scrollTo({top:s.offsetTop-i.clientHeight/3,behavior:"smooth"})}async revealSegment(e){this.openGroup("exchanges"),await this.showExchanges(),this.shadow.getElementById("exchanges").revealSegment(e)}transcribeOutcome;renderTranscribe(){const e=this.messages;if(!e)return;const t=this.shadow.getElementById("transcribe-source");[...t.options].map(d=>d.value).join()!==T.map(d=>d.id).join()&&t.replaceChildren(...T.map(d=>{const l=new Option(d.name,d.id);return l.title=d.credit,l}));const r=O(T,u.transcriptionSourceId);t.value=r.id;const s=this.shadow.getElementById("transcribe-credit");s.href=r.creditUrl,s.textContent=r.credit,this.shadow.getElementById("transcribe-key-row").hidden=!r.keyUrl,this.shadow.getElementById("transcribe-key-get").href=r.keyUrl??"";const i=this.field("transcribe-key");if(i!==this.shadow.activeElement&&(i.value=A.of(r.id)??""),this.transcribing)return;const a=this.player?.recordingUrl();this.renderTranscribeStart();const n=this.shadow.getElementById("transcribe-note");if(this.transcribeOutcome){v.show(n,this.transcribeOutcome.text,this.transcribeOutcome.kind);return}if(!a){v.show(n,e.transcribeNoRecording);return}const o=r.create(),h=[o.sendsAudio?e.transcribeSends.replace("{name}",r.name):e.transcribeLocal.replace("{mb}",String(Math.round((o.downloadBytes??0)/1e6)))];(this.drawn?.segments?.length??0)>0&&h.push(e.transcribeReplaces),v.show(n,h.join(" "),o.sendsAudio?"warning":"info")}renderTranscribeStart(){if(this.transcribing||!this.messages)return;const e=O(T,u.transcriptionSourceId),t=this.shadow.getElementById("transcribe-start");t.disabled=!!e.keyUrl&&!A.of(e.id),t.title=t.disabled?this.messages.transcribeErrors.noKey:""}showTranscribing(e){this.shadow.getElementById("transcribe-start").disabled=e,this.shadow.getElementById("transcribe-stop").hidden=!e,this.shadow.getElementById("transcribe-source").disabled=e,this.field("transcribe-key").disabled=e,this.shadow.getElementById("transcribe-progress").hidden=!e}showProgress(e){const t=this.messages,r=this.shadow.getElementById("transcribe-note"),s=this.shadow.getElementById("transcribe-progress"),i=a=>String(Math.round(a/1e6));if(e==="reading")s.removeAttribute("value"),v.show(r,t.transcribeReading);else if(e.stage==="loading")e.total?(s.max=e.total,s.value=e.loaded,v.show(r,t.transcribeLoading.replace("{loaded}",i(e.loaded)).replace("{total}",i(e.total)))):(s.removeAttribute("value"),v.show(r,t.transcribeLoadingSoFar.replace("{loaded}",i(e.loaded))));else if(e.stage==="sending"||e.stage==="waiting"){s.removeAttribute("value");const a=O(T,u.transcriptionSourceId).name;v.show(r,(e.stage==="sending"?t.transcribeSending:t.transcribeWaiting).replace("{name}",a))}else s.max=e.total,s.value=e.done,v.show(r,t.transcribeProgress.replace("{done}",f.clock(Math.round(e.done))).replace("{total}",f.clock(Math.round(e.total))))}async transcribe(){const e=this.messages,t=this.current,r=this.player?.recordingUrl();if(!e||!t||this.transcribing||this.hasAttribute("readonly"))return;if(!r){this.player?.showWindow();return}const s=O(T,u.transcriptionSourceId),i=s.create(),a=this.transcribing=new AbortController;this.transcribeOutcome=void 0,this.showTranscribing(!0),this.showProgress("reading");try{const[{TranscriptionAudio:n},{TranscriptionError:o},{InterviewImport:h}]=await Promise.all([w(()=>import("./TranscriptionAudio-C_xvRUv2.js"),[],import.meta.url),w(()=>import("./TranscriptionError-D_TCbYbt.js"),[],import.meta.url),w(()=>import("./interviewImport-ym5iXO4Z.js"),__vite__mapDeps([5,6,7]),import.meta.url)]),d=await fetch(r,{signal:a.signal});if(!d.ok)throw new o("failed",`HTTP ${d.status}`);if(Number(d.headers.get("content-length")??0)>n.MAX_BYTES)throw new o("tooLarge");const l=await d.arrayBuffer();if(l.byteLength>n.MAX_BYTES)throw new o("tooLarge");const c=await n.decode(l).catch(()=>{throw new o("failed",e.loadFailed)}),m=this.drawn?.language??this.language,p=await i.transcribe({samples:c,language:m,signal:a.signal,progress:y=>this.showProgress(y)}),b=[t.interviewOf].flat().filter(y=>typeof y=="string"),E=h.transcribed(p,{by:(t.by??[]).flatMap(y=>"people"in y?[y.people]:[]),witnesses:this.options.filter(y=>b.length===0||b.includes(y.id)).map(({id:y,label:q})=>({id:y,label:q}))});if(!E)throw new o("failed",e.exchangesEmpty);if(a.signal.aborted||this.current!==t)throw new DOMException("Aborted","AbortError");const{anonymization:Z,...D}=await this.transcriptJson(t)??{};await this.take({...D,...E,language:m,transcription:{method:"automatic",engine:i.engine,note:`Transcribed in UFO@home by ${i.engine}: whose each voice is was not known, to be attributed, then proofread.`}}),this.transcribeOutcome={text:e.transcribeDone.replace("{engine}",s.name),kind:"info"}}catch(n){const o=n;a.signal.aborted||o?.name==="AbortError"?this.transcribeOutcome={text:e.transcribeStopped,kind:"info"}:o?.name==="TranscriptionError"&&o.code?this.transcribeOutcome={text:e.transcribeErrors[o.code].replace("{detail}",o.detail??""),kind:"error"}:this.transcribeOutcome={text:e.transcribeErrors.failed.replace("{detail}",String(o?.message??n)),kind:"error"}}finally{this.transcribing=void 0,this.showTranscribing(!1),this.renderTranscribe()}}note(e,t="info"){v.show(this.shadow.getElementById("file-note"),e,t)}transcriptUrl(e){return e.url?new URL(e.url,this.base??location.href).href:void 0}static pretty(e){return JSON.stringify(e,null,2)+`
242
- `}static SHARED=["title","time","medium","by","interviewOf","summary"];static ORDER=["version","id","language","title","time","medium","by","interviewOf","summary","speakers","transcription","proofreading","anonymization","recordings","segments"];static ordered(e){const t={};for(const r of u.ORDER)r in e&&(t[r]=e[r]);for(const r of Object.keys(e))r in t||(t[r]=e[r]);return t}static witnessesOf(e){return[e].flat().filter(t=>typeof t=="string")}static withEventFields(e,t){const r={...e};for(const i of u.SHARED)t[i]===void 0?delete r[i]:r[i]=structuredClone(t[i]);const s=r.speakers;if(typeof s=="object"&&s!==null){const i={...s},a=(n,o,h)=>{h.forEach((d,l)=>{const c=l===0?n:`${n}${l+1}`;i[c]?i[c]={...i[c],[o]:d}:l>0&&(i[c]={role:n,[o]:d})})};a("interviewer","by",t.by??[]),a("witness","of",u.witnessesOf(t.interviewOf)),r.speakers=i}return u.ordered(r)}applyFileToEvent(e,t){const r=this.current;if(!r)return!1;const s=JSON.stringify(u.SHARED.map(n=>r[n])),i=n=>typeof n=="string"||typeof n=="object"&&n!==null&&!Array.isArray(n),a={title:i,summary:i,time:n=>typeof n=="string",medium:n=>typeof n=="string",by:n=>Array.isArray(n),interviewOf:n=>typeof n=="string"||Array.isArray(n)};for(const n of u.SHARED){const o=e[n];o!==void 0&&a[n](o)?r[n]=structuredClone(o):t&&delete r[n]}return JSON.stringify(u.SHARED.map(n=>r[n]))!==s}syncFileFromEvent(){const e=this.current,t=this.fileEditor?.text??this.text;if(!e||t===void 0)return;let r;try{r=JSON.parse(t)}catch{return}if(typeof r!="object"||r===null||Array.isArray(r))return;const s=u.pretty(u.withEventFields(r,e));s!==t&&(this.text=s,this.fileEditor?.replaceText(s,!1),this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{field:"transcript",event:e,text:s}})))}template(e){return u.pretty(u.withEventFields({version:1,language:this.language,speakers:{interviewer:{role:"interviewer"},witness:{role:"witness"}},segments:[]},e))}loadFileEditor(e){return this.fileEditorLoading??=(async()=>{try{const[{SightingFileEditor:t},{default:r},s]=await Promise.all([w(()=>import("./SightingFileEditor-Cllslp2u.js"),__vite__mapDeps([8,9,10]),import.meta.url),w(()=>import("./interviewSchema-Dk0AWHwc.js"),[],import.meta.url),K(this.language)]);return this.fileEditor=new t(this.shadow.getElementById("file-editor"),e,i=>this.onEdited(i),this.messages.editorLabel,{baseline:e,phrases:s.fileSearchPhrases,schema:r}),this.fileEditor}catch(t){throw this.fileEditorLoading=void 0,t}})(),this.fileEditorLoading}async showTranscript(){const e=this.current;if(!e||this.shownFor===e)return;this.note(this.messages.loading);let t=this.text;if(t===void 0){const r=this.transcriptUrl(e);if(r!==void 0)try{const s=await C.json(r);this.current===e&&typeof s=="object"&&s!==null&&!Array.isArray(s)?(this.applyFileToEvent(s,!1)&&this.fileChangedEvent(),t=u.pretty(u.withEventFields(s,e))):t=u.pretty(s)}catch{this.note(this.messages.loadFailed,"error")}t??=this.template(e)}if(this.current===e)try{const r=await this.loadFileEditor(t);if(this.current!==e)return;r.replaceText(t,!1),this.shownFor=e,this.text!==void 0||this.transcriptUrl(e)===void 0?this.note(void 0):this.shadow.getElementById("file-note").textContent===this.messages.loading&&this.note(void 0)}catch{this.note(this.messages.loadFailed,"error")}}onEdited(e){this.text=e;let t,r=!0;try{t=JSON.parse(e)}catch{r=!1}this.note(r?void 0:this.messages.invalid,"error");const s=this.current;if(r&&s&&typeof t=="object"&&t!==null&&!Array.isArray(t)&&this.applyFileToEvent(t,!0)&&this.fileChangedEvent(),s&&!s.url&&e.trim()!==""){const i=s.id??"1";s.url=`${i.startsWith("interview")?i:`interview-${i}`}.json`,this.field("url").value=s.url,this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{field:"url",event:s}}))}this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{field:"transcript",event:s,text:e}})),this.exchangesShown=this.showExchanges()}fileChangedEvent(){this.render(),this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:{field:"file",event:this.current}}))}async take(e){if(typeof e!="object"||e===null||!Array.isArray(e.segments)){this.note(this.messages.notATranscript,"error");return}const t=this.current;t&&this.applyFileToEvent(e,!1)&&this.fileChangedEvent();const r=u.pretty(t?u.withEventFields(e,t):e);await this.loadFileEditor(r).then(s=>s.replaceText(r,!1),()=>{}),this.shownFor=this.current,this.note(void 0),this.onEdited(r)}async importFromFile(e){try{const t=await e.text();let r;try{r=JSON.parse(t)}catch{r=void 0}if(typeof r!="object"||r===null){const{InterviewImport:s}=await w(async()=>{const{InterviewImport:o}=await import("./interviewImport-ym5iXO4Z.js");return{InterviewImport:o}},__vite__mapDeps([5,6,7]),import.meta.url),i=this.current,a=[i?.interviewOf].flat().filter(o=>typeof o=="string"),n=s.parse(t,{by:(i?.by??[]).map(o=>u.byText([o])).filter(o=>o!==""),witnesses:this.options.filter(o=>a.length===0||a.includes(o.id))});r=n&&{...n,transcription:{note:`Imported from ${e.name}: who speaks and when are as the file gave them, to be checked.`}}}r===void 0?this.note(this.messages.notATranscript,"error"):await this.take(r)}catch{this.note(this.messages.loadFailed,"error")}}async importFromUrl(e){try{await this.take(await C.json(new URL(e,this.base??location.href).href))}catch{this.note(this.messages.loadFailed,"error")}}save(){const e=this.fileEditor?.text??this.text;if(e===void 0)return;const t=(this.current?.url??"").split("/").pop()||`${this.current?.id??"interview"}.json`,r=URL.createObjectURL(new Blob([e],{type:"application/json"})),s=document.createElement("a");s.href=r,s.download=t,s.click(),URL.revokeObjectURL(r)}}function ye(){Y(),j(),customElements.get(_)||customElements.define(_,u)}export{S as INTERVIEW_CHANGE_EVENT,_ as INTERVIEW_EDITOR_ELEMENT_NAME,ke as INTERVIEW_SEEK_EVENT,u as InterviewEditorElement,ye as register};
@@ -1 +0,0 @@
1
- class t{static LABELS={en:{"in-person":"In person",phone:"Phone",video:"Video call",chat:"Chat",email:"Email",letter:"Letter",other:"Other"},fr:{"in-person":"Face à face",phone:"Téléphone",video:"Visioconférence",chat:"Chat",email:"Mail",letter:"Courrier",other:"Autre"},es:{"in-person":"En persona",phone:"Teléfono",video:"Videollamada",chat:"Chat",email:"Correo electrónico",letter:"Carta",other:"Otro"},it:{"in-person":"Di persona",phone:"Telefono",video:"Videochiamata",chat:"Chat",email:"Email",letter:"Lettera",other:"Altro"}};static ALL=["in-person","phone","video","chat","email","letter","other"];static label(e,o){return t.LABELS[o][e]??e}}export{t as InterviewMedia};
@@ -1 +0,0 @@
1
- const e={title:"Title",time:"When",by:"Interviewer",medium:"Medium",witness:"Witness",witnessNone:"—",summary:"Description",transcript:"Transcript",transcriptHint:"Address of the anonymised transcript file (optional)",summaryTab:"Summary",fileTab:"File",importFile:"Load a file",importFileHint:"JSON, text, WebVTT, SRT",inputFileFromFile:"from your disk",inputFileFromUrl:"from an address",inputFileModeHint:"Click to give it the other way: a file of yours, or an address",inputFileLoad:"Load",saveButton:"Save",loading:"Loading the transcript…",invalid:"This text is not valid JSON yet: the interview keeps the last transcript it understood.",notATranscript:"That file is not an interview transcript (it has no segments).",loadFailed:"That transcript could not be read.",editorLabel:"Interview transcript as JSON",byHint:"RR0 people ids, separated by commas",exchangesTab:"Exchanges",exchangesEmpty:"Nothing was said yet.",redacted:"Passage removed",colon:": ",proofreadAll:"Proofread by everyone.",proofreadPending:"Not proofread yet by: {names}",play:"Play",pause:"Pause",recordings:"Recordings ({n})",recordingsTitle:"Recordings",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Offset",recordingRemove:"Remove",recordingAdd:"Add a recording",close:"Close",noRecording:"No recording: add the audio or video file of the interview to listen to it.",redactSelection:"Take out the selection",redactedWords:"passage taken out · {n} word(s)",redactAll:"Take all out",redactRestore:"Restore",restoreAll:"Restore all",editTurn:"Edit",deleteTurn:"Delete this turn",saveTurn:"Save",cancelTurn:"Cancel",turnEditHint:"⟦ … ⟧ marks a passage taken out",selectionOnePassage:"The selection has to stay within one passage not taken out.",reviewedBy:"{name} has proofread",linkMoment:"Link to a moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Remove this link",noMoments:"The observation has no named moment yet.",redactReasonLabel:"Reason",redactReasonHint:"Said of every passage taken out next: the reader of the published interview sees it in the passage's place",redactReasons:["private life","identifying detail","off topic","recognition error"],redactReason:"taken out at proofreading",roles:{interviewer:"Interviewer",interviewee:"Interviewee",witness:"Witness",unattributed:"Voice to attribute"},transcribe:"Transcribe the recording",transcribeWith:"with",transcribeHint:"Turns the interview's recording into turns of speech, with their times. Whose each voice is stays to say, turn by turn (Who speaks), then to have proofread.",transcribeLocal:"Nothing leaves your computer. The first time, the model (about {mb} MB) is downloaded, then kept by the browser.",transcribeSends:"The recording will be sent to {name} to be transcribed.",transcribeReplaces:"The current transcript will be replaced.",transcribeNoRecording:"There is no recording of the interview yet: the button opens the window where you add it.",transcribeKey:"Key",transcribeKeyGet:"get a key",transcribeKeyHint:"Kept in memory until the page is reloaded, never stored",transcribeReading:"Reading the recording…",transcribeLoading:"Downloading the model: {loaded} of {total} MB",transcribeLoadingSoFar:"Downloading the model: {loaded} MB",transcribeSending:"Sending the recording to {name}…",transcribeWaiting:"{name} is transcribing the recording…",transcribeProgress:"Transcribing: {done} of {total}",transcribeStop:"Stop",transcribeDone:"Transcribed by {engine}. Say whose each voice is (Who speaks), then have it proofread.",transcribeStopped:"Transcription stopped: nothing was changed.",transcribeErrors:{noKey:"Type your key for this service first.",key:"The service refused the key.",rateLimited:"The service asks to wait (its quota is reached): try again later.",tooLarge:"The recording is too large to be read in the page: give its audio alone.",unsupported:"This browser cannot run the transcription.",failed:"The transcription failed: {detail}"},voiceNamed:"Voice {name}",whoSpeaks:"Who speaks…"};export{e as interviewMessages_en};
@@ -1 +0,0 @@
1
- const e={title:"Título",time:"Fecha",by:"Entrevistador",medium:"Medio",witness:"Testigo",witnessNone:"—",summary:"Descripción",transcript:"Transcripción",transcriptHint:"Dirección del archivo de transcripción anonimizada (opcional)",summaryTab:"Resumen",fileTab:"Archivo",importFile:"Cargar un archivo",importFileHint:"JSON, texto, WebVTT, SRT",inputFileFromFile:"desde su disco",inputFileFromUrl:"desde una dirección",inputFileModeHint:"Pulsar para darlo de la otra forma: un archivo suyo o una dirección",inputFileLoad:"Cargar",saveButton:"Guardar",loading:"Cargando la transcripción…",invalid:"Este texto aún no es JSON válido: la entrevista conserva la última transcripción que entendió.",notATranscript:"Ese archivo no es una transcripción de entrevista (no tiene turnos de palabra).",loadFailed:"No se pudo leer esa transcripción.",editorLabel:"Transcripción de la entrevista en JSON",byHint:"Identificadores de personas de RR0, separados por comas",exchangesTab:"Intercambios",exchangesEmpty:"Todavía no se ha dicho nada.",redacted:"Pasaje eliminado",colon:": ",proofreadAll:"Revisado por todos.",proofreadPending:"Aún no revisado por: {names}",play:"Reproducir",pause:"Pausa",recordings:"Grabaciones ({n})",recordingsTitle:"Grabaciones",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Vídeo",recordingFile:"Archivo",recordingOffset:"Desfase",recordingRemove:"Quitar",recordingAdd:"Añadir una grabación",close:"Cerrar",noRecording:"Sin grabación: añada el archivo de audio o vídeo de la entrevista para poder escucharla.",redactSelection:"Retirar la selección",redactedWords:"pasaje retirado · {n} palabra(s)",redactAll:"Retirar todo",redactRestore:"Restablecer",restoreAll:"Restablecer todo",editTurn:"Modificar",deleteTurn:"Eliminar este turno de palabra",saveTurn:"Guardar",cancelTurn:"Cancelar",turnEditHint:"⟦ … ⟧ marca un pasaje retirado",selectionOnePassage:"La selección debe caber en un solo pasaje no retirado.",reviewedBy:"{name} ha revisado",linkMoment:"Vincular a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Quitar este vínculo",noMoments:"La observación aún no tiene momentos con nombre.",redactReasonLabel:"Motivo",redactReasonHint:"Se dice de cada pasaje retirado a continuación: el lector de la entrevista publicada lo ve en lugar del pasaje",redactReasons:["vida privada","dato que identifica","fuera de tema","error de reconocimiento"],redactReason:"retirado en la revisión",roles:{interviewer:"Entrevistador",interviewee:"Entrevistado",witness:"Testigo",unattributed:"Voz por atribuir"},transcribe:"Transcribir la grabación",transcribeWith:"con",transcribeHint:"Convierte la grabación de la entrevista en turnos de palabra, con sus tiempos. De quién es cada voz queda por decir, turno por turno (Quién habla), y luego por hacer revisar.",transcribeLocal:"Nada sale de su ordenador. La primera vez, el modelo (unos {mb} MB) se descarga y el navegador lo conserva.",transcribeSends:"La grabación se enviará a {name} para ser transcrita.",transcribeReplaces:"La transcripción actual será reemplazada.",transcribeNoRecording:"La entrevista aún no tiene grabación: el botón abre la ventana donde añadirla.",transcribeKey:"Clave",transcribeKeyGet:"obtener una clave",transcribeKeyHint:"Se guarda en memoria hasta que se recarga la página, nunca se almacena",transcribeReading:"Leyendo la grabación…",transcribeLoading:"Descargando el modelo: {loaded} de {total} MB",transcribeLoadingSoFar:"Descargando el modelo: {loaded} MB",transcribeSending:"Enviando la grabación a {name}…",transcribeWaiting:"{name} transcribe la grabación…",transcribeProgress:"Transcribiendo: {done} de {total}",transcribeStop:"Detener",transcribeDone:"Transcrito por {engine}. Indique de quién es cada voz (Quién habla) y luego hágalo revisar.",transcribeStopped:"Transcripción detenida: no se ha cambiado nada.",transcribeErrors:{noKey:"Escriba primero su clave para este servicio.",key:"El servicio rechazó la clave.",rateLimited:"El servicio pide esperar (cuota alcanzada): inténtelo más tarde.",tooLarge:"La grabación es demasiado grande para leerse en la página: proporcione solo su audio.",unsupported:"Este navegador no puede ejecutar la transcripción.",failed:"La transcripción ha fallado: {detail}"},voiceNamed:"Voz {name}",whoSpeaks:"Quién habla…"};export{e as interviewMessages_es};
@@ -1 +0,0 @@
1
- const e={title:"Titre",time:"Date",by:"Enquêteur",medium:"Moyen",witness:"Témoin",witnessNone:"—",summary:"Description",transcript:"Transcription",transcriptHint:"Adresse du fichier de transcription anonymisée (facultative)",summaryTab:"Résumé",fileTab:"Fichier",importFile:"Charger un fichier",importFileHint:"JSON, texte, WebVTT, SRT",inputFileFromFile:"depuis votre disque",inputFileFromUrl:"depuis une adresse",inputFileModeHint:"Cliquer pour le donner autrement : un fichier à vous, ou une adresse",inputFileLoad:"Charger",saveButton:"Sauver",loading:"Chargement de la transcription…",invalid:"Ce texte n'est pas encore du JSON valide : l'interview garde la dernière transcription qu'elle a comprise.",notATranscript:"Ce fichier n'est pas une transcription d'interview (il n'a pas de tours de parole).",loadFailed:"Cette transcription n'a pas pu être lue.",editorLabel:"Transcription de l'interview en JSON",byHint:"Identifiants de personnes RR0, séparés par des virgules",exchangesTab:"Échanges",exchangesEmpty:"Rien n'a encore été dit.",redacted:"Passage retiré",colon:" : ",proofreadAll:"Relu par tous les participants.",proofreadPending:"Pas encore relu par : {names}",play:"Lecture",pause:"Pause",recordings:"Enregistrements ({n})",recordingsTitle:"Enregistrements",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Vidéo",recordingFile:"Fichier",recordingOffset:"Décalage",recordingRemove:"Retirer",recordingAdd:"Ajouter un enregistrement",close:"Fermer",noRecording:"Aucun enregistrement : ajoutez le fichier audio ou vidéo de l'entretien pour pouvoir l'écouter.",redactSelection:"Retirer la sélection",redactedWords:"passage retiré · {n} mot(s)",redactAll:"Retirer tout",redactRestore:"Rétablir",restoreAll:"Rétablir tout",editTurn:"Modifier",deleteTurn:"Supprimer ce tour de parole",saveTurn:"Enregistrer",cancelTurn:"Annuler",turnEditHint:"⟦ … ⟧ marque un passage retiré",selectionOnePassage:"La sélection doit tenir dans un seul passage non retiré.",reviewedBy:"{name} a relu",linkMoment:"Relier à un moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Retirer ce lien",noMoments:"L'observation n'a pas encore de moment nommé.",redactReasonLabel:"Raison",redactReasonHint:"Dite de chaque passage retiré ensuite : le lecteur de l'interview publiée la voit à la place du passage",redactReasons:["vie privée","détail qui identifie","hors sujet","erreur de reconnaissance"],redactReason:"retiré à la relecture",roles:{interviewer:"Intervieweur",interviewee:"Interviewé",witness:"Témoin",unattributed:"Voix à attribuer"},transcribe:"Transcrire l'enregistrement",transcribeWith:"avec",transcribeHint:"Fait de l'enregistrement de l'entretien des tours de parole, avec leurs instants. À qui est chaque voix reste à dire, tour par tour (Qui parle), puis à faire relire.",transcribeLocal:"Rien ne quitte votre ordinateur. La première fois, le modèle (environ {mb} Mo) est téléchargé, puis gardé par le navigateur.",transcribeSends:"L'enregistrement sera envoyé à {name} pour être transcrit.",transcribeReplaces:"La transcription actuelle sera remplacée.",transcribeNoRecording:"L'interview n'a pas encore d'enregistrement : le bouton ouvre la fenêtre où l'ajouter.",transcribeKey:"Clé",transcribeKeyGet:"obtenir une clé",transcribeKeyHint:"Gardée en mémoire jusqu'au rechargement de la page, jamais enregistrée",transcribeReading:"Lecture de l'enregistrement…",transcribeLoading:"Téléchargement du modèle : {loaded} sur {total} Mo",transcribeLoadingSoFar:"Téléchargement du modèle : {loaded} Mo",transcribeSending:"Envoi de l'enregistrement à {name}…",transcribeWaiting:"{name} transcrit l'enregistrement…",transcribeProgress:"Transcription : {done} sur {total}",transcribeStop:"Arrêter",transcribeDone:"Transcrit par {engine}. Dites à qui est chaque voix (Qui parle), puis faites relire.",transcribeStopped:"Transcription arrêtée : rien n'a été changé.",transcribeErrors:{noKey:"Saisissez d'abord votre clé pour ce service.",key:"Le service a refusé la clé.",rateLimited:"Le service demande d'attendre (quota atteint) : réessayez plus tard.",tooLarge:"L'enregistrement est trop gros pour être lu dans la page : donnez-en l'audio seul.",unsupported:"Ce navigateur ne peut pas faire tourner la transcription.",failed:"La transcription a échoué : {detail}"},voiceNamed:"Voix {name}",whoSpeaks:"Qui parle…"};export{e as interviewMessages_fr};
@@ -1 +0,0 @@
1
- const i={title:"Titolo",time:"Data",by:"Intervistatore",medium:"Mezzo",witness:"Testimone",witnessNone:"—",summary:"Descrizione",transcript:"Trascrizione",transcriptHint:"Indirizzo del file di trascrizione anonimizzata (facoltativo)",summaryTab:"Riepilogo",fileTab:"File",importFile:"Carica un file",importFileHint:"JSON, testo, WebVTT, SRT",inputFileFromFile:"dal proprio disco",inputFileFromUrl:"da un indirizzo",inputFileModeHint:"Fare clic per darlo nell'altro modo: un proprio file o un indirizzo",inputFileLoad:"Carica",saveButton:"Salva",loading:"Caricamento della trascrizione…",invalid:"Questo testo non è ancora JSON valido: l'intervista conserva l'ultima trascrizione che ha capito.",notATranscript:"Quel file non è una trascrizione di intervista (non ha turni di parola).",loadFailed:"Impossibile leggere quella trascrizione.",editorLabel:"Trascrizione dell'intervista in JSON",byHint:"Identificatori di persone RR0, separati da virgole",exchangesTab:"Scambi",exchangesEmpty:"Non è stato ancora detto nulla.",redacted:"Passaggio rimosso",colon:": ",proofreadAll:"Rivisto da tutti.",proofreadPending:"Non ancora rivisto da: {names}",play:"Riproduci",pause:"Pausa",recordings:"Registrazioni ({n})",recordingsTitle:"Registrazioni",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Scarto",recordingRemove:"Rimuovi",recordingAdd:"Aggiungi una registrazione",close:"Chiudi",noRecording:"Nessuna registrazione: aggiungi il file audio o video dell'intervista per poterla ascoltare.",redactSelection:"Rimuovi la selezione",redactedWords:"passaggio rimosso · {n} parola/e",redactAll:"Rimuovi tutto",redactRestore:"Ripristina",restoreAll:"Ripristina tutto",editTurn:"Modifica",deleteTurn:"Elimina questo turno",saveTurn:"Salva",cancelTurn:"Annulla",turnEditHint:"⟦ … ⟧ indica un passaggio rimosso",selectionOnePassage:"La selezione deve restare in un solo passaggio non rimosso.",reviewedBy:"{name} ha riletto",linkMoment:"Collega a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Rimuovi questo collegamento",noMoments:"L'osservazione non ha ancora momenti con nome.",redactReasonLabel:"Motivo",redactReasonHint:"Detto di ogni passaggio rimosso in seguito: il lettore dell'intervista pubblicata lo vede al posto del passaggio",redactReasons:["vita privata","dettaglio che identifica","fuori tema","errore di riconoscimento"],redactReason:"rimosso in rilettura",roles:{interviewer:"Intervistatore",interviewee:"Intervistato",witness:"Testimone",unattributed:"Voce da attribuire"},transcribe:"Trascrivi la registrazione",transcribeWith:"con",transcribeHint:"Trasforma la registrazione dell'intervista in turni di parola, con i loro tempi. Di chi sia ogni voce resta da dire, turno per turno (Chi parla), e poi da far rileggere.",transcribeLocal:"Nulla lascia il tuo computer. La prima volta il modello (circa {mb} MB) viene scaricato e poi conservato dal browser.",transcribeSends:"La registrazione sarà inviata a {name} per essere trascritta.",transcribeReplaces:"La trascrizione attuale sarà sostituita.",transcribeNoRecording:"L'intervista non ha ancora una registrazione: il pulsante apre la finestra dove aggiungerla.",transcribeKey:"Chiave",transcribeKeyGet:"ottieni una chiave",transcribeKeyHint:"Tenuta in memoria fino al ricaricamento della pagina, mai salvata",transcribeReading:"Lettura della registrazione…",transcribeLoading:"Download del modello: {loaded} di {total} MB",transcribeLoadingSoFar:"Download del modello: {loaded} MB",transcribeSending:"Invio della registrazione a {name}…",transcribeWaiting:"{name} trascrive la registrazione…",transcribeProgress:"Trascrizione: {done} di {total}",transcribeStop:"Interrompi",transcribeDone:"Trascritto da {engine}. Indica di chi è ogni voce (Chi parla), poi fai rileggere.",transcribeStopped:"Trascrizione interrotta: non è stato cambiato nulla.",transcribeErrors:{noKey:"Inserisci prima la tua chiave per questo servizio.",key:"Il servizio ha rifiutato la chiave.",rateLimited:"Il servizio chiede di attendere (quota raggiunta): riprova più tardi.",tooLarge:"La registrazione è troppo grande per essere letta nella pagina: fornisci solo il suo audio.",unsupported:"Questo browser non può eseguire la trascrizione.",failed:"La trascrizione non è riuscita: {detail}"},voiceNamed:"Voce {name}",whoSpeaks:"Chi parla…"};export{i as interviewMessages_it};
@@ -1,19 +0,0 @@
1
- import{G as s}from"./GeographicFigures-Ds8kfyn7.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./ShareDialogElement-C9Uiwt0F.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class e{static GROUPS=["observer","sight-line","body","trace"];static of(o,t,a,l){const n=s.of(o,a,l),c=e.GROUPS.map(r=>n.filter(i=>i.group===r)).filter(r=>r.length>0).map(r=>e.folder(r[0].groupName,r.map(i=>e.placemark(i))));return`<?xml version="1.0" encoding="UTF-8"?>
2
- <kml xmlns="http://www.opengis.net/kml/2.2">
3
- <Document>
4
- <name>${e.xml(s.fill(a.document,{name:t}))}</name>
5
- <description>${e.xml(`${a.documentNote} ${a.heightNote}`)}</description>
6
- ${c.join(`
7
- `)}
8
- </Document>
9
- </kml>
10
- `}static folder(o,t){return`<Folder>
11
- <name>${e.xml(o)}</name>
12
- ${t.join(`
13
- `)}
14
- </Folder>`}static placemark(o){const t=e.mode(o),l=(o.kind==="polygon"&&o.points.length>0?[...o.points,o.points[0]]:o.points).map(i=>`${s.round(i.lng,7)},${s.round(i.lat,7)},${s.round(i.altM,2)}`).join(" "),n=o.kind==="point"?"Point":o.kind==="line"?"LineString":"Polygon",c=n==="Polygon"?`<Polygon><altitudeMode>${t}</altitudeMode><outerBoundaryIs><LinearRing><coordinates>${l}</coordinates></LinearRing></outerBoundaryIs></Polygon>`:`<${n}>${n==="LineString"?"<tessellate>1</tessellate>":""}<altitudeMode>${t}</altitudeMode><coordinates>${l}</coordinates></${n}>`,r=o.color?`
15
- <Style><LineStyle><color>${e.abgr(o.color)}</color><width>2</width></LineStyle><PolyStyle><color>${e.abgr(o.color)}</color></PolyStyle></Style>`:"";return`<Placemark>
16
- <name>${e.xml(o.name)}</name>${o.note?`
17
- <description>${e.xml(o.note)}</description>`:""}${r}
18
- ${c}
19
- </Placemark>`}static mode(o){switch(o.heights){case"absolute":return"absolute";case"ground":return"clampToGround";default:return"relativeToGround"}}static abgr(o){const t=/^#?([0-9a-f]{6})$/i.exec(o.trim());if(!t)return"ff0000ff";const[a,l,n]=[0,2,4].map(c=>t[1].slice(c,c+2).toLowerCase());return`ff${n}${l}${a}`}static xml(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}export{e as KmlExport};
@@ -1,24 +0,0 @@
1
- import{M as u,_ as h,n as g,o as f}from"./rr0-ufoathome.mjs";import{d as p,P as y}from"./SaidPosition-CXZLm-ck.js";import{S as b}from"./SkyEventEditorStyle-CvY_AhbI.js";import{SkyLantern as o}from"./SkyLantern-DJT_Ibzh.js";import{s as T,b as w}from"./Sighting-Ch4eiBNK.js";import{P as A,a as E,E as v}from"./ParameterForm-DcVFxrcO.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const x=u.catalog({en:()=>h(()=>import("./LanternParameterTexts_en-CcnGd8UH.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_en),fr:()=>h(()=>import("./LanternParameterTexts_fr-P2JwYOUy.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_fr),es:()=>h(()=>import("./LanternParameterTexts_es-CUTgNutZ.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_es),it:()=>h(()=>import("./LanternParameterTexts_it-CzNnIUrX.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_it)});class i{static RELEASE="letGo";static LANTERNS="lanterns";static AIR="air";static LANTERN="eachLantern";static instant(e,t,n){return{type:"number",key:e,min:-36e3,max:36e3,step:1,unit:"s",scale:.001,required:!0,label:t,hint:n,group:i.LANTERNS}}static wind(e,t,n,s){return[{type:"number",key:`${e}.towardDeg`,min:0,max:360,step:1,unit:"°",group:i.AIR,hint:s,label:t},{type:"number",key:`${e}.speedMS`,min:0,max:60,step:.1,unit:"m/s",group:i.AIR,label:n}]}static SET={kind:"lantern",title:"skyLanterns",parameters:[{type:"said",key:"title",label:"name",group:i.RELEASE},{type:"position",key:"site.eastM",secondKey:"site.northM",saidKey:"site.saidPosition",native:"local",step:1,rangeM:1e5,group:i.RELEASE,label:"whereTheyAreLetGo",hint:"whereTheyAreLetGoFrom"},{type:"number",key:"site.altitudeM",min:-1e3,max:5e3,step:.1,unit:"m",group:i.RELEASE,effective:()=>0,label:"heightAboveThePlaceSGround",hint:"aGardenOnAHillAbove"},{type:"number",key:"site.originElevationM",min:-500,max:6e3,step:1,unit:"m",group:i.RELEASE,effective:()=>0,label:"thePlaceSGroundAboveThe",hint:"whatSetsHowThinTheAir"},{type:"number",key:"group.count",min:1,max:200,step:1,required:!0,group:i.LANTERNS,label:"howMany"},i.instant("group.fromT","firstLetGoAt","secondsOfTheRecordingBeforeIts"),i.instant("group.untilT","lastLetGoAt","secondsOfTheRecordingTheOthers"),{type:"number",key:"group.radiusM",min:0,max:5e3,step:1,unit:"m",group:i.LANTERNS,effective:()=>20,label:"letGoWithin",hint:"aCrowdLetsThemGoA"},{type:"number",key:"group.burnS.min",min:10,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>480,label:"burnsAtLeast",hint:"howLongEachBurnsFromWhen"},{type:"number",key:"group.burnS.max",min:10,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>900,label:"burnsAtMost"},{type:"number",key:"group.insideExcessK.min",min:10,max:400,step:1,unit:"K",group:i.LANTERNS,effective:()=>125,label:"hotterThanTheAirAtLeast",hint:"howMuchHotterThanTheAir"},{type:"number",key:"group.insideExcessK.max",min:10,max:400,step:1,unit:"K",group:i.LANTERNS,effective:()=>175,label:"hotterThanTheAirAtMost"},{type:"number",key:"group.burnedS",min:0,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>0,label:"alreadyBurntWhenLetGo",hint:"forLanternsTheAccountOnlyHas"},{type:"number",key:"group.seed",min:0,max:4294967295,step:1,group:i.LANTERNS,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFromAnother"},{type:"set",key:"group.explains",group:i.LANTERNS,label:"standForTheShapes",options:(e,t)=>{const n=t?.shapes??[],s=(e.group?.explains??[]).filter(r=>!n.some(l=>l.value===r));return[...n,...s.map(r=>({value:r,label:r}))]},empty:"noShape"},...i.wind("wind","windAtTheGroundTowards","windAtTheGroundSpeed","whereItBlowsTowardsWhichIs"),...i.wind("windAloft","windAloftTowards","windAloftSpeed","theWindHigherUpBlendedWith"),{type:"number",key:"windAloft.atM",min:10,max:1e4,step:10,unit:"m",group:i.AIR,label:"windAloftAt",hint:"metresAboveWhereTheyAreLet"},{type:"number",key:"airTemperatureC",min:-60,max:50,step:.5,unit:"°C",group:i.AIR,effective:()=>10,label:"airTemperature",hint:"atTheGroundFallingBy6"},{type:"number",key:"turbulence.horizontalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>o.TURBULENCE.horizontalMS,label:"gustsAcross",hint:"howFarTheAirSSpeed"},{type:"number",key:"turbulence.verticalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>o.TURBULENCE.verticalMS,label:"gustsUpAndDown"},{type:"number",key:"turbulence.timescaleS",min:1,max:600,step:1,unit:"s",group:i.AIR,effective:()=>o.TURBULENCE.timescaleS,label:"aGustLasts"},{type:"number",key:"lantern.luminousIntensityCd",min:.1,max:1e3,step:.1,unit:"cd",group:i.LANTERN,effective:()=>o.COMMON.luminousIntensityCd,label:"light",hint:"itsFlameSLightThroughThe"},{type:"choice",key:"lantern.shape",group:i.LANTERN,effective:()=>o.COMMON.shape,label:"shape",choices:[{value:"classic",label:"roundAtTheMouthSquareAt"},{value:"balloon",label:"balloonLobedTop"}]},{type:"colour",key:"lantern.paperColor",group:i.LANTERN,fallback:o.COMMON.paperColor,label:"paperColour",hint:"whatItLooksLikeByDay"},{type:"colour",key:"lantern.color",group:i.LANTERN,fallback:o.COMMON.color,label:"flameLight",hint:"itsFlameSLightThroughWhite"},{type:"number",key:"lantern.envelopeVolumeM3",min:.01,max:10,step:.01,unit:"m³",group:i.LANTERN,effective:()=>o.COMMON.envelopeVolumeM3,label:"airItHolds"},{type:"number",key:"lantern.massKg",min:.005,max:5,step:.001,unit:"kg",group:i.LANTERN,effective:()=>o.COMMON.massKg,label:"weightWhenLetGo"}]};static publish(){p.publish(i.SET)}}const S=u.catalog({en:()=>h(()=>import("./LanternEditorMessages_en-DaT3UNfD.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_en),fr:()=>h(()=>import("./LanternEditorMessages_fr-9mByTFMG.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_fr),es:()=>h(()=>import("./LanternEditorMessages_es-TDV5lKeJ.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_es),it:()=>h(()=>import("./LanternEditorMessages_it-MRkJnDQp.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_it)});class m{constructor(e,t,n){this.container=e,this.host=t,b.attach(e,"lantern-editor-part",m.STYLE),this.language=n,p.of("lantern")||i.publish(),this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;language;shown=[];static STYLE=`
2
- .lantern-editor-part, .lantern-editor-part #lantern-list, .lantern-editor-part .launch-fields { flex-basis: 100%; min-width: 0; }
3
- .lantern-editor-part .launch-editor, .lantern-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
4
- .lantern-editor-part [hidden] { display: none !important; }
5
- .lantern-editor-part .launch-intro { flex-basis: 100%; margin: 0; }
6
- .lantern-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr)); gap: 12px; align-items: start; }
7
- .lantern-editor-part .parameter-group { min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
8
- .lantern-editor-part .parameter-group > label { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; min-width: 0; max-width: 100%; }
9
- .lantern-editor-part .parameter-group > label > span { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
10
- .lantern-editor-part .parameter-row { width: 100%; min-width: 0; }
11
- .lantern-editor-part rr0-input-position { min-width: 0; max-width: 100%; }
12
- .lantern-editor-part rr0-input-position .position-from { flex-wrap: wrap; white-space: normal; min-width: 0; max-width: 100%; }
13
- .lantern-editor-part input, .lantern-editor-part select { min-width: 0; max-width: 100%; box-sizing: border-box; }
14
- .lantern-editor-part input[type="text"] { width: 12em; }
15
- .lantern-editor-part input.parameter-derived::placeholder { opacity: .65; }
16
- `;async setLanguage(e){const t=++this.languageToken;this.language=e;const[n,s]=await Promise.all([S.load(e),x.load(e)]);t===this.languageToken&&(this.messages=n,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(r=>r.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(r=>({id:r.id,label:this.labelOf(r)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("lantern-fields").hidden=t===void 0,!t)return;const n=t.releases?.length??0,s=this.element("lantern-releases");s.hidden=n===0,s.textContent=this.messages.releasesNote.replace("{n}",String(n)),this.form??=new A(this.element("lantern-parameters"),this.language,"lantern.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(i.SET),new E(()=>this.current,r=>this.editLaunch(l=>r(l)),()=>({shapes:this.host.shapes().map(r=>({value:r.id,label:r.label}))}),this.host.positionPlace?.()),()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;e.length===this.shown.length&&e.every((t,n)=>t.id===this.shown[n].id)||this.sync()}syncAddState(){const e=this.siteOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}resolved(e){return y.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
17
- <p class="launch-intro">${e.intro}</p>
18
- <div id="lantern-list"></div>
19
- <div id="lantern-fields" class="launch-fields">
20
- <div id="lantern-parameters" class="launch-parameters"></div>
21
- <p id="lantern-releases" class="launch-intro" hidden></p>
22
- <p class="launch-intro">${e.derivedNote}</p>
23
- </div>
24
- </div>`,this.list=new v({header:this.element("lantern-list"),body:this.element("lantern-fields"),ids:{list:"lantern-select",remove:"lantern-delete",add:"lantern-add"},onSelect:t=>{this.currentId=t,this.sync()},onAdd:()=>this.addLaunch(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none})}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}editLaunch(e){const t=this.current;if(!t)return;const n=structuredClone(t);e(n),this.writeLaunches(this.launches.map(s=>s===t?n:s)),this.host.changed()}siteOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const n=e.observerTrack?.getInterpolatedPoseAt(0),s=111320,r=n?.lng!==void 0?(n.lng-t.lng)*s*Math.cos(t.lat*Math.PI/180):0,l=n?.lat!==void 0?(n.lat-t.lat)*s:0;return{eastM:Math.round(r),northM:Math.round(l)}}addLaunch(){const e=this.siteOfNew();if(!e)return;let t=this.launches.length+1;for(;this.launches.some(c=>c.id===`lanterns-${t}`);)t++;const n=this.host.sighting(),s=T(n.event)??this.host.duration?.()??n.timeline?.duration,r=s!==void 0&&Number.isFinite(s)&&s>0?Math.min(s,12e4):12e4,l=w(n,0),d={id:`lanterns-${t}`,site:e,group:{count:12,fromT:0,untilT:r,seed:t},wind:{towardDeg:Math.round((l.windDirectionDeg+180)%360),speedMS:Math.round(l.windSpeed*10)/10}};this.writeLaunches([...this.launches,d]),this.currentId=d.id,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeLaunches(this.launches.filter(t=>t!==e)),this.host.changed(),this.sync())}writeLaunches(e){const t=this.host.sighting(),n={...t.interpretation??{bodies:[]},lanterns:e.length>0?e:void 0};n.lanterns===void 0&&delete n.lanterns;const s=g.saysNothing(n,f.kinds());t.interpretation=s?void 0:n}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().interpretation?.lanterns??[]}element(e){return this.container.querySelector(`#${e}`)}}export{m as LanternEditor};
@@ -1,22 +0,0 @@
1
- import{M as y,_ as d}from"./rr0-ufoathome.mjs";import{d as b,P as E,I as g}from"./SaidPosition-CXZLm-ck.js";import{S as w}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as v}from"./LaunchPlume-DdeLDyDg.js";import{cC as j}from"./ShareDialogElement-C9Uiwt0F.js";import{P as x,E as k,a as T}from"./ParameterForm-DcVFxrcO.js";import{T as I}from"./TimelineTracks-BgZmkKhn.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";const S=y.catalog({en:()=>d(()=>import("./LaunchParameterTexts_en-DvrCwbDM.js"),[],import.meta.url).then(r=>r.launchParameterTexts_en),fr:()=>d(()=>import("./LaunchParameterTexts_fr-Bh_1zVzy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_fr),es:()=>d(()=>import("./LaunchParameterTexts_es--RUAegVp.js"),[],import.meta.url).then(r=>r.launchParameterTexts_es),it:()=>d(()=>import("./LaunchParameterTexts_it-CWDx9nJy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_it)});class n{static plumeValue(e){return t=>v.plumeOf(t)[e]}static plume(e,t){return{type:"number",key:`plume.${e}`,effective:n.plumeValue(e),...t}}static burn(e,t){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t.label,hint:t.hint,group:"engine",effective:i=>t.ends(i.track??[])?.t}}static placeAt(e,t){if(e.length===0)return{t,lat:0,lng:0,altitudeKm:0};if(e.length===1)return{t,lat:e[0].lat,lng:e[0].lng,altitudeKm:e[0].altitudeKm};let i=0;for(;i<e.length-2&&e[i+1].t<t;)i++;const s=e[i],a=e[i+1],l=a.t===s.t?0:(t-s.t)/(a.t-s.t),c=(m,h)=>m+(h-m)*l;return{t,lat:c(s.lat,a.lat),lng:c(s.lng,a.lng),altitudeKm:Math.max(0,c(s.altitudeKm,a.altitudeKm))}}static instantsOf(e){return[...e.track.map(t=>t.t),...[e.burnFromT,e.burnUntilT].filter(t=>t!==void 0),...(e.jets??[]).flatMap(t=>[t.fromT,t.untilT])]}static SET={kind:"launch",title:"launch",parameters:[{type:"said",key:"title",label:"name",group:"vehicle"},{type:"text",key:"vehicle.mission",label:"mission",placeholder:"Starlink Group 10-49",group:"vehicle"},{type:"number",key:"vehicle.engine.thrustKN",min:1,max:1e5,step:1,unit:"kN",label:"thrustVacuum",hint:"merlinVacuum934Rl10110A",group:"engine"},{type:"number",key:"vehicle.engine.specificImpulseS",min:100,max:500,step:1,unit:"s",label:"specificImpulseVacuum",hint:"times981MSIt",group:"engine"},{type:"choice",key:"vehicle.engine.propellant",label:"propellant",hint:"whatTheExhaustIsMadeOf",choices:[{value:"rp1-lox",label:"keroseneAndOxygen"},{value:"methane-lox",label:"methaneAndOxygen"},{value:"hydrogen-lox",label:"hydrogenAndOxygen"},{value:"hypergolic",label:"hypergolic"},{value:"solid",label:"solid"}],group:"engine"},n.burn("burnFromT",{label:"engineStart",hint:"whenTheEngineStartedInSeconds",ends:e=>e[0]}),n.burn("burnUntilT",{label:"engineCutOff",hint:"whenTheEngineStoppedInSeconds",ends:e=>e[e.length-1]}),n.plume("exhaustKgPerS",{min:.1,max:1e5,step:.1,unit:"kg/s",label:"exhaustFlow",hint:"howMuchExhaustLeavesTheEngine",group:"plume"}),n.plume("condensedShare",{min:0,max:1,step:.01,label:"shareThatScatters",hint:"theShareOfTheExhaustThat",group:"plume"}),n.plume("particleRadiusUm",{min:.05,max:5,step:.05,unit:"µm",label:"particleRadius",group:"plume"}),n.plume("lifetimeS",{min:10,max:3600,step:10,unit:"s",label:"trailLifetime",hint:"howLongTheNarrowTrailLasts",group:"plume"}),n.plume("expansionKmPerS",{min:0,max:5,step:.01,unit:"km/s",label:"trailSpreading",group:"plume"}),n.plume("initialRadiusKm",{min:0,max:50,step:.1,unit:"km",label:"radiusAtRelease",group:"plume"}),n.plume("collarShare",{min:0,max:1,step:.01,label:"shareInTheCollar",hint:"theCollarIsTheExhaustJust",group:"collar"}),n.plume("collarExpansionKmPerS",{min:0,max:10,step:.05,unit:"km/s",label:"collarSpreading",hint:"howFastTheCollarWidensThree",group:"collar"}),n.plume("collarLifetimeS",{min:1,max:300,step:1,unit:"s",label:"collarLifetime",group:"collar"})]};static PLACE={kind:"launch-place",title:"placeOfThePath",parameters:[{type:"number",key:"t",min:-3600,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"time",hint:"secondsOfTheRecordingNegativeBefore"},{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,label:"position"},{type:"number",key:"altitudeKm",min:0,max:2e3,step:.1,unit:"km",required:!0,label:"altitude"}]};static jetContext(e,t){return{launch:e,index:t}}static jetValue(e){return(t,i)=>{const{launch:s,index:a}=i??{};return s?e(v.releaseOf(s,t,a)):void 0}}static JET_GROUP="jet";static JET={kind:"launch-jet",title:"jet",parameters:[{type:"choice",key:"kind",required:!0,label:"what",choices:[{value:"burn",label:"engineBurn"},{value:"vent",label:"propellantVented"}],group:n.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"from",hint:"secondsOfTheRecordingNegativeBefore2",group:n.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"until",group:n.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:"directionFromAft",hint:"t0StraightBackAlongTheStage",group:n.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:"side",hint:"roundTheLineOfMotionWhich",group:n.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:"spinPeriod",hint:"howLongTheStageTakesTo",group:n.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:n.jetValue(e=>e.speedKmPerS),label:"speed",hint:"howFastItLeavesTheStage",group:n.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:n.jetValue(e=>e.massKgPerS),label:"flow",group:n.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:n.jetValue(e=>e.condensedShare),label:"shareThatScatters",group:n.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:n.jetValue(e=>e.particleRadiusUm),label:"particleRadius",group:n.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:n.jetValue(e=>e.populations[0].expansionKmPerS),label:"spreading",hint:"howFastEachPuffOfIt",group:n.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:n.jetValue(e=>e.initialRadiusKm),label:"radiusAtRelease",group:n.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:n.jetValue(e=>e.populations[0].lifetimeS),label:"lifetime",group:n.JET_GROUP}]};static publish(){b.publish(n.SET)}}const P=y.catalog({en:()=>d(()=>import("./LaunchEditorMessages_en-BnzNAYW9.js"),[],import.meta.url).then(r=>r.launchEditorMessages_en),fr:()=>d(()=>import("./LaunchEditorMessages_fr-Ds_VOB8c.js"),[],import.meta.url).then(r=>r.launchEditorMessages_fr),es:()=>d(()=>import("./LaunchEditorMessages_es-BE0dEl7I.js"),[],import.meta.url).then(r=>r.launchEditorMessages_es),it:()=>d(()=>import("./LaunchEditorMessages_it-DPQaR8HY.js"),[],import.meta.url).then(r=>r.launchEditorMessages_it)});class u{constructor(e,t,i){this.container=e,this.host=t,w.attach(e,"launch-editor-part",u.STYLE),this.language=i,b.of("launch")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="path";placeForm;placeIndex=0;jetForm;jetIndex=0;language;shown=[];static STYLE='.launch-editor-part { flex-basis: 100%; min-width: 0; } .launch-editor-part #launch-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .launch-editor-part .launch-path > .icon-btn { align-self: flex-end; } .launch-editor-part #launch-list, .launch-editor-part #launch-places { flex-basis: 100%; min-width: 0; } .launch-editor-part .launch-editor, .launch-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .launch-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .launch-editor-part [hidden] { display: none !important; } .launch-editor-part select { min-width: 0; width: 100%; } .launch-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-track { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .launch-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .launch-editor-part input, .launch-editor-part select { max-width: 100%; box-sizing: border-box; } .launch-editor-part input[type="text"] { width: 12em; } .launch-editor-part #launch-title { width: 18em; } .launch-editor-part label { min-width: 0; max-width: 100%; } .launch-editor-part input.parameter-derived::placeholder { opacity: .65; } .launch-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([P.load(e),S.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlace(!0),this.syncJet(!0);const i=this.resolved(b.of("launch"));this.form??=new x(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;if(e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.jetIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
2
- <p class="launch-intro">${e.intro}</p>
3
- <div id="launch-list"></div>
4
- <div id="launch-fields" class="launch-fields">
5
- <div id="launch-parameters" class="launch-parameters"></div>
6
- <div id="launch-timeline" class="launch-timeline"></div>
7
- <button id="launch-jet-add-burn" type="button" title="${e.addJet}">${g.PLUS} ${e.jetBurn}</button>
8
- <button id="launch-jet-add-vent" type="button" title="${e.addJet}">${g.PLUS} ${e.jetVent}</button>
9
- <p class="launch-intro">${e.timelineNote}</p>
10
- <fieldset id="launch-path" class="launch-path">
11
- <legend>${e.path}</legend>
12
- <div id="launch-place-parameters" class="launch-parameters"></div>
13
- <button id="launch-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${g.TRASH}</button>
14
- </fieldset>
15
- <fieldset id="launch-jets" class="launch-path">
16
- <legend id="launch-jet-legend">${e.jet}</legend>
17
- <div id="launch-jet-parameters" class="launch-parameters"></div>
18
- <button id="launch-jet-delete" class="icon-btn" type="button" title="${e.deleteJet}" aria-label="${e.deleteJet}">${g.TRASH}</button>
19
- </fieldset>
20
- <p class="launch-intro">${e.derivedNote}</p>
21
- </div>
22
- </div>`;const t=this.element("launch-list");this.list=new k({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:i=>`launch-add-${i}`},onSelect:i=>this.show(i),onAdd:i=>this.addLaunch(i??u.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(u.VEHICLES.map(i=>({value:i.id,label:i.vehicle.name??i.id}))),this.timeline=new I(this.element("launch-timeline"),i=>this.host.seekTo(i),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.element("launch-jet-add-burn").addEventListener("click",()=>this.addJet("burn",this.host.currentTime())),this.element("launch-jet-add-vent").addEventListener("click",()=>this.addJet("vent",this.host.currentTime())),this.element("launch-place-delete").addEventListener("click",()=>this.removePlace()),this.element("launch-jet-delete").addEventListener("click",()=>this.removeJet()),this.placeForm=void 0,this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline())}static PATH_COLOR="#e08a1e";static JET_COLOR="#4f8fd6";jetLabel(e,t){return`${e.kind==="vent"?this.messages.jetVent:this.messages.jetBurn} ${t+1}`}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const i={id:"path",label:this.messages.path,color:u.PATH_COLOR,times:e.track.map(h=>h.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(h,o)=>{const p=o===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===o);this.selectPlace(p>=0?p:this.placeIndex)},move:(h,o)=>this.movePlace(h,o),add:()=>this.addPlaceAt(this.host.currentTime())},s=(e.jets??[]).map((h,o)=>({id:`jet-${o}`,label:this.jetLabel(h,o),color:u.JET_COLOR,times:[h.fromT,h.untilT],spans:[{t:h.fromT,until:h.untilT,label:""}],active:this.row==="jet"&&o===this.jetIndex,open:()=>this.selectJet(o),pressed:()=>this.selectJet(o),move:(p,f)=>this.moveJetEnd(o,p,f),add:()=>this.addJet(h.kind??"burn",this.host.currentTime())})),a=n.instantsOf(e),l=Math.min(...a),c=Math.max(...a),m=Math.max(500,(c-l)/10);this.timeline.show([i,...s],this.host.duration(),this.host.currentTime(),{from:l-m,to:c+m})}syncDetail(){const t=this.current?.jets?.[this.jetIndex];this.row==="jet"&&!t&&(this.row="path"),this.element("launch-path").hidden=this.row!=="path",this.element("launch-jets").hidden=this.row!=="jet",this.element("launch-jet-legend").textContent=t?this.jetLabel(t,this.jetIndex):this.messages.jet}static MIN_PLACES=2;syncPlace(e=!1){const t=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.element("launch-place-delete").disabled=t.length<=u.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(this.resolved(n.PLACE),new T(()=>this.current?.track[this.placeIndex],i=>this.editPlace(this.placeIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncDetail(),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncPlace(!0)}editPlace(e,t){const i=this.current;if(!i)return;const s={...i.track[e]};t(s),i.track=i.track.map((a,l)=>l===e?s:a).sort((a,l)=>a.t-l.t),this.placeIndex=i.track.indexOf(s),this.syncPlace(),this.written()}movePlace(e,t){const i=this.current?.track.findIndex(s=>s.t===e)??-1;i<0||(this.editPlace(i,s=>{s.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const i=t.track.findIndex(s=>Math.abs(s.t-e)<1);if(i<0){const s=n.placeAt(t.track,Math.round(e));t.track=[...t.track,s].sort((a,l)=>a.t-l.t),this.host.changed(),this.selectPlace(t.track.indexOf(s));return}this.selectPlace(i)}removePlace(){const e=this.current;!e||e.track.length<=u.MIN_PLACES||(e.track=e.track.filter((t,i)=>i!==this.placeIndex),this.syncPlace(!0),this.host.changed())}syncJet(e=!1){const t=this.current?.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,t.length-1)),this.jetForm?this.jetForm.sync(e):(this.jetForm=new x(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(this.resolved(n.JET),new T(()=>this.current?.jets?.[this.jetIndex],i=>this.editJet(this.jetIndex,i),()=>this.current?n.jetContext(this.current,this.jetIndex):void 0),()=>{})),this.syncDetail(),this.syncTimeline()}selectJet(e){this.row="jet",this.jetIndex=e,this.syncJet(!0)}editJet(e,t){const i=this.current;if(!i?.jets)return;const s={...i.jets[e]};t(s),i.jets=i.jets.map((a,l)=>l===e?s:a),this.written()}moveJetEnd(e,t,i){const s=this.current?.jets?.[e];s&&(this.editJet(e,a=>{const l=t===s.fromT?[i,s.untilT]:[s.fromT,i];a.fromT=Math.min(l[0],l[1]),a.untilT=Math.max(l[0],l[1])}),this.selectJet(e))}addJet(e,t){const i=this.current;if(!i)return;const s=i.track,a=Math.round(t),l=e==="vent"?{kind:e,fromT:a,untilT:a+3e4,angleDeg:90}:{kind:e,fromT:a,untilT:a+3e4};!i.jets?.length&&i.burnFromT===void 0&&i.burnUntilT===void 0&&(i.burnFromT=s[0].t,i.burnUntilT=s[s.length-1].t),i.jets=[...i.jets??[],l],this.form?.sync(!0),this.host.changed(),this.selectJet(i.jets.length-1)}removeJet(){const e=this.current;if(!e?.jets?.length)return;const t=e.jets.filter((i,s)=>s!==this.jetIndex);t.length?e.jets=t:delete e.jets,this.host.changed(),t.length?this.selectJet(Math.min(this.jetIndex,t.length-1)):this.selectPlace(this.placeIndex)}startOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=a=>({lat:t.lat+a*Math.cos(i)/111.32,lng:t.lng+a*Math.sin(i)/(111.32*Math.max(.05,Math.cos(t.lat*Math.PI/180)))});return[{t:0,...s(300),altitudeKm:80},{t:6e4,...s(450),altitudeKm:160}]}static VEHICLES=[{id:"falcon-9",vehicle:{name:"Falcon 9"}}];addLaunch(e){const t=this.startOfNew();if(!t)return;const i=u.VEHICLES.find(c=>c.id===e)??u.VEHICLES[0];let s=this.launches.length+1;for(;this.launches.some(c=>c.id===`launch-${s}`);)s++;const a={id:`launch-${s}`,vehicle:{...i.vehicle},track:t},l=this.host.sighting();l.skyEvents={...l.skyEvents,launches:[...this.launches,a]},this.currentId=a.id,this.row="path",this.placeIndex=0,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;if(!e)return;this.currentId=void 0;const t=this.host.sighting();t.skyEvents=j.written({...t.skyEvents,launches:this.launches.filter(i=>i!==e)}),this.host.changed(),this.sync()}labelOf(e){const t=this.host.said().read(e.title)??e.vehicle?.mission??e.vehicle?.name;return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().skyEvents?.launches??[]}element(e){return this.container.querySelector(`#${e}`)}}export{u as LaunchEditor};
@@ -1 +0,0 @@
1
- import{L as M}from"./LaunchPlume-DdeLDyDg.js";import{b2 as T,bg as z,bj as f,bb as C,cD as w,cE as A}from"./ShareDialogElement-C9Uiwt0F.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class n{static RADIUS=840;static MAX_PUFFS=1e3;static RINGS=[0,.25,.5,.75,1,1.25];static COLUMN=n.RINGS.map(t=>{const i=o=>Math.exp(-((o/M.SIGMA_OF_RADIUS)**2)/2),s=i(n.RINGS[n.RINGS.length-1]);return Math.max(0,(i(t)-s)/(1-s))});static SECTORS=12;static VERTICES_PER_PUFF=n.SECTORS*(3+6*(n.RINGS.length-2));static BRIGHTEST_RELATIVE=6e4;object=new T;mesh;positions=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);colors=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);shown=0;drawn=[];static VISIBLE_CONTRAST=.1;constructor(){this.object.name="plumes";const t=new z;t.setAttribute("position",new f(this.positions,3)),t.setAttribute("color",new f(this.colors,3)),t.setDrawRange(0,0),this.mesh=new C(t,w.material()),this.mesh.frustumCulled=!1,w.track(this.mesh),this.object.add(this.mesh)}get count(){return this.shown}set(t,i,s,o){let h=0,e=0;this.drawn=[];for(const u of t){if(e>=n.MAX_PUFFS)break;const d=o(u.centre);if(d<=0)continue;const a=s(u.centre),r=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,u.luminanceCdM2*(u.colour?.[g]??1)*i*u.sunTransmittance[g]*a[g]*d));Math.max(...r)<=0||(h=this.pushPuff(h,u,r),this.drawn.push({view:u,direction:this.normalise(A(u.centre.altitudeDeg,u.centre.azimuthDeg,1)),radiusRad:u.radiusDeg*Math.PI/180,luminance:.2126*r[0]+.7152*r[1]+.0722*r[2]}),e++)}this.shown=e;const p=this.mesh.geometry;p.setDrawRange(0,h),p.getAttribute("position").needsUpdate=!0,p.getAttribute("color").needsUpdate=!0}pushPuff(t,i,s){const o=A(i.centre.altitudeDeg,i.centre.azimuthDeg,n.RADIUS),h=this.normalise(o),e=this.normalise(this.cross({x:0,y:1,z:0},h)),p=this.cross(h,e),u=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(r,g)=>{const c=g/n.SECTORS*2*Math.PI,I=n.RINGS[r]*u,R=Math.cos(c)*I,l=Math.sin(c)*I;return{x:o.x+e.x*R+p.x*l,y:o.y+e.y*R+p.y*l,z:o.z+e.z*R+p.z*l}},a=r=>n.COLUMN[r];for(let r=0;r<n.SECTORS;r++){const g=(r+1)%n.SECTORS;t=this.push(t,o,s,a(0)),t=this.push(t,d(1,r),s,a(1)),t=this.push(t,d(1,g),s,a(1));for(let c=1;c<n.RINGS.length-1;c++){const I=d(c,r),R=d(c,g),l=d(c+1,r),E=d(c+1,g);t=this.push(t,I,s,a(c)),t=this.push(t,R,s,a(c)),t=this.push(t,l,s,a(c+1)),t=this.push(t,R,s,a(c)),t=this.push(t,E,s,a(c+1)),t=this.push(t,l,s,a(c+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,e;for(const p of this.drawn){const u=Math.max(-1,Math.min(1,o.x*p.direction.x+o.y*p.direction.y+o.z*p.direction.z)),d=Math.max(0,Math.acos(u)-i)/Math.max(p.radiusRad,1e-9),a=p.luminance*n.profile(d);a<=0||(h+=a,(!e||a>e.light)&&(e={view:p.view,light:a}))}return e&&h>=n.VISIBLE_CONTRAST*s?e.view:void 0}static profile(t){const i=n.RINGS;if(t>=i[i.length-1])return 0;let s=0;for(;t>i[s+1];)s++;const o=(t-i[s])/(i[s+1]-i[s]);return n.COLUMN[s]+(n.COLUMN[s+1]-n.COLUMN[s])*o}push(t,i,s,o){const h=t*3;return this.positions[h]=i.x,this.positions[h+1]=i.y,this.positions[h+2]=i.z,this.colors[h]=s[0]*o,this.colors[h+1]=s[1]*o,this.colors[h+2]=s[2]*o,t+1}cross(t,i){return this.normalise({x:t.y*i.z-t.z*i.y,y:t.z*i.x-t.x*i.z,z:t.x*i.y-t.y*i.x})}normalise(t){const i=Math.hypot(t.x,t.y,t.z)||1;return{x:t.x/i,y:t.y/i,z:t.z/i}}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.object.removeFromParent()}}class k{inSky=!0;plumes=new n;get object(){return this.plumes.object}get drawnCount(){return this.plumes.count}update(t,i,s){const o=t.length===0||!s.date?[]:M.viewsAt(t,i,s.observer,M.sunDirectionAt(s.date));o.length===0&&this.plumes.count===0||this.plumes.set(o,s.relativeScale,h=>s.transmittanceFromSpace(h),h=>s.cloudTransmission(h))}pick(t,i,s){const o=this.plumes.pickAt(i,s.toleranceRad,s.skyLightTowards(i));return o&&{id:o.launchId,detail:o}}dispose(){this.plumes.dispose()}}export{k as LaunchSimulation};