@rr0/ufoathome 0.200.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 (436) 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/{AirshipEditor-B0RloPOv.js → AirshipEditor-BnRmKeVs.js} +1 -1
  7. package/dist-embed-scene/{AirshipFlight-D6tC26P5.js → AirshipFlight-C9DSPGwk.js} +1 -1
  8. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  9. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  10. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  11. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  12. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  13. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  14. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  15. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  16. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  17. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  18. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  19. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  20. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  21. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  22. package/dist-embed-scene/AuroraSimulation-BZpjImM0.js +152 -0
  23. package/dist-embed-scene/{BalloonEditor-D1b8pmSn.js → BalloonEditor-BehJs6H-.js} +2 -2
  24. package/dist-embed-scene/{BalloonFlight-D015vbBe.js → BalloonFlight-BYn4diw1.js} +1 -1
  25. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  26. package/dist-embed-scene/{BirdEditor-CxGMe4UD.js → BirdEditor-dOp1sGsz.js} +1 -1
  27. package/dist-embed-scene/{BirdFlock-D2mckZ_l.js → BirdFlock-CfJeXvWu.js} +1 -1
  28. package/dist-embed-scene/{DroneEditor-BNGmR5II.js → DroneEditor-CBoR4fJ_.js} +1 -1
  29. package/dist-embed-scene/{DroneFlight-DKHsNqDw.js → DroneFlight-DSE1OXqh.js} +1 -1
  30. package/dist-embed-scene/{DroneParameters-Bq6XBchK.js → DroneParameters-D3EOg4oe.js} +1 -1
  31. package/dist-embed-scene/{LanternEditor-FU0WHV3j.js → LanternEditor-CbcA7K8y.js} +2 -2
  32. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  33. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  34. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  35. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  36. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  37. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  38. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  39. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  40. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  41. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  42. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  43. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  44. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  45. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  46. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  47. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  48. package/dist-embed-scene/{SkyLantern-a9qLkbZo.js → SkyLantern-Dp_B40X0.js} +1 -1
  49. package/dist-embed-scene/rr0-scene.mjs +397 -322
  50. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  51. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  52. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  53. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  54. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  55. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  56. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  57. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  58. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  59. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  60. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  61. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  62. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  63. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  64. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  65. package/dist-embed-sighting/AuroraSimulation-C9hvCV0W.js +152 -0
  66. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  67. package/dist-embed-sighting/{CaseReportExport-B13vvVvn.js → CaseReportExport-DVVsc8gA.js} +1 -1
  68. package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +1 -0
  69. package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +1 -0
  70. package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +1 -0
  71. package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +1 -0
  72. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  73. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  74. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  75. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  76. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  77. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  78. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  79. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  80. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  81. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  82. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  83. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  84. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  85. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  86. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  87. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  88. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  89. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  90. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  91. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  92. package/dist-embed-sighting/rr0-sighting.mjs +412 -337
  93. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  94. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-CWpyBqG3.js} +1 -1
  95. package/dist-embed-sighting-editor/AirshipEditor-BvnVNcF4.js +16 -0
  96. package/dist-embed-sighting-editor/{AirshipFlight-Bh7J0sWg.js → AirshipFlight-CB1Quf68.js} +1 -1
  97. package/dist-embed-sighting-editor/Aurora-BRXvgyRM.js +1 -0
  98. package/dist-embed-sighting-editor/AuroraEditor-JQ3kRqrq.js +8 -0
  99. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  100. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  101. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  102. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  103. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  104. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  105. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  106. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  107. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  108. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  109. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  110. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  111. package/dist-embed-sighting-editor/AuroraSimulation-i64MFW2z.js +152 -0
  112. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BNfSwq_l.js → BallesterGuaspAssessor-BaKKAdY3.js} +1 -1
  113. package/dist-embed-sighting-editor/BalloonEditor-C2oHClW7.js +24 -0
  114. package/dist-embed-sighting-editor/{BalloonFlight-DqwGZzum.js → BalloonFlight-B9A6MoCj.js} +1 -1
  115. package/dist-embed-sighting-editor/{BeamEditor-C9VQ2YBN.js → BeamEditor-CW7mTQjS.js} +1 -1
  116. package/dist-embed-sighting-editor/BeamSystem-CSfJjLCb.js +1 -0
  117. package/dist-embed-sighting-editor/BirdEditor-BdxhCoW9.js +16 -0
  118. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-DCbrukNp.js} +1 -1
  119. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-DE8ZQrqe.js} +1 -1
  120. package/dist-embed-sighting-editor/{CaseElement-D_ItKhFD.js → CaseElement-C46wM-nU.js} +3 -3
  121. package/dist-embed-sighting-editor/{CaseReportExport-BSLhYJJA.js → CaseReportExport-UVrInf6H.js} +3 -3
  122. package/dist-embed-sighting-editor/{ContrailSystem-C8K88Cwo.js → ContrailSystem-CDSSxouG.js} +1 -1
  123. package/dist-embed-sighting-editor/{ControlPasses-DNMyuRwb.js → ControlPasses-CsOVa-jq.js} +1 -1
  124. package/dist-embed-sighting-editor/{CoverageAssessor-p-LX-eEi.js → CoverageAssessor-DWY_gJJX.js} +1 -1
  125. package/dist-embed-sighting-editor/{DroneEditor-v0oaeAUh.js → DroneEditor-DgeuaHdb.js} +1 -1
  126. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-CFztr-9j.js} +1 -1
  127. package/dist-embed-sighting-editor/{DroneParameters-B1oTz3dZ.js → DroneParameters-CHmDmRoC.js} +1 -1
  128. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-e6_3o9Jf.js} +1 -1
  129. package/dist-embed-sighting-editor/{GLTFLoader-DT3hr416.js → GLTFLoader-Df-r7_lf.js} +1 -1
  130. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-CmqG-T2c.js} +1 -1
  131. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Wjc5YKlM.js} +1 -1
  132. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-BSPGzTbG.js} +1 -1
  133. package/dist-embed-sighting-editor/GeographicFigures-D_TfLkj9.js +1 -0
  134. package/dist-embed-sighting-editor/{HeadlightSystem-DHoSdTng.js → HeadlightSystem-DljWmzj5.js} +1 -1
  135. package/dist-embed-sighting-editor/{HynekAssessor-ByXW15nZ.js → HynekAssessor-BCDwoOI9.js} +1 -1
  136. package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +277 -0
  137. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-DDa53uMq.js} +1 -1
  138. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  139. package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +1 -0
  140. package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +1 -0
  141. package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +1 -0
  142. package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +1 -0
  143. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-B46AfaoJ.js} +1 -1
  144. package/dist-embed-sighting-editor/LanternEditor-CkbeitJh.js +24 -0
  145. package/dist-embed-sighting-editor/{LaserBeam-iHLKAi5q.js → LaserBeam-Ber-PT8j.js} +1 -1
  146. package/dist-embed-sighting-editor/LaunchEditor-BsvHahqK.js +22 -0
  147. package/dist-embed-sighting-editor/{LaunchPlume-BJwW1kU1.js → LaunchPlume-BmPMeGMN.js} +1 -1
  148. package/dist-embed-sighting-editor/LaunchSimulation-g-ETWhEH.js +1 -0
  149. package/dist-embed-sighting-editor/ModelSource-DOUnBBhu.js +1 -0
  150. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-TwG1snwZ.js} +1 -1
  151. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-Y_B6eM4z.js} +1 -1
  152. package/dist-embed-sighting-editor/ModuleConformance-CO1S9pa3.js +2 -0
  153. package/dist-embed-sighting-editor/ModuleSession-VLS0tjAb.js +3 -0
  154. package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +1 -0
  155. package/dist-embed-sighting-editor/{ModulesPanelElement-B9R5rI0T.js → ModulesPanelElement--YQ0QtcW.js} +3 -3
  156. package/dist-embed-sighting-editor/{NearestApproach-pefE2Svz.js → NearestApproach-C_8Uvp6i.js} +1 -1
  157. package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +1 -0
  158. package/dist-embed-sighting-editor/{PoherAssessor-BEiAV-7m.js → PoherAssessor-DtDcuhWK.js} +1 -1
  159. package/dist-embed-sighting-editor/QuestionnaireFeed-CvLtuLIH.js +1 -0
  160. package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +1 -0
  161. package/dist-embed-sighting-editor/QuestionnaireImport-BYj5QoJS.js +5 -0
  162. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  163. package/dist-embed-sighting-editor/{RailwaySystem-7A12KSnk.js → RailwaySystem-eT-ZKfZl.js} +1 -1
  164. package/dist-embed-sighting-editor/ReentryEditor-CW8H7KaA.js +28 -0
  165. package/dist-embed-sighting-editor/{ReentrySimulation-PK2Z7Smw.js → ReentrySimulation-DVl__RjO.js} +1 -1
  166. package/dist-embed-sighting-editor/{ReferenceSystem-Bt7l5nHl.js → ReferenceSystem-DxVYO7g9.js} +1 -1
  167. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-DJraHdS6.js} +1 -1
  168. package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +1 -0
  169. package/dist-embed-sighting-editor/ScenarioSweep-Ddtuo_Af.js +1 -0
  170. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  171. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  172. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  173. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  174. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-p5YNYZhA.js} +1 -1
  175. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-DlMqYLL9.js} +1 -1
  176. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-lFA7hY3x.js} +1 -1
  177. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CDwvX1Nw.js} +1 -1
  178. package/dist-embed-sighting-editor/SearchlightEditor-BSI8hB1V.js +8 -0
  179. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  180. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  181. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  182. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  183. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  184. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  185. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  186. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  187. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  188. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  189. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  190. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  191. package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +1 -0
  192. package/dist-embed-sighting-editor/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  193. package/{dist-embed-ufoathome/SightingEditorMessages_es-CKXlDIja.js → dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  194. package/dist-embed-sighting-editor/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  195. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  196. package/dist-embed-sighting-editor/{SightingElement-BpRRhJzS.js → SightingElement-T0x4j9Zt.js} +4 -4
  197. package/dist-embed-sighting-editor/{SightingFileEditor-B7GimING.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  198. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  199. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  200. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  201. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  202. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-Dl4yl-lc.js} +1 -1
  203. package/dist-embed-sighting-editor/{TraceSystem-JWQpvSdA.js → TraceSystem-Dbu_bgfE.js} +2 -2
  204. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-BAuHAGgq.js} +1 -1
  205. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-C8eRmv7A.js} +1 -1
  206. package/dist-embed-sighting-editor/{WaterSystem-DwGepfDm.js → WaterSystem-DpJCe_2Q.js} +2 -2
  207. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  208. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  209. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  210. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  211. package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +7 -0
  212. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-zzDGCbXd.js} +1 -1
  213. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-DngUPqK8.js} +1 -1
  214. package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +1 -0
  215. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  216. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +522 -422
  217. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  218. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-lvh4Rw5C.js} +1 -1
  219. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Drx7CE9H.js} +1 -1
  220. package/dist-embed-ufoathome/AdsbLolArchiveProvider-CqedGYi5.js +1 -0
  221. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  222. package/dist-embed-ufoathome/{AirshipFlight-CX32XrkA.js → AirshipFlight-Dzpw8HRM.js} +1 -1
  223. package/dist-embed-ufoathome/Aurora-CpZx9hQ3.js +1 -0
  224. package/dist-embed-ufoathome/AuroraEditor-D2v8sWVE.js +8 -0
  225. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  226. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  227. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  228. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  229. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  230. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  231. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  232. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  233. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  234. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  235. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  236. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  237. package/dist-embed-ufoathome/AuroraSimulation-DdSP66LD.js +152 -0
  238. package/dist-embed-ufoathome/BallesterGuaspAssessor-C4IktJ1l.js +1 -0
  239. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  240. package/dist-embed-ufoathome/{BalloonFlight-DC31tnhH.js → BalloonFlight-CztT6ddg.js} +1 -1
  241. package/dist-embed-ufoathome/{BeamEditor-WKZhN3Hp.js → BeamEditor-CuW3LVO-.js} +2 -2
  242. package/dist-embed-ufoathome/BeamSystem-BPEYuCF4.js +1 -0
  243. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  244. package/dist-embed-ufoathome/{BodyEditor-uxbNOCFJ.js → BodyEditor-COMX-T65.js} +1 -1
  245. package/dist-embed-ufoathome/CaseEditorElement-C5BHP8jT.js +3173 -0
  246. package/dist-embed-ufoathome/{CaseElement-Lil-kZRm.js → CaseElement-CIZvyRVi.js} +3 -3
  247. package/dist-embed-ufoathome/{CaseReportExport-DX7PQi1u.js → CaseReportExport-BFbswUIB.js} +3 -3
  248. package/dist-embed-ufoathome/{ColumnResize-DXi_g6cq.js → ColumnResize-Dh6Xyspd.js} +6 -6
  249. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  250. package/dist-embed-ufoathome/ControlPasses-CnL1GmT-.js +29 -0
  251. package/dist-embed-ufoathome/CoverageAssessor-CiqUEJkN.js +1 -0
  252. package/dist-embed-ufoathome/{DroneEditor-BSYPs6jg.js → DroneEditor-D60uhSHO.js} +1 -1
  253. package/dist-embed-ufoathome/{DroneParameters-O6pYnfX7.js → DroneParameters-CfTAaLCT.js} +1 -1
  254. package/dist-embed-ufoathome/Flightradar24Provider-_tNmWf11.js +1 -0
  255. package/dist-embed-ufoathome/GLTFLoader-BLk8prLt.js +1 -0
  256. package/dist-embed-ufoathome/GeoJsonExport-DkPKk-7q.js +2 -0
  257. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  258. package/dist-embed-ufoathome/{GeographicFigures-D9njFJso.js → GeographicFigures-l-PfHdSR.js} +1 -1
  259. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  260. package/dist-embed-ufoathome/HynekAssessor-BhnvqsYz.js +1 -0
  261. package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +277 -0
  262. package/dist-embed-ufoathome/{InterviewElement-kdRloxH-.js → InterviewElement-CuRmQ0d3.js} +2 -2
  263. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  264. package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +1 -0
  265. package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +1 -0
  266. package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +1 -0
  267. package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +1 -0
  268. package/dist-embed-ufoathome/KmlExport-BUl3gOrw.js +19 -0
  269. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  270. package/dist-embed-ufoathome/{LaserBeam-6xHkBslk.js → LaserBeam-C7glTvQN.js} +1 -1
  271. package/dist-embed-ufoathome/LaunchEditor-DvudtAzp.js +22 -0
  272. package/dist-embed-ufoathome/{LaunchPlume-BRYgiI9s.js → LaunchPlume-CrDBzsQe.js} +1 -1
  273. package/dist-embed-ufoathome/LaunchSimulation-DyOA4lPb.js +1 -0
  274. package/dist-embed-ufoathome/ModelSource-CoT4mxTx.js +1 -0
  275. package/dist-embed-ufoathome/ModelThumbnails-t59SZ3Vn.js +1 -0
  276. package/dist-embed-ufoathome/ModelViewer-DEdruEtl.js +1 -0
  277. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  278. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  279. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  280. package/dist-embed-ufoathome/{ModulesPanelElement-fUfO3DeN.js → ModulesPanelElement-N-ccpGxl.js} +3 -3
  281. package/dist-embed-ufoathome/{NearestApproach-MxAHwcUE.js → NearestApproach-Do15yfeg.js} +1 -1
  282. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  283. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  284. package/dist-embed-ufoathome/PoherAssessor-Cs8-ZBge.js +1 -0
  285. package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +1 -0
  286. package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +1 -0
  287. package/dist-embed-ufoathome/QuestionnaireImport-Cx1dQiha.js +5 -0
  288. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  289. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  290. package/dist-embed-ufoathome/ReentryEditor-CJUFkVFO.js +28 -0
  291. package/dist-embed-ufoathome/ReentrySimulation-B5QcdOTq.js +1 -0
  292. package/dist-embed-ufoathome/ReferenceSystem-DyzOUClN.js +1 -0
  293. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  294. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  295. package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +1 -0
  296. package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +1 -0
  297. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  298. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  299. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  300. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  301. package/dist-embed-ufoathome/SearchlightEditor-CPDNpfNC.js +8 -0
  302. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  303. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  304. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  305. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  306. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  307. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  308. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  309. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  310. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  311. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  312. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  313. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  314. package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +1 -0
  315. package/dist-embed-ufoathome/ShareDialogElement-CBeU9ChH.js +5182 -0
  316. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  317. package/dist-embed-ufoathome/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  318. package/{dist-embed-sighting-editor/SightingEditorMessages_es-CKXlDIja.js → dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  319. package/dist-embed-ufoathome/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  320. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  321. package/dist-embed-ufoathome/{SightingElement-Ct3sIryk.js → SightingElement-BveOM4nF.js} +4 -4
  322. package/dist-embed-ufoathome/{SightingFileEditor-D1s9Dv6G.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  323. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  324. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  325. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  326. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  327. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  328. package/dist-embed-ufoathome/{TraceSystem-Bop2Zoa_.js → TraceSystem-CoHX04R3.js} +2 -2
  329. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  330. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  331. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  332. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  333. package/dist-embed-ufoathome/VideoButton-DNQmWtfv.js +1 -0
  334. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  335. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  336. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  337. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  338. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  339. package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +7 -0
  340. package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +1 -0
  341. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  342. package/dist-embed-ufoathome/rr0-ufoathome.mjs +41 -31
  343. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  344. package/dist-embed-ufoathome/surroundingsSources-C823p3dG.js +1 -0
  345. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  346. package/dist-embed-ufoathome/trafficRuntime-DtXb9B2f.js +2 -0
  347. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  348. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  349. package/package.json +4 -2
  350. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  351. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  352. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  353. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  354. package/dist-embed-scene/BeamSystem-BtLpnMXz.js +0 -1
  355. package/dist-embed-scene/ModuleSession-BodXzA3g.js +0 -3
  356. package/dist-embed-scene/ModuleThree-D7qc50Hj.js +0 -1
  357. package/dist-embed-scene/sightingSchema-BDxKVE3v.js +0 -1
  358. package/dist-embed-sighting/BeamSystem-DJZTpG0z.js +0 -1
  359. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  360. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  361. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  362. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  363. package/dist-embed-sighting/ModuleSession-BZbes53G.js +0 -3
  364. package/dist-embed-sighting/ModuleThree-CPPPDBO4.js +0 -1
  365. package/dist-embed-sighting/sightingSchema-BDxKVE3v.js +0 -1
  366. package/dist-embed-sighting-editor/AirshipEditor-rA-Sr4D1.js +0 -16
  367. package/dist-embed-sighting-editor/BalloonEditor-CPZoayzz.js +0 -24
  368. package/dist-embed-sighting-editor/BeamSystem-Br0h-uSI.js +0 -1
  369. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  370. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  371. package/dist-embed-sighting-editor/InterviewEditorElement-CcXO_w9X.js +0 -242
  372. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  373. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  374. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  375. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  376. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  377. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  378. package/dist-embed-sighting-editor/LaunchEditor-f4kJ5pWG.js +0 -22
  379. package/dist-embed-sighting-editor/LaunchSimulation-B3vlOUUu.js +0 -1
  380. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  381. package/dist-embed-sighting-editor/ModuleConformance-DF6CNBvD.js +0 -2
  382. package/dist-embed-sighting-editor/ModuleSession-BgxzArtm.js +0 -3
  383. package/dist-embed-sighting-editor/ModuleThree-DXFS5Pjb.js +0 -1
  384. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  385. package/dist-embed-sighting-editor/ReentryEditor-Ch9_6pS8.js +0 -28
  386. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  387. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  388. package/dist-embed-sighting-editor/sightingSchema-C1S-Kr9w.js +0 -1
  389. package/dist-embed-ufoathome/AdsbLolArchiveProvider-DzC2OwjF.js +0 -1
  390. package/dist-embed-ufoathome/AirshipEditor-DDmu9JT8.js +0 -16
  391. package/dist-embed-ufoathome/BallesterGuaspAssessor-Bn5TGAvJ.js +0 -1
  392. package/dist-embed-ufoathome/BalloonEditor-CGrzszk1.js +0 -24
  393. package/dist-embed-ufoathome/BeamSystem-CWJkeTmf.js +0 -1
  394. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  395. package/dist-embed-ufoathome/CaseEditorElement-DNZt-oc7.js +0 -3148
  396. package/dist-embed-ufoathome/ContrailSystem-DBPA_rNt.js +0 -1
  397. package/dist-embed-ufoathome/ControlPasses-BgvVicQS.js +0 -29
  398. package/dist-embed-ufoathome/CoverageAssessor-BiDfEPse.js +0 -1
  399. package/dist-embed-ufoathome/Flightradar24Provider-DJtlvu72.js +0 -1
  400. package/dist-embed-ufoathome/GLTFLoader-2tuw29HP.js +0 -1
  401. package/dist-embed-ufoathome/GeoJsonExport-DHZOlC4h.js +0 -2
  402. package/dist-embed-ufoathome/HeadlightSystem-h2F6DzUW.js +0 -34
  403. package/dist-embed-ufoathome/HynekAssessor-C1TFQQNc.js +0 -1
  404. package/dist-embed-ufoathome/InterviewEditorElement-BythuoeV.js +0 -242
  405. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  406. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  407. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  408. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  409. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  410. package/dist-embed-ufoathome/KmlExport-Qih5jB1R.js +0 -19
  411. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  412. package/dist-embed-ufoathome/LaunchEditor-D5FlWL04.js +0 -22
  413. package/dist-embed-ufoathome/LaunchSimulation-DS7JtdJz.js +0 -1
  414. package/dist-embed-ufoathome/ModelSource-DQDWsfAb.js +0 -1
  415. package/dist-embed-ufoathome/ModelThumbnails-DovTOA0Y.js +0 -1
  416. package/dist-embed-ufoathome/ModelViewer-DIvwFZDg.js +0 -1
  417. package/dist-embed-ufoathome/ModuleConformance-VMgvNBlc.js +0 -2
  418. package/dist-embed-ufoathome/ModuleSession-D6wg8SbE.js +0 -3
  419. package/dist-embed-ufoathome/ModuleThree-CLkMHq_q.js +0 -1
  420. package/dist-embed-ufoathome/PictureRegistration-Dnh3w7Ph.js +0 -1
  421. package/dist-embed-ufoathome/PoherAssessor-h8_-WKIK.js +0 -1
  422. package/dist-embed-ufoathome/RailwaySystem-DZ2hctVL.js +0 -41
  423. package/dist-embed-ufoathome/ReentryEditor-DxyGO7_Z.js +0 -28
  424. package/dist-embed-ufoathome/ReentrySimulation-B55Uq-6-.js +0 -1
  425. package/dist-embed-ufoathome/ReferenceSystem-DJosChqB.js +0 -1
  426. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  427. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  428. package/dist-embed-ufoathome/ShareDialogElement--Mjaublp.js +0 -9222
  429. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  430. package/dist-embed-ufoathome/VideoButton-DzEuUvRs.js +0 -1
  431. package/dist-embed-ufoathome/WaterSystem-KQAAtpYS.js +0 -19
  432. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  433. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  434. package/dist-embed-ufoathome/sightingSchema-C1S-Kr9w.js +0 -1
  435. package/dist-embed-ufoathome/surroundingsSources-LtEaPPRc.js +0 -1
  436. package/dist-embed-ufoathome/trafficRuntime-uPEasExE.js +0 -2
@@ -0,0 +1,277 @@
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","./QuestionnaireForm-DA6LPvBt.js","./rr0-sighting-editor.mjs","./interviewJson-DngUPqK8.js","./interviewImport-zzDGCbXd.js","./SightingFileEditor-Du3A9uZm.js","./index-DSNA74v6.js","./sightingSchema-9MogCcUd.js","./QuestionnaireImport-BYj5QoJS.js"])))=>i.map(i=>d[i]);
2
+ import{I as x,W as P,M as B,_ as b,S as A,r as V,a as M,b as z,E as C,H as R,A as F,c as Q,s as J,U as j,d as G,e as S,f as y,Q as K,g as I,h as O,l as Y}from"./rr0-sighting-editor.mjs";import{i as de}from"./rr0-sighting-editor.mjs";import{InterviewMedia as N}from"./InterviewMedia-CGVsMdje.js";import{register as X}from"./InterviewElement-DDa53uMq.js";import{InterviewFile as w}from"./interviewJson-DngUPqK8.js";class f{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,n)=>{const a="redacted"in i?"▮":w.plain(i.text);/[\p{L}\p{N}.,;:!?)»”…▮]$/u.test(r)&&/^[\p{L}\p{N}(«“▮]/u.test(a)&&(s+=1);const d="redacted"in i?0:a.length;t.push({part:n,from:s,to:s+d}),s+=d,r=a}),t}static words(e){return e.trim()===""?0:e.trim().split(/\s+/u).length}static redact(e,t,r,s){const i=[...f.partsOf(e)],n=f.shownRanges(i).find(v=>!("redacted"in i[v.part])&&t>=v.from&&r<=v.to);if(!n)return;const a=w.plain(i[n.part].text),d=/[\p{L}\p{N}'’-]/u;let h=t-n.from,o=r-n.from;for(;h>0&&d.test(a[h-1])&&d.test(a[h]);)h--;for(;o<a.length&&d.test(a[o])&&d.test(a[o-1]);)o++;const c=a.slice(h,o);if(c.trim()==="")return;const l=a.slice(0,h).trimEnd(),p=a.slice(o).trimStart(),g=[...l!==""?[{text:l}]:[],{redacted:{reason:s,words:f.words(c)}},...p!==""?[{text:p}]:[]],m=i.slice(0,n.part).filter(v=>"redacted"in v).length;return i.splice(n.part,1,...g),f.setParts(e,i),{text:c.trim(),nth:m}}static redactWhole(e,t){const r=JSON.stringify({text:e.text,parts:e.parts}),s=f.partsOf(e).reduce((i,n)=>i+("redacted"in n?n.redacted.words??0:f.words(w.plain(n.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=[...f.partsOf(e)];let i=-1;const n=s.findIndex(a=>"redacted"in a&&++i===t);n!==-1&&(s.splice(n,1,{text:r}),f.setParts(e,s))}static raw(e,t=()=>{}){let r=-1,s="",i="";for(const n of f.partsOf(e)){const a="redacted"in n?`⟦${t(++r)??"…"}⟧`:n.text;s!==""&&!/\s$/u.test(i)&&!/^\s/u.test(a)&&(s+=" "),s+=a,i=a}return s}static fromRaw(e,t,r){const s=f.partsOf(e).filter(d=>"redacted"in d),i=[],n=new Map;let a=-1;return t.split(/⟦([^⟧]*)⟧/u).forEach((d,h)=>{if(h%2===0){d.trim()!==""&&i.push({text:d.trim()});return}a++;const o=d.trim();o===""||o==="…"||o==="..."?i.push({redacted:s[a]?.redacted??{reason:r}}):(i.push({redacted:{reason:r,words:f.words(o)}}),n.set(a,o))}),delete e.redacted,f.setParts(e,i),n}static setParts(e,t){const r=[];for(const s of t){const i=r[r.length-1],n=!("redacted"in s)&&/^[,.;:!?)»”…]/u.test(s.text)?"":" ";i&&!("redacted"in i)&&!("redacted"in s)?r[r.length-1]={text:`${i.text}${n}${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 D{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 n=i?this.messages.pause:this.messages.play;this.play.title=n,this.play.setAttribute("aria-label",n)};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 n=document.createElement("span"),a=e?.speakers?.[i.speaker]?.role;n.className=i.redacted?"seg redacted":"seg",n.dataset.role=a==="witness"||a==="interviewer"?a:"other";const d=i.start??0,h=i.end??d+1;return n.style.left=`${d/t*100}%`,n.style.width=`${Math.max(.3,(h-d)/t*100)}%`,n}));const s=document.createElement("span");s.className="head",this.track.append(s),this.track.setAttribute("aria-valuemax",String(Math.round(t))),this.end.textContent=w.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=w.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((s,i)=>{const n=document.createElement("div");n.className="recording-row";const a=document.createElement("select");a.append(new Option(e.recordingAudio,"audio"),new Option(e.recordingVideo,"video")),a.value=s.kind,a.addEventListener("change",()=>this.edit(m=>{m[i].kind=a.value}));const d=document.createElement("input");d.type="text",d.value=s.src,d.placeholder="interview.mp3",d.addEventListener("change",()=>this.edit(m=>{m[i].src=d.value.trim()})),i===this.recordings.length-1&&d.addEventListener("input",()=>this.allowAdding(d.value.trim()!==""));const h=document.createElement("input");h.type="file",h.accept="audio/*,video/*",h.hidden=!0,h.addEventListener("change",()=>{const m=h.files?.[0];m&&(this.picked.set(m.name,URL.createObjectURL(m)),this.edit(v=>{v[i].src=m.name,m.type.startsWith("video/")&&(v[i].kind="video")}))});const o=document.createElement("button");o.type="button",o.className="icon-btn",o.title=e.recordingFile,o.setAttribute("aria-label",e.recordingFile),o.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>',o.addEventListener("click",()=>h.click());const c=document.createElement("span");c.className="recording-file",c.append(d,o,h);const l=document.createElement("input");l.type="number",l.step="0.1",l.value=s.offset!==void 0?String(s.offset):"",l.placeholder="0",l.addEventListener("change",()=>this.edit(m=>{const v=Number(l.value);l.value.trim()===""||!Number.isFinite(v)||v===0?delete m[i].offset:m[i].offset=v}));const p=document.createElement("button");p.type="button",p.className="icon-btn",p.innerHTML=x.TRASH,p.title=e.recordingRemove,p.setAttribute("aria-label",e.recordingRemove),p.addEventListener("click",()=>this.edit(m=>{m.splice(i,1)}));const g=document.createElement("p");return g.className="recording-status",this.check(s,g),n.append(this.labelled(e.recordingKind,a),this.labelled(e.recordingFile,c),this.labelled(e.recordingOffset,l,"s"),p,g),n}));const r=this.recordings[this.recordings.length-1];this.allowAdding(r===void 0||r.src!=="")}allowAdding(e){const t=this.window.querySelector(".recording-add");t.disabled=!e,t.title=e?"":this.messages.recordingAddFirst}labelled(e,t,r){const s=document.createElement("label"),i=document.createElement("span");if(i.textContent=e,r){const n=document.createElement("span");n.className="with-unit",n.append(t,r),s.append(i,n)}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=w.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 $="groq",_="openai",U="assemblyai",T=B.point("transcription").provide(B.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 b(async()=>{const{BrowserWhisperProvider:E}=await import("./BrowserWhisperProvider-Dn44ZE45.js");return{BrowserWhisperProvider:E}},__vite__mapDeps([0,1,2]),import.meta.url)).BrowserWhisperProvider,76e7)},{id:$,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 b(async()=>{const{OpenAiTranscriptionProvider:E}=await import("./OpenAiTranscriptionProvider-DDW446tK.js");return{OpenAiTranscriptionProvider:E}},__vite__mapDeps([3,1,2]),import.meta.url)).OpenAiTranscriptionProvider({base:"https://api.groq.com/openai/v1",model:"whisper-large-v3-turbo",key:()=>A.of($)}))},{id:_,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 b(async()=>{const{OpenAiTranscriptionProvider:E}=await import("./OpenAiTranscriptionProvider-DDW446tK.js");return{OpenAiTranscriptionProvider:E}},__vite__mapDeps([3,1,2]),import.meta.url)).OpenAiTranscriptionProvider({base:"https://api.openai.com/v1",model:"whisper-1",key:()=>A.of(_)}))},{id:U,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 b(async()=>{const{AssemblyAiTranscriptionProvider:E}=await import("./AssemblyAiTranscriptionProvider-o2kkPD5o.js");return{AssemblyAiTranscriptionProvider:E}},__vite__mapDeps([4,1,2]),import.meta.url)).AssemblyAiTranscriptionProvider({base:"https://api.assemblyai.com",key:()=>A.of(U)}))}]),q="rr0-interview-editor",Z=`
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
+ ${z.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
+ ${y.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
+ ${C.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
+ ${C.HEAD}
82
+ ${C.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
+ ${D.CSS}
120
+ ${R.CSS}
121
+ ${P.CSS}
122
+ ${F.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
+ /* The questionnaire as a form: its sections one under the other, a question above its answer, the answer the width of the form. */
178
+ .form-fields { display: grid; gap: 18px; }
179
+ .form-intro, .form-source, .form-section-intro, .form-hint { margin: 0; color: var(--ink-dim); font: 400 14px/1.45 var(--sans); }
180
+ .form-section { display: grid; gap: 14px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 8px; }
181
+ .form-section > legend { padding: 0 6px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
182
+ .form-field { display: grid; gap: 6px; }
183
+ .form-field > label { font: 600 14px/1.35 var(--sans); color: var(--ink); }
184
+ .form-field .required { color: var(--ink-faint); }
185
+ .form-field textarea { box-sizing: border-box; width: 100%; min-height: 4.5em; resize: vertical; }
186
+ .form-field input:not([type="radio"]) { box-sizing: border-box; width: 100%; max-width: 32rem; }
187
+ .form-choices { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 14px/1.3 var(--sans); }
188
+ .form-choices label { display: inline-flex; align-items: center; gap: 4px; }
189
+ /* How a date or a time is said reads as part of its question, as in the case's date: a link, not a button. */
190
+ .form-when-mode { min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: 400 13px/1.3 var(--sans); text-decoration: underline;
191
+ text-underline-offset: .15em; cursor: pointer; }
192
+ .form-when-mode:disabled { text-decoration: none; cursor: default; }
193
+ /* The questionnaire's pictures are drawn on white: on a dark page they keep the paper they were drawn for. */
194
+ .form-figure { margin: 0; justify-self: start; max-width: min(100%, 16rem); }
195
+ .form-figure img { display: block; max-width: 100%; height: auto; padding: 6px; border-radius: 6px; background: #fff; }
196
+ #exchanges .sealed-open { grid-column: 2 / -1; display: grid; gap: 4px; justify-items: start; margin-top: 4px; }
197
+ #exchanges .sealed-open .opened { margin: 0; padding: 4px 8px; border-left: 3px solid var(--glow-dim); background: var(--neutral-bg); }
198
+ #exchanges .sealed-open .opened-note { margin: 0; color: var(--ink-faint); font: 400 12px/1.35 var(--sans); }
199
+ #exchanges .sealed-open .opened-note:empty { display: none; }
200
+ .form-confidential { margin: 0; padding-left: 22px; color: var(--ink-dim); font: 400 13px/1.4 var(--sans);
201
+ background: no-repeat left 2px / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E"); }
202
+ .form-confidential.nowhere { color: var(--warn, #b26b00); }
203
+ .form-figure figcaption { margin-top: 4px; color: var(--ink-dim); font: 400 12px/1.35 var(--sans); }
204
+ .form-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--ink-dim); font: 400 13px/1.4 var(--sans); }
205
+ .turn-edit { display: flex; flex-direction: column; gap: 6px; }
206
+ .turn-edit textarea { box-sizing: border-box; width: 100%; min-height: 6em; }
207
+ .turn-edit .hint { font-size: 12px; color: var(--ink-faint); }
208
+ .turn-edit .buttons { display: flex; gap: 8px; }
209
+ </style>
210
+ <div class="interview-app">
211
+ <!-- The player: what plays the interview's recordings, with who speaks along it (see InterviewPlayer). -->
212
+ <div id="player"></div>
213
+ <div id="tabs" class="group-tabs">
214
+ <button class="group-tab" type="button" aria-controls="group-summary" aria-expanded="true">${x.SUMMARY}<span id="label-summary-group"></span></button>
215
+ <button id="form-tab" class="group-tab" type="button" aria-controls="group-form" aria-expanded="false" hidden>${x.SUMMARY}<span id="label-form-group"></span></button>
216
+ <button class="group-tab" type="button" aria-controls="group-exchanges" aria-expanded="false">${x.INTERVIEW}<span id="label-exchanges-group"></span></button>
217
+ <button class="group-tab" type="button" aria-controls="group-transcript" aria-expanded="false">${x.FILES}<span id="label-file-group"></span></button>
218
+ </div>
219
+ <section class="group-panel" id="group-summary" aria-labelledby="label-summary-group">
220
+ <div class="row">
221
+ <label class="fill"><span id="label-title"></span> <input id="title" type="text"/></label>
222
+ </div>
223
+ <div class="row">
224
+ <fieldset id="witness" class="witnesses"><legend id="label-witness"></legend></fieldset>
225
+ <label><span id="label-medium"></span> <select id="medium"></select></label>
226
+ <label><span id="label-time"></span> <input id="time" type="text" size="16" placeholder="2026-10-13 21:27"/></label>
227
+ <label><span id="label-by"></span> <input id="by" type="text" autocomplete="off" spellcheck="false"/></label>
228
+ </div>
229
+ <div class="row">
230
+ <label class="wide"><span id="label-summary"></span> <textarea id="summary"></textarea></label>
231
+ </div>
232
+ </section>
233
+ <section class="group-panel" id="group-form" aria-labelledby="label-form-group" hidden>
234
+ <p id="form-note" class="file-note" role="status" hidden></p>
235
+ <div id="form-fields" class="form-fields"></div>
236
+ <div class="form-feed"><button id="form-feed" type="button" class="pill-btn primary"></button> <span id="form-feed-hint"></span></div>
237
+ <p id="form-fed" class="file-note" role="status" hidden></p>
238
+ </section>
239
+ <section class="group-panel" id="group-exchanges" aria-labelledby="label-exchanges-group" hidden>
240
+ <!-- Transcribing the recording (see TranscriptionProvider): what with, what it sends or downloads, how far it has got. -->
241
+ <div id="transcribe" class="transcribe">
242
+ <div class="transcribe-row">
243
+ <span><button id="transcribe-start" type="button" class="pill-btn primary"></button> <span id="transcribe-hint"></span></span>
244
+ <label><span id="label-transcribe-with"></span> <select id="transcribe-source"></select></label>
245
+ <a id="transcribe-credit" class="source-credit" target="_blank" rel="noopener noreferrer"></a>
246
+ <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>
247
+ <button id="transcribe-stop" type="button" class="pill-btn" hidden></button>
248
+ </div>
249
+ <p id="transcribe-note" class="transcribe-note" role="status"></p>
250
+ <progress id="transcribe-progress" hidden></progress>
251
+ </div>
252
+ <div id="review" class="review" hidden></div>
253
+ <div id="redact-pop" class="redact-pop" role="dialog" hidden>
254
+ <label class="redact-reason"><span id="label-redact-reason"></span><input id="redact-reason" type="text" list="redact-reasons" autocomplete="off"/></label>
255
+ <datalist id="redact-reasons"></datalist>
256
+ <p id="redact-note" class="redact-note" role="status"></p>
257
+ <div class="redact-actions">
258
+ <button id="redact-restore" type="button" class="pill-btn"></button>
259
+ <button id="redact-take" type="button" class="pill-btn primary"></button>
260
+ </div>
261
+ </div>
262
+ <rr0-interview id="exchanges"></rr0-interview>
263
+ </section>
264
+ <section class="group-panel" id="group-transcript" aria-labelledby="label-file-group" hidden>
265
+ <div class="row">
266
+ <label class="fill"><span id="label-url"></span> <input id="url" type="text" autocomplete="off" spellcheck="false" placeholder="interview-….json"/></label>
267
+ </div>
268
+ <div class="row toolbar">
269
+ <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,.csv,.tsv,text/*" placeholder="https://…/interview.json"></rr0-input-file></span>
270
+ <button id="save" type="button"></button>
271
+ </div>
272
+ <p id="file-note" class="file-note" hidden role="status"></p>
273
+ <div id="file-editor" class="file-editor"></div>
274
+ </section>
275
+ </div>
276
+ `;class u extends HTMLElement{shadow=this.attachShadow({mode:"open"});get importInput(){return this.shadow.getElementById("import")}messages;said=new M(["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=Z,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("form-feed").addEventListener("click",()=>this.feedObservation()),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-form":"form","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){const t=e!==this.current;t&&(this.shownFor=void 0),this.current=e,this.render(),t&&this.heldThroughQuestionnaire?this.openGroup("form"):this.group==="form"&&(this.formShown=this.showForm()),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=Q.preferencesFor(this),r=J(t,j),s=await G.load(r);e===this.localeToken&&(this.language=r,this.said=new M(t),this.messages=s,this.player||(this.player=new D(this.shadow.getElementById("player"),{timeChanged:i=>this.markCurrentTurn(i),recordingsChanged:i=>void this.editTranscript(n=>{i.length===0?delete n.recordings:n.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.renderTranscribe()}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,p)=>{this.shadow.getElementById(l).textContent=p};t("label-summary-group",e.summaryTab),t("label-file-group",e.fileTab),t("label-exchanges-group",e.exchangesTab),t("label-form-group",e.questionnaireTab),t("form-feed",e.feed),R.say(this.shadow.getElementById("form-feed-hint"),"",e.feedHint);const r=this.shadow.getElementById("form-tab");r.hidden=!this.heldThroughQuestionnaire,!this.heldThroughQuestionnaire&&this.group==="form"&&this.openGroup("summary"),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),R.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 s=this.field("redact-reason");s.placeholder=e.redactReason,s.title=e.redactReasonHint,t("transcribe-start",e.transcribe),this.shadow.getElementById("transcribe-hint").replaceChildren(R.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 i=this.current,n=this.shadow.activeElement,a=(l,p)=>{this.field(l)!==n&&(this.field(l).value=p)};a("title",this.said.read(i?.title)??""),a("time",i?.time??""),a("by",u.byText(i?.by)),a("url",i?.url??""),a("summary",this.said.read(i?.summary)??"");const d=[i?.interviewOf].flat().filter(l=>typeof l=="string"),h=this.shadow.getElementById("witness"),o=[...this.options,...d.filter(l=>!this.options.some(p=>p.id===l)).map(l=>({id:l,label:l}))];h.replaceChildren(h.querySelector("legend"),...o.map(l=>{const p=document.createElement("label"),g=document.createElement("input");return g.type="checkbox",g.value=l.id,g.checked=d.includes(l.id),p.append(g,l.label),p}));const c=this.shadow.getElementById("medium");if(c.replaceChildren(...N.ALL.map(l=>new Option(N.label(l,this.language),l))),i?.medium!==void 0&&!N.ALL.includes(i.medium)&&c.append(new Option(String(i.medium),String(i.medium))),i?.medium===void 0){const l=new Option(e.witnessNone,"");l.disabled=!0,l.hidden=!0,c.prepend(l)}c.value=i?.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",form:"group-form",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(),e==="form"&&(this.formShown=this.showForm())}form;formToken=0;formShown=Promise.resolve();get heldThroughQuestionnaire(){return this.current?.medium==="questionnaire"}async showForm(){const e=this.current;if(!e||!this.heldThroughQuestionnaire)return;const t=++this.formToken,[{QuestionnaireForm:r},{QuestionnaireTemplates:s},i]=await Promise.all([b(()=>import("./QuestionnaireForm-DA6LPvBt.js"),__vite__mapDeps([5,6,7]),import.meta.url),b(()=>import("./rr0-sighting-editor.mjs").then(c=>c.dd),[],import.meta.url),this.transcriptJson(e)]);await this.ready;const n=i?.questionnaire?.id??s.DEFAULT,a=await s.load(n);if(t!==this.formToken||this.current!==e)return;const d=this.messages,h=this.shadow.getElementById("form-note");y.show(h,a?void 0:d.unknownQuestionnaire.replace("{id}",n),"warning"),this.form??=new r(this.shadow.getElementById("form-fields"),(c,l,p)=>void this.answerField(c,l,p)),this.form.show(a??{id:n,title:n,sections:[]},i,d.questionnaire,this.language,this.hasAttribute("readonly"),c=>this.confidentialAnswers.get(this.confidentialKey(e,c)));const o=this.shadow.getElementById("form-feed");o.disabled=this.hasAttribute("readonly")}async answerField(e,t,r){const{QuestionnaireTemplates:s}=await b(async()=>{const{QuestionnaireTemplates:o}=await import("./rr0-sighting-editor.mjs").then(c=>c.dd);return{QuestionnaireTemplates:o}},[],import.meta.url),i=this.current;if(!i)return;const n=await this.transcriptJson(i),a=await s.load(n?.questionnaire?.id??s.DEFAULT),d=a?s.field(a,e)?.confidential:void 0;let h;if(d){const o=this.confidentialKey(i,e),c=t.trim();if(c==="")this.confidentialAnswers.delete(o);else{this.confidentialAnswers.set(o,c);const l=n?.questionnaire?.recipient,{QuestionnaireSeal:p}=await b(async()=>{const{QuestionnaireSeal:g}=await import("./QuestionnaireSeal-DpZYUhnf.js");return{QuestionnaireSeal:g}},[],import.meta.url);h={reason:d.reason,...l?{sealed:await p.seal(c,l)}:{}}}}await this.editTranscript(o=>{if(a&&!o.segments.some(c=>c.field!==void 0)){const c=s.interview(a);o.segments=c.segments,o.questionnaire=c.questionnaire,c.language&&!o.language&&(o.language=c.language);for(const[l,p]of Object.entries(c.speakers))o.speakers[l]??=p}o.medium="questionnaire",s.answer(o,e,t,r,h)})}static openers=new Map;static openerFor(e){for(const t of B.point("sealed").sources){let r=u.openers.get(t);if(r||u.openers.set(t,r=t.create()),r.recipient===e)return{source:t,opener:r}}}offerOpening(e,t,r){const s=u.openerFor(r.for),i=this.current;if(!s||!i)return;const n=this.messages,a=t.field!==void 0?this.confidentialKey(i,t.field):void 0,d=document.createElement("div");d.className="sealed-open";const h=c=>{const l=document.createElement("p");l.className="opened",l.textContent=c;const p=document.createElement("p");p.className="opened-note",p.textContent=n.sealOpened.replace("{name}",s.source.name),d.replaceChildren(l,p)},o=a!==void 0?this.confidentialAnswers.get(a):void 0;if(o!==void 0)h(o);else{const c=document.createElement("button");c.type="button",c.className="pill-btn",c.textContent=n.sealOpen.replace("{name}",s.source.name),c.addEventListener("click",()=>{s.opener.open(r).then(p=>{p!==void 0&&(a!==void 0&&this.confidentialAnswers.set(a,p),h(p))},()=>y.show(l,n.sealFailed,"error"))});const l=document.createElement("p");l.className="opened-note",d.replaceChildren(c,l)}e.append(d)}confidentialAnswers=new Map;confidentialKey(e,t){return`${e.id??e.url??""}\0${t}`}feedObservation(){const e=this.current;e&&this.transcriptJson(e).then(t=>{const r=this.shadow.getElementById("form-fed"),s=i=>y.show(r,i>0?this.messages.fed.replace("{n}",String(i)):this.messages.fedNothing,i>0?"info":"warning");if(!t){s(0);return}this.dispatchEvent(new CustomEvent(K,{bubbles:!0,composed:!0,detail:{event:e,json:t,report:s}}))})}exchangesToken=0;async transcriptJson(e){try{const t=this.fileEditor?.text??this.text;if(t!==void 0)return w.read(JSON.parse(t));const r=this.transcriptUrl(e);if(r!==void 0)return w.read(await I.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),n=t.get(i);n?n.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(n=>this.said.read(n)??"").filter(n=>n!==""),s=t.redactReasons.filter(n=>!r.some(a=>a.toLowerCase().startsWith(n.toLowerCase()))),i=[...new Set([...r,...s])];this.shadow.getElementById("redact-reasons").replaceChildren(...i.map(n=>new Option(n,n)))}speakerLabel(e,t){const r=w.speakerName(e,t),s=e.speakers?.[t]?.role;return s===w.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(([,d])=>d.role!==w.UNATTRIBUTED).map(([d])=>d);if(t.hidden=!e||r.length===0,!e||r.length===0)return;const s=d=>["approved","covered"].includes(e.proofreading?.[d]?.status??""),i=r.filter(d=>!s(d)),n=document.createElement("span");n.textContent=i.length===0?this.messages.proofreadAll:this.messages.proofreadPending.replace("{names}",i.map(d=>this.speakerLabel(e,d)).join(", ")),t.toggleAttribute("data-done",i.length===0);const a=document.createElement("span");a.className="review-boxes";for(const d of r){const h=document.createElement("label"),o=document.createElement("input");o.type="checkbox",o.checked=s(d),o.disabled=this.hasAttribute("readonly"),o.addEventListener("change",()=>void this.editTranscript(c=>{c.proofreading??={},o.checked?c.proofreading[d]={status:"approved",date:new Date().toISOString().slice(0,10)}:c.proofreading[d]={status:"pending"}})),h.append(o,this.messages.reviewedBy.replace("{name}",this.speakerLabel(e,d))),a.append(h)}t.replaceChildren(n,a)}momentsOf(e,t){const r=e.speakers?.[t]?.of??w.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),n=e.segments[i];if(!n)continue;if(n.start!==void 0){const o=document.createElement("button");o.type="button",o.className="turn-time",o.textContent=w.clock(n.start),o.addEventListener("click",()=>this.player?.seek(n.start)),s.prepend(o)}const a=n.redacted?[n.redacted]:f.partsOf(n).flatMap(o=>"redacted"in o?[o.redacted]:[]);s.querySelectorAll(".bar").forEach((o,c)=>{const l=a[c]?.words;o.textContent=l!==void 0?t.redactedWords.replace("{n}",String(l)):t.redacted,o.classList.add("redacted-label");const p=n.redacted?`${i}:all`:`${i}:${c}`;this.takenOut.has(p)&&(o.dataset.restorable=p)});const d=n.redacted?.sealed;d&&this.offerOpening(s,n,d);const h=this.momentsOf(e,n.speaker);s.querySelectorAll(".ref").forEach((o,c)=>{const l=n.refs?.[c];if(!l)return;const p=h.find(m=>Math.abs(m.at-l.at)<.05);if(p){const m=document.createElement("span");m.className="moment-letter",m.textContent=p.label.slice(0,2),o.replaceChildren(m,t.momentLabel.replace("{k}",p.label).replace("{text}",p.note??w.clock(l.at)))}if(r)return;const g=document.createElement("button");g.type="button",g.className="ref-unlink",g.textContent="×",g.title=t.unlinkMoment,g.setAttribute("aria-label",t.unlinkMoment),g.addEventListener("click",()=>void this.editTranscript(m=>{m.segments[i].refs?.splice(c,1),m.segments[i].refs?.length===0&&delete m.segments[i].refs})),o.after(g)}),r||s.append(this.turnTools(e,i,n,h))}}turnTools(e,t,r,s){const i=this.messages,n=document.createElement("div");n.className="turn-tools";const a=(o,c)=>{const l=document.createElement("button");return l.type="button",l.textContent=o,l.addEventListener("click",c),l};if(e.speakers?.[r.speaker]?.role==="witness"&&!r.redacted){const o=a(i.linkMoment,()=>{});n.append(o),new F(o,`moment-menu-${t}`,l=>void this.editTranscript(p=>{const g=p.segments[t].refs??[];g.some(m=>Math.abs(m.at-Number(l))<.05)||g.push({at:Number(l)}),p.segments[t].refs=g}),l=>`moment-${t}-${l}`).setKinds(s.length>0?s.map(l=>({value:String(l.at),label:i.momentLabel.replace("{k}",l.label).replace("{text}",l.note??w.clock(l.at))})):[{value:"",label:i.noMoments,disabledReason:i.noMoments}])}if(r.redacted||n.append(a(i.editTurn,()=>this.editTurn(t))),!r.redacted&&!this.hasAttribute("readonly")){const o=a(i.whoSpeaks,()=>{});n.append(o),new F(o,`speaker-menu-${t}`,l=>void b(async()=>{const{InterviewImport:p}=await import("./interviewImport-zzDGCbXd.js");return{InterviewImport:p}},__vite__mapDeps([8,7,6]),import.meta.url).then(({InterviewImport:p})=>this.editTranscript(g=>{p.attribute(g,t,l)})),l=>`speaker-${t}-${l}`).setKinds(Object.keys(e.speakers??{}).map(l=>({value:l,label:this.speakerLabel(e,l),...l===r.speaker?{disabledReason:this.speakerLabel(e,l)}:{}})))}const d=this.takenOut.has(`${t}:all`)||[...this.takenOut.keys()].some(o=>o.startsWith(`${t}:`));if(r.redacted||r.parts&&d){const o=a(i.restoreAll,()=>void this.restoreAll(t));o.disabled=!d,n.append(o)}else n.append(a(i.redactAll,()=>void this.editTranscript(o=>{this.forget(t),this.takenOut.set(`${t}:all`,f.redactWhole(o.segments[t],this.redactReason))}).then(()=>{const o=this.shadow.querySelector(`#exchanges .turn[data-segment="${t}"] .bar.redacted-label`);o&&this.openBar(o)})));const h=a("",()=>void this.editTranscript(o=>{o.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),n.append(h),n}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=l=>l instanceof Element?l:l.parentElement,n=i(r.startContainer)?.closest(".said");if(!n&&!i(r.endContainer)?.closest(".said"))return;const a=n&&i(r.endContainer)?.closest(".said")===n&&!i(r.startContainer)?.closest(".bar")&&!i(r.endContainer)?.closest(".bar"),d=r.getBoundingClientRect();if(!a){this.openRedactPop({kind:"selection",index:-1,from:0,to:0},d,e.selectionOnePassage);return}const h=Number(n.closest(".turn").dataset.segment),o=u.offsetIn(n,r.startContainer,r.startOffset),c=u.offsetIn(n,r.endContainer,r.endOffset);this.openRedactPop({kind:"selection",index:h,from:Math.min(o,c),to:Math.max(o,c)},d),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 n=i.redacted?"all":s,a=`${r}:${n}`;this.openRedactPop({kind:"bar",index:r,nth:n,restorable:this.takenOut.has(a)?a: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 n=this.shadow.getElementById("redact-take"),a=this.shadow.getElementById("redact-restore");n.hidden=e.kind!=="selection",n.disabled=!!r,a.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 d=this.shadow.getElementById("redact-note");d.textContent=r??"",d.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,o=s.offsetHeight||120,c=t.bottom+6+o<=window.innerHeight;s.style.top=`${Math.max(8,c?t.bottom+6:t.top-6-o)}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:f.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 n=this.redactionAt(s,e.index,e.nth);n&&(n.reason=t);return}const i=JSON.stringify(s.segments[e.index].redacted?.reason);for(let n=e.index;n<s.segments.length;n++){const a=s.segments[n].redacted;if(!a||n>e.index&&JSON.stringify(a.reason)!==i)break;a.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 n=f.redact(i.segments[t.index],t.from,t.to,r);n&&(s=!0,this.shiftParts(t.index,n.nth),this.takenOut.set(`${t.index}:${n.nth}`,n.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:n=>n.parentElement?.closest(".bar")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});for(let n=i.nextNode();n;n=i.nextNode()){if(n===t)return s+r;if(t.contains(n)&&t!==n){const d=[...t.childNodes].slice(0,r);return s+d.reduce((h,o)=>h+(o instanceof Element&&o.closest(".bar")?0:(o.textContent??"").length),0)}s+=(n.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(n=>{s==="all"?f.restoreWhole(n.segments[i],t):(f.restorePart(n.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,n=document.createElement("div");n.className="turn-edit";const a=document.createElement("textarea");a.value=f.raw(r,l=>this.takenOut.get(`${e}:${l}`));const d=document.createElement("span");d.className="hint",d.textContent=i.turnEditHint;const h=document.createElement("div");h.className="buttons";const o=document.createElement("button");o.type="button",o.className="pill-btn primary",o.textContent=i.saveTurn,o.addEventListener("click",()=>void this.editTranscript(l=>{const p=f.fromRaw(l.segments[e],a.value,this.redactReason);this.forget(e);for(const[g,m]of p)this.takenOut.set(`${e}:${g}`,m)}));const c=document.createElement("button");c.type="button",c.className="pill-btn",c.textContent=i.cancelTurn,c.addEventListener("click",()=>this.drawExchanges(this.drawn)),h.append(o,c),n.append(a,d,h),s.replaceWith(n),a.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,n]of s)this.takenOut.set(`${e}:${Number(i.split(":")[1])+r}`,n)}shiftTakenOut(e){const t=[...this.takenOut];this.takenOut.clear();for(const[r,s]of t){const[i,n]=r.split(":"),a=Number(i);a<e?this.takenOut.set(r,s):a>e&&this.takenOut.set(`${a-1}:${n}`,s)}}markCurrentTurn(e){const t=this.drawn?.segments??[];let r=-1;t.forEach((n,a)=>{n.start!==void 0&&n.start<=e&&(r=a)});for(const n of this.shadow.querySelectorAll("#exchanges .turn.current"))n.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(){this.shadow.getElementById("transcribe").hidden=this.hasAttribute("readonly")||!this.transcribing&&!this.player?.recordingUrl();const e=this.messages;if(!e)return;const t=this.shadow.getElementById("transcribe-source");[...t.options].map(o=>o.value).join()!==T.map(o=>o.id).join()&&t.replaceChildren(...T.map(o=>{const c=new Option(o.name,o.id);return c.title=o.credit,c}));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 n=this.player?.recordingUrl();this.renderTranscribeStart();const a=this.shadow.getElementById("transcribe-note");if(this.transcribeOutcome){y.show(a,this.transcribeOutcome.text,this.transcribeOutcome.kind);return}if(!n){y.show(a,e.transcribeNoRecording);return}const d=r.create(),h=[d.sendsAudio?e.transcribeSends.replace("{name}",r.name):e.transcribeLocal.replace("{mb}",String(Math.round((d.downloadBytes??0)/1e6)))];(this.drawn?.segments?.length??0)>0&&h.push(e.transcribeReplaces),y.show(a,h.join(" "),d.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=n=>String(Math.round(n/1e6));if(e==="reading")s.removeAttribute("value"),y.show(r,t.transcribeReading);else if(e.stage==="loading")e.total?(s.max=e.total,s.value=e.loaded,y.show(r,t.transcribeLoading.replace("{loaded}",i(e.loaded)).replace("{total}",i(e.total)))):(s.removeAttribute("value"),y.show(r,t.transcribeLoadingSoFar.replace("{loaded}",i(e.loaded))));else if(e.stage==="sending"||e.stage==="waiting"){s.removeAttribute("value");const n=O(T,u.transcriptionSourceId).name;y.show(r,(e.stage==="sending"?t.transcribeSending:t.transcribeWaiting).replace("{name}",n))}else s.max=e.total,s.value=e.done,y.show(r,t.transcribeProgress.replace("{done}",w.clock(Math.round(e.done))).replace("{total}",w.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(),n=this.transcribing=new AbortController;this.transcribeOutcome=void 0,this.showTranscribing(!0),this.showProgress("reading");try{const[{TranscriptionAudio:a},{TranscriptionError:d},{InterviewImport:h}]=await Promise.all([b(()=>import("./TranscriptionAudio-C_xvRUv2.js"),[],import.meta.url),b(()=>import("./TranscriptionError-D_TCbYbt.js"),[],import.meta.url),b(()=>import("./interviewImport-zzDGCbXd.js"),__vite__mapDeps([8,7,6]),import.meta.url)]),o=await fetch(r,{signal:n.signal});if(!o.ok)throw new d("failed",`HTTP ${o.status}`);if(Number(o.headers.get("content-length")??0)>a.MAX_BYTES)throw new d("tooLarge");const c=await o.arrayBuffer();if(c.byteLength>a.MAX_BYTES)throw new d("tooLarge");const l=await a.decode(c).catch(()=>{throw new d("failed",e.loadFailed)}),p=this.drawn?.language??this.language,g=await i.transcribe({samples:l,language:p,signal:n.signal,progress:k=>this.showProgress(k)}),m=[t.interviewOf].flat().filter(k=>typeof k=="string"),v=h.transcribed(g,{by:(t.by??[]).flatMap(k=>"people"in k?[k.people]:[]),witnesses:this.options.filter(k=>m.length===0||m.includes(k.id)).map(({id:k,label:W})=>({id:k,label:W}))});if(!v)throw new d("failed",e.exchangesEmpty);if(n.signal.aborted||this.current!==t)throw new DOMException("Aborted","AbortError");const{anonymization:ee,...H}=await this.transcriptJson(t)??{};await this.take({...H,...v,language:p,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(a){const d=a;n.signal.aborted||d?.name==="AbortError"?this.transcribeOutcome={text:e.transcribeStopped,kind:"info"}:d?.name==="TranscriptionError"&&d.code?this.transcribeOutcome={text:e.transcribeErrors[d.code].replace("{detail}",d.detail??""),kind:"error"}:this.transcribeOutcome={text:e.transcribeErrors.failed.replace("{detail}",String(d?.message??a)),kind:"error"}}finally{this.transcribing=void 0,this.showTranscribing(!1),this.renderTranscribe()}}note(e,t="info"){y.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)+`
277
+ `}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},n=(a,d,h)=>{h.forEach((o,c)=>{const l=c===0?a:`${a}${c+1}`;i[l]?i[l]={...i[l],[d]:o}:c>0&&(i[l]={role:a,[d]:o})})};n("interviewer","by",t.by??[]),n("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(a=>r[a])),i=a=>typeof a=="string"||typeof a=="object"&&a!==null&&!Array.isArray(a),n={title:i,summary:i,time:a=>typeof a=="string",medium:a=>typeof a=="string",by:a=>Array.isArray(a),interviewOf:a=>typeof a=="string"||Array.isArray(a)};for(const a of u.SHARED){const d=e[a];d!==void 0&&n[a](d)?r[a]=structuredClone(d):t&&delete r[a]}return JSON.stringify(u.SHARED.map(a=>r[a]))!==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([b(()=>import("./SightingFileEditor-Du3A9uZm.js"),__vite__mapDeps([9,10,11]),import.meta.url),b(()=>import("./interviewSchema-DRWvRSL2.js"),[],import.meta.url),Y(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 I.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}const s=this.importHints();if(this.isQuestionnaire(r)){await this.takeQuestionnaire(r??t,e.name);return}if(typeof r!="object"||r===null){const{InterviewImport:i}=await b(async()=>{const{InterviewImport:a}=await import("./interviewImport-zzDGCbXd.js");return{InterviewImport:a}},__vite__mapDeps([8,7,6]),import.meta.url),n=i.parse(t,s);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")}}importHints(){const e=this.current,t=[e?.interviewOf].flat().filter(r=>typeof r=="string");return{by:(e?.by??[]).map(r=>u.byText([r])).filter(r=>r!==""),witnesses:this.options.filter(r=>t.length===0||t.includes(r.id))}}isQuestionnaire(e){const t=typeof e=="object"&&e!==null&&Array.isArray(e.segments);return this.current?.medium==="questionnaire"&&!t}async takeQuestionnaire(e,t){const[{QuestionnaireImport:r},{QuestionnaireTemplates:s}]=await Promise.all([b(()=>import("./QuestionnaireImport-BYj5QoJS.js"),__vite__mapDeps([12,7,6]),import.meta.url),b(()=>import("./rr0-sighting-editor.mjs").then(d=>d.dd),[],import.meta.url)]),i=this.current?await this.transcriptJson(this.current):void 0,n=await s.load(i?.questionnaire?.id??s.DEFAULT),a=r.parse(e,this.importHints(),n);if(!a){this.note(this.messages.notAQuestionnaire,"error");return}await this.take({...a,transcription:{method:"manual",note:`Imported from ${t}: one question and its answer per field, as the witness filled it in.`}})}async importFromUrl(e){try{const t=new URL(e,this.base??location.href).href,r=await I.json(t);this.isQuestionnaire(r)?await this.takeQuestionnaire(r,t.split("/").pop()??t):await this.take(r)}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 ne(){X(),V(),customElements.get(q)||customElements.define(q,u)}export{S as INTERVIEW_CHANGE_EVENT,q as INTERVIEW_EDITOR_ELEMENT_NAME,de as INTERVIEW_SEEK_EVENT,u as InterviewEditorElement,ne as register};
@@ -1,4 +1,4 @@
1
- import{a as E,f as N,c as T,s as L,U as S,d as A,i as I,a6 as j}from"./rr0-sighting-editor.mjs";import{InterviewFile as u}from"./interviewJson-CsMHIcZ-.js";const x="rr0-interview",C=`
1
+ import{a as E,g as N,c as T,s as L,U as S,d as A,i as I,ac as j}from"./rr0-sighting-editor.mjs";import{InterviewFile as u}from"./interviewJson-DngUPqK8.js";const x="rr0-interview",C=`
2
2
  rr0-interview { display: block; --rr0-interview-line: color-mix(in srgb, currentColor 35%, transparent); }
3
3
  rr0-interview [hidden] { display: none !important; }
4
4
  rr0-interview .rr0-interview-status { font-size: .85em; opacity: .85; margin: 0 0 .5em; }
@@ -0,0 +1 @@
1
+ class t{static LABELS={en:{"in-person":"In person",phone:"Phone",video:"Video call",chat:"Chat",email:"Email",letter:"Letter",questionnaire:"Questionnaire",other:"Other"},fr:{"in-person":"Face à face",phone:"Téléphone",video:"Visioconférence",chat:"Chat",email:"Mail",letter:"Courrier",questionnaire:"Questionnaire",other:"Autre"},es:{"in-person":"En persona",phone:"Teléfono",video:"Videollamada",chat:"Chat",email:"Correo electrónico",letter:"Carta",questionnaire:"Cuestionario",other:"Otro"},it:{"in-person":"Di persona",phone:"Telefono",video:"Videochiamata",chat:"Chat",email:"Email",letter:"Lettera",questionnaire:"Questionario",other:"Altro"}};static ALL=["in-person","phone","video","chat","email","letter","questionnaire","other"];static label(e,o){return t.LABELS[o][e]??e}}export{t as InterviewMedia};
@@ -0,0 +1 @@
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; a filled questionnaire (JSON, CSV, text) when the medium is Questionnaire: each field becomes a question and its answer",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).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Fill in the {title}: each answer is kept as the witness's words, and a question left empty stays unanswered.",source:"The questionnaire as {publisher} publishes it",other:"Other questions",required:"Asked of every witness",precise:"precise",imprecise:"imprecise",preciseHint:"Say it in your own words instead: a rough date or time, or one you are not sure of",impreciseHint:"Pick an exact date or time instead",impreciseDate:"e.g. early July 1965, a Saturday, I'm not sure of the day",impreciseTime:"e.g. around 9 pm, shortly after sunset",confidentialSealed:"Confidential: sealed for {name}, who alone can read it; it is in no file in clear.",confidentialSealedBefore:"An answer sealed for {name} has been given already: it cannot be shown again, and writing another replaces it.",confidentialNowhere:"Confidential: this case names no recipient to seal it for, so it is kept in no file."},feed:"Set in the observation",feedHint:"What the answers say of when, how long, the colour and where it was in the sky is set in the witness's observation, each value citing its answer",fed:"{n} values set in the observation, each citing its answer.",fedNothing:"Nothing in the answers the observation can be given yet (date, time, duration, colour, direction, height).",unknownQuestionnaire:"The questionnaire {id} is not one this version knows: its questions are shown as the interview has them.",notAQuestionnaire:"That file holds no field of a questionnaire (a question and its answer).",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",recordingAddFirst:"Give the file of the recording above first",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)",sealOpen:"Open with {name}",sealOpened:"Confidential, read with {name}: kept in this page only, never written.",sealFailed:"This key does not open this answer: it was sealed for another.",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};
@@ -0,0 +1 @@
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; un cuestionario rellenado (JSON, CSV, texto) si el medio es Cuestionario: cada campo pasa a ser una pregunta y su respuesta",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).",questionnaireTab:"Cuestionario",questionnaire:{intro:"Rellene el {title}: cada respuesta se guarda con las palabras del testigo, y una pregunta dejada vacía queda sin respuesta.",source:"El cuestionario tal como lo publica {publisher}",other:"Otras preguntas",required:"Se pregunta a todo testigo",precise:"precisa",imprecise:"imprecisa",preciseHint:"Decirla mejor con sus palabras: una fecha o una hora aproximada, o de la que no está seguro",impreciseHint:"Elegir mejor una fecha o una hora exacta",impreciseDate:"p. ej. a principios de julio de 1965, un sábado, no estoy seguro del día",impreciseTime:"p. ej. hacia las 21 h, poco después de la puesta del sol",confidentialSealed:"Confidencial: sellada para {name}, el único que puede leerla; no figura en claro en ningún archivo.",confidentialSealedBefore:"Ya se dio una respuesta sellada para {name}: no puede volver a mostrarse, y escribir otra la sustituye.",confidentialNowhere:"Confidencial: este caso no nombra ningún destinatario para quien sellarla, así que no se guarda en ningún archivo."},feed:"Pasar a la observación",feedHint:"Lo que las respuestas dicen del momento, la duración, el color y la posición en el cielo se pasa a la observación del testigo, cada valor citando su respuesta",fed:"{n} valores pasados a la observación, cada uno citando su respuesta.",fedNothing:"Nada en las respuestas puede pasarse aún a la observación (fecha, hora, duración, color, dirección, altura).",unknownQuestionnaire:"El cuestionario {id} no es uno que esta versión conozca: sus preguntas se muestran tal como las tiene la entrevista.",notAQuestionnaire:"Ese archivo no contiene ningún campo de cuestionario (una pregunta y su respuesta).",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",recordingAddFirst:"Indique primero el archivo de la grabación de arriba",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)",sealOpen:"Abrir con {name}",sealOpened:"Confidencial, leída con {name}: se guarda solo en esta página, nunca se escribe.",sealFailed:"Esta clave no abre esta respuesta: se selló para otra.",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};
@@ -0,0 +1 @@
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 ; un questionnaire rempli (JSON, CSV, texte) si le moyen est Questionnaire : chaque champ devient une question et sa réponse",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).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Remplissez le {title} : chaque réponse est gardée dans les mots du témoin, et une question laissée vide reste sans réponse.",source:"Le questionnaire tel que le publie {publisher}",other:"Autres questions",required:"Demandé à tout témoin",precise:"précise",imprecise:"imprécise",preciseHint:"La dire plutôt dans vos mots : une date ou une heure approximative, ou dont vous n'êtes pas sûr",impreciseHint:"Choisir plutôt une date ou une heure exacte",impreciseDate:"ex. début juillet 1965, un samedi, je ne suis pas sûr du jour",impreciseTime:"ex. vers 21 h, peu après le coucher du soleil",confidentialSealed:"Confidentielle : scellée pour {name}, qui seul peut la lire ; elle ne figure en clair dans aucun fichier.",confidentialSealedBefore:"Une réponse scellée pour {name} a déjà été donnée : elle ne peut plus être affichée, et en écrire une autre la remplace.",confidentialNowhere:"Confidentielle : ce dossier ne nomme aucun destinataire pour qui la sceller, elle n'est donc gardée dans aucun fichier."},feed:"Reporter dans l'observation",feedHint:"Ce que les réponses disent du moment, de la durée, de la couleur et de la position dans le ciel est reporté dans l'observation du témoin, chaque valeur citant sa réponse",fed:"{n} valeurs reportées dans l'observation, chacune citant sa réponse.",fedNothing:"Rien dans les réponses ne peut encore être reporté dans l'observation (date, heure, durée, couleur, direction, hauteur).",unknownQuestionnaire:"Le questionnaire {id} n'est pas connu de cette version : ses questions sont montrées telles que l'interview les a.",notAQuestionnaire:"Ce fichier ne contient aucun champ de questionnaire (une question et sa réponse).",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",recordingAddFirst:"Donnez d'abord le fichier de l'enregistrement ci-dessus",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)",sealOpen:"Ouvrir avec {name}",sealOpened:"Confidentielle, lue avec {name} : gardée dans cette page seulement, jamais écrite.",sealFailed:"Cette clé n'ouvre pas cette réponse : elle a été scellée pour une autre.",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};
@@ -0,0 +1 @@
1
+ const e={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; un questionario compilato (JSON, CSV, testo) se il mezzo è Questionario: ogni campo diventa una domanda e la sua risposta",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).",questionnaireTab:"Questionario",questionnaire:{intro:"Compili il {title}: ogni risposta è conservata con le parole del testimone, e una domanda lasciata vuota resta senza risposta.",source:"Il questionario come lo pubblica {publisher}",other:"Altre domande",required:"Chiesto a ogni testimone",precise:"precisa",imprecise:"imprecisa",preciseHint:"Dirla piuttosto con parole sue: una data o un'ora approssimativa, o di cui non è sicuro",impreciseHint:"Scegliere piuttosto una data o un'ora esatta",impreciseDate:"es. inizio luglio 1965, un sabato, non sono sicuro del giorno",impreciseTime:"es. verso le 21, poco dopo il tramonto",confidentialSealed:"Riservata: sigillata per {name}, l'unico che può leggerla; non compare in chiaro in nessun file.",confidentialSealedBefore:"Una risposta sigillata per {name} è già stata data: non può più essere mostrata, e scriverne un'altra la sostituisce.",confidentialNowhere:"Riservata: questo caso non nomina alcun destinatario per cui sigillarla, quindi non è conservata in nessun file."},feed:"Riporta nell'osservazione",feedHint:"Ciò che le risposte dicono del momento, della durata, del colore e della posizione nel cielo è riportato nell'osservazione del testimone, ogni valore citando la sua risposta",fed:"{n} valori riportati nell'osservazione, ciascuno citando la sua risposta.",fedNothing:"Nulla nelle risposte può ancora essere riportato nell'osservazione (data, ora, durata, colore, direzione, altezza).",unknownQuestionnaire:"Il questionario {id} non è noto a questa versione: le sue domande sono mostrate come le ha l'intervista.",notAQuestionnaire:"Quel file non contiene alcun campo di questionario (una domanda e la sua risposta).",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",recordingAddFirst:"Indichi prima il file della registrazione qui sopra",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",sealOpen:"Aprire con {name}",sealOpened:"Riservata, letta con {name}: conservata solo in questa pagina, mai scritta.",sealFailed:"Questa chiave non apre questa risposta: è stata sigillata per un'altra.",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{e as interviewMessages_it};
@@ -1,4 +1,4 @@
1
- import{G as s}from"./GeographicFigures-DqhWddS9.js";import"./rr0-sighting-editor.mjs";class o{static GROUPS=["observer","sight-line","body","trace"];static of(e,t,r,i){const n=s.of(e,r,i),c=o.GROUPS.map(a=>n.filter(l=>l.group===a)).filter(a=>a.length>0).map(a=>o.folder(a[0].groupName,a.map(l=>o.placemark(l))));return`<?xml version="1.0" encoding="UTF-8"?>
1
+ import{G as s}from"./GeographicFigures-D_TfLkj9.js";import"./rr0-sighting-editor.mjs";class o{static GROUPS=["observer","sight-line","body","trace"];static of(e,t,r,i){const n=s.of(e,r,i),c=o.GROUPS.map(a=>n.filter(l=>l.group===a)).filter(a=>a.length>0).map(a=>o.folder(a[0].groupName,a.map(l=>o.placemark(l))));return`<?xml version="1.0" encoding="UTF-8"?>
2
2
  <kml xmlns="http://www.opengis.net/kml/2.2">
3
3
  <Document>
4
4
  <name>${o.xml(s.fill(r.document,{name:t}))}</name>
@@ -0,0 +1,24 @@
1
+ import{v as u,_ as h,bc as p,a7 as g,a9 as f,a8 as y,a5 as b,bd as T,be as w,k as A,aa as E}from"./rr0-sighting-editor.mjs";import{S as v}from"./SkyEventEditorStyle-CvY_AhbI.js";import{SkyLantern as o}from"./SkyLantern-Dl4yl-lc.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 c{constructor(e,t,n){this.container=e,this.host=t,v.attach(e,"lantern-editor-part",c.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 g(this.element("lantern-parameters"),this.language,"lantern.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(i.SET),new f(()=>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 b({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(m=>m.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=A.saysNothing(n,E.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{c as LanternEditor};