@rr0/ufoathome 0.203.0 → 0.204.1

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 (242) hide show
  1. package/dist-embed-scene/SceneNames_en--zj8Tlec.js +1 -0
  2. package/dist-embed-scene/SceneNames_es-toWs7p7i.js +1 -0
  3. package/dist-embed-scene/SceneNames_fr-w4Xdplid.js +1 -0
  4. package/dist-embed-scene/SceneNames_it-Cwcscdx7.js +1 -0
  5. package/dist-embed-scene/rr0-scene.mjs +296 -296
  6. package/dist-embed-scene/sightingSchema-DoPVOlCB.js +1 -0
  7. package/dist-embed-sighting/{AdsbLolArchiveProvider-CsuxO9wl.js → AdsbLolArchiveProvider-BSewzrRe.js} +1 -1
  8. package/dist-embed-sighting/{AirshipEditor-DkDCkwGG.js → AirshipEditor-BiG7EYoB.js} +2 -2
  9. package/dist-embed-sighting/{AuroraEditor-C4tY9hXK.js → AuroraEditor-C1Y_zbNW.js} +1 -1
  10. package/dist-embed-sighting/{AuroraSimulation-C7LAHgWM.js → AuroraSimulation-B9GaDXC3.js} +2 -2
  11. package/dist-embed-sighting/{BallesterGuaspAssessor-BPaiHWd9.js → BallesterGuaspAssessor-BAXmW7XL.js} +1 -1
  12. package/dist-embed-sighting/BalloonEditor-D54CC7cn.js +24 -0
  13. package/dist-embed-sighting/{BeamEditor-DDzw-fB_.js → BeamEditor-SHXD10FH.js} +1 -1
  14. package/dist-embed-sighting/{BeamSystem-CsNwl_vM.js → BeamSystem-CP3J9Jgx.js} +1 -1
  15. package/dist-embed-sighting/{BirdEditor-BgNNcdhv.js → BirdEditor-BCit7Rs-.js} +1 -1
  16. package/dist-embed-sighting/{BirdFlock-DBgkxsxp.js → BirdFlock-DhsSOJTg.js} +1 -1
  17. package/dist-embed-sighting/{CaseReportExport--iqqhu1e.js → CaseReportExport-Dk3rKiVm.js} +2 -2
  18. package/dist-embed-sighting/{ContrailSystem-Di5w5IVi.js → ContrailSystem-70o5ynhD.js} +1 -1
  19. package/dist-embed-sighting/ControlPasses-DQMrWqA3.js +29 -0
  20. package/dist-embed-sighting/{CoverageAssessor-Cu9wP4ZB.js → CoverageAssessor-BdZ85Hmy.js} +1 -1
  21. package/dist-embed-sighting/{DroneEditor-5nuq52EG.js → DroneEditor-DwQsVj8U.js} +1 -1
  22. package/dist-embed-sighting/{DroneParameters-DHeJ7KyU.js → DroneParameters-91BBY10Y.js} +1 -1
  23. package/dist-embed-sighting/{Flightradar24Provider-p4a3_chL.js → Flightradar24Provider-NbfW-lDQ.js} +1 -1
  24. package/dist-embed-sighting/{GLTFLoader-fbsNsHlp.js → GLTFLoader-CTETHs7e.js} +1 -1
  25. package/dist-embed-sighting/GenerativeKitMessages-hgIQ_sST.js +1 -0
  26. package/dist-embed-sighting/{HeadlightSystem-Ce7sHylX.js → HeadlightSystem-ByKGq-30.js} +1 -1
  27. package/dist-embed-sighting/{HynekAssessor-DWDZGeLY.js → HynekAssessor-O1MFR79v.js} +1 -1
  28. package/dist-embed-sighting/LanternEditor-X0RgF4mn.js +24 -0
  29. package/dist-embed-sighting/{LaunchEditor-BGyLgkGS.js → LaunchEditor-oTKLz_5C.js} +1 -1
  30. package/dist-embed-sighting/{LaunchSimulation-DvexI06i.js → LaunchSimulation-ClRFO1uw.js} +1 -1
  31. package/dist-embed-sighting/{ModuleSession-_kHZ7Tx3.js → ModuleSession-SivjhuIl.js} +3 -3
  32. package/dist-embed-sighting/ModuleThree-TrytNggN.js +1 -0
  33. package/dist-embed-sighting/{NearestApproach-CONyx4c5.js → NearestApproach-BM7B5PuM.js} +1 -1
  34. package/dist-embed-sighting/{ParameterForm-DFHcolwG.js → ParameterForm-BghOJXLP.js} +1 -1
  35. package/dist-embed-sighting/{PoherAssessor-DI86qOCu.js → PoherAssessor-DZMtM2pW.js} +1 -1
  36. package/dist-embed-sighting/PoherMatrix-C2fcLqDH.js +1 -0
  37. package/dist-embed-sighting/PoherSelfCheck-PJvhaWFK.js +1 -0
  38. package/dist-embed-sighting/{RailwaySystem-DcJr9BY_.js → RailwaySystem-Dmx9y4gO.js} +1 -1
  39. package/dist-embed-sighting/{ReentryEditor-C6EJJf4l.js → ReentryEditor-DozmlO_l.js} +1 -1
  40. package/dist-embed-sighting/{ReentrySimulation-BFVBOWrm.js → ReentrySimulation-WXW1IU2E.js} +1 -1
  41. package/dist-embed-sighting/{ReferenceSystem-zTvTqp5y.js → ReferenceSystem-BD7gXBee.js} +1 -1
  42. package/dist-embed-sighting/{RoadMarkings-DvWjbrSf.js → RoadMarkings-Bp07bgso.js} +1 -1
  43. package/dist-embed-sighting/SceneNames_en-BarwWQKA.js +1 -0
  44. package/dist-embed-sighting/SceneNames_es-CEdDjAb4.js +1 -0
  45. package/dist-embed-sighting/SceneNames_fr-m5WHqg-1.js +1 -0
  46. package/dist-embed-sighting/SceneNames_it-D_H_iZnc.js +1 -0
  47. package/dist-embed-sighting/{SearchlightEditor-By5Z3ef7.js → SearchlightEditor-BGmKCBrG.js} +1 -1
  48. package/dist-embed-sighting/{SearchlightSystem-PEMBDW1s.js → SearchlightSystem-5FPRRIkH.js} +1 -1
  49. package/dist-embed-sighting/SightingMessages_en-DKFVZnDu.js +1 -0
  50. package/dist-embed-sighting/SightingMessages_es-DYQlWvm0.js +1 -0
  51. package/dist-embed-sighting/SightingMessages_fr-BygVDDY9.js +1 -0
  52. package/dist-embed-sighting/SightingMessages_it-BI7GnXPz.js +1 -0
  53. package/dist-embed-sighting/{SkyLantern-yYihsrun.js → SkyLantern-1Rqy6fNz.js} +1 -1
  54. package/dist-embed-sighting/{TraceSystem-1K0WblAK.js → TraceSystem-DDlP7sxl.js} +2 -2
  55. package/dist-embed-sighting/{UfoMessages_en-CwRXodRE.js → UfoMessages_en-DvUA0KYR.js} +1 -1
  56. package/dist-embed-sighting/{WaterSystem-1VlNXZnO.js → WaterSystem-Ik6QzyT_.js} +2 -2
  57. package/dist-embed-sighting/rr0-sighting.mjs +344 -325
  58. package/dist-embed-sighting/sightingSchema-DoPVOlCB.js +1 -0
  59. package/dist-embed-sighting/{trafficRuntime-BUvbWOcl.js → trafficRuntime-CjDwU1Lk.js} +1 -1
  60. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-DNYpHE9t.js → AdsbLolArchiveProvider-CNMGHqqx.js} +1 -1
  61. package/dist-embed-sighting-editor/{AirshipEditor-B_TQEcNk.js → AirshipEditor-BVlkWwdL.js} +1 -1
  62. package/dist-embed-sighting-editor/{AirshipFlight-zrtPXNvX.js → AirshipFlight-Cvl6xWPY.js} +1 -1
  63. package/dist-embed-sighting-editor/{Aurora-wHi_XgNK.js → Aurora-DOIRpjiG.js} +1 -1
  64. package/dist-embed-sighting-editor/{AuroraEditor-CHAo9LbG.js → AuroraEditor-B0tCM7E7.js} +1 -1
  65. package/dist-embed-sighting-editor/{AuroraSimulation-CMoKbd0k.js → AuroraSimulation-CX7V0obh.js} +1 -1
  66. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-Bylahnc2.js → BallesterGuaspAssessor-DEJId5n8.js} +1 -1
  67. package/dist-embed-sighting-editor/{BalloonEditor-DOmOj25v.js → BalloonEditor-Drb5evP5.js} +1 -1
  68. package/dist-embed-sighting-editor/{BalloonFlight-DkhpbdZV.js → BalloonFlight-CGXmDbNq.js} +1 -1
  69. package/dist-embed-sighting-editor/{BeamEditor-CwC6pRPq.js → BeamEditor-DP2LNObR.js} +1 -1
  70. package/dist-embed-sighting-editor/{BeamSystem-Zsq9zuJa.js → BeamSystem-BCaOtm3H.js} +1 -1
  71. package/dist-embed-sighting-editor/{BirdEditor-DslUOI4x.js → BirdEditor-CbYZcYyG.js} +1 -1
  72. package/dist-embed-sighting-editor/{BirdFlock-BoXaV-S_.js → BirdFlock-Dv9Awhvf.js} +1 -1
  73. package/dist-embed-sighting-editor/{CaseElement-DFnjs2AU.js → CaseElement-4CRoH54h.js} +2 -2
  74. package/dist-embed-sighting-editor/{CaseReportExport-CX87uNr9.js → CaseReportExport-W1lO4CR3.js} +1 -1
  75. package/dist-embed-sighting-editor/{ContrailSystem-hUtlCEq-.js → ContrailSystem-ChbOVWp-.js} +1 -1
  76. package/dist-embed-sighting-editor/{ControlPasses-C8qq_tSL.js → ControlPasses-Dgz_D6DL.js} +1 -1
  77. package/dist-embed-sighting-editor/{CoverageAssessor-uzQnTEH8.js → CoverageAssessor-CcVuVsG0.js} +1 -1
  78. package/dist-embed-sighting-editor/{DroneEditor-M2V3FKbS.js → DroneEditor-D6k4gYj4.js} +1 -1
  79. package/dist-embed-sighting-editor/{DroneFlight-C1bur42A.js → DroneFlight-D-MWhrXa.js} +1 -1
  80. package/dist-embed-sighting-editor/{DroneParameters-DRfoxMx8.js → DroneParameters-CdQbwFKD.js} +1 -1
  81. package/dist-embed-sighting-editor/{Flightradar24Provider-BJDB9e9p.js → Flightradar24Provider-D_eLiI9k.js} +1 -1
  82. package/dist-embed-sighting-editor/{GLTFLoader-CQrldtm5.js → GLTFLoader-BIk0ozTu.js} +1 -1
  83. package/dist-embed-sighting-editor/{HeadlightSystem-BzXjwGDi.js → HeadlightSystem-C9tLjvpO.js} +1 -1
  84. package/dist-embed-sighting-editor/{HynekAssessor-Bpze0IeH.js → HynekAssessor-B4ej1xgG.js} +1 -1
  85. package/dist-embed-sighting-editor/{InterviewEditorElement-C6y-8Wze.js → InterviewEditorElement-Bo4OG2ig.js} +3 -3
  86. package/dist-embed-sighting-editor/{LanternEditor-6fXL9oHW.js → LanternEditor-Hd-8kmET.js} +1 -1
  87. package/dist-embed-sighting-editor/{LaserBeam-Cl4c8oJt.js → LaserBeam-Ca2QUeCT.js} +1 -1
  88. package/dist-embed-sighting-editor/{LaunchEditor-C9swLaSJ.js → LaunchEditor-BykQEscN.js} +1 -1
  89. package/dist-embed-sighting-editor/{LaunchPlume-CPBS4JLE.js → LaunchPlume-Dos-OyTV.js} +1 -1
  90. package/dist-embed-sighting-editor/{LaunchSimulation-zjImyFHC.js → LaunchSimulation-B0DgOoJM.js} +1 -1
  91. package/dist-embed-sighting-editor/{ModelSource-ZiTya13j.js → ModelSource-szsl2QtY.js} +1 -1
  92. package/dist-embed-sighting-editor/{ModelThumbnails-BKl0Wk33.js → ModelThumbnails-dnCeD6UT.js} +1 -1
  93. package/dist-embed-sighting-editor/{ModelViewer-ZZnOiYz4.js → ModelViewer-BNGSukqO.js} +1 -1
  94. package/dist-embed-sighting-editor/{ModuleConformance-CYQ-Mn8w.js → ModuleConformance-CEXxsL48.js} +2 -2
  95. package/dist-embed-sighting-editor/{ModuleSession-BklqVucx.js → ModuleSession-DOhPD2XZ.js} +2 -2
  96. package/dist-embed-sighting-editor/ModuleThree-BY0cNbGt.js +1 -0
  97. package/dist-embed-sighting-editor/{ModulesPanelElement-MEFltyZr.js → ModulesPanelElement-DTnJICg0.js} +3 -3
  98. package/dist-embed-sighting-editor/{NearestApproach-Bnx9Ld5_.js → NearestApproach-jDpDx7cm.js} +1 -1
  99. package/dist-embed-sighting-editor/{PoherAssessor-CNj_Nyci.js → PoherAssessor-yWlnEcoZ.js} +1 -1
  100. package/dist-embed-sighting-editor/{RailwaySystem-Dn-v2OAb.js → RailwaySystem-CAqOaX1c.js} +1 -1
  101. package/dist-embed-sighting-editor/{ReentryEditor-DPt4At81.js → ReentryEditor-CNLwoAIZ.js} +2 -2
  102. package/dist-embed-sighting-editor/{ReentrySimulation-DwaQrNN5.js → ReentrySimulation-Q-8h8lRK.js} +1 -1
  103. package/dist-embed-sighting-editor/{ReferenceSystem-DlaF5KWz.js → ReferenceSystem-B0tZDQ1-.js} +1 -1
  104. package/dist-embed-sighting-editor/SceneNames_en-CTJiUG-r.js +1 -0
  105. package/dist-embed-sighting-editor/SceneNames_es-DHZMjSqb.js +1 -0
  106. package/dist-embed-sighting-editor/SceneNames_fr-C36uyjbM.js +1 -0
  107. package/dist-embed-sighting-editor/SceneNames_it-BQJQm2rT.js +1 -0
  108. package/dist-embed-sighting-editor/{SearchlightEditor-CdTMwgER.js → SearchlightEditor-sQh92hx7.js} +1 -1
  109. package/dist-embed-sighting-editor/{SearchlightSystem-jipCae7J.js → SearchlightSystem-B_RPbGj4.js} +1 -1
  110. package/dist-embed-sighting-editor/{SightingEditorMessages_en-BmqJK2u_.js → SightingEditorMessages_en-V_dJYjNb.js} +1 -1
  111. package/{dist-embed-ufoathome/SightingEditorMessages_es-avQMqPMq.js → dist-embed-sighting-editor/SightingEditorMessages_es-DauDuhPa.js} +1 -1
  112. package/dist-embed-sighting-editor/{SightingEditorMessages_fr-ClEadK1E.js → SightingEditorMessages_fr-zxTvQa2I.js} +1 -1
  113. package/dist-embed-sighting-editor/{SightingEditorMessages_it-Co5behaA.js → SightingEditorMessages_it-vvaao68O.js} +1 -1
  114. package/dist-embed-sighting-editor/SightingElement-4YMo_us5.js +694 -0
  115. package/dist-embed-sighting-editor/{SightingFileEditor-Du3A9uZm.js → SightingFileEditor-tIOJTG_y.js} +1 -1
  116. package/dist-embed-sighting-editor/SightingLabels_en-dOsFjVRL.js +1 -0
  117. package/dist-embed-sighting-editor/SightingLabels_es-CKlP2BDO.js +1 -0
  118. package/dist-embed-sighting-editor/{SightingLabels_fr-D69zENbW.js → SightingLabels_fr-Cpkcf5_9.js} +1 -1
  119. package/{dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js → dist-embed-sighting-editor/SightingLabels_it-3127rMXm.js} +1 -1
  120. package/dist-embed-sighting-editor/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
  121. package/dist-embed-sighting-editor/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
  122. package/dist-embed-sighting-editor/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
  123. package/dist-embed-sighting-editor/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
  124. package/dist-embed-sighting-editor/{SkyLantern-CYhqKOnv.js → SkyLantern-Cj60Cn9B.js} +1 -1
  125. package/dist-embed-sighting-editor/{TraceSystem-Bj0G3fL7.js → TraceSystem-BK0y5lRX.js} +2 -2
  126. package/dist-embed-sighting-editor/{WaterSystem-Cv4v7PXz.js → WaterSystem-DMeMEW3i.js} +2 -2
  127. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +455 -434
  128. package/dist-embed-sighting-editor/sightingSchema-DoPVOlCB.js +1 -0
  129. package/dist-embed-sighting-editor/{trafficRuntime-BdBceXei.js → trafficRuntime-eGXY41n0.js} +1 -1
  130. package/dist-embed-ufoathome/{AdsbLolArchiveProvider-D169IKdZ.js → AdsbLolArchiveProvider-BJm3HMv9.js} +1 -1
  131. package/dist-embed-ufoathome/{Aurora-CP_Xi-9o.js → Aurora-DooZfol8.js} +1 -1
  132. package/dist-embed-ufoathome/{AuroraEditor-B_Rxo_6I.js → AuroraEditor-COl6Uq7r.js} +1 -1
  133. package/dist-embed-ufoathome/{AuroraSimulation-KHkJyuus.js → AuroraSimulation-8865pkCY.js} +1 -1
  134. package/dist-embed-ufoathome/{BallesterGuaspAssessor-58lmGHUw.js → BallesterGuaspAssessor-CKK5Iybb.js} +1 -1
  135. package/dist-embed-ufoathome/{BalloonEditor-CAKXO8DQ.js → BalloonEditor-BBAtMeVM.js} +1 -1
  136. package/dist-embed-ufoathome/{BeamEditor-BOsTgbHL.js → BeamEditor-D6I1zG9Z.js} +1 -1
  137. package/dist-embed-ufoathome/{BeamSystem-C7OL1VWr.js → BeamSystem-BI4-w_0X.js} +1 -1
  138. package/dist-embed-ufoathome/{BodyEditor-DZ9-YBfo.js → BodyEditor-yBNJy9AC.js} +1 -1
  139. package/dist-embed-ufoathome/{CaseEditorElement-BgT6HnpX.js → CaseEditorElement-CPt1laCe.js} +64 -61
  140. package/dist-embed-ufoathome/{CaseElement-DVXLO8mr.js → CaseElement-CTZ3YIL0.js} +3 -3
  141. package/dist-embed-ufoathome/{CaseReportExport-Dui5KDc5.js → CaseReportExport-UNmAQ_xa.js} +3 -3
  142. package/dist-embed-ufoathome/{ColumnResize-CO4e1m-q.js → ColumnResize-D6vA9JBg.js} +9 -9
  143. package/dist-embed-ufoathome/{ControlPasses-CJ2jMdlf.js → ControlPasses-Bwafi16d.js} +1 -1
  144. package/dist-embed-ufoathome/{CoverageAssessor-CzhOt6fv.js → CoverageAssessor-DINhJJFz.js} +1 -1
  145. package/dist-embed-ufoathome/{Flightradar24Provider-TCNh_VXc.js → Flightradar24Provider-BEVn6h-k.js} +1 -1
  146. package/dist-embed-ufoathome/{GLTFLoader-BaIfBICM.js → GLTFLoader-CqzCNjEl.js} +1 -1
  147. package/dist-embed-ufoathome/{GeoJsonExport-B5AFUVEM.js → GeoJsonExport-B4GBH7Ei.js} +1 -1
  148. package/dist-embed-ufoathome/GeographicFigures-wtF2TmIn.js +1 -0
  149. package/dist-embed-ufoathome/HynekAssessor-De0RmEd0.js +1 -0
  150. package/dist-embed-ufoathome/{InterviewEditorElement-o21YUvNz.js → InterviewEditorElement-BVfNqEBS.js} +4 -4
  151. package/dist-embed-ufoathome/{InterviewElement-K_oIXneA.js → InterviewElement-BBEmBs1S.js} +1 -1
  152. package/dist-embed-ufoathome/{KmlExport-BfiqE1s2.js → KmlExport-C8yk8C7s.js} +1 -1
  153. package/dist-embed-ufoathome/{LanternEditor-CepeoImr.js → LanternEditor-DEeA3Kf_.js} +1 -1
  154. package/dist-embed-ufoathome/{LaserBeam-IRXmv6wc.js → LaserBeam-BGs1pXaE.js} +1 -1
  155. package/dist-embed-ufoathome/LaunchEditor-CBEW_ih2.js +22 -0
  156. package/dist-embed-ufoathome/{LaunchPlume-CujlF3wZ.js → LaunchPlume-BbsUUQE0.js} +1 -1
  157. package/dist-embed-ufoathome/{LaunchSimulation-58_ZZy8q.js → LaunchSimulation-DJJaKJGV.js} +1 -1
  158. package/dist-embed-ufoathome/{ModelSource-Bz25TN6e.js → ModelSource-B2Ie3T9B.js} +1 -1
  159. package/dist-embed-ufoathome/{ModelThumbnails-CcYlw6gA.js → ModelThumbnails-BOfC5SZt.js} +1 -1
  160. package/dist-embed-ufoathome/{ModelViewer-CD90RTYi.js → ModelViewer-CXP4K0sx.js} +1 -1
  161. package/dist-embed-ufoathome/{ModulesPanelElement-DZxFsuuG.js → ModulesPanelElement-DPkBhz-Y.js} +2 -2
  162. package/dist-embed-ufoathome/NearestApproach-D2cz2_44.js +1 -0
  163. package/dist-embed-ufoathome/{PoherAssessor-BkCJ1UTQ.js → PoherAssessor-CNOuLGVz.js} +1 -1
  164. package/dist-embed-ufoathome/PoherMatrix-C2fcLqDH.js +1 -0
  165. package/dist-embed-ufoathome/PoherSelfCheck-DnXcStjH.js +1 -0
  166. package/dist-embed-ufoathome/{ReentryEditor-BjyUUZGU.js → ReentryEditor-BCQM22Ps.js} +1 -1
  167. package/dist-embed-ufoathome/{ReentrySimulation-5VI9Dla4.js → ReentrySimulation-BFhCb4sM.js} +1 -1
  168. package/dist-embed-ufoathome/{ReferenceSystem-C0ZXvatV.js → ReferenceSystem-aZKW97nH.js} +1 -1
  169. package/dist-embed-ufoathome/ScenarioReadings-_IkJEoIB.js +1 -0
  170. package/dist-embed-ufoathome/ScenarioSweep-DOvp2pYT.js +1 -0
  171. package/dist-embed-ufoathome/SceneNames_en-sRbx6EJZ.js +1 -0
  172. package/dist-embed-ufoathome/SceneNames_es-pnfHB-7D.js +1 -0
  173. package/dist-embed-ufoathome/SceneNames_fr-BtTlti4C.js +1 -0
  174. package/dist-embed-ufoathome/SceneNames_it-DQKwdCVD.js +1 -0
  175. package/dist-embed-ufoathome/{SearchlightEditor-DPU1PgfT.js → SearchlightEditor-C8Jwy1VZ.js} +1 -1
  176. package/dist-embed-ufoathome/{SearchlightSystem-m0a11CEu.js → SearchlightSystem-D2TFaVqO.js} +1 -1
  177. package/dist-embed-ufoathome/{ShareDialogElement-DqCoQwtn.js → ShareDialogElement-Dsc4v4jd.js} +150 -132
  178. package/dist-embed-ufoathome/Sighting-C1yj2-s5.js +1 -0
  179. package/dist-embed-ufoathome/{SightingEditorMessages_en-BmqJK2u_.js → SightingEditorMessages_en-V_dJYjNb.js} +1 -1
  180. package/{dist-embed-sighting-editor/SightingEditorMessages_es-avQMqPMq.js → dist-embed-ufoathome/SightingEditorMessages_es-DauDuhPa.js} +1 -1
  181. package/dist-embed-ufoathome/{SightingEditorMessages_fr-ClEadK1E.js → SightingEditorMessages_fr-zxTvQa2I.js} +1 -1
  182. package/dist-embed-ufoathome/{SightingEditorMessages_it-Co5behaA.js → SightingEditorMessages_it-vvaao68O.js} +1 -1
  183. package/dist-embed-ufoathome/SightingElement-CFItfa0b.js +694 -0
  184. package/dist-embed-ufoathome/{SightingFileEditor-DS1DRU2p.js → SightingFileEditor-D5_GwIsn.js} +1 -1
  185. package/dist-embed-ufoathome/SightingLabels_en-dOsFjVRL.js +1 -0
  186. package/dist-embed-ufoathome/SightingLabels_es-CKlP2BDO.js +1 -0
  187. package/dist-embed-ufoathome/{SightingLabels_fr-D69zENbW.js → SightingLabels_fr-Cpkcf5_9.js} +1 -1
  188. package/{dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js → dist-embed-ufoathome/SightingLabels_it-3127rMXm.js} +1 -1
  189. package/dist-embed-ufoathome/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
  190. package/dist-embed-ufoathome/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
  191. package/dist-embed-ufoathome/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
  192. package/dist-embed-ufoathome/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
  193. package/dist-embed-ufoathome/{TraceSystem-BLumvnJD.js → TraceSystem-_cZ6PZho.js} +1 -1
  194. package/dist-embed-ufoathome/{VideoButton-hYfTEunC.js → VideoButton-CeAdEi2m.js} +1 -1
  195. package/dist-embed-ufoathome/rr0-ufoathome.mjs +10 -10
  196. package/dist-embed-ufoathome/sightingSchema-DoPVOlCB.js +1 -0
  197. package/dist-embed-ufoathome/{surroundingsSources-BWHnZ_qg.js → surroundingsSources-B7gbT2Pb.js} +1 -1
  198. package/dist-embed-ufoathome/{trafficRuntime-Xpncp71U.js → trafficRuntime-BKNJgPC4.js} +2 -2
  199. package/package.json +1 -1
  200. package/dist-embed-scene/SceneNames_en-BFJsR6Cc.js +0 -1
  201. package/dist-embed-scene/SceneNames_es-BHBTwcJ3.js +0 -1
  202. package/dist-embed-scene/SceneNames_fr-CFsA4XeK.js +0 -1
  203. package/dist-embed-scene/SceneNames_it-DkIgwviv.js +0 -1
  204. package/dist-embed-scene/sightingSchema-9MogCcUd.js +0 -1
  205. package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +0 -24
  206. package/dist-embed-sighting/ControlPasses-Dr6eP2Mq.js +0 -29
  207. package/dist-embed-sighting/GenerativeKitMessages-NbyGMKAR.js +0 -1
  208. package/dist-embed-sighting/LanternEditor-Be5Io1J-.js +0 -24
  209. package/dist-embed-sighting/ModuleThree-BLNSm2eY.js +0 -1
  210. package/dist-embed-sighting/SceneNames_en-BlRTU7Hq.js +0 -1
  211. package/dist-embed-sighting/SceneNames_es-DMNd9trd.js +0 -1
  212. package/dist-embed-sighting/SceneNames_fr-DlMcv9D0.js +0 -1
  213. package/dist-embed-sighting/SceneNames_it-DqlWMlOE.js +0 -1
  214. package/dist-embed-sighting/SightingMessages_en-D3YVhgUj.js +0 -1
  215. package/dist-embed-sighting/SightingMessages_es-ME6FeTp-.js +0 -1
  216. package/dist-embed-sighting/SightingMessages_fr-BgXYuIq4.js +0 -1
  217. package/dist-embed-sighting/SightingMessages_it-DcE90eAl.js +0 -1
  218. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +0 -1
  219. package/dist-embed-sighting-editor/ModuleThree-jNUgMjnf.js +0 -1
  220. package/dist-embed-sighting-editor/SceneNames_en-c5zNw0Hi.js +0 -1
  221. package/dist-embed-sighting-editor/SceneNames_es-CDjoBwy_.js +0 -1
  222. package/dist-embed-sighting-editor/SceneNames_fr-CoZNmFu3.js +0 -1
  223. package/dist-embed-sighting-editor/SceneNames_it-CVEahBpq.js +0 -1
  224. package/dist-embed-sighting-editor/SightingElement-C6CT6DBZ.js +0 -693
  225. package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +0 -1
  226. package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +0 -1
  227. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +0 -1
  228. package/dist-embed-ufoathome/GeographicFigures-DrlbDt4f.js +0 -1
  229. package/dist-embed-ufoathome/HynekAssessor-DaCcWwTH.js +0 -1
  230. package/dist-embed-ufoathome/LaunchEditor-C4hq0VUw.js +0 -22
  231. package/dist-embed-ufoathome/NearestApproach-DsszB5Rd.js +0 -1
  232. package/dist-embed-ufoathome/ScenarioReadings-CBWjF8TY.js +0 -1
  233. package/dist-embed-ufoathome/ScenarioSweep-MaryBOLs.js +0 -1
  234. package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +0 -1
  235. package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +0 -1
  236. package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +0 -1
  237. package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +0 -1
  238. package/dist-embed-ufoathome/Sighting-D-_IYi9n.js +0 -1
  239. package/dist-embed-ufoathome/SightingElement-CUrYpWRD.js +0 -693
  240. package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +0 -1
  241. package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +0 -1
  242. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +0 -1
@@ -0,0 +1,22 @@
1
+ import{M as y,_ as d}from"./rr0-ufoathome.mjs";import{b as x,P as E,I as g}from"./SaidPosition-OJEYhVKN.js";import{S as w}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as v}from"./LaunchPlume-BbsUUQE0.js";import{bb as j}from"./ShareDialogElement-Dsc4v4jd.js";import{P as b,E as k,a as T}from"./ParameterForm-XbqxCLRn.js";import{T as I}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const S=y.catalog({en:()=>d(()=>import("./LaunchParameterTexts_en-DvrCwbDM.js"),[],import.meta.url).then(r=>r.launchParameterTexts_en),fr:()=>d(()=>import("./LaunchParameterTexts_fr-Bh_1zVzy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_fr),es:()=>d(()=>import("./LaunchParameterTexts_es--RUAegVp.js"),[],import.meta.url).then(r=>r.launchParameterTexts_es),it:()=>d(()=>import("./LaunchParameterTexts_it-CWDx9nJy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_it)});class n{static plumeValue(e){return t=>v.plumeOf(t)[e]}static plume(e,t){return{type:"number",key:`plume.${e}`,effective:n.plumeValue(e),...t}}static burn(e,t){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t.label,hint:t.hint,group:"engine",effective:i=>t.ends(i.track??[])?.t}}static placeAt(e,t){if(e.length===0)return{t,lat:0,lng:0,altitudeKm:0};if(e.length===1)return{t,lat:e[0].lat,lng:e[0].lng,altitudeKm:e[0].altitudeKm};let i=0;for(;i<e.length-2&&e[i+1].t<t;)i++;const s=e[i],a=e[i+1],l=a.t===s.t?0:(t-s.t)/(a.t-s.t),c=(m,h)=>m+(h-m)*l;return{t,lat:c(s.lat,a.lat),lng:c(s.lng,a.lng),altitudeKm:Math.max(0,c(s.altitudeKm,a.altitudeKm))}}static instantsOf(e){return[...e.track.map(t=>t.t),...[e.burnFromT,e.burnUntilT].filter(t=>t!==void 0),...(e.jets??[]).flatMap(t=>[t.fromT,t.untilT])]}static SET={kind:"launch",title:"launch",parameters:[{type:"said",key:"title",label:"name",group:"vehicle"},{type:"text",key:"vehicle.mission",label:"mission",placeholder:"Starlink Group 10-49",group:"vehicle"},{type:"number",key:"vehicle.engine.thrustKN",min:1,max:1e5,step:1,unit:"kN",label:"thrustVacuum",hint:"merlinVacuum934Rl10110A",group:"engine"},{type:"number",key:"vehicle.engine.specificImpulseS",min:100,max:500,step:1,unit:"s",label:"specificImpulseVacuum",hint:"times981MSIt",group:"engine"},{type:"choice",key:"vehicle.engine.propellant",label:"propellant",hint:"whatTheExhaustIsMadeOf",choices:[{value:"rp1-lox",label:"keroseneAndOxygen"},{value:"methane-lox",label:"methaneAndOxygen"},{value:"hydrogen-lox",label:"hydrogenAndOxygen"},{value:"hypergolic",label:"hypergolic"},{value:"solid",label:"solid"}],group:"engine"},n.burn("burnFromT",{label:"engineStart",hint:"whenTheEngineStartedInSeconds",ends:e=>e[0]}),n.burn("burnUntilT",{label:"engineCutOff",hint:"whenTheEngineStoppedInSeconds",ends:e=>e[e.length-1]}),n.plume("exhaustKgPerS",{min:.1,max:1e5,step:.1,unit:"kg/s",label:"exhaustFlow",hint:"howMuchExhaustLeavesTheEngine",group:"plume"}),n.plume("condensedShare",{min:0,max:1,step:.01,label:"shareThatScatters",hint:"theShareOfTheExhaustThat",group:"plume"}),n.plume("particleRadiusUm",{min:.05,max:5,step:.05,unit:"µm",label:"particleRadius",group:"plume"}),n.plume("lifetimeS",{min:10,max:3600,step:10,unit:"s",label:"trailLifetime",hint:"howLongTheNarrowTrailLasts",group:"plume"}),n.plume("expansionKmPerS",{min:0,max:5,step:.01,unit:"km/s",label:"trailSpreading",group:"plume"}),n.plume("initialRadiusKm",{min:0,max:50,step:.1,unit:"km",label:"radiusAtRelease",group:"plume"}),n.plume("collarShare",{min:0,max:1,step:.01,label:"shareInTheCollar",hint:"theCollarIsTheExhaustJust",group:"collar"}),n.plume("collarExpansionKmPerS",{min:0,max:10,step:.05,unit:"km/s",label:"collarSpreading",hint:"howFastTheCollarWidensThree",group:"collar"}),n.plume("collarLifetimeS",{min:1,max:300,step:1,unit:"s",label:"collarLifetime",group:"collar"})]};static PLACE={kind:"launch-place",title:"placeOfThePath",parameters:[{type:"number",key:"t",min:-3600,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"time",hint:"secondsOfTheRecordingNegativeBefore"},{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,label:"position"},{type:"number",key:"altitudeKm",min:0,max:2e3,step:.1,unit:"km",required:!0,label:"altitude"}]};static jetContext(e,t){return{launch:e,index:t}}static jetValue(e){return(t,i)=>{const{launch:s,index:a}=i??{};return s?e(v.releaseOf(s,t,a)):void 0}}static JET_GROUP="jet";static JET={kind:"launch-jet",title:"jet",parameters:[{type:"choice",key:"kind",required:!0,label:"what",choices:[{value:"burn",label:"engineBurn"},{value:"vent",label:"propellantVented"}],group:n.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"from",hint:"secondsOfTheRecordingNegativeBefore2",group:n.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"until",group:n.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:"directionFromAft",hint:"t0StraightBackAlongTheStage",group:n.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:"side",hint:"roundTheLineOfMotionWhich",group:n.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:"spinPeriod",hint:"howLongTheStageTakesTo",group:n.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:n.jetValue(e=>e.speedKmPerS),label:"speed",hint:"howFastItLeavesTheStage",group:n.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:n.jetValue(e=>e.massKgPerS),label:"flow",group:n.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:n.jetValue(e=>e.condensedShare),label:"shareThatScatters",group:n.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:n.jetValue(e=>e.particleRadiusUm),label:"particleRadius",group:n.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:n.jetValue(e=>e.populations[0].expansionKmPerS),label:"spreading",hint:"howFastEachPuffOfIt",group:n.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:n.jetValue(e=>e.initialRadiusKm),label:"radiusAtRelease",group:n.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:n.jetValue(e=>e.populations[0].lifetimeS),label:"lifetime",group:n.JET_GROUP}]};static publish(){x.publish(n.SET)}}const P=y.catalog({en:()=>d(()=>import("./LaunchEditorMessages_en-BnzNAYW9.js"),[],import.meta.url).then(r=>r.launchEditorMessages_en),fr:()=>d(()=>import("./LaunchEditorMessages_fr-Ds_VOB8c.js"),[],import.meta.url).then(r=>r.launchEditorMessages_fr),es:()=>d(()=>import("./LaunchEditorMessages_es-BE0dEl7I.js"),[],import.meta.url).then(r=>r.launchEditorMessages_es),it:()=>d(()=>import("./LaunchEditorMessages_it-DPQaR8HY.js"),[],import.meta.url).then(r=>r.launchEditorMessages_it)});class u{constructor(e,t,i){this.container=e,this.host=t,w.attach(e,"launch-editor-part",u.STYLE),this.language=i,x.of("launch")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="path";placeForm;placeIndex=0;jetForm;jetIndex=0;language;shown=[];static STYLE='.launch-editor-part { flex-basis: 100%; min-width: 0; } .launch-editor-part #launch-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .launch-editor-part .launch-path > .icon-btn { align-self: flex-end; } .launch-editor-part #launch-list, .launch-editor-part #launch-places { flex-basis: 100%; min-width: 0; } .launch-editor-part .launch-editor, .launch-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .launch-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .launch-editor-part [hidden] { display: none !important; } .launch-editor-part select { min-width: 0; width: 100%; } .launch-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-track { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .launch-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .launch-editor-part input, .launch-editor-part select { max-width: 100%; box-sizing: border-box; } .launch-editor-part input[type="text"] { width: 12em; } .launch-editor-part #launch-title { width: 18em; } .launch-editor-part label { min-width: 0; max-width: 100%; } .launch-editor-part input.parameter-derived::placeholder { opacity: .65; } .launch-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([P.load(e),S.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlace(!0),this.syncJet(!0);const i=this.resolved(x.of("launch"));this.form??=new b(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;if(e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.jetIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
2
+ <p class="launch-intro">${e.intro}</p>
3
+ <div id="launch-list"></div>
4
+ <div id="launch-fields" class="launch-fields">
5
+ <div id="launch-parameters" class="launch-parameters"></div>
6
+ <div id="launch-timeline" class="launch-timeline"></div>
7
+ <button id="launch-jet-add-burn" type="button" title="${e.addJet}">${g.PLUS} ${e.jetBurn}</button>
8
+ <button id="launch-jet-add-vent" type="button" title="${e.addJet}">${g.PLUS} ${e.jetVent}</button>
9
+ <p class="launch-intro">${e.timelineNote}</p>
10
+ <fieldset id="launch-path" class="launch-path">
11
+ <legend>${e.path}</legend>
12
+ <div id="launch-place-parameters" class="launch-parameters"></div>
13
+ <button id="launch-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${g.TRASH}</button>
14
+ </fieldset>
15
+ <fieldset id="launch-jets" class="launch-path">
16
+ <legend id="launch-jet-legend">${e.jet}</legend>
17
+ <div id="launch-jet-parameters" class="launch-parameters"></div>
18
+ <button id="launch-jet-delete" class="icon-btn" type="button" title="${e.deleteJet}" aria-label="${e.deleteJet}">${g.TRASH}</button>
19
+ </fieldset>
20
+ <p class="launch-intro">${e.derivedNote}</p>
21
+ </div>
22
+ </div>`;const t=this.element("launch-list");this.list=new k({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:i=>`launch-add-${i}`},onSelect:i=>this.show(i),onAdd:i=>this.addLaunch(i??u.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(u.VEHICLES.map(i=>({value:i.id,label:i.vehicle.name??i.id}))),this.timeline=new I(this.element("launch-timeline"),i=>this.host.seekTo(i),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.element("launch-jet-add-burn").addEventListener("click",()=>this.addJet("burn",this.host.currentTime())),this.element("launch-jet-add-vent").addEventListener("click",()=>this.addJet("vent",this.host.currentTime())),this.element("launch-place-delete").addEventListener("click",()=>this.removePlace()),this.element("launch-jet-delete").addEventListener("click",()=>this.removeJet()),this.placeForm=void 0,this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline())}static PATH_COLOR="#e08a1e";static JET_COLOR="#4f8fd6";jetLabel(e,t){return`${e.kind==="vent"?this.messages.jetVent:this.messages.jetBurn} ${t+1}`}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const i={id:"path",label:this.messages.path,color:u.PATH_COLOR,times:e.track.map(h=>h.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(h,o)=>{const p=o===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===o);this.selectPlace(p>=0?p:this.placeIndex)},move:(h,o)=>this.movePlace(h,o),add:()=>this.addPlaceAt(this.host.currentTime())},s=(e.jets??[]).map((h,o)=>({id:`jet-${o}`,label:this.jetLabel(h,o),color:u.JET_COLOR,times:[h.fromT,h.untilT],spans:[{t:h.fromT,until:h.untilT,label:""}],active:this.row==="jet"&&o===this.jetIndex,open:()=>this.selectJet(o),pressed:()=>this.selectJet(o),move:(p,f)=>this.moveJetEnd(o,p,f),add:()=>this.addJet(h.kind??"burn",this.host.currentTime())})),a=n.instantsOf(e),l=Math.min(...a),c=Math.max(...a),m=Math.max(500,(c-l)/10);this.timeline.show([i,...s],this.host.duration(),this.host.currentTime(),{from:l-m,to:c+m})}syncDetail(){const t=this.current?.jets?.[this.jetIndex];this.row==="jet"&&!t&&(this.row="path"),this.element("launch-path").hidden=this.row!=="path",this.element("launch-jets").hidden=this.row!=="jet",this.element("launch-jet-legend").textContent=t?this.jetLabel(t,this.jetIndex):this.messages.jet}static MIN_PLACES=2;syncPlace(e=!1){const t=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.element("launch-place-delete").disabled=t.length<=u.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new b(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(this.resolved(n.PLACE),new T(()=>this.current?.track[this.placeIndex],i=>this.editPlace(this.placeIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncDetail(),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncPlace(!0)}editPlace(e,t){const i=this.current;if(!i)return;const s={...i.track[e]};t(s),i.track=i.track.map((a,l)=>l===e?s:a).sort((a,l)=>a.t-l.t),this.placeIndex=i.track.indexOf(s),this.syncPlace(),this.written()}movePlace(e,t){const i=this.current?.track.findIndex(s=>s.t===e)??-1;i<0||(this.editPlace(i,s=>{s.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const i=t.track.findIndex(s=>Math.abs(s.t-e)<1);if(i<0){const s=n.placeAt(t.track,Math.round(e));t.track=[...t.track,s].sort((a,l)=>a.t-l.t),this.host.changed(),this.selectPlace(t.track.indexOf(s));return}this.selectPlace(i)}removePlace(){const e=this.current;!e||e.track.length<=u.MIN_PLACES||(e.track=e.track.filter((t,i)=>i!==this.placeIndex),this.syncPlace(!0),this.host.changed())}syncJet(e=!1){const t=this.current?.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,t.length-1)),this.jetForm?this.jetForm.sync(e):(this.jetForm=new b(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(this.resolved(n.JET),new T(()=>this.current?.jets?.[this.jetIndex],i=>this.editJet(this.jetIndex,i),()=>this.current?n.jetContext(this.current,this.jetIndex):void 0),()=>{})),this.syncDetail(),this.syncTimeline()}selectJet(e){this.row="jet",this.jetIndex=e,this.syncJet(!0)}editJet(e,t){const i=this.current;if(!i?.jets)return;const s={...i.jets[e]};t(s),i.jets=i.jets.map((a,l)=>l===e?s:a),this.written()}moveJetEnd(e,t,i){const s=this.current?.jets?.[e];s&&(this.editJet(e,a=>{const l=t===s.fromT?[i,s.untilT]:[s.fromT,i];a.fromT=Math.min(l[0],l[1]),a.untilT=Math.max(l[0],l[1])}),this.selectJet(e))}addJet(e,t){const i=this.current;if(!i)return;const s=i.track,a=Math.round(t),l=e==="vent"?{kind:e,fromT:a,untilT:a+3e4,angleDeg:90}:{kind:e,fromT:a,untilT:a+3e4};!i.jets?.length&&i.burnFromT===void 0&&i.burnUntilT===void 0&&(i.burnFromT=s[0].t,i.burnUntilT=s[s.length-1].t),i.jets=[...i.jets??[],l],this.form?.sync(!0),this.host.changed(),this.selectJet(i.jets.length-1)}removeJet(){const e=this.current;if(!e?.jets?.length)return;const t=e.jets.filter((i,s)=>s!==this.jetIndex);t.length?e.jets=t:delete e.jets,this.host.changed(),t.length?this.selectJet(Math.min(this.jetIndex,t.length-1)):this.selectPlace(this.placeIndex)}startOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=a=>({lat:t.lat+a*Math.cos(i)/111.32,lng:t.lng+a*Math.sin(i)/(111.32*Math.max(.05,Math.cos(t.lat*Math.PI/180)))});return[{t:0,...s(300),altitudeKm:80},{t:6e4,...s(450),altitudeKm:160}]}static VEHICLES=[{id:"falcon-9",vehicle:{name:"Falcon 9"}}];addLaunch(e){const t=this.startOfNew();if(!t)return;const i=u.VEHICLES.find(c=>c.id===e)??u.VEHICLES[0];let s=this.launches.length+1;for(;this.launches.some(c=>c.id===`launch-${s}`);)s++;const a={id:`launch-${s}`,vehicle:{...i.vehicle},track:t},l=this.host.sighting();l.skyEvents={...l.skyEvents,launches:[...this.launches,a]},this.currentId=a.id,this.row="path",this.placeIndex=0,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;if(!e)return;this.currentId=void 0;const t=this.host.sighting();t.skyEvents=j.written({...t.skyEvents,launches:this.launches.filter(i=>i!==e)}),this.host.changed(),this.sync()}labelOf(e){const t=this.host.said().read(e.title)??e.vehicle?.mission??e.vehicle?.name;return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().skyEvents?.launches??[]}element(e){return this.container.querySelector(`#${e}`)}}export{u as LaunchEditor};
@@ -1 +1 @@
1
- import{bd as w,be as F,bf as v,bg as Y,t as H}from"./ShareDialogElement-DqCoQwtn.js";class K{static MU=398600.4418;static OMEGA=72921159e-12;static EARTH_RADIUS_KM=6371;static STEP_S=1;static DENSITY=[[0,1.225],[20,.0889],[40,.004],[60,31e-5],[80,185e-7],[100,56e-8],[120,222e-10],[150,208e-11],[200,254e-12],[250,607e-13],[300,192e-13],[400,28e-13],[500,522e-15],[600,114e-15],[700,307e-16],[800,114e-16],[900,576e-17],[1e3,356e-17]];static FREE_PATH_TIMES_DENSITY=68e-9;static ICE_DENSITY=917;static airDensity(s){const t=K.DENSITY;if(s<=t[0][0])return t[0][1];let e=0;for(;e<t.length-2&&t[e+1][0]<s;)e++;const[a,i]=t[e],[o,n]=t[e+1];return i*Math.exp(Math.log(n/i)*(s-a)/(o-a))}static dragPerKm(s,t,e,a=.5){const i=K.airDensity(s),o=K.FREE_PATH_TIMES_DENSITY/i/1e3,n=Math.exp(-o/t),p=i*1e9*Math.PI*t*t/Math.max(e,1e-9),d=3*i/(4*a*1e-6*K.ICE_DENSITY)*1e3;return n*p+(1-n)*d}static step(s,t,e,a,i){const[o,n,p,d,R,h]=s,m=Math.hypot(o,n,p),T=K.OMEGA,M=-398600.4418/(m*m*m),y=M*o+2*T*R+T*T*o,U=M*n-2*T*d+T*T*n,I=M*p,E=Math.hypot(d,R,h),c=1/(1+K.dragPerKm(m-K.EARTH_RADIUS_KM,e,a,i)*E*t);s[3]=(d+y*t)*c,s[4]=(R+U*t)*c,s[5]=(h+I*t)*c,s[0]=o+s[3]*t,s[1]=n+s[4]*t,s[2]=p+s[5]*t;const f=Math.hypot(s[0],s[1],s[2]);if(f<K.EARTH_RADIUS_KM){const A=K.EARTH_RADIUS_KM/f;s[0]*=A,s[1]*=A,s[2]*=A,s[3]=s[4]=s[5]=0}}}class _{constructor(s,t,e,a,i=.5){this.massKg=e,this.radiusAt=a,this.particleRadiusUm=i,this.state=Float64Array.of(...s,...t),this.positions=new Float64Array(192),this.positions.set(s,0)}positions;steps=0;state;at(s){const t=K.STEP_S,e=Math.max(0,s/t),a=Math.ceil(e);for(;this.steps<a;){if(K.step(this.state,t,this.radiusAt(this.steps*t),this.massKg,this.particleRadiusUm),this.steps++,3*(this.steps+1)>this.positions.length){const p=new Float64Array(this.positions.length*2);p.set(this.positions),this.positions=p}this.positions.set(this.state.subarray(0,3),3*this.steps)}const i=Math.floor(e),o=e-i,n=this.positions;return o===0||i>=this.steps?[n[3*i],n[3*i+1],n[3*i+2]]:[0,1,2].map(p=>n[3*i+p]+(n[3*i+3+p]-n[3*i+p])*o)}}class r{static EARTH_RADIUS_KM=6371;static SHADOW_RADIUS_KM=r.EARTH_RADIUS_KM+15;static PENUMBRA_KM=10;static SUN_ILLUMINANCE_LUX=127e3;static RAYLEIGH_PER_M=[58e-7,135e-7,331e-7];static SCALE_HEIGHT_M=8e3;static OZONE_GRAZING_DEPTH=[2.4,1.8,.24];static ANISOTROPY=.7;static ALBEDO=.99;static WAVELENGTHS_UM=[.61,.55,.465];static ICE_INDEX=1.31;static DEFAULTS={exhaustKgPerS:273,condensedShare:.065,particleRadiusUm:.5,expansionKmPerS:.15,initialRadiusKm:.5,lifetimeS:420,collarShare:.85,collarExpansionKmPerS:2.5,collarLifetimeS:20};static PROPELLANTS={"rp1-lox":{condensedShare:.065,particleRadiusUm:.5},"methane-lox":{condensedShare:.09,particleRadiusUm:.5},"hydrogen-lox":{condensedShare:.13,particleRadiusUm:.5},hypergolic:{condensedShare:.079,particleRadiusUm:.4},solid:{condensedShare:.27,particleRadiusUm:.8}};static G0=9.80665;static COLLAR_SPREAD_OF_EXHAUST_VELOCITY=.735;static plumeOf(s){const t={},e=s.vehicle?.engine;if(e){const a=e.specificImpulseS===void 0?void 0:e.specificImpulseS*r.G0;e.thrustKN!==void 0&&a&&(t.exhaustKgPerS=e.thrustKN*1e3/a),a&&(t.collarExpansionKmPerS=a/1e3*r.COLLAR_SPREAD_OF_EXHAUST_VELOCITY),e.propellant&&Object.assign(t,r.PROPELLANTS[e.propellant])}return{...r.DEFAULTS,...t,...s.plume}}static PUFF_EVERY_S=.5;static SIGMA_OF_RADIUS=.5;static MAX_PUFFS=320;static DEG=Math.PI/180;static EARTH_ROTATION=72921159e-12;static VENT_DEFAULTS={speedKmPerS:.7,massKgPerS:20,condensedShare:.5,particleRadiusUm:.5,expansionKmPerS:.1,initialRadiusKm:.2,lifetimeS:600};static paths=new WeakMap;static exhaustVelocityKmPerS(s){return(s.vehicle?.engine?.specificImpulseS??348)*r.G0/1e3}static releasesOf(s){const t=[],e=s.jets??[];if(e.length===0||s.burnFromT!==void 0||s.burnUntilT!==void 0){const a=s.track[0]?.t??0,i=s.track[s.track.length-1]?.t??0;t.push(r.engineRelease(s,"burn",{fromT:s.burnFromT??a,untilT:s.burnUntilT??i}))}return e.forEach((a,i)=>t.push(r.releaseOf(s,a,i))),t}static releaseOf(s,t,e){const a=`jet:${t.id??e}`;if((t.kind??"burn")==="burn")return r.engineRelease(s,a,t);const i=r.VENT_DEFAULTS;return{key:a,fromT:t.fromT,untilT:t.untilT,angleDeg:t.angleDeg??0,azimuthDeg:t.azimuthDeg??0,spinPeriodS:t.spinPeriodS,speedKmPerS:t.speedKmPerS??i.speedKmPerS,massKgPerS:t.massKgPerS??i.massKgPerS,condensedShare:t.condensedShare??i.condensedShare,particleRadiusUm:t.particleRadiusUm??i.particleRadiusUm,initialRadiusKm:t.initialRadiusKm??i.initialRadiusKm,populations:[{share:1,expansionKmPerS:t.expansionKmPerS??i.expansionKmPerS,lifetimeS:t.lifetimeS??i.lifetimeS}]}}static engineRelease(s,t,e){const a=r.plumeOf(s);return{key:t,fromT:e.fromT,untilT:e.untilT,angleDeg:e.angleDeg??0,azimuthDeg:e.azimuthDeg??0,spinPeriodS:e.spinPeriodS,speedKmPerS:e.speedKmPerS??r.exhaustVelocityKmPerS(s),massKgPerS:e.massKgPerS??a.exhaustKgPerS,condensedShare:e.condensedShare??a.condensedShare,particleRadiusUm:e.particleRadiusUm??a.particleRadiusUm,initialRadiusKm:e.initialRadiusKm??a.initialRadiusKm,populations:[{share:1-a.collarShare,expansionKmPerS:e.expansionKmPerS??a.expansionKmPerS,lifetimeS:e.lifetimeS??a.lifetimeS},{share:a.collarShare,expansionKmPerS:a.collarExpansionKmPerS,lifetimeS:a.collarLifetimeS}]}}static extinctionEfficiency(s,t){const e=2*Math.PI*s/t,a=r.ICE_INDEX**2,i=8/3*e**4*((a-1)/(a+2))**2,o=2*e*(r.ICE_INDEX-1),n=o<.001?o*o/2:2-4/o*Math.sin(o)+4/(o*o)*(1-Math.cos(o));return Math.min(i,n)}static scatteringColour(s){const t=r.extinctionEfficiency(s,r.WAVELENGTHS_UM[1]);return r.WAVELENGTHS_UM.map(e=>r.extinctionEfficiency(s,e)/t)}static sunDirectionAt(s){const t=new w(0,0,-6378137),e=F(v.Sun,s,t,!0,!0),a=(e.ra-Y(s))*15*r.DEG,i=e.dec*r.DEG;return[Math.cos(i)*Math.cos(a),Math.cos(i)*Math.sin(a),Math.sin(i)]}static puffsAt(s,t){const e=[];for(const a of s){let i=r.paths.get(a);i||r.paths.set(a,i=new Map);for(const o of r.releasesOf(a)){const n=Math.min(o.untilT,t);if(n<=o.fromT)continue;const p=Math.max(r.PUFF_EVERY_S*1e3,(o.untilT-o.fromT)/r.MAX_PUFFS),d=[];for(let M=o.fromT;M<n;M+=p)d.push(M);d.push(n);const R=o.massKgPerS*(p/1e3),m=3*r.extinctionEfficiency(o.particleRadiusUm,r.WAVELENGTHS_UM[1])/(4*917*o.particleRadiusUm*1e-6),T=r.scatteringColour(o.particleRadiusUm);o.populations.forEach((M,y)=>{if(M.share<=0)return;const U=E=>o.initialRadiusKm+M.expansionKmPerS*E,I=[];for(const E of d){const D=(t-E)/1e3;if(D>M.lifetimeS)continue;const c=E!==n||n===o.untilT,f=`${o.key}|${y}|${E}`;let A=c?i.get(f):void 0;if(!A){if(A=r.launchPuff(a,o,E,R*M.share,U),!A)continue;c&&i.set(f,A)}I.push({ageS:D,position:A.at(D)})}for(let E=I.length-1;E>=0;E--){const{ageS:D,position:c}=I[E],f=I[E-1]??I[E+1],A=f?Math.hypot(c[0]-f.position[0],c[1]-f.position[1],c[2]-f.position[2]):0,l=U(D)+A/2,O=r.SIGMA_OF_RADIUS*l*1e3,N=R*o.condensedShare*M.share*m/(2*Math.PI*O*O),x=Math.max(0,1-(D/M.lifetimeS)**2);N*x<=0||e.push({launchId:a.id,release:o.key,at:r.geoPoint(c),radiusKm:l,opticalDepth:N*x,colour:T,ageS:D})}})}}return e}static viewsAt(s,t,e,a){const i=[];for(const o of r.puffsAt(s,t)){const n=H.seenFrom(e,o.at);if(n.altitudeDeg<0)continue;const p=r.sunlightAt(o.at,a);if(p.lit<=0)continue;const d=r.scatteringPhase(e,o.at,a),R=r.SUN_ILLUMINANCE_LUX*r.ALBEDO*d*o.opticalDepth*p.lit;R<=0||i.push({launchId:o.launchId,release:o.release,heightKm:o.at.heightM/1e3,centre:n,radiusDeg:Math.atan2(o.radiusKm,n.distanceKm)/r.DEG,luminanceCdM2:R,sunTransmittance:p.transmittance,colour:o.colour,lit:p.lit,ageS:o.ageS})}return i}static launchPuff(s,t,e,a,i){const o={id:s.id,track:s.track,fragments:[]},n=H.leadAt(o,e);if(!n)return;const p=s.track[0].t,d=s.track[s.track.length-1].t,R=Math.max(p,e-500),h=Math.min(d,e+500),m=r.earthCentred(n),T=r.earthCentred(H.leadAt(o,R)),M=r.earthCentred(H.leadAt(o,h)),y=Math.max(.001,(h-R)/1e3),U=[0,1,2].map(S=>(M[S]-T[S])/y),I=r.EARTH_ROTATION,E=[U[0]-I*m[1],U[1]+I*m[0],U[2]],D=S=>{const b=Math.hypot(S[0],S[1],S[2])||1;return S.map(k=>k/b)},c=D(E),f=D(m),A=f[0]*c[0]+f[1]*c[1]+f[2]*c[2];let l=[f[0]-A*c[0],f[1]-A*c[1],f[2]-A*c[2]];Math.hypot(l[0],l[1],l[2])<1e-6&&(l=[-c[2]*c[0],-c[2]*c[1],1-c[2]*c[2]]),l=D(l);const O=[c[1]*l[2]-c[2]*l[1],c[2]*l[0]-c[0]*l[2],c[0]*l[1]-c[1]*l[0]],N=t.spinPeriodS?360*((e-t.fromT)/1e3)/t.spinPeriodS:0,x=(t.azimuthDeg+N)*r.DEG,G=t.angleDeg*r.DEG,C=[0,1,2].map(S=>-c[S]*Math.cos(G)+Math.sin(G)*(Math.cos(x)*l[S]+Math.sin(x)*O[S])),P=[0,1,2].map(S=>U[S]+t.speedKmPerS*C[S]);return new _(m,P,a,i,t.particleRadiusUm)}static geoPoint(s){const t=Math.hypot(s[0],s[1],s[2]);return{lat:Math.asin(s[2]/t)/r.DEG,lng:Math.atan2(s[1],s[0])/r.DEG,heightM:(t-K.EARTH_RADIUS_KM)*1e3}}static sunlightAt(s,t){const e=r.earthCentred(s),a=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];if(a>=0)return{lit:1,transmittance:[1,1,1]};const i=Math.hypot(e[0]-a*t[0],e[1]-a*t[1],e[2]-a*t[2]),o=r.PENUMBRA_KM,n=Math.min(1,Math.max(0,(i-(r.SHADOW_RADIUS_KM-o/2))/o));if(n<=0)return{lit:0,transmittance:[0,0,0]};const p=Math.max(0,(i-r.EARTH_RADIUS_KM)*1e3),d=Math.exp(-p/r.SCALE_HEIGHT_M),R=Math.sqrt(2*Math.PI*r.EARTH_RADIUS_KM*1e3*r.SCALE_HEIGHT_M),h=Math.exp(-(((p/1e3-25)/15)**2)),m=[0,1,2].map(T=>Math.exp(-r.RAYLEIGH_PER_M[T]*d*R-r.OZONE_GRAZING_DEPTH[T]*h));return{lit:n,transmittance:m}}static scatteringPhase(s,t,e){const a=r.earthCentred(s),i=r.earthCentred(t),o=[a[0]-i[0],a[1]-i[1],a[2]-i[2]],n=Math.hypot(o[0],o[1],o[2])||1,p=-(o[0]*e[0]+o[1]*e[1]+o[2]*e[2])/n,d=r.ANISOTROPY;return(1-d*d)/(4*Math.PI*(1+d*d-2*d*p)**1.5)}static earthCentred(s){const t=s.lat*r.DEG,e=s.lng*r.DEG,a=r.EARTH_RADIUS_KM+s.heightM/1e3;return[a*Math.cos(t)*Math.cos(e),a*Math.cos(t)*Math.sin(e),a*Math.sin(t)]}}export{r as L};
1
+ import{be as w,bf as F,bg as v,bh as Y,t as H}from"./ShareDialogElement-Dsc4v4jd.js";class K{static MU=398600.4418;static OMEGA=72921159e-12;static EARTH_RADIUS_KM=6371;static STEP_S=1;static DENSITY=[[0,1.225],[20,.0889],[40,.004],[60,31e-5],[80,185e-7],[100,56e-8],[120,222e-10],[150,208e-11],[200,254e-12],[250,607e-13],[300,192e-13],[400,28e-13],[500,522e-15],[600,114e-15],[700,307e-16],[800,114e-16],[900,576e-17],[1e3,356e-17]];static FREE_PATH_TIMES_DENSITY=68e-9;static ICE_DENSITY=917;static airDensity(s){const t=K.DENSITY;if(s<=t[0][0])return t[0][1];let e=0;for(;e<t.length-2&&t[e+1][0]<s;)e++;const[a,i]=t[e],[o,n]=t[e+1];return i*Math.exp(Math.log(n/i)*(s-a)/(o-a))}static dragPerKm(s,t,e,a=.5){const i=K.airDensity(s),o=K.FREE_PATH_TIMES_DENSITY/i/1e3,n=Math.exp(-o/t),p=i*1e9*Math.PI*t*t/Math.max(e,1e-9),d=3*i/(4*a*1e-6*K.ICE_DENSITY)*1e3;return n*p+(1-n)*d}static step(s,t,e,a,i){const[o,n,p,d,R,h]=s,m=Math.hypot(o,n,p),T=K.OMEGA,M=-398600.4418/(m*m*m),y=M*o+2*T*R+T*T*o,U=M*n-2*T*d+T*T*n,I=M*p,E=Math.hypot(d,R,h),c=1/(1+K.dragPerKm(m-K.EARTH_RADIUS_KM,e,a,i)*E*t);s[3]=(d+y*t)*c,s[4]=(R+U*t)*c,s[5]=(h+I*t)*c,s[0]=o+s[3]*t,s[1]=n+s[4]*t,s[2]=p+s[5]*t;const f=Math.hypot(s[0],s[1],s[2]);if(f<K.EARTH_RADIUS_KM){const A=K.EARTH_RADIUS_KM/f;s[0]*=A,s[1]*=A,s[2]*=A,s[3]=s[4]=s[5]=0}}}class _{constructor(s,t,e,a,i=.5){this.massKg=e,this.radiusAt=a,this.particleRadiusUm=i,this.state=Float64Array.of(...s,...t),this.positions=new Float64Array(192),this.positions.set(s,0)}positions;steps=0;state;at(s){const t=K.STEP_S,e=Math.max(0,s/t),a=Math.ceil(e);for(;this.steps<a;){if(K.step(this.state,t,this.radiusAt(this.steps*t),this.massKg,this.particleRadiusUm),this.steps++,3*(this.steps+1)>this.positions.length){const p=new Float64Array(this.positions.length*2);p.set(this.positions),this.positions=p}this.positions.set(this.state.subarray(0,3),3*this.steps)}const i=Math.floor(e),o=e-i,n=this.positions;return o===0||i>=this.steps?[n[3*i],n[3*i+1],n[3*i+2]]:[0,1,2].map(p=>n[3*i+p]+(n[3*i+3+p]-n[3*i+p])*o)}}class r{static EARTH_RADIUS_KM=6371;static SHADOW_RADIUS_KM=r.EARTH_RADIUS_KM+15;static PENUMBRA_KM=10;static SUN_ILLUMINANCE_LUX=127e3;static RAYLEIGH_PER_M=[58e-7,135e-7,331e-7];static SCALE_HEIGHT_M=8e3;static OZONE_GRAZING_DEPTH=[2.4,1.8,.24];static ANISOTROPY=.7;static ALBEDO=.99;static WAVELENGTHS_UM=[.61,.55,.465];static ICE_INDEX=1.31;static DEFAULTS={exhaustKgPerS:273,condensedShare:.065,particleRadiusUm:.5,expansionKmPerS:.15,initialRadiusKm:.5,lifetimeS:420,collarShare:.85,collarExpansionKmPerS:2.5,collarLifetimeS:20};static PROPELLANTS={"rp1-lox":{condensedShare:.065,particleRadiusUm:.5},"methane-lox":{condensedShare:.09,particleRadiusUm:.5},"hydrogen-lox":{condensedShare:.13,particleRadiusUm:.5},hypergolic:{condensedShare:.079,particleRadiusUm:.4},solid:{condensedShare:.27,particleRadiusUm:.8}};static G0=9.80665;static COLLAR_SPREAD_OF_EXHAUST_VELOCITY=.735;static plumeOf(s){const t={},e=s.vehicle?.engine;if(e){const a=e.specificImpulseS===void 0?void 0:e.specificImpulseS*r.G0;e.thrustKN!==void 0&&a&&(t.exhaustKgPerS=e.thrustKN*1e3/a),a&&(t.collarExpansionKmPerS=a/1e3*r.COLLAR_SPREAD_OF_EXHAUST_VELOCITY),e.propellant&&Object.assign(t,r.PROPELLANTS[e.propellant])}return{...r.DEFAULTS,...t,...s.plume}}static PUFF_EVERY_S=.5;static SIGMA_OF_RADIUS=.5;static MAX_PUFFS=320;static DEG=Math.PI/180;static EARTH_ROTATION=72921159e-12;static VENT_DEFAULTS={speedKmPerS:.7,massKgPerS:20,condensedShare:.5,particleRadiusUm:.5,expansionKmPerS:.1,initialRadiusKm:.2,lifetimeS:600};static paths=new WeakMap;static exhaustVelocityKmPerS(s){return(s.vehicle?.engine?.specificImpulseS??348)*r.G0/1e3}static releasesOf(s){const t=[],e=s.jets??[];if(e.length===0||s.burnFromT!==void 0||s.burnUntilT!==void 0){const a=s.track[0]?.t??0,i=s.track[s.track.length-1]?.t??0;t.push(r.engineRelease(s,"burn",{fromT:s.burnFromT??a,untilT:s.burnUntilT??i}))}return e.forEach((a,i)=>t.push(r.releaseOf(s,a,i))),t}static releaseOf(s,t,e){const a=`jet:${t.id??e}`;if((t.kind??"burn")==="burn")return r.engineRelease(s,a,t);const i=r.VENT_DEFAULTS;return{key:a,fromT:t.fromT,untilT:t.untilT,angleDeg:t.angleDeg??0,azimuthDeg:t.azimuthDeg??0,spinPeriodS:t.spinPeriodS,speedKmPerS:t.speedKmPerS??i.speedKmPerS,massKgPerS:t.massKgPerS??i.massKgPerS,condensedShare:t.condensedShare??i.condensedShare,particleRadiusUm:t.particleRadiusUm??i.particleRadiusUm,initialRadiusKm:t.initialRadiusKm??i.initialRadiusKm,populations:[{share:1,expansionKmPerS:t.expansionKmPerS??i.expansionKmPerS,lifetimeS:t.lifetimeS??i.lifetimeS}]}}static engineRelease(s,t,e){const a=r.plumeOf(s);return{key:t,fromT:e.fromT,untilT:e.untilT,angleDeg:e.angleDeg??0,azimuthDeg:e.azimuthDeg??0,spinPeriodS:e.spinPeriodS,speedKmPerS:e.speedKmPerS??r.exhaustVelocityKmPerS(s),massKgPerS:e.massKgPerS??a.exhaustKgPerS,condensedShare:e.condensedShare??a.condensedShare,particleRadiusUm:e.particleRadiusUm??a.particleRadiusUm,initialRadiusKm:e.initialRadiusKm??a.initialRadiusKm,populations:[{share:1-a.collarShare,expansionKmPerS:e.expansionKmPerS??a.expansionKmPerS,lifetimeS:e.lifetimeS??a.lifetimeS},{share:a.collarShare,expansionKmPerS:a.collarExpansionKmPerS,lifetimeS:a.collarLifetimeS}]}}static extinctionEfficiency(s,t){const e=2*Math.PI*s/t,a=r.ICE_INDEX**2,i=8/3*e**4*((a-1)/(a+2))**2,o=2*e*(r.ICE_INDEX-1),n=o<.001?o*o/2:2-4/o*Math.sin(o)+4/(o*o)*(1-Math.cos(o));return Math.min(i,n)}static scatteringColour(s){const t=r.extinctionEfficiency(s,r.WAVELENGTHS_UM[1]);return r.WAVELENGTHS_UM.map(e=>r.extinctionEfficiency(s,e)/t)}static sunDirectionAt(s){const t=new w(0,0,-6378137),e=F(v.Sun,s,t,!0,!0),a=(e.ra-Y(s))*15*r.DEG,i=e.dec*r.DEG;return[Math.cos(i)*Math.cos(a),Math.cos(i)*Math.sin(a),Math.sin(i)]}static puffsAt(s,t){const e=[];for(const a of s){let i=r.paths.get(a);i||r.paths.set(a,i=new Map);for(const o of r.releasesOf(a)){const n=Math.min(o.untilT,t);if(n<=o.fromT)continue;const p=Math.max(r.PUFF_EVERY_S*1e3,(o.untilT-o.fromT)/r.MAX_PUFFS),d=[];for(let M=o.fromT;M<n;M+=p)d.push(M);d.push(n);const R=o.massKgPerS*(p/1e3),m=3*r.extinctionEfficiency(o.particleRadiusUm,r.WAVELENGTHS_UM[1])/(4*917*o.particleRadiusUm*1e-6),T=r.scatteringColour(o.particleRadiusUm);o.populations.forEach((M,y)=>{if(M.share<=0)return;const U=E=>o.initialRadiusKm+M.expansionKmPerS*E,I=[];for(const E of d){const D=(t-E)/1e3;if(D>M.lifetimeS)continue;const c=E!==n||n===o.untilT,f=`${o.key}|${y}|${E}`;let A=c?i.get(f):void 0;if(!A){if(A=r.launchPuff(a,o,E,R*M.share,U),!A)continue;c&&i.set(f,A)}I.push({ageS:D,position:A.at(D)})}for(let E=I.length-1;E>=0;E--){const{ageS:D,position:c}=I[E],f=I[E-1]??I[E+1],A=f?Math.hypot(c[0]-f.position[0],c[1]-f.position[1],c[2]-f.position[2]):0,l=U(D)+A/2,O=r.SIGMA_OF_RADIUS*l*1e3,N=R*o.condensedShare*M.share*m/(2*Math.PI*O*O),x=Math.max(0,1-(D/M.lifetimeS)**2);N*x<=0||e.push({launchId:a.id,release:o.key,at:r.geoPoint(c),radiusKm:l,opticalDepth:N*x,colour:T,ageS:D})}})}}return e}static viewsAt(s,t,e,a){const i=[];for(const o of r.puffsAt(s,t)){const n=H.seenFrom(e,o.at);if(n.altitudeDeg<0)continue;const p=r.sunlightAt(o.at,a);if(p.lit<=0)continue;const d=r.scatteringPhase(e,o.at,a),R=r.SUN_ILLUMINANCE_LUX*r.ALBEDO*d*o.opticalDepth*p.lit;R<=0||i.push({launchId:o.launchId,release:o.release,heightKm:o.at.heightM/1e3,centre:n,radiusDeg:Math.atan2(o.radiusKm,n.distanceKm)/r.DEG,luminanceCdM2:R,sunTransmittance:p.transmittance,colour:o.colour,lit:p.lit,ageS:o.ageS})}return i}static launchPuff(s,t,e,a,i){const o={id:s.id,track:s.track,fragments:[]},n=H.leadAt(o,e);if(!n)return;const p=s.track[0].t,d=s.track[s.track.length-1].t,R=Math.max(p,e-500),h=Math.min(d,e+500),m=r.earthCentred(n),T=r.earthCentred(H.leadAt(o,R)),M=r.earthCentred(H.leadAt(o,h)),y=Math.max(.001,(h-R)/1e3),U=[0,1,2].map(S=>(M[S]-T[S])/y),I=r.EARTH_ROTATION,E=[U[0]-I*m[1],U[1]+I*m[0],U[2]],D=S=>{const b=Math.hypot(S[0],S[1],S[2])||1;return S.map(k=>k/b)},c=D(E),f=D(m),A=f[0]*c[0]+f[1]*c[1]+f[2]*c[2];let l=[f[0]-A*c[0],f[1]-A*c[1],f[2]-A*c[2]];Math.hypot(l[0],l[1],l[2])<1e-6&&(l=[-c[2]*c[0],-c[2]*c[1],1-c[2]*c[2]]),l=D(l);const O=[c[1]*l[2]-c[2]*l[1],c[2]*l[0]-c[0]*l[2],c[0]*l[1]-c[1]*l[0]],N=t.spinPeriodS?360*((e-t.fromT)/1e3)/t.spinPeriodS:0,x=(t.azimuthDeg+N)*r.DEG,G=t.angleDeg*r.DEG,C=[0,1,2].map(S=>-c[S]*Math.cos(G)+Math.sin(G)*(Math.cos(x)*l[S]+Math.sin(x)*O[S])),P=[0,1,2].map(S=>U[S]+t.speedKmPerS*C[S]);return new _(m,P,a,i,t.particleRadiusUm)}static geoPoint(s){const t=Math.hypot(s[0],s[1],s[2]);return{lat:Math.asin(s[2]/t)/r.DEG,lng:Math.atan2(s[1],s[0])/r.DEG,heightM:(t-K.EARTH_RADIUS_KM)*1e3}}static sunlightAt(s,t){const e=r.earthCentred(s),a=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];if(a>=0)return{lit:1,transmittance:[1,1,1]};const i=Math.hypot(e[0]-a*t[0],e[1]-a*t[1],e[2]-a*t[2]),o=r.PENUMBRA_KM,n=Math.min(1,Math.max(0,(i-(r.SHADOW_RADIUS_KM-o/2))/o));if(n<=0)return{lit:0,transmittance:[0,0,0]};const p=Math.max(0,(i-r.EARTH_RADIUS_KM)*1e3),d=Math.exp(-p/r.SCALE_HEIGHT_M),R=Math.sqrt(2*Math.PI*r.EARTH_RADIUS_KM*1e3*r.SCALE_HEIGHT_M),h=Math.exp(-(((p/1e3-25)/15)**2)),m=[0,1,2].map(T=>Math.exp(-r.RAYLEIGH_PER_M[T]*d*R-r.OZONE_GRAZING_DEPTH[T]*h));return{lit:n,transmittance:m}}static scatteringPhase(s,t,e){const a=r.earthCentred(s),i=r.earthCentred(t),o=[a[0]-i[0],a[1]-i[1],a[2]-i[2]],n=Math.hypot(o[0],o[1],o[2])||1,p=-(o[0]*e[0]+o[1]*e[1]+o[2]*e[2])/n,d=r.ANISOTROPY;return(1-d*d)/(4*Math.PI*(1+d*d-2*d*p)**1.5)}static earthCentred(s){const t=s.lat*r.DEG,e=s.lng*r.DEG,a=r.EARTH_RADIUS_KM+s.heightM/1e3;return[a*Math.cos(t)*Math.cos(e),a*Math.cos(t)*Math.sin(e),a*Math.sin(t)]}}export{r as L};
@@ -1 +1 @@
1
- import{L as M}from"./LaunchPlume-CujlF3wZ.js";import{I as T,w as z,x as f,M as C}from"./three.module-CbaHqYFq.js";import{bb as w,bc as A}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class n{static RADIUS=840;static MAX_PUFFS=1e3;static RINGS=[0,.25,.5,.75,1,1.25];static COLUMN=n.RINGS.map(t=>{const i=o=>Math.exp(-((o/M.SIGMA_OF_RADIUS)**2)/2),s=i(n.RINGS[n.RINGS.length-1]);return Math.max(0,(i(t)-s)/(1-s))});static SECTORS=12;static VERTICES_PER_PUFF=n.SECTORS*(3+6*(n.RINGS.length-2));static BRIGHTEST_RELATIVE=6e4;object=new T;mesh;positions=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);colors=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);shown=0;drawn=[];static VISIBLE_CONTRAST=.1;constructor(){this.object.name="plumes";const t=new z;t.setAttribute("position",new f(this.positions,3)),t.setAttribute("color",new f(this.colors,3)),t.setDrawRange(0,0),this.mesh=new C(t,w.material()),this.mesh.frustumCulled=!1,w.track(this.mesh),this.object.add(this.mesh)}get count(){return this.shown}set(t,i,s,o){let h=0,c=0;this.drawn=[];for(const u of t){if(c>=n.MAX_PUFFS)break;const d=o(u.centre);if(d<=0)continue;const r=s(u.centre),a=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,u.luminanceCdM2*(u.colour?.[g]??1)*i*u.sunTransmittance[g]*r[g]*d));Math.max(...a)<=0||(h=this.pushPuff(h,u,a),this.drawn.push({view:u,direction:this.normalise(A(u.centre.altitudeDeg,u.centre.azimuthDeg,1)),radiusRad:u.radiusDeg*Math.PI/180,luminance:.2126*a[0]+.7152*a[1]+.0722*a[2]}),c++)}this.shown=c;const p=this.mesh.geometry;p.setDrawRange(0,h),p.getAttribute("position").needsUpdate=!0,p.getAttribute("color").needsUpdate=!0}pushPuff(t,i,s){const o=A(i.centre.altitudeDeg,i.centre.azimuthDeg,n.RADIUS),h=this.normalise(o),c=this.normalise(this.cross({x:0,y:1,z:0},h)),p=this.cross(h,c),u=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(a,g)=>{const e=g/n.SECTORS*2*Math.PI,I=n.RINGS[a]*u,R=Math.cos(e)*I,l=Math.sin(e)*I;return{x:o.x+c.x*R+p.x*l,y:o.y+c.y*R+p.y*l,z:o.z+c.z*R+p.z*l}},r=a=>n.COLUMN[a];for(let a=0;a<n.SECTORS;a++){const g=(a+1)%n.SECTORS;t=this.push(t,o,s,r(0)),t=this.push(t,d(1,a),s,r(1)),t=this.push(t,d(1,g),s,r(1));for(let e=1;e<n.RINGS.length-1;e++){const I=d(e,a),R=d(e,g),l=d(e+1,a),E=d(e+1,g);t=this.push(t,I,s,r(e)),t=this.push(t,R,s,r(e)),t=this.push(t,l,s,r(e+1)),t=this.push(t,R,s,r(e)),t=this.push(t,E,s,r(e+1)),t=this.push(t,l,s,r(e+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,c;for(const p of this.drawn){const u=Math.max(-1,Math.min(1,o.x*p.direction.x+o.y*p.direction.y+o.z*p.direction.z)),d=Math.max(0,Math.acos(u)-i)/Math.max(p.radiusRad,1e-9),r=p.luminance*n.profile(d);r<=0||(h+=r,(!c||r>c.light)&&(c={view:p.view,light:r}))}return c&&h>=n.VISIBLE_CONTRAST*s?c.view:void 0}static profile(t){const i=n.RINGS;if(t>=i[i.length-1])return 0;let s=0;for(;t>i[s+1];)s++;const o=(t-i[s])/(i[s+1]-i[s]);return n.COLUMN[s]+(n.COLUMN[s+1]-n.COLUMN[s])*o}push(t,i,s,o){const h=t*3;return this.positions[h]=i.x,this.positions[h+1]=i.y,this.positions[h+2]=i.z,this.colors[h]=s[0]*o,this.colors[h+1]=s[1]*o,this.colors[h+2]=s[2]*o,t+1}cross(t,i){return this.normalise({x:t.y*i.z-t.z*i.y,y:t.z*i.x-t.x*i.z,z:t.x*i.y-t.y*i.x})}normalise(t){const i=Math.hypot(t.x,t.y,t.z)||1;return{x:t.x/i,y:t.y/i,z:t.z/i}}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.object.removeFromParent()}}class j{inSky=!0;plumes=new n;get object(){return this.plumes.object}get drawnCount(){return this.plumes.count}update(t,i,s){const o=t.length===0||!s.date?[]:M.viewsAt(t,i,s.observer,M.sunDirectionAt(s.date));o.length===0&&this.plumes.count===0||this.plumes.set(o,s.relativeScale,h=>s.transmittanceFromSpace(h),h=>s.cloudTransmission(h))}pick(t,i,s){const o=this.plumes.pickAt(i,s.toleranceRad,s.skyLightTowards(i));return o&&{id:o.launchId,detail:o}}dispose(){this.plumes.dispose()}}export{j as LaunchSimulation};
1
+ import{L as M}from"./LaunchPlume-BbsUUQE0.js";import{I as T,w as z,x as f,M as C}from"./three.module-CbaHqYFq.js";import{bc as w,bd as A}from"./ShareDialogElement-Dsc4v4jd.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class n{static RADIUS=840;static MAX_PUFFS=1e3;static RINGS=[0,.25,.5,.75,1,1.25];static COLUMN=n.RINGS.map(t=>{const i=o=>Math.exp(-((o/M.SIGMA_OF_RADIUS)**2)/2),s=i(n.RINGS[n.RINGS.length-1]);return Math.max(0,(i(t)-s)/(1-s))});static SECTORS=12;static VERTICES_PER_PUFF=n.SECTORS*(3+6*(n.RINGS.length-2));static BRIGHTEST_RELATIVE=6e4;object=new T;mesh;positions=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);colors=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);shown=0;drawn=[];static VISIBLE_CONTRAST=.1;constructor(){this.object.name="plumes";const t=new z;t.setAttribute("position",new f(this.positions,3)),t.setAttribute("color",new f(this.colors,3)),t.setDrawRange(0,0),this.mesh=new C(t,w.material()),this.mesh.frustumCulled=!1,w.track(this.mesh),this.object.add(this.mesh)}get count(){return this.shown}set(t,i,s,o){let h=0,c=0;this.drawn=[];for(const u of t){if(c>=n.MAX_PUFFS)break;const d=o(u.centre);if(d<=0)continue;const r=s(u.centre),a=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,u.luminanceCdM2*(u.colour?.[g]??1)*i*u.sunTransmittance[g]*r[g]*d));Math.max(...a)<=0||(h=this.pushPuff(h,u,a),this.drawn.push({view:u,direction:this.normalise(A(u.centre.altitudeDeg,u.centre.azimuthDeg,1)),radiusRad:u.radiusDeg*Math.PI/180,luminance:.2126*a[0]+.7152*a[1]+.0722*a[2]}),c++)}this.shown=c;const p=this.mesh.geometry;p.setDrawRange(0,h),p.getAttribute("position").needsUpdate=!0,p.getAttribute("color").needsUpdate=!0}pushPuff(t,i,s){const o=A(i.centre.altitudeDeg,i.centre.azimuthDeg,n.RADIUS),h=this.normalise(o),c=this.normalise(this.cross({x:0,y:1,z:0},h)),p=this.cross(h,c),u=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(a,g)=>{const e=g/n.SECTORS*2*Math.PI,I=n.RINGS[a]*u,R=Math.cos(e)*I,l=Math.sin(e)*I;return{x:o.x+c.x*R+p.x*l,y:o.y+c.y*R+p.y*l,z:o.z+c.z*R+p.z*l}},r=a=>n.COLUMN[a];for(let a=0;a<n.SECTORS;a++){const g=(a+1)%n.SECTORS;t=this.push(t,o,s,r(0)),t=this.push(t,d(1,a),s,r(1)),t=this.push(t,d(1,g),s,r(1));for(let e=1;e<n.RINGS.length-1;e++){const I=d(e,a),R=d(e,g),l=d(e+1,a),E=d(e+1,g);t=this.push(t,I,s,r(e)),t=this.push(t,R,s,r(e)),t=this.push(t,l,s,r(e+1)),t=this.push(t,R,s,r(e)),t=this.push(t,E,s,r(e+1)),t=this.push(t,l,s,r(e+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,c;for(const p of this.drawn){const u=Math.max(-1,Math.min(1,o.x*p.direction.x+o.y*p.direction.y+o.z*p.direction.z)),d=Math.max(0,Math.acos(u)-i)/Math.max(p.radiusRad,1e-9),r=p.luminance*n.profile(d);r<=0||(h+=r,(!c||r>c.light)&&(c={view:p.view,light:r}))}return c&&h>=n.VISIBLE_CONTRAST*s?c.view:void 0}static profile(t){const i=n.RINGS;if(t>=i[i.length-1])return 0;let s=0;for(;t>i[s+1];)s++;const o=(t-i[s])/(i[s+1]-i[s]);return n.COLUMN[s]+(n.COLUMN[s+1]-n.COLUMN[s])*o}push(t,i,s,o){const h=t*3;return this.positions[h]=i.x,this.positions[h+1]=i.y,this.positions[h+2]=i.z,this.colors[h]=s[0]*o,this.colors[h+1]=s[1]*o,this.colors[h+2]=s[2]*o,t+1}cross(t,i){return this.normalise({x:t.y*i.z-t.z*i.y,y:t.z*i.x-t.x*i.z,z:t.x*i.y-t.y*i.x})}normalise(t){const i=Math.hypot(t.x,t.y,t.z)||1;return{x:t.x/i,y:t.y/i,z:t.z/i}}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.object.removeFromParent()}}class j{inSky=!0;plumes=new n;get object(){return this.plumes.object}get drawnCount(){return this.plumes.count}update(t,i,s){const o=t.length===0||!s.date?[]:M.viewsAt(t,i,s.observer,M.sunDirectionAt(s.date));o.length===0&&this.plumes.count===0||this.plumes.set(o,s.relativeScale,h=>s.transmittanceFromSpace(h),h=>s.cloudTransmission(h))}pick(t,i,s){const o=this.plumes.pickAt(i,s.toleranceRad,s.skyLightTowards(i));return o&&{id:o.launchId,detail:o}}dispose(){this.plumes.dispose()}}export{j as LaunchSimulation};
@@ -1 +1 @@
1
- import{I as d,M as c,ae as f,a8 as m,av as u,m as w,aw as y,u as M,aa as g,V as S}from"./three.module-CbaHqYFq.js";import{bx as b,aA as l,by as v}from"./ShareDialogElement-DqCoQwtn.js";class h{static key(e){return"url"in e?`url:${e.url}|${e.headingOffsetDeg??0}`:"shape"in e?`shape:${e.shape}`:`decor:${e.decorKind}`}static async build(e){const a=new d;if("url"in e){const s=await b(e.url);s.rotation.y=-(e.headingOffsetDeg??0)*Math.PI/180,a.add(s)}else"shape"in e?a.add(h.shapeOf(e.shape)):a.add(l.build({id:"preview",kind:e.decorKind,eastM:0,northM:0},!1));return a}static shapeOf(e){if(e==="figure")return l.build({id:"preview",kind:"entity",eastM:0,northM:0},!1);const a=new c(v.unitGeometry(e),new f({color:13158608,roughness:.5,metalness:0}));return e==="ellipsoid"&&a.scale.set(1,.55,1),a}static dispose(e){e.traverse(a=>{const s=a;if(s.isMesh){s.geometry?.dispose();for(const t of[s.material].flat())t.dispose()}})}static stage(e,a){const s=new m().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new u),r=new d;e.position.sub(t.center),r.add(e);const n=new w;n.add(r),n.add(new y(16777215,6715272,1.6));const o=new M(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new g(30,a,t.radius*.05,t.radius*20),p=t.radius/Math.sin(i.fov*Math.PI/360)*1.05;return i.position.copy(new S(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
1
+ import{I as d,M as c,ae as f,a8 as m,av as u,m as w,aw as y,u as M,aa as g,V as S}from"./three.module-CbaHqYFq.js";import{by as b,aA as l,bz as v}from"./ShareDialogElement-Dsc4v4jd.js";class h{static key(e){return"url"in e?`url:${e.url}|${e.headingOffsetDeg??0}`:"shape"in e?`shape:${e.shape}`:`decor:${e.decorKind}`}static async build(e){const a=new d;if("url"in e){const s=await b(e.url);s.rotation.y=-(e.headingOffsetDeg??0)*Math.PI/180,a.add(s)}else"shape"in e?a.add(h.shapeOf(e.shape)):a.add(l.build({id:"preview",kind:e.decorKind,eastM:0,northM:0},!1));return a}static shapeOf(e){if(e==="figure")return l.build({id:"preview",kind:"entity",eastM:0,northM:0},!1);const a=new c(v.unitGeometry(e),new f({color:13158608,roughness:.5,metalness:0}));return e==="ellipsoid"&&a.scale.set(1,.55,1),a}static dispose(e){e.traverse(a=>{const s=a;if(s.isMesh){s.geometry?.dispose();for(const t of[s.material].flat())t.dispose()}})}static stage(e,a){const s=new m().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new u),r=new d;e.position.sub(t.center),r.add(e);const n=new w;n.add(r),n.add(new y(16777215,6715272,1.6));const o=new M(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new g(30,a,t.radius*.05,t.radius*20),p=t.radius/Math.sin(i.fov*Math.PI/360)*1.05;return i.position.copy(new S(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
@@ -1 +1 @@
1
- import{ax as n}from"./three.module-CbaHqYFq.js";import{M as s}from"./ModelSource-Bz25TN6e.js";import"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class M{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=s.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await s.build(r);try{const{width:e,height:o}=this.SIZE_PX,a=s.stage(t,e/o);if(!a)return;const i=this.renderer??=new n({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return i.setSize(e,o,!1),i.setClearColor(0,0),i.render(a.scene,a.camera),i.domElement.toDataURL("image/png")}finally{s.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{M as ModelThumbnails};
1
+ import{ax as n}from"./three.module-CbaHqYFq.js";import{M as s}from"./ModelSource-B2Ie3T9B.js";import"./ShareDialogElement-Dsc4v4jd.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class M{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=s.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await s.build(r);try{const{width:e,height:o}=this.SIZE_PX,a=s.stage(t,e/o);if(!a)return;const i=this.renderer??=new n({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return i.setSize(e,o,!1),i.setClearColor(0,0),i.render(a.scene,a.camera),i.domElement.toDataURL("image/png")}finally{s.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{M as ModelThumbnails};
@@ -1 +1 @@
1
- import{ax as h}from"./three.module-CbaHqYFq.js";import{M as c}from"./ModelSource-Bz25TN6e.js";import"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class a{constructor(t,i){this.container=t,this.source=i,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,i){a.current?.stop();const s=new a(t,i);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:i,height:s}=this.container.getBoundingClientRect(),e=i>0&&s>0?i/s:4/3;if(this.stage=c.stage(t,e),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),i=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*i);const s=a.renderer,{width:e,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(e*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(e,n,!1),this.canvas.width=Math.round(e*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=e/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const i=this.dragging;if(!i||!this.stage)return;const s=t.clientX-i.x,e=t.clientY-i.y;!i.moved&&Math.hypot(s,e)<a.CLICK_TOLERANCE_PX||(i.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-e*a.DRAG_RAD_PER_PX)),i.x=t.clientX,i.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
1
+ import{ax as h}from"./three.module-CbaHqYFq.js";import{M as c}from"./ModelSource-B2Ie3T9B.js";import"./ShareDialogElement-Dsc4v4jd.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class a{constructor(t,i){this.container=t,this.source=i,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,i){a.current?.stop();const s=new a(t,i);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:i,height:s}=this.container.getBoundingClientRect(),e=i>0&&s>0?i/s:4/3;if(this.stage=c.stage(t,e),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),i=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*i);const s=a.renderer,{width:e,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(e*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(e,n,!1),this.canvas.width=Math.round(e*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=e/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const i=this.dragging;if(!i||!this.stage)return;const s=t.clientX-i.x,e=t.clientY-i.y;!i.moved&&Math.hypot(s,e)<a.CLICK_TOLERANCE_PX||(i.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-e*a.DRAG_RAD_PER_PX)),i.x=t.clientX,i.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModulesPanelMessages_en-Dir0ADQe.js","./ConsentMessages_en-DBKCeDAn.js","./ModulesPanelMessages_fr-DbKLtD8s.js","./ConsentMessages_fr-FGSpqzMc.js","./ModulesPanelMessages_es-B_ITNG5N.js","./ConsentMessages_es-Dby74lUq.js","./ModulesPanelMessages_it-CE0q7D2c.js","./ConsentMessages_it-BJWfXH6I.js","./ModuleConformance-DYDAaJJQ.js","./rr0-ufoathome.mjs"])))=>i.map(i=>d[i]);
2
- import{M as R,_ as N,H as T,i as m,L as C,a0 as M}from"./rr0-ufoathome.mjs";import{ModuleSession as B}from"./ModuleSession-Dac4fD0X.js";import{M as O}from"./CaseEditorElement-BgT6HnpX.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./GeoProjection-DvqDbRIx.js";import"./SaidPosition-OJEYhVKN.js";import"./ParameterForm-XbqxCLRn.js";import"./ColumnResize-CO4e1m-q.js";import"./ShareDialogElement-DqCoQwtn.js";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./TimelineTracks-Daaqw9ly.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BU0pD84c.js";import"./Account-C4jhsVtN.js";const S=R.catalog({en:()=>N(()=>import("./ModulesPanelMessages_en-Dir0ADQe.js"),__vite__mapDeps([0,1]),import.meta.url).then(v=>v.modulesPanelMessages_en),fr:()=>N(()=>import("./ModulesPanelMessages_fr-DbKLtD8s.js"),__vite__mapDeps([2,3]),import.meta.url).then(v=>v.modulesPanelMessages_fr),es:()=>N(()=>import("./ModulesPanelMessages_es-B_ITNG5N.js"),__vite__mapDeps([4,5]),import.meta.url).then(v=>v.modulesPanelMessages_es),it:()=>N(()=>import("./ModulesPanelMessages_it-CE0q7D2c.js"),__vite__mapDeps([6,7]),import.meta.url).then(v=>v.modulesPanelMessages_it)}),P="rr0-modules-panel",D=`
2
+ import{M as R,_ as N,H as T,i as m,L as C,a0 as M}from"./rr0-ufoathome.mjs";import{ModuleSession as B}from"./ModuleSession-Dac4fD0X.js";import{M as O}from"./CaseEditorElement-CPt1laCe.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./GeoProjection-DvqDbRIx.js";import"./SaidPosition-OJEYhVKN.js";import"./ParameterForm-XbqxCLRn.js";import"./ColumnResize-D6vA9JBg.js";import"./ShareDialogElement-Dsc4v4jd.js";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./PoherSelfCheck-DnXcStjH.js";import"./PoherMatrix-C2fcLqDH.js";import"./TimelineTracks-Daaqw9ly.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BU0pD84c.js";import"./Account-C4jhsVtN.js";const S=R.catalog({en:()=>N(()=>import("./ModulesPanelMessages_en-Dir0ADQe.js"),__vite__mapDeps([0,1]),import.meta.url).then(v=>v.modulesPanelMessages_en),fr:()=>N(()=>import("./ModulesPanelMessages_fr-DbKLtD8s.js"),__vite__mapDeps([2,3]),import.meta.url).then(v=>v.modulesPanelMessages_fr),es:()=>N(()=>import("./ModulesPanelMessages_es-B_ITNG5N.js"),__vite__mapDeps([4,5]),import.meta.url).then(v=>v.modulesPanelMessages_es),it:()=>N(()=>import("./ModulesPanelMessages_it-CE0q7D2c.js"),__vite__mapDeps([6,7]),import.meta.url).then(v=>v.modulesPanelMessages_it)}),P="rr0-modules-panel",D=`
3
3
  rr0-modules-panel { display: block; }
4
4
  rr0-modules-panel .mp-add { display: flex; gap: .4em; align-items: center; margin: .4em 0; }
5
5
  rr0-modules-panel .mp-add input { flex: 1 1 16em; min-width: 0; }
@@ -15,4 +15,4 @@ rr0-modules-panel .mp-files { display: flex; gap: .6em; flex-wrap: wrap; align-i
15
15
  rr0-modules-panel .mp-consents { list-style: none; margin: .3em 0; padding: 0; }
16
16
  rr0-modules-panel .mp-consents li { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
17
17
  rr0-modules-panel .mp-consents code { overflow-wrap: anywhere; }
18
- `;class I extends HTMLElement{session=B.shared;messages;languageAsked=!1;named=[];recordingBase;note;languageToken=0;draft="";onChange=()=>this.render();checkContext;checks=new Map;set moduleSession(e){this.session.changes.removeEventListener("change",this.onChange),this.session=e,this.isConnected&&this.session.changes.addEventListener("change",this.onChange),this.render()}get recordingModules(){return[...this.named]}set recordingModules(e){this.named=[...e??[]],this.render()}set base(e){this.recordingBase=e,this.render()}async setLanguage(e){this.languageAsked=!0;const t=++this.languageToken,n=await S.load(e);t===this.languageToken&&(this.messages=n,this.render())}connectedCallback(){this.languageAsked||this.setLanguage(T.preferencesFor(this)[0]??"en"),this.session.changes.addEventListener("change",this.onChange),this.session.start(),this.render()}disconnectedCallback(){this.session.changes.removeEventListener("change",this.onChange)}absolute(e){try{return new URL(e,this.recordingBase??location.href).href}catch{return}}isNamed(e){return this.named.some(t=>this.absolute(t)===e)}setNamed(e,t){t!==this.isNamed(e)&&(this.named=t?[...this.named,O.of(e,this.recordingBase)]:this.named.filter(n=>this.absolute(n)!==e),t&&this.session.require([e]),this.dispatchEvent(new Event("recordingmoduleschange",{bubbles:!0})),this.render())}render(){const e=this.messages;if(!this.isConnected||!this.messages)return;const t=this.ownerDocument,n=t.createElement("style");n.textContent=D;const o=t.createElement("p");o.className=m.INFO,o.textContent=e.intro;const a=t.createElement("form");a.className="mp-add";const r=t.createElement("input");r.type="url",r.id="module-url",r.required=!0,r.placeholder=e.urlPlaceholder,r.value=this.draft,r.addEventListener("input",()=>{this.draft=r.value}),r.setAttribute("aria-label",e.urlPlaceholder);const u=t.createElement("button");u.type="submit",u.textContent=e.add,a.append(r,u),a.addEventListener("submit",i=>{i.preventDefault();const x=r.value.trim();x&&(this.draft="",this.addAsked(x))});const c=t.createElement("p");c.className=m.WARNING,c.textContent=e.codeWarning;const d=this.session.list(),p=new Set(d.map(i=>i.url)),k=this.named.map(i=>this.absolute(i)).filter(i=>i!==void 0&&!p.has(i)),g=t.createElement("ul");g.className="mp-list",g.append(...d.map(i=>this.item(i)),...k.map(i=>this.item({url:i,addedByPerson:!1,enabled:!0,status:"loading"})));const b=t.createElement("p");b.className=m.INFO,b.textContent=e.none,b.hidden=g.childElementCount>0;const f=t.createElement("div");f.className="mp-files";const E=t.createElement("button");E.type="button",E.id="modules-export",E.textContent=e.exportConfig,E.disabled=!d.some(i=>i.addedByPerson),E.addEventListener("click",()=>this.download());const h=t.createElement("input");h.type="file",h.id="modules-import",h.accept="application/json,.json",h.hidden=!0;const s=t.createElement("button");s.type="button",s.textContent=e.importConfig,s.addEventListener("click",()=>h.click()),h.addEventListener("change",()=>{const i=h.files?.[0];i&&this.importFile(i),h.value=""}),f.append(E,s,h);const l=t.createElement("p");l.id="modules-note",l.setAttribute("role","status"),m.show(l,this.note?.text,this.note?.kind);const w=t.createElement("p");w.className="mp-consents-heading";const _=C.list();w.textContent=_.length?e.consentedHeading:e.consentedNone;const L=t.createElement("ul");L.className="mp-consents",L.append(..._.map(i=>{const x=t.createElement("li"),A=t.createElement("code");A.textContent=i;const y=t.createElement("button");return y.type="button",y.className="mp-revoke",y.textContent=e.consentRevoke,y.addEventListener("click",()=>void this.revoke(i)),x.append(A,y),x})),this.replaceChildren(n,o,a,c,g,b,w,L,f,l)}async addAsked(e){let t;try{t=new URL(e,location.href).href}catch{return}await M.ask(this,this.messages,[t]),await this.session.add(t),this.render()}async revoke(e){C.revoke(e);const t=this.session.list().filter(n=>C.originOf(n.url)===e);await Promise.all(t.map(n=>this.session.refresh(n.url))),this.note={text:this.messages?.consentRevoked.replace("{origin}",e),kind:"info"},this.render()}item(e){const t=this.messages,n=this.ownerDocument,o=e.loaded,a=n.createElement("li");a.className="mp-module",a.dataset.url=e.url;const r=n.createElement("div");if(r.className="mp-head",e.addedByPerson){const s=n.createElement("label"),l=n.createElement("input");l.type="checkbox",l.className="mp-enabled",l.checked=e.enabled,l.addEventListener("change",()=>void this.session.setEnabled(e.url,l.checked)),s.append(l,n.createTextNode(` ${t.enabled}`)),r.append(s)}const u=n.createElement("span");u.className="mp-name",u.textContent=e.loaded?.module.name??e.url,r.append(u);const c=e.loaded?.module.credit;if(c){const s=n.createElement(e.loaded?.module.creditUrl?"a":"span");s.className=m.INFO,s.textContent=c,s instanceof HTMLAnchorElement&&(s.href=e.loaded.module.creditUrl,s.target="_blank",s.rel="noopener noreferrer"),r.append(s)}const d=n.createElement("button");if(d.type="button",d.className="mp-remove",e.addedByPerson?(d.textContent=t.remove,d.addEventListener("click",()=>void this.session.remove(e.url))):(d.textContent=t.addToMine,d.addEventListener("click",()=>void this.addAsked(e.url))),e.addedByPerson&&e.enabled&&o?.hasScript&&!o.scriptRun){const s=n.createElement("button");s.type="button",s.className="mp-allow",s.textContent=t.allowCode,s.addEventListener("click",()=>void M.ask(this,this.messages,[e.url]).then(l=>l?this.session.refresh(e.url):void 0)),r.append(s)}if(e.status==="installed"&&o){const s=n.createElement("button");s.type="button",s.className="mp-check";const l=this.checks.get(e.url),w=l?.of===o&&l.findings===void 0&&l.crash===void 0;s.textContent=w?t.checking:t.check,s.disabled=w,s.addEventListener("click",()=>void this.check(e.url,o)),r.append(s)}r.append(d);const p=n.createElement("p");p.className=`${m.INFO} mp-url`,p.textContent=e.url;const k=n.createElement("p");k.className="mp-status",e.status==="loading"?m.show(k,t.loading):e.status==="failed"?m.show(k,t.failed.replace("{error}",e.error??""),"error"):e.status==="off"?m.show(k,t.off):m.show(k,this.brings(e));const g=n.createElement("p");g.className="mp-code",o?.scriptRun?m.show(g,t.runsCode,"warning"):o?.hasScript?m.show(g,t.codeNotRun,"info"):g.hidden=!0;const b=n.createElement("label");b.title=t.namedByRecordingHint;const f=n.createElement("input");f.type="checkbox",f.className="mp-named",f.checked=this.isNamed(e.url),f.addEventListener("change",()=>this.setNamed(e.url,f.checked)),b.append(f,n.createTextNode(` ${t.namedByRecording}`));const E=n.createElement("p");E.append(b),a.append(r,p,k,g,E);const h=this.checks.get(e.url);return h&&h.of===o&&a.append(...this.checkResult(h)),a}async check(e,t){const n={of:t};this.checks.set(e,n),this.render();try{const{ModuleConformance:o}=await N(async()=>{const{ModuleConformance:a}=await import("./ModuleConformance-DYDAaJJQ.js");return{ModuleConformance:a}},__vite__mapDeps([8,9]),import.meta.url);n.findings=await o.check(t,this.checkContext?.())}catch(o){n.crash=o instanceof Error?o.message:String(o)}this.render()}checkResult(e){const t=this.messages,n=this.ownerDocument,o=(c,d)=>{const p=n.createElement("p");return p.className="mp-check-result",p.setAttribute("role","status"),m.show(p,c,d),p};if(e.crash!==void 0)return[o(t.checkCrashed.replace("{error}",()=>e.crash),"error")];if(!e.findings)return[];const a=e.findings.filter(c=>c.level==="failed"),r=e.findings.filter(c=>c.level==="note"),u=[];if(a.length===0&&u.push(o(t.checkPassed,"info")),a.length+r.length>0){const c=n.createElement("ul");c.className="mp-findings";for(const d of[...a,...r]){const p=n.createElement("li");m.show(p,this.finding(d),d.level==="failed"?"error":"info"),c.append(p)}u.push(c)}return u}finding(e){const t=this.messages,n=e.point===void 0?"":t.points[e.point]??e.point,o=t.checks[e.code].replace("{point}",()=>e.point??"").replace("{detail}",()=>e.detail??""),a=e.source??(e.code==="unknownPoint"||e.code==="notAList"?void 0:n);return a?t.checkAbout.replace("{about}",()=>a).replace("{text}",()=>o):o}brings(e){const t=Object.entries(e.loaded?.module.contributes??{}).filter(([,n])=>Array.isArray(n)&&n.length>0).map(([n,o])=>`${this.messages.points[n]??n} (${o.length})`);return t.length>0?this.messages.brings.replace("{points}",t.join(", ")):this.messages.bringsNothing}download(){const e=new Blob([this.session.exportText()],{type:"application/json"}),t=URL.createObjectURL(e),n=this.ownerDocument.createElement("a");n.href=t,n.download="ufoathome-modules.json",n.click(),URL.revokeObjectURL(t)}async importFile(e){try{await this.session.importText(await e.text());const t=this.session.list().filter(n=>n.addedByPerson).length;this.note={text:this.messages.imported.replace("{count}",String(t)),kind:"info"}}catch(t){this.note={text:this.messages.importFailed.replace("{error}",t instanceof Error?t.message:String(t)),kind:"error"}}this.render()}}function oe(){customElements.get(P)||customElements.define(P,I)}export{P as MODULES_PANEL_ELEMENT_NAME,I as ModulesPanelElement,oe as register};
18
+ `;class I extends HTMLElement{session=B.shared;messages;languageAsked=!1;named=[];recordingBase;note;languageToken=0;draft="";onChange=()=>this.render();checkContext;checks=new Map;set moduleSession(e){this.session.changes.removeEventListener("change",this.onChange),this.session=e,this.isConnected&&this.session.changes.addEventListener("change",this.onChange),this.render()}get recordingModules(){return[...this.named]}set recordingModules(e){this.named=[...e??[]],this.render()}set base(e){this.recordingBase=e,this.render()}async setLanguage(e){this.languageAsked=!0;const t=++this.languageToken,n=await S.load(e);t===this.languageToken&&(this.messages=n,this.render())}connectedCallback(){this.languageAsked||this.setLanguage(T.preferencesFor(this)[0]??"en"),this.session.changes.addEventListener("change",this.onChange),this.session.start(),this.render()}disconnectedCallback(){this.session.changes.removeEventListener("change",this.onChange)}absolute(e){try{return new URL(e,this.recordingBase??location.href).href}catch{return}}isNamed(e){return this.named.some(t=>this.absolute(t)===e)}setNamed(e,t){t!==this.isNamed(e)&&(this.named=t?[...this.named,O.of(e,this.recordingBase)]:this.named.filter(n=>this.absolute(n)!==e),t&&this.session.require([e]),this.dispatchEvent(new Event("recordingmoduleschange",{bubbles:!0})),this.render())}render(){const e=this.messages;if(!this.isConnected||!this.messages)return;const t=this.ownerDocument,n=t.createElement("style");n.textContent=D;const o=t.createElement("p");o.className=m.INFO,o.textContent=e.intro;const a=t.createElement("form");a.className="mp-add";const r=t.createElement("input");r.type="url",r.id="module-url",r.required=!0,r.placeholder=e.urlPlaceholder,r.value=this.draft,r.addEventListener("input",()=>{this.draft=r.value}),r.setAttribute("aria-label",e.urlPlaceholder);const u=t.createElement("button");u.type="submit",u.textContent=e.add,a.append(r,u),a.addEventListener("submit",i=>{i.preventDefault();const x=r.value.trim();x&&(this.draft="",this.addAsked(x))});const c=t.createElement("p");c.className=m.WARNING,c.textContent=e.codeWarning;const d=this.session.list(),p=new Set(d.map(i=>i.url)),k=this.named.map(i=>this.absolute(i)).filter(i=>i!==void 0&&!p.has(i)),g=t.createElement("ul");g.className="mp-list",g.append(...d.map(i=>this.item(i)),...k.map(i=>this.item({url:i,addedByPerson:!1,enabled:!0,status:"loading"})));const b=t.createElement("p");b.className=m.INFO,b.textContent=e.none,b.hidden=g.childElementCount>0;const f=t.createElement("div");f.className="mp-files";const E=t.createElement("button");E.type="button",E.id="modules-export",E.textContent=e.exportConfig,E.disabled=!d.some(i=>i.addedByPerson),E.addEventListener("click",()=>this.download());const h=t.createElement("input");h.type="file",h.id="modules-import",h.accept="application/json,.json",h.hidden=!0;const s=t.createElement("button");s.type="button",s.textContent=e.importConfig,s.addEventListener("click",()=>h.click()),h.addEventListener("change",()=>{const i=h.files?.[0];i&&this.importFile(i),h.value=""}),f.append(E,s,h);const l=t.createElement("p");l.id="modules-note",l.setAttribute("role","status"),m.show(l,this.note?.text,this.note?.kind);const w=t.createElement("p");w.className="mp-consents-heading";const _=C.list();w.textContent=_.length?e.consentedHeading:e.consentedNone;const L=t.createElement("ul");L.className="mp-consents",L.append(..._.map(i=>{const x=t.createElement("li"),A=t.createElement("code");A.textContent=i;const y=t.createElement("button");return y.type="button",y.className="mp-revoke",y.textContent=e.consentRevoke,y.addEventListener("click",()=>void this.revoke(i)),x.append(A,y),x})),this.replaceChildren(n,o,a,c,g,b,w,L,f,l)}async addAsked(e){let t;try{t=new URL(e,location.href).href}catch{return}await M.ask(this,this.messages,[t]),await this.session.add(t),this.render()}async revoke(e){C.revoke(e);const t=this.session.list().filter(n=>C.originOf(n.url)===e);await Promise.all(t.map(n=>this.session.refresh(n.url))),this.note={text:this.messages?.consentRevoked.replace("{origin}",e),kind:"info"},this.render()}item(e){const t=this.messages,n=this.ownerDocument,o=e.loaded,a=n.createElement("li");a.className="mp-module",a.dataset.url=e.url;const r=n.createElement("div");if(r.className="mp-head",e.addedByPerson){const s=n.createElement("label"),l=n.createElement("input");l.type="checkbox",l.className="mp-enabled",l.checked=e.enabled,l.addEventListener("change",()=>void this.session.setEnabled(e.url,l.checked)),s.append(l,n.createTextNode(` ${t.enabled}`)),r.append(s)}const u=n.createElement("span");u.className="mp-name",u.textContent=e.loaded?.module.name??e.url,r.append(u);const c=e.loaded?.module.credit;if(c){const s=n.createElement(e.loaded?.module.creditUrl?"a":"span");s.className=m.INFO,s.textContent=c,s instanceof HTMLAnchorElement&&(s.href=e.loaded.module.creditUrl,s.target="_blank",s.rel="noopener noreferrer"),r.append(s)}const d=n.createElement("button");if(d.type="button",d.className="mp-remove",e.addedByPerson?(d.textContent=t.remove,d.addEventListener("click",()=>void this.session.remove(e.url))):(d.textContent=t.addToMine,d.addEventListener("click",()=>void this.addAsked(e.url))),e.addedByPerson&&e.enabled&&o?.hasScript&&!o.scriptRun){const s=n.createElement("button");s.type="button",s.className="mp-allow",s.textContent=t.allowCode,s.addEventListener("click",()=>void M.ask(this,this.messages,[e.url]).then(l=>l?this.session.refresh(e.url):void 0)),r.append(s)}if(e.status==="installed"&&o){const s=n.createElement("button");s.type="button",s.className="mp-check";const l=this.checks.get(e.url),w=l?.of===o&&l.findings===void 0&&l.crash===void 0;s.textContent=w?t.checking:t.check,s.disabled=w,s.addEventListener("click",()=>void this.check(e.url,o)),r.append(s)}r.append(d);const p=n.createElement("p");p.className=`${m.INFO} mp-url`,p.textContent=e.url;const k=n.createElement("p");k.className="mp-status",e.status==="loading"?m.show(k,t.loading):e.status==="failed"?m.show(k,t.failed.replace("{error}",e.error??""),"error"):e.status==="off"?m.show(k,t.off):m.show(k,this.brings(e));const g=n.createElement("p");g.className="mp-code",o?.scriptRun?m.show(g,t.runsCode,"warning"):o?.hasScript?m.show(g,t.codeNotRun,"info"):g.hidden=!0;const b=n.createElement("label");b.title=t.namedByRecordingHint;const f=n.createElement("input");f.type="checkbox",f.className="mp-named",f.checked=this.isNamed(e.url),f.addEventListener("change",()=>this.setNamed(e.url,f.checked)),b.append(f,n.createTextNode(` ${t.namedByRecording}`));const E=n.createElement("p");E.append(b),a.append(r,p,k,g,E);const h=this.checks.get(e.url);return h&&h.of===o&&a.append(...this.checkResult(h)),a}async check(e,t){const n={of:t};this.checks.set(e,n),this.render();try{const{ModuleConformance:o}=await N(async()=>{const{ModuleConformance:a}=await import("./ModuleConformance-DYDAaJJQ.js");return{ModuleConformance:a}},__vite__mapDeps([8,9]),import.meta.url);n.findings=await o.check(t,this.checkContext?.())}catch(o){n.crash=o instanceof Error?o.message:String(o)}this.render()}checkResult(e){const t=this.messages,n=this.ownerDocument,o=(c,d)=>{const p=n.createElement("p");return p.className="mp-check-result",p.setAttribute("role","status"),m.show(p,c,d),p};if(e.crash!==void 0)return[o(t.checkCrashed.replace("{error}",()=>e.crash),"error")];if(!e.findings)return[];const a=e.findings.filter(c=>c.level==="failed"),r=e.findings.filter(c=>c.level==="note"),u=[];if(a.length===0&&u.push(o(t.checkPassed,"info")),a.length+r.length>0){const c=n.createElement("ul");c.className="mp-findings";for(const d of[...a,...r]){const p=n.createElement("li");m.show(p,this.finding(d),d.level==="failed"?"error":"info"),c.append(p)}u.push(c)}return u}finding(e){const t=this.messages,n=e.point===void 0?"":t.points[e.point]??e.point,o=t.checks[e.code].replace("{point}",()=>e.point??"").replace("{detail}",()=>e.detail??""),a=e.source??(e.code==="unknownPoint"||e.code==="notAList"?void 0:n);return a?t.checkAbout.replace("{about}",()=>a).replace("{text}",()=>o):o}brings(e){const t=Object.entries(e.loaded?.module.contributes??{}).filter(([,n])=>Array.isArray(n)&&n.length>0).map(([n,o])=>`${this.messages.points[n]??n} (${o.length})`);return t.length>0?this.messages.brings.replace("{points}",t.join(", ")):this.messages.bringsNothing}download(){const e=new Blob([this.session.exportText()],{type:"application/json"}),t=URL.createObjectURL(e),n=this.ownerDocument.createElement("a");n.href=t,n.download="ufoathome-modules.json",n.click(),URL.revokeObjectURL(t)}async importFile(e){try{await this.session.importText(await e.text());const t=this.session.list().filter(n=>n.addedByPerson).length;this.note={text:this.messages.imported.replace("{count}",String(t)),kind:"info"}}catch(t){this.note={text:this.messages.importFailed.replace("{error}",t instanceof Error?t.message:String(t)),kind:"error"}}this.render()}}function ie(){customElements.get(P)||customElements.define(P,I)}export{P as MODULES_PANEL_ELEMENT_NAME,I as ModulesPanelElement,ie as register};
@@ -0,0 +1 @@
1
+ import{b0 as b,aT as h}from"./ShareDialogElement-Dsc4v4jd.js";class c{static FLAT={heightAt:()=>0};static of(e){const s=e.timeline.sourceIds.map(n=>b.of(e,n)?.nearestM).filter(n=>n!==void 0);return s.length>0?{m:Math.min(...s),basis:"derived",paths:["timeline","observerTrack"]}:c.interpreted(e)}static interpreted(e){const s=(e.interpretation?.bodies??[]).map((t,i)=>({body:t,index:i})).filter(({body:t})=>Array.isArray(t.track)),n=s.filter(({body:t})=>(t.explains?.length??0)>0),u=n.length>0?n:s,d=c.FLAT,l=t=>h.eyeOf(e,t,d);let o;const p=[];for(const{body:t,index:i}of u){const M=new h(t,d,l);for(const{t:f}of t.track){const a=M.at(f),r=l(f);if(!a||!r)continue;const m=Math.hypot(a.eastM-r.eastM,a.northM-r.northM,a.upM-r.upM);(o===void 0||m<o)&&(o=m)}p.push(`interpretation.bodies.${i}`)}return o===void 0?void 0:{m:o,basis:"assumed",paths:p}}}export{c as N};
@@ -1 +1 @@
1
- import{x as u}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class o{about="shape";static STEP_DEG=2;static TURN_DEG=60;static ERRATIC_TURNS=3;static OSCILLATIONS=["vibrate","spiral","roll"];async assess(n){const t=this.trajectory(n),s=this.vanish(n),i=this.oscillation(n),e=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=e.shown&&r.shown?5:e.shown&&c.shown?4:e.shown||t.value==="erratic"||s.shown||i.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,a=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",i),{...this.criterion("poher-landing",e),unsupported:e.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:a}}static TRAJECTORIES=["unknown","still","straight","abnormal","erratic"];criterion(n,t){return{id:n,value:t.shown?1:0,basis:t.basis,paths:t.basis===void 0?[]:t.paths}}trajectory(n){let t="unknown";for(const s of n.timeline.sourceIds){const i=this.seen(n,s).filter(a=>a.aim!==void 0).map(a=>a.aim);if(i.length<2)continue;const e=[o.unit(i[0])];for(const a of i.slice(1)){const l=o.unit(a);o.angleDeg(e[e.length-1],l)>=o.STEP_DEG&&e.push(l)}const c=e.length-1;let r=0;for(let a=1;a<e.length-1;a++){const l=o.cross(e[a-1],e[a]),d=o.cross(e[a],e[a+1]);o.angleDeg(l,d)>=o.TURN_DEG&&r++}const h=c===0?"still":r>=o.ERRATIC_TURNS?"erratic":r>0?"abnormal":"straight";o.TRAJECTORIES.indexOf(h)>o.TRAJECTORIES.indexOf(t)&&(t=h)}return t==="unknown"?{value:t,paths:[]}:{value:t,basis:"derived",paths:["timeline"]}}vanish(n){const t=(n.events??[]).findIndex(s=>s.eventType==="vanish"&&u.isPhenomenon(n,s));return t>=0?{shown:!0,basis:"stated",paths:[`events.${t}`]}:{shown:!1,paths:[]}}oscillation(n){const t=new Set((n.interpretation?.bodies??[]).map(i=>i.id)),s=(n.events??[]).findIndex(i=>o.OSCILLATIONS.includes(i.eventType)&&(u.isPhenomenon(n,i)||t.has(i.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=i=>!i.onGround&&((i.altitudeAboveGroundM??0)>0||(i.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(i=>Array.isArray(i.track)&&i.track.some(e=>e.onGround)&&i.track.some(t));return s>=0?{shown:!0,basis:"assumed",paths:[`interpretation.bodies.${s}`]}:{shown:!1,paths:[]}}occupants(n){const t=n.decor.findIndex(s=>s.kind==="entity");return t>=0?{shown:!0,basis:"stated",paths:[`decor.${t}`]}:this.judged(n,"beings")}judged(n,t){const s=n.account?.strangeness?.[t];return s===void 0?{shown:!1,paths:[]}:{shown:s,basis:"stated",paths:[`account.strangeness.${t}`]}}instants(n,t){return n.timeline.allKeyframes.map(s=>({t:s.t,shape:s.shapes.find(i=>i.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:i})=>({t:s,aim:i.aim,visible:i.transparency<1})).sort((s,i)=>s.t-i.t)}seen(n,t){return this.instants(n,t).filter(s=>s.visible)}static unit(n){const[t,s]=[n.azimuthDeg*Math.PI/180,n.altitudeDeg*Math.PI/180];return[Math.cos(s)*Math.sin(t),Math.cos(s)*Math.cos(t),Math.sin(s)]}static cross(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}static angleDeg(n,t){const s=Math.hypot(...n)*Math.hypot(...t);if(s===0)return 0;const i=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,i)))*180/Math.PI}}export{o as PoherAssessor};
1
+ import{x as u}from"./ShareDialogElement-Dsc4v4jd.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class o{about="shape";static STEP_DEG=2;static TURN_DEG=60;static ERRATIC_TURNS=3;static OSCILLATIONS=["vibrate","spiral","roll"];async assess(n){const t=this.trajectory(n),s=this.vanish(n),i=this.oscillation(n),e=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=e.shown&&r.shown?5:e.shown&&c.shown?4:e.shown||t.value==="erratic"||s.shown||i.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,a=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",i),{...this.criterion("poher-landing",e),unsupported:e.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:a}}static TRAJECTORIES=["unknown","still","straight","abnormal","erratic"];criterion(n,t){return{id:n,value:t.shown?1:0,basis:t.basis,paths:t.basis===void 0?[]:t.paths}}trajectory(n){let t="unknown";for(const s of n.timeline.sourceIds){const i=this.seen(n,s).filter(a=>a.aim!==void 0).map(a=>a.aim);if(i.length<2)continue;const e=[o.unit(i[0])];for(const a of i.slice(1)){const l=o.unit(a);o.angleDeg(e[e.length-1],l)>=o.STEP_DEG&&e.push(l)}const c=e.length-1;let r=0;for(let a=1;a<e.length-1;a++){const l=o.cross(e[a-1],e[a]),d=o.cross(e[a],e[a+1]);o.angleDeg(l,d)>=o.TURN_DEG&&r++}const h=c===0?"still":r>=o.ERRATIC_TURNS?"erratic":r>0?"abnormal":"straight";o.TRAJECTORIES.indexOf(h)>o.TRAJECTORIES.indexOf(t)&&(t=h)}return t==="unknown"?{value:t,paths:[]}:{value:t,basis:"derived",paths:["timeline"]}}vanish(n){const t=(n.events??[]).findIndex(s=>s.eventType==="vanish"&&u.isPhenomenon(n,s));return t>=0?{shown:!0,basis:"stated",paths:[`events.${t}`]}:{shown:!1,paths:[]}}oscillation(n){const t=new Set((n.interpretation?.bodies??[]).map(i=>i.id)),s=(n.events??[]).findIndex(i=>o.OSCILLATIONS.includes(i.eventType)&&(u.isPhenomenon(n,i)||t.has(i.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=i=>!i.onGround&&((i.altitudeAboveGroundM??0)>0||(i.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(i=>Array.isArray(i.track)&&i.track.some(e=>e.onGround)&&i.track.some(t));return s>=0?{shown:!0,basis:"assumed",paths:[`interpretation.bodies.${s}`]}:{shown:!1,paths:[]}}occupants(n){const t=n.decor.findIndex(s=>s.kind==="entity");return t>=0?{shown:!0,basis:"stated",paths:[`decor.${t}`]}:this.judged(n,"beings")}judged(n,t){const s=n.account?.strangeness?.[t];return s===void 0?{shown:!1,paths:[]}:{shown:s,basis:"stated",paths:[`account.strangeness.${t}`]}}instants(n,t){return n.timeline.allKeyframes.map(s=>({t:s.t,shape:s.shapes.find(i=>i.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:i})=>({t:s,aim:i.aim,visible:i.transparency<1})).sort((s,i)=>s.t-i.t)}seen(n,t){return this.instants(n,t).filter(s=>s.visible)}static unit(n){const[t,s]=[n.azimuthDeg*Math.PI/180,n.altitudeDeg*Math.PI/180];return[Math.cos(s)*Math.sin(t),Math.cos(s)*Math.cos(t),Math.sin(s)]}static cross(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}static angleDeg(n,t){const s=Math.hypot(...n)*Math.hypot(...t);if(s===0)return 0;const i=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,i)))*180/Math.PI}}export{o as PoherAssessor};
@@ -0,0 +1 @@
1
+ class u{constructor(e,t){this.reasons=t;for(const n of e){const i=n.knownPhenomenaProbabilities??n.knownPhenomenonProbabilities??{};this.scores.set(n.question,i);for(const o of Object.keys(i))this.phenomena.includes(o)||this.phenomena.push(o)}}static BASE_URL="https://raw.githubusercontent.com/RR0/rr0.org/master/";static VERSIONS={"poher-1977":"time/1/9/7/7/Poher_Matrice/","rr0-2026":"time/2/0/2/6/10/Poher_Matrice_RR0/"};static DEFAULT_VERSION="rr0-2026";static VERSION_STORAGE="ufoathome.poherMatrixVersion";static chosenVersion(){try{const e=localStorage.getItem(u.VERSION_STORAGE);if(e&&e in u.VERSIONS)return e}catch{}return u.DEFAULT_VERSION}scores=new Map;phenomena=[];has(e){return this.scores.has(e)}reason(e,t){return this.reasons?.cells[e]?.[t]}rank(e){const t=e.filter(i=>this.scores.has(i.question));return this.phenomena.map(i=>{const o=[],s=[];let r=0,l=0;for(const a of t){const d=this.scores.get(a.question)[i];d!==void 0&&(l++,r+=d,d===0&&(a.firm?o:s).push(a.question))}return{phenomenon:i,excludedBy:o,doubtedBy:s,mean:l>0?r/l:0,added:this.reasons?.phenomena[i]!==void 0}}).sort((i,o)=>(i.excludedBy.length>0?1:0)-(o.excludedBy.length>0?1:0)||i.excludedBy.length-o.excludedBy.length||o.mean-i.mean)}static async load(e,t,n){const i=["fr","en","it"].includes(t)?t:"en",o=`${u.BASE_URL}${u.VERSIONS[e]}`,[s,r,l]=await Promise.all([n(`${o}matrix.json`),n(`${o}Matrix_${i}.json`),e==="poher-1977"?void 0:n(`${o}reasons.json`)]);return{matrix:new u(s,l),labels:r}}}class h{constructor(e,t){this.model=e,this.conditions=t}of(e){const t=[],n=(o,s=!0)=>t.push({question:o,firm:s});e.sunAltitudeDeg!==void 0&&n(e.sunAltitudeDeg>0?"Hour.Day":e.sunAltitudeDeg<-6?"Hour.Night":"Hour.Twilight");const i=(o,s,r)=>{if(s===void 0)return;const l=g=>r.find(([S])=>g<S)?.[1]??r[r.length-1][1],a=this.model.law({kind:o,value:s},this.conditions),d=l(s),c=a.shape==="range"&&l(a.low??s)===d&&l(a.high??s)===d;n(d,c)};if(i("duration",e.durationSeconds,[[10,"Duration.LessThan10s"],[3600,"Duration.AFewMn"],[1/0,"Duration.Above1h"]]),i("elevation",e.elevationDeg,[[5,"AngularHeight.LowOnHorizon"],[30,"AngularHeight.LessThan30d"],[1/0,"AngularHeight.HighInSky"]]),i("angularSize",e.widthDeg,[[.2,"ApparentSize.Pointlike"],[1,"ApparentSize.SimilarToMoon30s"],[1/0,"ApparentSize.SeveralDegrees"]]),e.cloudCover!==void 0&&(e.cloudCover<.2?n("WeatherConditions.NiceAndAlmostClearSky"):e.cloudCover>.8&&n("WeatherConditions.Overcast")),e.lightning&&n("WeatherConditions.Thunder"),e.lowVisibility&&n("WeatherConditions.LowVisibility"),e.sweepDeg!==void 0&&(e.sweepDeg<1?n("Path.Stationary",!1):n((e.straysDeg??0)<Math.max(1,e.sweepDeg*.1)?"Path.StraightLineContinuous":"Path.Complex",!1)),e.speedDegPerS!==void 0){const o=e.speedDegPerS;n((e.speedVariation??0)>3?"AngularSpeed.Variable":o<.01?"AngularSpeed.VeryLowOrStationary":o>10?"AngularSpeed.VeryHighStreaking":"AngularSpeed.SlowLikePlaneAtHighAltitude",!1)}if(e.count!==void 0&&n(e.count>1?"ObjectsCount.Several":"ObjectsCount.Single"),e.aligned&&n("Formation.Line"),e.round!==void 0&&n(e.round?"ObjectShape.Round":"ObjectShape.Other",!1),e.colors&&e.colors.length>0){const o=e.colors.length>1?"Color.MutipleLights":h.colorClass(e.colors[0]);o&&n(o)}return e.brightness!==void 0&&e.brightness>=.5&&n("Luminosity.Intense",!1),e.observers!==void 0&&n(e.observers>1?"IndependentWitnessesCount.Several":"IndependentWitnessesCount.Single",this.conditions?.independent!==!1),e.sound&&n("Noise.Perceived"),e.nakedEye&&n("Detection.NakedEye"),t}static colorClass(e){const t=/^#([0-9a-f]{6})$/i.exec(e);if(!t)return;const n=parseInt(t[1],16),[i,o,s]=[n>>16&255,n>>8&255,n&255],r=Math.max(i,o,s),l=Math.min(i,o,s);return r-l<40?"Color.White":i===r&&o<i*.85&&s<i*.6?"Color.RedOrange":o===r&&i<o*.7?"Color.Green":void 0}}export{h as PoherAnswers,u as PoherMatrix};
@@ -0,0 +1 @@
1
+ import{s as B,n as T,aT as A,W as k}from"./ShareDialogElement-Dsc4v4jd.js";import{b as P}from"./Sighting-C1yj2-s5.js";import{PoherAnswers as O}from"./PoherMatrix-C2fcLqDH.js";import"./rr0-ufoathome.mjs";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";class v{static separation(e,d){const t=Math.PI/180,l=Math.sin(e.altitudeDeg*t)*Math.sin(d.altitudeDeg*t)+Math.cos(e.altitudeDeg*t)*Math.cos(d.altitudeDeg*t)*Math.cos((e.azimuthDeg-d.azimuthDeg)*t);return Math.acos(Math.max(-1,Math.min(1,l)))/t}static of(e){if(e.length<2)return{};const d=e.slice(1).map((i,h)=>({deg:v.separation(e[h],i),s:(i.t-e[h].t)/1e3})),t=v.separation(e[0],e[e.length-1]),l=d.reduce((i,h)=>i+h.deg,0),s={sweepDeg:t,straysDeg:Math.max(0,l-t)/2},a=(e[e.length-1].t-e[0].t)/1e3;if(a>0){s.speedDegPerS=l/a;const i=Math.max(...d.filter(h=>h.s>0).map(h=>h.deg/h.s));s.speedVariation=s.speedDegPerS>0?i/s.speedDegPerS:0}return s}}class Q{static of(e,d=0){const t={},l=e.event,s=l.place?.[0];if(s&&l.time?.year!==void 0&&l.time.hour!==void 0){const o=B(l.time,s.lng,l.utcOffsetHours);o&&(t.sunAltitudeDeg=T("Sun",o,{lat:s.lat,lng:s.lng,elevationM:d}).altitudeDeg)}if(l.durationSeconds!==void 0&&(t.durationSeconds=l.durationSeconds),e.weatherTrack.allKeyframes.length>0){const o=P(e,0);t.cloudCover=o.cloudCover,t.lightning=o.storm,t.lowVisibility=o.precipitationType!=="none"&&o.precipitationIntensity>.3}const a=e.timeline,i=a.sourceIds[0];if(i){const o=a.allKeyframes.filter(c=>c.shapes.some(M=>M.sourceId===i)),p=o.map(c=>({t:c.t,shape:a.getShapeAt(c.t,i)})).filter(c=>c.shape?.aim),r=a.getInterpolatedShapeAt(o[0]?.t??0,i);if(r?.aim&&(t.elevationDeg=r.aim.altitudeDeg),r?.angular){t.widthDeg=r.angular.widthDeg;const c=r.angular.heightDeg>0?r.angular.widthDeg/r.angular.heightDeg:1;t.round=r.kind==="oval"&&c>.8&&c<1.25}r?.brightness!==void 0&&(t.brightness=r.brightness),Object.assign(t,v.of(p.map(c=>({t:c.t,...c.shape.aim}))))}const h=new Set(a.sourceIds.map(o=>a.groupMembers(o)?.[0]??o));h.size>0&&(t.count=h.size);const u=[...h].map(o=>a.getInterpolatedShapeAt(0,o)?.aim).filter(o=>o!==void 0);if(u.length>=3){const o=Math.PI/180,p=u.map(g=>({x:(((g.azimuthDeg-u[0].azimuthDeg)%360+540)%360-180)*Math.cos(g.altitudeDeg*o),y:g.altitudeDeg}));let[r,c]=[p[0],p[1]];for(const g of p)for(const y of p)Math.hypot(g.x-y.x,g.y-y.y)>Math.hypot(r.x-c.x,r.y-c.y)&&([r,c]=[g,y]);const M=Math.hypot(r.x-c.x,r.y-c.y);t.aligned=M>0&&p.every(g=>Math.abs((c.x-r.x)*(r.y-g.y)-(r.x-g.x)*(c.y-r.y))/M<=Math.max(.5,M*.1))}const w=new Set([...h].map(o=>a.getInterpolatedShapeAt(0,o)?.color).filter(o=>o!==void 0));return w.size>0&&(t.colors=[...w]),t.observers=e.observerCount,e.instrument.category==="eye"&&(t.nakedEye=!0),e.soundTrack.allKeyframes.some(o=>o.sound.kind!=="none")&&(t.sound=!0),t}}class x{static FLAT={heightAt:()=>0};static facts(e,d,t,l){const{sunAltitudeDeg:s,durationSeconds:a,cloudCover:i,lightning:h,lowVisibility:u,observers:w,nakedEye:o}=d,p={sunAltitudeDeg:s,durationSeconds:a,cloudCover:i,lightning:h,lowVisibility:u,observers:w,nakedEye:o};for(const n of Object.keys(p))p[n]===void 0&&delete p[n];const r=n=>A.eyeOf(e,n,x.FLAT),c=t.filter(n=>(n.explains?.length??0)>0),M=(c.length>0?c:t).map(n=>new A(n,x.FLAT,r)),g=n=>{const f=r(n);return f?M.map(m=>m.at(n)).filter(m=>m!==void 0).map(m=>({state:m,...x.direction(f,m)})):[]},y=[...l].sort((n,f)=>n-f),D=y.map(n=>({t:n,seen:g(n)})).find(n=>n.seen.length>0);if(!D)return p;const z=D.seen[0];p.elevationDeg=z.altitudeDeg,p.widthDeg=z.widthDeg;const S=y.filter(n=>n>=D.t),I=(S.length>=2?x.densified(S):S).flatMap(n=>{const f=g(n).find(m=>m.state.id===z.state.id);return f?[{t:n,azimuthDeg:f.azimuthDeg,altitudeDeg:f.altitudeDeg}]:[]});Object.assign(p,v.of(I)),p.count=new Set(D.seen.map(n=>n.state.ensemble??n.state.id)).size;const b=new Set(D.seen.map(n=>n.state.appearance.color));return b.size>0&&(p.colors=[...b]),p}static rank(e,d,t){const l=new O(k.MODELS[0]).of(d).filter(u=>e.has(u.question)).map(u=>({...u,firm:!0})),s=e.rank(l),a=s.findIndex(u=>t.has(u.phenomenon)),i=s[a],h=i?s.filter(u=>u.excludedBy.length<i.excludedBy.length||u.excludedBy.length===i.excludedBy.length&&u.mean>i.mean+1e-9).length:0;return{...a>=0?{rank:h+1,tied:s.filter(u=>u!==i&&u.excludedBy.length===i.excludedBy.length&&Math.abs(u.mean-i.mean)<=1e-9).length}:{},of:s.length,...s[0]?{first:s[0].phenomenon}:{},excludedBy:a>=0?s[a].excludedBy:[],answers:l}}static direction(e,d){const t=d.eastM-e.eastM,l=d.northM-e.northM,s=d.upM-e.upM,a=Math.hypot(t,l),i=Math.max(1e-6,Math.hypot(a,s)),h=Math.max(d.sizeM.widthM??0,d.sizeM.lengthM??0,d.sizeM.heightM??0);return{azimuthDeg:(Math.atan2(t,l)*180/Math.PI+360)%360,altitudeDeg:Math.atan2(s,a)*180/Math.PI,widthDeg:2*Math.atan2(h/2,i)*180/Math.PI}}static densified(e){const d=e[0],t=e[e.length-1],l=Math.max(1e3,(t-d)/600),s=new Set(e);for(let a=d;a<t;a+=l)s.add(Math.round(a));return[...s].sort((a,i)=>a-i)}}export{Q as PoherAccountFacts,v as PoherMotion,x as PoherSelfCheck};
@@ -1,4 +1,4 @@
1
- import{M as w,_ as I,d as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-OJEYhVKN.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{t as b,bm as M,aL as E,aF as C,m as _,s as P,ba as L}from"./ShareDialogElement-DqCoQwtn.js";import{c as G}from"./Sighting-D-_IYi9n.js";import{P as D,a as k,E as H}from"./ParameterForm-XbqxCLRn.js";import{T as K}from"./TimelineTracks-Daaqw9ly.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./GeoProjection-DvqDbRIx.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)return;const d=t.track[0],c=t.track[t.track.length-1],l=d?.t??0,h=d?.altitudeKm??100,m=c?.altitudeKm??h;return[{t:l,...g.placeSeen(e,i,r,h),altitudeKm:h},{t:l+Math.round(s*1e3),...g.placeSeen(e,o,a,m),altitudeKm:m}]}static placeAt(t,e){const n=b.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.altitudeKm)*a)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(b.absoluteMagnitudeAt(t,e)*10)/10}}static instantsOf(t){return[...t.track.map(e=>e.t),...t.fragments.flatMap(e=>[...e.fromT===void 0?[]:[e.fromT],...e.untilT===void 0?[]:[e.untilT],...(e.lightCurve??[]).map(n=>n.t)])]}static instant(t,e,n,i={}){return{type:"number",key:t,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:e,hint:n,...i}}static mayBeCatalogued(t){return M.of(t.type)?.nature!=="natural"}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:g.NAME},{type:"choice",key:"type",label:"type",hint:"whatCameInNaturalOrPut",empty:"notKnown",choices:[],optionsOf:t=>{const e=t.type,n=M.all().map(i=>({value:i.key,label:M.nameOf(i.key)}));return e===void 0||n.some(i=>i.value===e)?n:[...n,{value:e,label:e}]}},{type:"text",key:"object.name",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"noradNumber"},{type:"number",key:"seen.fromAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"appearedAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.fromAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"appearedHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.toAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"wentOutAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.toAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"wentOutHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.durationS",min:.1,max:3600,step:.1,unit:"s",group:g.SEEN,label:"seenFor",hint:"allSaidThePathIsWorkedOut"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[g.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(t,e){const n=t?.track;if(n?.length)return e==="first"?n[0].t:n[n.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(t,e,n)=>!n?.fragments.some(i=>i!==e&&i.id===t)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:g.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:g.LIGHT,fallback:b.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>b.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:g.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},g.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"first")}),g.instant("untilT","outAt","whenItHasBurnedUpOr",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[g.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const $=w.catalog({en:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)});class u{static TIME_MARGIN_MIN=6;static HEADING_MARGIN_DEG=45;static ELEVATION_LOW_FACTOR=.3;static ELEVATION_SLACK_DEG=5;static DURATION_FACTOR=3;static ARCHIVED_MAGNITUDE=-3;static WATCHED_KM=600;static WATCHED_COUNT=5;static NIGHT_SUN_DEG=-12;static SHOWER_MARGIN_DEG=20;static RADIANT_BELOW_DEG=-10;static FIRST_ORBIT_MS=Date.UTC(1957,9,4);static shared={fireballs:new E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=m=>b.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),d=a?.fromAzimuthDeg!==void 0&&a.fromAltitudeDeg!==void 0?{azimuthDeg:a.fromAzimuthDeg,altitudeDeg:a.fromAltitudeDeg}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.t,durationS:l,from:{azimuthDeg:d.azimuthDeg,altitudeDeg:d.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:h}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>u.TIME_MARGIN_MIN*6e4)return;const o=b.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),a=b.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&a.altitudeDeg<0)return;const s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,a.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+r)/6e4),headingOffDeg:Math.round(s),altitudeOffDeg:Math.round(Math.abs(a.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),r=u.angleDeg(n,i);if(r<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],a=Math.hypot(o[0],o[1],o[2]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{lat:e.lat,lng:e.lng,elevationM:e.heightM});if(m.altitudeDeg<u.RADIANT_BELOW_DEG)continue;const f=u.vectorOf(m.azimuthDeg,m.altitudeDeg),p=Math.asin(Math.min(1,Math.abs((f[0]*o[0]+f[1]*o[1]+f[2]*o[2])/a)))*180/Math.PI,y=u.angleDeg(f,n),A=u.angleDeg(f,i);y>=A||A<=r||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:l.id,offDeg:Math.round(p),zhr:Math.round(h)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:d.length}}static async checkFireballs(t,e,n,i){const r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const a=o.map(m=>u.matchFireball(t,m,e)).filter(m=>m!==void 0).sort((m,f)=>m.offsetMinutes-f.offsetMinutes||m.headingOffDeg-f.headingOffDeg);if(a.length>0)return[{verdict:"known",source:"gmn",match:a[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(_("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return h<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:h}]}static async checkCatalogue(t,e,n,i,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(a===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.norad);if(d)return[{verdict:"known",source:"catalogue",candidate:d,by:"object"}];const c=a.find(l=>l.record.precision==="minute"&&l.seenKm!==void 0&&(l.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:a.length>0?a.slice(0,3).map(l=>({verdict:"possible",source:"catalogue",candidate:l})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class T{constructor(t,e,n){this.container=t,this.host=e,N.attach(t,"reentry-editor-part",T.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(M.all().map(n=>({value:n.key,label:M.nameOf(n.key)}))),this.syncAddState();const e=this.current;this.element("reentry-fields").hidden=e===void 0,e&&(this.syncPlace(!0),this.syncFragments(e,!0),this.syncEvidence(),this.form??=new D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>this.current,n=>this.editReentry(i=>{i.object&&(i.object={...i.object}),i.seen&&(i.seen={...i.seen}),n(i),i.object&&Object.values(i.object).every(a=>a===void 0||a==="")&&delete i.object;const r=this.origin(),o=r&&g.trackFromSeen(i,r);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return S.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.evidenceFor=void 0,this.container.innerHTML=`<div class="launch-editor">
1
+ import{M as w,_ as I,d as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-OJEYhVKN.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{t as b,bn as M,aL as E,aF as C,n as _,s as P,bb as L}from"./ShareDialogElement-Dsc4v4jd.js";import{c as G}from"./Sighting-C1yj2-s5.js";import{P as D,a as k,E as H}from"./ParameterForm-XbqxCLRn.js";import{T as K}from"./TimelineTracks-Daaqw9ly.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./GeoProjection-DvqDbRIx.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)return;const d=t.track[0],c=t.track[t.track.length-1],l=d?.t??0,h=d?.altitudeKm??100,m=c?.altitudeKm??h;return[{t:l,...g.placeSeen(e,i,r,h),altitudeKm:h},{t:l+Math.round(s*1e3),...g.placeSeen(e,o,a,m),altitudeKm:m}]}static placeAt(t,e){const n=b.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.altitudeKm)*a)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(b.absoluteMagnitudeAt(t,e)*10)/10}}static instantsOf(t){return[...t.track.map(e=>e.t),...t.fragments.flatMap(e=>[...e.fromT===void 0?[]:[e.fromT],...e.untilT===void 0?[]:[e.untilT],...(e.lightCurve??[]).map(n=>n.t)])]}static instant(t,e,n,i={}){return{type:"number",key:t,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:e,hint:n,...i}}static mayBeCatalogued(t){return M.of(t.type)?.nature!=="natural"}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:g.NAME},{type:"choice",key:"type",label:"type",hint:"whatCameInNaturalOrPut",empty:"notKnown",choices:[],optionsOf:t=>{const e=t.type,n=M.all().map(i=>({value:i.key,label:M.nameOf(i.key)}));return e===void 0||n.some(i=>i.value===e)?n:[...n,{value:e,label:e}]}},{type:"text",key:"object.name",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"noradNumber"},{type:"number",key:"seen.fromAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"appearedAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.fromAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"appearedHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.toAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"wentOutAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.toAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"wentOutHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.durationS",min:.1,max:3600,step:.1,unit:"s",group:g.SEEN,label:"seenFor",hint:"allSaidThePathIsWorkedOut"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[g.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(t,e){const n=t?.track;if(n?.length)return e==="first"?n[0].t:n[n.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(t,e,n)=>!n?.fragments.some(i=>i!==e&&i.id===t)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:g.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:g.LIGHT,fallback:b.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>b.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:g.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},g.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"first")}),g.instant("untilT","outAt","whenItHasBurnedUpOr",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[g.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const $=w.catalog({en:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)});class u{static TIME_MARGIN_MIN=6;static HEADING_MARGIN_DEG=45;static ELEVATION_LOW_FACTOR=.3;static ELEVATION_SLACK_DEG=5;static DURATION_FACTOR=3;static ARCHIVED_MAGNITUDE=-3;static WATCHED_KM=600;static WATCHED_COUNT=5;static NIGHT_SUN_DEG=-12;static SHOWER_MARGIN_DEG=20;static RADIANT_BELOW_DEG=-10;static FIRST_ORBIT_MS=Date.UTC(1957,9,4);static shared={fireballs:new E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=m=>b.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),d=a?.fromAzimuthDeg!==void 0&&a.fromAltitudeDeg!==void 0?{azimuthDeg:a.fromAzimuthDeg,altitudeDeg:a.fromAltitudeDeg}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.t,durationS:l,from:{azimuthDeg:d.azimuthDeg,altitudeDeg:d.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:h}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>u.TIME_MARGIN_MIN*6e4)return;const o=b.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),a=b.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&a.altitudeDeg<0)return;const s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,a.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+r)/6e4),headingOffDeg:Math.round(s),altitudeOffDeg:Math.round(Math.abs(a.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),r=u.angleDeg(n,i);if(r<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],a=Math.hypot(o[0],o[1],o[2]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{lat:e.lat,lng:e.lng,elevationM:e.heightM});if(m.altitudeDeg<u.RADIANT_BELOW_DEG)continue;const f=u.vectorOf(m.azimuthDeg,m.altitudeDeg),p=Math.asin(Math.min(1,Math.abs((f[0]*o[0]+f[1]*o[1]+f[2]*o[2])/a)))*180/Math.PI,y=u.angleDeg(f,n),A=u.angleDeg(f,i);y>=A||A<=r||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:l.id,offDeg:Math.round(p),zhr:Math.round(h)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:d.length}}static async checkFireballs(t,e,n,i){const r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const a=o.map(m=>u.matchFireball(t,m,e)).filter(m=>m!==void 0).sort((m,f)=>m.offsetMinutes-f.offsetMinutes||m.headingOffDeg-f.headingOffDeg);if(a.length>0)return[{verdict:"known",source:"gmn",match:a[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(_("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return h<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:h}]}static async checkCatalogue(t,e,n,i,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(a===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.norad);if(d)return[{verdict:"known",source:"catalogue",candidate:d,by:"object"}];const c=a.find(l=>l.record.precision==="minute"&&l.seenKm!==void 0&&(l.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:a.length>0?a.slice(0,3).map(l=>({verdict:"possible",source:"catalogue",candidate:l})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class T{constructor(t,e,n){this.container=t,this.host=e,N.attach(t,"reentry-editor-part",T.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(M.all().map(n=>({value:n.key,label:M.nameOf(n.key)}))),this.syncAddState();const e=this.current;this.element("reentry-fields").hidden=e===void 0,e&&(this.syncPlace(!0),this.syncFragments(e,!0),this.syncEvidence(),this.form??=new D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>this.current,n=>this.editReentry(i=>{i.object&&(i.object={...i.object}),i.seen&&(i.seen={...i.seen}),n(i),i.object&&Object.values(i.object).every(a=>a===void 0||a==="")&&delete i.object;const r=this.origin(),o=r&&g.trackFromSeen(i,r);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return S.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.evidenceFor=void 0,this.container.innerHTML=`<div class="launch-editor">
2
2
  <p class="launch-intro">${t.intro}</p>
3
3
  <div id="reentry-list"></div>
4
4
  <div id="reentry-fields" class="launch-fields">
@@ -1 +1 @@
1
- import{bh as S,bi as f,bb as R,bc as b,bj as G,bk as _,bl as F,t as N}from"./ShareDialogElement-DqCoQwtn.js";import{I as y,J as H,w as M,x as w,M as C,V as j,C as k}from"./three.module-CbaHqYFq.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new y;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=S.map(i=>{const o=new H(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new w(this.positions,3)),t.setAttribute("color",new w(this.colors,3)),t.setDrawRange(0,0),this.trains=new C(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=b(s.altitudeDeg,s.azimuthDeg,1);return new j(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,m=0;const a=new k;this.drawn=[];for(const r of s){const u=i(r.head);if(u<=0)continue;const c=r.magnitude-2.5*Math.log10(u);if(c>t)continue;m++,this.drawn.push({direction:h.directionOf(r.head),view:r,magnitude:c}),a.set(r.color);const d=G(c,t)*r.fade,{x:A,y:E,z:g}=b(r.head.altitudeDeg,r.head.azimuthDeg,h.RADIUS),[p,I,T]=o(r.head,c),z=r.fade,D=Math.max(a.r,a.g,a.b)||1;e[_(d)].push({x:A,y:E,z:g,r:p*a.r*z/D,g:I*a.g*z/D,b:T*a.b*z/D}),n=this.pushTrain(n,r.train,d,a)}this.shown=m,this.tiers.forEach((r,u)=>{const c=e[u],d=new Float32Array(c.length*3),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),r.geometry.dispose();const E=new M;E.setAttribute("position",new w(d,3)),E.setAttribute("color",new w(A,3)),r.geometry=E});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const m=1-n/e,a=1-(n+1)/e,l=b(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),r=b(t[n+1].altitudeDeg,t[n+1].azimuthDeg,h.RADIUS),u=d=>h.RADIUS*((h.MIN_HALF_WIDTH_DEG+h.BRIGHT_HALF_WIDTH_DEG*i*d)*Math.PI/180),c=d=>h.TRAIN_SHARE*i*d**h.TRAIN_FALLOFF;s=this.pushRibbon(s,l,r,u(m),u(a),c(m),c(a),o)}return s}pushRibbon(s,t,i,o,e,n,m,a){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const r=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,r,o,u),A=this.across(i,r,e,u),E=this.across(t,r,o,c),g=this.across(i,r,e,c),p=(I,T)=>I===0?T:0;s=this.push(s,d,p(u,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,E,p(c,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,g,p(c,m),a),s=this.push(s,E,p(c,n),a)}return s}across(s,t,i,o){return{x:s.x+t.x*i*o,y:s.y+t.y*i*o,z:s.z+t.z*i*o}}push(s,t,i,o){const e=s*3;this.positions[e]=t.x,this.positions[e+1]=t.y,this.positions[e+2]=t.z;const n=F.relativeOfResponse(Math.max(0,Math.min(1,i)));return this.colors[e]=n*o.r,this.colors[e+1]=n*o.g,this.colors[e+2]=n*o.b,s+1}cross(s,t){return{x:s.y*t.z-s.z*t.y,y:s.z*t.x-s.x*t.z,z:s.x*t.y-s.y*t.x}}normalise(s){const t=Math.hypot(s.x,s.y,s.z)||1;return{x:s.x/t,y:s.y/t,z:s.z/t}}dispose(){for(const s of this.tiers)s.geometry.dispose(),s.material.dispose();this.trains.geometry.dispose(),this.trains.material.dispose(),this.object.removeFromParent()}}class K{inSky=!0;hiddenFromEye=!0;pieces=new h;get object(){return this.pieces.object}get drawnCount(){return this.pieces.count}update(s,t,i){const o=s.length===0?[]:N.viewsAt(s,t,i.observer);o.length===0&&this.pieces.count===0||(this.pieces.set(o,i.magnitudeLimit,e=>i.cloudTransmission(e),(e,n)=>i.arrivingIlluminance(e,n,1)),i.lightFrom(o.map(e=>({position:e.head,magnitude:e.magnitude}))),i.glareFrom(o.map(e=>({key:`${e.reentryId}:${e.fragmentId}`,position:e.head,magnitude:e.magnitude,fade:e.fade}))))}pick(s,t,i){const o=this.pieces.nearest(t,i.nearestCos);return o&&{id:o.view.reentryId,detail:o}}dispose(){this.pieces.dispose()}}export{K as ReentrySimulation};
1
+ import{bi as S,bj as f,bc as R,bd as w,bk as G,bl as _,bm as F,t as N}from"./ShareDialogElement-Dsc4v4jd.js";import{I as y,J as H,w as M,x as I,M as C,V as j,C as k}from"./three.module-CbaHqYFq.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new y;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=S.map(i=>{const o=new H(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new I(this.positions,3)),t.setAttribute("color",new I(this.colors,3)),t.setDrawRange(0,0),this.trains=new C(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=w(s.altitudeDeg,s.azimuthDeg,1);return new j(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,m=0;const a=new k;this.drawn=[];for(const r of s){const u=i(r.head);if(u<=0)continue;const c=r.magnitude-2.5*Math.log10(u);if(c>t)continue;m++,this.drawn.push({direction:h.directionOf(r.head),view:r,magnitude:c}),a.set(r.color);const d=G(c,t)*r.fade,{x:A,y:E,z:g}=w(r.head.altitudeDeg,r.head.azimuthDeg,h.RADIUS),[p,b,T]=o(r.head,c),z=r.fade,D=Math.max(a.r,a.g,a.b)||1;e[_(d)].push({x:A,y:E,z:g,r:p*a.r*z/D,g:b*a.g*z/D,b:T*a.b*z/D}),n=this.pushTrain(n,r.train,d,a)}this.shown=m,this.tiers.forEach((r,u)=>{const c=e[u],d=new Float32Array(c.length*3),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),r.geometry.dispose();const E=new M;E.setAttribute("position",new I(d,3)),E.setAttribute("color",new I(A,3)),r.geometry=E});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const m=1-n/e,a=1-(n+1)/e,l=w(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),r=w(t[n+1].altitudeDeg,t[n+1].azimuthDeg,h.RADIUS),u=d=>h.RADIUS*((h.MIN_HALF_WIDTH_DEG+h.BRIGHT_HALF_WIDTH_DEG*i*d)*Math.PI/180),c=d=>h.TRAIN_SHARE*i*d**h.TRAIN_FALLOFF;s=this.pushRibbon(s,l,r,u(m),u(a),c(m),c(a),o)}return s}pushRibbon(s,t,i,o,e,n,m,a){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const r=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,r,o,u),A=this.across(i,r,e,u),E=this.across(t,r,o,c),g=this.across(i,r,e,c),p=(b,T)=>b===0?T:0;s=this.push(s,d,p(u,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,E,p(c,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,g,p(c,m),a),s=this.push(s,E,p(c,n),a)}return s}across(s,t,i,o){return{x:s.x+t.x*i*o,y:s.y+t.y*i*o,z:s.z+t.z*i*o}}push(s,t,i,o){const e=s*3;this.positions[e]=t.x,this.positions[e+1]=t.y,this.positions[e+2]=t.z;const n=F.relativeOfResponse(Math.max(0,Math.min(1,i)));return this.colors[e]=n*o.r,this.colors[e+1]=n*o.g,this.colors[e+2]=n*o.b,s+1}cross(s,t){return{x:s.y*t.z-s.z*t.y,y:s.z*t.x-s.x*t.z,z:s.x*t.y-s.y*t.x}}normalise(s){const t=Math.hypot(s.x,s.y,s.z)||1;return{x:s.x/t,y:s.y/t,z:s.z/t}}dispose(){for(const s of this.tiers)s.geometry.dispose(),s.material.dispose();this.trains.geometry.dispose(),this.trains.material.dispose(),this.object.removeFromParent()}}class K{inSky=!0;hiddenFromEye=!0;pieces=new h;get object(){return this.pieces.object}get drawnCount(){return this.pieces.count}update(s,t,i){const o=s.length===0?[]:N.viewsAt(s,t,i.observer);o.length===0&&this.pieces.count===0||(this.pieces.set(o,i.magnitudeLimit,e=>i.cloudTransmission(e),(e,n)=>i.arrivingIlluminance(e,n,1)),i.lightFrom(o.map(e=>({position:e.head,magnitude:e.magnitude}))),i.glareFrom(o.map(e=>({key:`${e.reentryId}:${e.fragmentId}`,position:e.head,magnitude:e.magnitude,fade:e.fade}))))}pick(s,t,i){const o=this.pieces.nearest(t,i.nearestCos);return o&&{id:o.view.reentryId,detail:o}}dispose(){this.pieces.dispose()}}export{K as ReentrySimulation};
@@ -1 +1 @@
1
- import{Q as w,aO as M,z as g,L as c,aP as y,M as k,K as O,B as T,a as b,P as E,ac as I}from"./three.module-CbaHqYFq.js";import{R as d}from"./ReferenceTimeline-2kBldQeG.js";import{g as D}from"./GeoProjection-DvqDbRIx.js";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";import{b3 as x}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const v=x.reference,u=800,l=Math.PI/180;class r{constructor(t,i,s=r.fetchImage,e=r.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=e}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=D(i.lat,i.lng,t.from.lat,t.from.lng),a=(Math.hypot(s.x,s.z)-r.PRESENT_WITHIN_M)/(r.GONE_BEYOND_M-r.PRESENT_WITHIN_M),o=Math.min(Math.max(a,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const e=new Set(t.map(a=>a.id));for(const[a,o]of this.meshes)e.has(a)||(this.dispose(o),this.meshes.delete(a),this.signatures.delete(a));for(const[a,o]of this.images){const n=t.find(p=>p.id===a);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;r.release(o),this.images.delete(a);const h=this.meshes.get(a);h&&(this.dispose(h),this.meshes.delete(a),this.signatures.delete(a))}for(const a of t){const o=this.images.get(a.id);if(!o){this.load(a);continue}this.build(a,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=v;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const e=i?.get(s);e&&s.quaternion.copy(this.cameraTurn).multiply(e),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new w;get furthestM(){return this.meshes.size>0?u:0}directionOfPixel(t,i,s,e){const a=this.images.get(t.id),o=a?a.width/a.height:1,n=d.registrationAt(t,this.clock.t),h=Math.tan(n.fovDeg/2*l),p=h*o;return e.set((i*2-1)*p,(1-s*2)*h,-1).normalize(),e.applyQuaternion(r.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&r.point(i,t,d.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const e=d.command(i.currentTime,s,this.clock.playing,d.rateOf(t));i.playbackRate=e.rate,e.seekS!==void 0&&!i.seeking&&(i.currentTime=e.seekS),e.play&&i.paused&&i.play().catch(()=>{}),!e.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",a=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(h=>h.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){r.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,m.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,a)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,e)=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.playsInline=!0,a.preload="auto",a.addEventListener("loadeddata",()=>{const o=new M(a);o.colorSpace=g,o.minFilter=c,o.magFilter=c,o.generateMipmaps=!1,a.addEventListener("seeked",i);const n=()=>{a.paused&&i(),a.src&&a.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in a&&a.requestVideoFrameCallback(n),s({texture:o,width:a.videoWidth,height:a.videoHeight,video:a})},{once:!0}),a.addEventListener("error",()=>{m.whyVideoUnread(t).then(o=>e(new f(t,o)))},{once:!0}),a.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await m.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new f(t,{kind:"notPicture"})}),e=new y(s);return e.flipY=!1,e.colorSpace=g,e.minFilter=c,e.magFilter=c,e.generateMipmaps=!1,e.needsUpdate=!0,{texture:e,width:s.width,height:s.height}}build(t,i){const s=r.signatureOf(t,i);let e=this.meshes.get(t.id);if(e&&this.signatures.get(t.id)===s){this.applyOpacity(e,t.id);return}e&&(this.dispose(e),this.meshes.delete(t.id)),e=new k(r.geometryOf(t,i),new O({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=T),e.frustumCulled=!1,e.layers.set(v),e.userData.id=t.id,r.point(e,t,d.registrationAt(t,this.clock.t)),this.scene.add(e),this.meshes.set(t.id,e),this.signatures.set(t.id,s),this.applyOpacity(e,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new b(u,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let h=0;h<n.count;h++)n.setX(h,1-n.getX(h));return n.needsUpdate=!0,o}const s=2*u*Math.tan(t.registration.fovDeg/2*l),e=s*(i.width/Math.max(i.height,1)),a=new E(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new I;return e.rotation.set(i*l,-t*l,-(s??0)*l,"YXZ"),e.quaternion}static point(t,i,s){if(t.quaternion.copy(r.orientation(s)),i.kind==="panorama")return;const e=Math.tan(s.fovDeg/2*l)/Math.tan(i.registration.fovDeg/2*l);t.scale.set(e,e,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(a=>a.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),e=i?r.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*e}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:e,rollDeg:a,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,e,a??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())r.release(t);this.images.clear()}}export{v as REFERENCE_LAYER,r as ReferenceSystem};
1
+ import{Q as w,aO as M,z as g,L as c,aP as y,M as k,K as O,B as T,a as b,P as E,ac as I}from"./three.module-CbaHqYFq.js";import{R as d}from"./ReferenceTimeline-2kBldQeG.js";import{g as D}from"./GeoProjection-DvqDbRIx.js";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";import{b4 as x}from"./ShareDialogElement-Dsc4v4jd.js";import"./rr0-ufoathome.mjs";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const v=x.reference,u=800,l=Math.PI/180;class r{constructor(t,i,s=r.fetchImage,e=r.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=e}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=D(i.lat,i.lng,t.from.lat,t.from.lng),a=(Math.hypot(s.x,s.z)-r.PRESENT_WITHIN_M)/(r.GONE_BEYOND_M-r.PRESENT_WITHIN_M),o=Math.min(Math.max(a,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const e=new Set(t.map(a=>a.id));for(const[a,o]of this.meshes)e.has(a)||(this.dispose(o),this.meshes.delete(a),this.signatures.delete(a));for(const[a,o]of this.images){const n=t.find(p=>p.id===a);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;r.release(o),this.images.delete(a);const h=this.meshes.get(a);h&&(this.dispose(h),this.meshes.delete(a),this.signatures.delete(a))}for(const a of t){const o=this.images.get(a.id);if(!o){this.load(a);continue}this.build(a,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=v;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const e=i?.get(s);e&&s.quaternion.copy(this.cameraTurn).multiply(e),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new w;get furthestM(){return this.meshes.size>0?u:0}directionOfPixel(t,i,s,e){const a=this.images.get(t.id),o=a?a.width/a.height:1,n=d.registrationAt(t,this.clock.t),h=Math.tan(n.fovDeg/2*l),p=h*o;return e.set((i*2-1)*p,(1-s*2)*h,-1).normalize(),e.applyQuaternion(r.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&r.point(i,t,d.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const e=d.command(i.currentTime,s,this.clock.playing,d.rateOf(t));i.playbackRate=e.rate,e.seekS!==void 0&&!i.seeking&&(i.currentTime=e.seekS),e.play&&i.paused&&i.play().catch(()=>{}),!e.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",a=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(h=>h.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){r.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,m.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,a)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,e)=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.playsInline=!0,a.preload="auto",a.addEventListener("loadeddata",()=>{const o=new M(a);o.colorSpace=g,o.minFilter=c,o.magFilter=c,o.generateMipmaps=!1,a.addEventListener("seeked",i);const n=()=>{a.paused&&i(),a.src&&a.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in a&&a.requestVideoFrameCallback(n),s({texture:o,width:a.videoWidth,height:a.videoHeight,video:a})},{once:!0}),a.addEventListener("error",()=>{m.whyVideoUnread(t).then(o=>e(new f(t,o)))},{once:!0}),a.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await m.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new f(t,{kind:"notPicture"})}),e=new y(s);return e.flipY=!1,e.colorSpace=g,e.minFilter=c,e.magFilter=c,e.generateMipmaps=!1,e.needsUpdate=!0,{texture:e,width:s.width,height:s.height}}build(t,i){const s=r.signatureOf(t,i);let e=this.meshes.get(t.id);if(e&&this.signatures.get(t.id)===s){this.applyOpacity(e,t.id);return}e&&(this.dispose(e),this.meshes.delete(t.id)),e=new k(r.geometryOf(t,i),new O({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=T),e.frustumCulled=!1,e.layers.set(v),e.userData.id=t.id,r.point(e,t,d.registrationAt(t,this.clock.t)),this.scene.add(e),this.meshes.set(t.id,e),this.signatures.set(t.id,s),this.applyOpacity(e,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new b(u,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let h=0;h<n.count;h++)n.setX(h,1-n.getX(h));return n.needsUpdate=!0,o}const s=2*u*Math.tan(t.registration.fovDeg/2*l),e=s*(i.width/Math.max(i.height,1)),a=new E(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new I;return e.rotation.set(i*l,-t*l,-(s??0)*l,"YXZ"),e.quaternion}static point(t,i,s){if(t.quaternion.copy(r.orientation(s)),i.kind==="panorama")return;const e=Math.tan(s.fovDeg/2*l)/Math.tan(i.registration.fovDeg/2*l);t.scale.set(e,e,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(a=>a.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),e=i?r.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*e}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:e,rollDeg:a,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,e,a??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())r.release(t);this.images.clear()}}export{v as REFERENCE_LAYER,r as ReferenceSystem};
@@ -0,0 +1 @@
1
+ import{P as y,q as k,$ as h}from"./rr0-ufoathome.mjs";import{ScenarioSweep as j}from"./ScenarioSweep-DOvp2pYT.js";import"./ShareDialogElement-Dsc4v4jd.js";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./CaseEditorElement-CPt1laCe.js";import"./ParameterForm-XbqxCLRn.js";import"./ColumnResize-D6vA9JBg.js";import"./PoherSelfCheck-DnXcStjH.js";import"./PoherMatrix-C2fcLqDH.js";import"./TimelineTracks-Daaqw9ly.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BU0pD84c.js";import"./Account-C4jhsVtN.js";import"./SatellitePasses-Pfro2-0Z.js";class b{static fileName(c,n){const t=c.replace(/\.json$/,""),d=n.placeId.replace(/[^A-Za-z0-9-]+/g,"-"),p=n.local.replace(/[-:]/g,"").replace("T","-");return`${t}-scenario-${d}-${p}.json`}static recording(c,n,t,d,p,i={}){const a=structuredClone(c),r=y.strip(c).recording,l=a.interpretation;if(!l||!r.interpretation)throw new Error(`${n} states no interpretation`);a.id=`${r.id??n.replace(/\.json$/,"")}-scenario-${t.id}`,t.ownPlace||(a.place={value:{...t.placeName?{name:t.placeName}:{},locations:[{lat:t.lat,lng:t.lng}]},basis:"assumed",rationale:`one of the candidate places of the case, played as scenario ${t.id}${i.placeRationale?`: ${i.placeRationale}`:""}`},delete a.snapshots);const e=r.time?r.time.replace(/[~?%]$/,"").slice(0,16):void 0;return t.local!==e&&(a.time={value:`${t.local}:00`,basis:"assumed",rationale:`one of the candidate instants of the case, played as scenario ${t.id}${i.timeRationale?`: ${i.timeRationale}`:""}`}),delete a.image,d&&b.rewind(l,r.interpretation,d,t,p),l.scenario={id:t.id,of:n,...i.verdict?{verdict:i.verdict}:{}},i.title!==void 0&&(l.title=i.title),a}static rewind(c,n,t,d,p){const i={at:e=>h.at(t,e),levels:t.levels.map(e=>e.aboveGroundM)},a=e=>`${e} archived at ${t.hour} UTC at this place (${t.credit}, grid point ${t.lat.toFixed(3)}, ${t.lng.toFixed(3)}): established given scenario ${d.id} only`;for(const e of p){const f=k.itemsOf(n,e.key);if(!e.inWind||f.length===0)continue;const u=c[e.key];f.forEach((m,v)=>{const s=e.inWind(m,i);for(const o of Object.keys(s))JSON.stringify(s[o])!==JSON.stringify(m[o])&&(u[v][o]=o==="wind"?{value:s[o],basis:"established",rationale:a("the wind at the ground")}:s[o])})}const r=h.at(t,10),l=c.bodies;n.bodies.forEach((e,f)=>{if(!e.drifting)return;const u=j.drifted(e,r),m=l[f].track;!m||!u.track||u.track.forEach((v,s)=>{for(const o of["eastM","northM"]){const w=v[o];if(w===void 0)continue;const g=Math.round(w*100)/100,$=m[s][o];m[s][o]=typeof $=="object"&&$!==null&&"value"in $?{...$,value:g,...s===0?{rationale:a(`drifting with the wind at the ground, ${h.rounded(r).speedMS} m/s towards ${h.rounded(r).towardDeg}°,`)}:{}}:g}})})}}export{b as ScenarioReadings};
@@ -0,0 +1 @@
1
+ import{C as P,P as k,q as A,$ as N}from"./rr0-ufoathome.mjs";import{W as R,aS as O,a8 as $,ac as K}from"./ShareDialogElement-Dsc4v4jd.js";import{S as y,C as S}from"./CaseEditorElement-CPt1laCe.js";import{SatellitePasses as T}from"./SatellitePasses-Pfro2-0Z.js";import"./Sighting-C1yj2-s5.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./ParameterForm-XbqxCLRn.js";import"./ColumnResize-D6vA9JBg.js";import"./PoherSelfCheck-DnXcStjH.js";import"./PoherMatrix-C2fcLqDH.js";import"./TimelineTracks-Daaqw9ly.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BU0pD84c.js";import"./Account-C4jhsVtN.js";class f{static MAX_SCENARIOS=200;static KM_PER_DEG=111.32;static merged(t,s){return t?s?{...t,...s}:t:s}static scenarios(t,s){const e=f.places(t,s?.places),a=f.instants(t,s?.time),n=[];for(const r of e)for(const i of a){const d=r.placeId==="own"&&i===f.minute(t.local);n.push({id:`${r.placeId}@${i}`,placeId:r.placeId,...r.placeName?{placeName:r.placeName}:{},lat:r.lat,lng:r.lng,local:i,date:f.utc(i,t.utcOffsetHours),own:d,ownPlace:r.placeId==="own"})}if(n.length>f.MAX_SCENARIOS)throw new Error(`${n.length} scenarios for one account: more than ${f.MAX_SCENARIOS}. Take a coarser step or fewer points.`);return n.sort((r,i)=>Number(i.own)-Number(r.own))}static places(t,s){const e={placeId:"own",...t.placeName?{placeName:t.placeName}:{},lat:t.lat,lng:t.lng},a=s?.own===!1?[]:[e],n=(s?.candidates??[]).filter(r=>!r.for||t.eventId===void 0||r.for.includes(t.eventId)).flatMap(r=>{const i=r.place.locations?.[0];return i?[{placeId:r.id,...r.place.name?{placeName:r.place.name}:{},lat:i.lat,lng:i.lng}]:[]});switch(s?.sweep??"bounds"){case"bounds":return[...a,...n];case"points":{const r=new Set(s?.points??[]);return[...a,...n.filter(i=>r.has(i.placeId))]}case"deltas":return[...a,...(s?.deltasKm??[]).filter(r=>r.eastKm!==0||r.northKm!==0).map(r=>({placeId:`own${r.eastKm>=0?"+":""}${r.eastKm},${r.northKm>=0?"+":""}${r.northKm}km`,...t.placeName?{placeName:t.placeName}:{},lat:t.lat+r.northKm/f.KM_PER_DEG,lng:t.lng+r.eastKm/(f.KM_PER_DEG*Math.cos(t.lat*Math.PI/180))}))];case"step":{const r=s?.stepKm;if(!r||r<=0)throw new Error("A sweep of places by step states its stepKm.");const i=[e,...n],d=Math.min(...i.map(u=>u.lat)),o=Math.max(...i.map(u=>u.lat)),l=Math.min(...i.map(u=>u.lng)),c=Math.max(...i.map(u=>u.lng)),h=f.KM_PER_DEG*Math.cos((d+o)/2*Math.PI/180),m=[];for(let u=0;d+u*r/f.KM_PER_DEG<=o+1e-9;u++)for(let p=0;l+p*r/h<=c+1e-9;p++){const g=d+u*r/f.KM_PER_DEG,v=l+p*r/h;m.push({placeId:`grid${g.toFixed(3)},${v.toFixed(3)}`,lat:g,lng:v})}return[...a,...m]}}}static instants(t,s){const e=f.minute(t.local);if(!s)return[e];const a=f.ms(e),n=f.ms(s.from),r=f.ms(s.to),i=s.each??"day",d=864e5,o=c=>{const h=[];if(i==="day"){const m=a+Math.ceil((n-a)/d)*d;for(let u=m;u<=r;u+=c)h.push(u)}else for(let m=n;m<=r;m+=c)h.push(m);return h};let l;switch(s.sweep??"bounds"){case"bounds":{const c=o(i==="day"?d:6e4);l=c.length>0?[c[0],c[c.length-1]]:[];break}case"points":l=(s.points??[]).map(c=>/T/.test(c)?f.ms(c):f.ms(`${c}T${e.slice(11)}`));break;case"step":l=o((s.stepMinutes??(i==="day"?1440:60))*6e4);break;case"deltas":l=[a,...(s.deltasMinutes??[]).map(c=>a+c*6e4)];break}return[...new Set(l)].sort((c,h)=>c-h).map(c=>new Date(c).toISOString().slice(0,16))}static ms(t){const s=t.replace(/[~?%]$/,"").replace(/(Z|[+-]\d\d:\d\d)$/,""),e=s.length===10?`${s}T00:00`:s,a=Date.parse(`${e}Z`);if(Number.isNaN(a))throw new Error(`Not an instant: ${t}`);return a}static minute(t){return new Date(f.ms(t)).toISOString().slice(0,16)}static utc(t,s){return new Date(f.ms(t)-s*36e5)}}class b{constructor(t){this.sources=t,this.model=t.model??R.MODELS[0]}static PLAUSIBLE=O.MEASURABLE;static DRAWN_STEP_MS=500;static STARS=6;static STAR_MAG=1.5;model;async sweep(t,s={}){const e=(t.events??[]).filter(o=>o.eventType===P.SIGHTING_EVENT&&!o.interpretationOf&&o.url).filter(o=>!s.accounts||o.id!==void 0&&s.accounts.includes(o.id)),a=[],n=await Promise.all(e.map(async o=>{const l=await this.sources.load(o.url),c=s.conditions??f.merged(t.conditions,k.strip(l).recording.conditions),h=f.scenarios(b.conditionsOf(l,o.id),c),m=[o.id,k.strip(l).recording.id].filter(p=>!!p),u=P.interpretationEvents(t,m).filter(p=>p.url&&(!s.readings||s.readings.includes(p.url)));return{event:o,accountJson:l,conditions:c,scenarios:h,readings:u}})),r=n.reduce((o,l)=>o+l.scenarios.length*(l.readings.length+(s.sky===!1?0:1)),0);let i=0;const d=()=>s.progress?.(++i,r);for(const{event:o,accountJson:l,conditions:c,scenarios:h,readings:m}of n){const u={...o.id?{eventId:o.id}:{},url:o.url,title:o.title,scenarios:h,readings:[],sky:[]},p=b.judges(l);for(const g of m){const v=await this.sources.load(g.url),w=k.strip(v).recording.interpretation;if(!w||w.scenario){h.forEach(d);continue}const M=await this.replay(g.url,g.title,w,h,p,d);M.kept=b.kept(M,s.keep??c?.keep??"telling"),u.readings.push(M)}if(s.sky!==!1){const g=await this.sky(l,h,d);u.sky=g.replays,g.note&&(u.skyNote=g.note)}a.push(u)}return{accounts:a,alerts:b.alerts(a)}}static conditionsOf(t,s){const e=k.strip(t).recording,a=e.place?.locations?.[0];if(!e.time||!a)throw new Error(`An account with no time or no place cannot be played elsewhere: ${e.id??s}`);return{...s?{eventId:s}:{},local:e.time,utcOffsetHours:e.utcOffsetHours??Math.round(a.lng/15),lat:a.lat,lng:a.lng,...e.place?.name?{placeName:e.place.name}:{}}}static judges(t){const s=O.forAccount(t),e=$(t),a=k.strip(t).recording.timeline?.keyframes??[],n=Math.max(0,...a.map(d=>d.t)),r=Array.from({length:Math.floor(n/b.DRAWN_STEP_MS)+1},(d,o)=>o*b.DRAWN_STEP_MS),i=K.lawsOf(R.MODELS[0],e.account?.conditions);return{said:s,drawn:new O(e,r,i)}}dependsOn(t){return this.sources.kinds.some(e=>e.inWind&&A.itemsOf(t,e.key).length>0)||t.bodies.some(e=>e.drifting)?["wind"]:[]}inWind(t,s){const e={at:n=>N.at(s,n),levels:s.levels.map(n=>n.aboveGroundM)},a={...t};for(const n of this.sources.kinds){const r=A.itemsOf(t,n.key);!n.inWind||r.length===0||(a[n.key]=r.map(i=>n.inWind(i,e)))}return a.bodies=t.bodies.map(n=>n.drifting?b.drifted(n,N.at(s,10)):n),a}static drifted(t,s){const e=t.track;if(!e||e.length<2)return t;const a=e[0],n=e[e.length-1],r=(n.t-a.t)/1e3;if(r<=0||a.eastM===void 0||n.eastM===void 0||a.northM===void 0||n.northM===void 0)return t;const[i,d]=N.vector(s),o=i-(n.eastM-a.eastM)/r,l=d-(n.northM-a.northM)/r;return{...t,track:e.map(c=>c.eastM===void 0||c.northM===void 0?c:{...c,eastM:c.eastM+o*(c.t-a.t)/1e3,northM:c.northM+l*(c.t-a.t)/1e3})}}async bodiesOf(t){return await A.load(t,this.sources.kinds),A.expand(t,this.sources.kinds).bodies}async replay(t,s,e,a,n,r){const i=this.dependsOn(e),d=m=>{const u=b.summary(n.said.comparisons(m)),p=b.summary(n.drawn.comparisons(m));return{said:u,drawn:p,plausible:b.plausible(u,p)}},o=d(await this.bodiesOf(e)),l=[];for(const m of a){if(r(),i.length===0){l.push({scenario:m,...o});continue}try{const u=await this.sources.wind.profile(m.lat,m.lng,m.date);l.push({scenario:m,...d(await this.bodiesOf(this.inWind(e,u))),groundWind:N.at(u,10)})}catch(u){l.push({scenario:m,...o,plausible:o.plausible,error:u.message})}}const c=l.filter(m=>!m.error),h=b.verdict(o.plausible?"plausible":"excluded",c.map(m=>({scenario:m.scenario,plausible:m.plausible})));return i.length===0&&(h.independent=!0),{url:t,title:s,depends:i,asWritten:o,outcomes:l,verdict:h,kept:[]}}static plausible(t,s){const e=t.compared>0?t:s;return e.compared>0&&e.agreedDirection/e.compared>=b.PLAUSIBLE}static summary(t){const s=t.filter(e=>e.separationDeg!==void 0).map(e=>e.separationDeg).sort((e,a)=>e-a);return{agreed:t.filter(e=>e.agrees).length,compared:t.length,agreedDirection:t.filter(e=>!e.contradicted?.includes("direction")).length,...s.length?{medianDeg:s[Math.floor(s.length/2)],worstDeg:s[s.length-1]}:{}}}static verdict(t,s){const e=s.filter(n=>n.plausible),a=s.length;return a===0?{robustness:t==="plausible"?"robust-plausible":"robust-exclusion",asWritten:t,holds:0,played:0,independent:!0}:e.length===a?{robustness:"robust-plausible",asWritten:t,holds:a,played:a}:e.length===0?{robustness:"robust-exclusion",asWritten:t,holds:0,played:a}:{robustness:"conditional",asWritten:t,onlyIf:b.onlyIf(s),holds:e.length,played:a}}static onlyIf(t){const s=n=>{const r=new Map;for(const d of t)r.set(n(d.scenario),[...r.get(n(d.scenario))??[],d.plausible]);const i=[...r.entries()];return i.every(([,d])=>d.every(o=>o)||d.every(o=>!o))?i.filter(([,d])=>d[0]).map(([d])=>d):void 0},e=s(n=>n.placeId);if(e&&new Set(t.map(n=>n.scenario.placeId)).size>1)return{places:e};const a=s(n=>n.local.slice(0,10));return a&&new Set(t.map(n=>n.scenario.local.slice(0,10))).size>1?{dates:a}:{scenarios:t.filter(n=>n.plausible).map(n=>n.scenario.id)}}static kept(t,s){if(s==="none"||t.verdict.independent)return[];const e=t.outcomes.filter(o=>!o.error);if(s==="all")return e.map(o=>o.scenario);const a=t.verdict.robustness!=="conditional";if(s==="robust"&&!a||s==="conditional"&&a)return[];const n=o=>{const l=o.said.compared>0?o.said:o.drawn;return(l.compared?l.agreedDirection/l.compared:0)-(l.medianDeg??180)/1e4},r=[...e].sort((o,l)=>n(l)-n(o));if(a){const o=t.verdict.robustness==="robust-plausible"?r[r.length-1]:r[0];return o?[o.scenario]:[]}const i=r.find(o=>o.plausible),d=[...r].reverse().find(o=>!o.plausible);return[i,d].filter(o=>!!o).map(o=>o.scenario)}async sky(t,s,e){const a=$(t),n=y.statement(a);if(!n)return s.forEach(e),{replays:[],note:"no-direction"};const{statement:r,t:i}=n,d=new S(this.model,a.account?.conditions,{dateShiftDays:[],mirror:!1}),o=p=>this.sources.names?.(p)??p,l=s.find(p=>p.own)??s[0],c={date:l.date,observer:{lat:l.lat,lng:l.lng,elevationM:0}},h=new Set(y.stars(c,i,r,this.sources.limitAt,b.STARS,b.STAR_MAG).map(({star:p})=>p.name)),m=new Map;for(const p of s){e();const g={date:p.date,observer:{lat:p.lat,lng:p.lng,elevationM:0}},v=[{track:y.body("Moon",o("Moon"),g,i,this.sources.limitAt),kind:"body"},...y.PLANETS.map(M=>({track:y.body(M,o(M),g,i,this.sources.limitAt),kind:"body"})),...y.stars(g,i,{...r,aim:void 0},this.sources.limitAt,1/0,b.STAR_MAG).filter(({star:M})=>h.has(M.name)).map(({star:M,track:D})=>({track:{...D,label:o(M.name)},kind:"star"}))],w=await this.issTrack(g,i);w&&v.push({track:w,kind:"satellite"});for(const{track:M,kind:D}of v){const I=d.fit(r,M);let E=m.get(M.id);E||(E={candidate:M.id,label:M.label,kind:D,outcomes:[],verdict:void 0},m.set(M.id,E)),E.outcomes.push({scenario:p,verdict:I.verdict,cost:I.cost,...I.reason?{reason:I.reason}:{}})}}const u=[...m.values()];for(const p of u){const g=p.outcomes.find(w=>w.scenario.own),v=g?g.verdict==="incompatible"?"excluded":"plausible":p.outcomes.every(w=>w.verdict==="incompatible")?"excluded":"plausible";p.verdict=b.verdict(v,p.outcomes.map(w=>({scenario:w.scenario,plausible:w.verdict!=="incompatible"})))}return{replays:u}}async issTrack(t,s){if(!this.sources.satellites)return;const a=(await this.sources.satellites(t.date).catch(()=>{}))?.find(r=>r.norad===y.ISS_NORAD);if(!a)return;const n=new T([a]);return y.satellite(`satellite-${a.norad}`,this.sources.names?.("ISS")??"ISS",r=>n.positionsAt(r,t.observer,-90).find(i=>i.object.norad===a.norad),t,s,this.sources.limitAt)}static alerts(t){return t.flatMap(s=>s.sky.filter(e=>e.kind!=="star"||e.verdict.robustness!=="robust-exclusion").map(e=>({...s.eventId?{eventId:s.eventId}:{},candidate:e.candidate,label:e.label,robustness:e.verdict.robustness,...e.verdict.onlyIf?{onlyIf:e.verdict.onlyIf}:{}})))}}export{b as ScenarioSweep};
@@ -0,0 +1 @@
1
+ import{V as t,D as a}from"./VisualAids-DI-hEL46.js";const r={bodies:{sun:"Sun",moon:"Moon",Venus:"Venus",Mars:"Mars",Jupiter:"Jupiter",Saturn:"Saturn"},stars:{},comets:{},novae:{},satelliteClasses:{},showers:{},lightRigs:{airliner:"Airliner",helicopter:"Helicopter","car-headlights":"Car, headlights on","car-hazards":"Car, hazard flashers","emergency-beacons":"Emergency vehicle beacons","traffic-signal":"Traffic light","pedestrian-signal":"Pedestrian light",streetlamp:"Streetlamp"},instruments:{eye:"Naked eye","rectilinear-lens":"Camera, unknown device","roamer-1-120":"Roamer 1, 120 film","kodak-35":"Kodak 35, 50 mm f/3.5","instamatic-126":"Instamatic, 126 film","cine-35mm-broadcast":"35 mm film camera, seen on television","slr-35mm-50":"35 mm SLR, 50 mm lens","slr-35mm-zoom":"35 mm SLR, 70-210 mm zoom","phone-landscape":"Phone, held sideways","phone-portrait":"Phone, held upright",dashcam:"Dashcam",cctv:"Security camera",...a.names(),...t.names()},decorKinds:{building:"Building",tree:"Tree",shrub:"Shrub",bridge:"Bridge",wire:"Overhead line",crop:"Crop row",terrace:"Terrace (restanque)",mound:"Stone heap",wall:"Dry-stone wall",streetlight:"Streetlight",trafficlight:"Traffic light",peak:"Peak",crossing:"Pedestrian crossing",roadsign:"Road sign",vehicle:"Vehicle",observer:"Observer",aircraft:"Aircraft",entity:"Being"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],towards:e=>`to the ${e}`,starTooltip:"{name} — mag {mag}, {alt}° above the horizon",starTooltipBelow:"{name} — mag {mag}, {alt}° below the horizontal",decorTooltip:"{name} — {size}, {distance} away",satelliteTooltip:"{name} — satellite, mag {mag}, {height} km up",afterimageTooltip:{name:"Afterimage, in the eye",detail:"{name}: where the image of a light brighter than the Sun fell, the retina's pigment is bleached: for a few seconds it goes on glowing, white then coloured, and then what is seen there looks darker. It stays where it is in the field of view whichever way the eye turns, and takes minutes to fade."},ghostTooltip:{ghost:"Ghost: {name}",halo:"Halo: {name}",double:"Double: {name}",unnamed:"a light",detail:"{name}. {cause}, {where}.",causes:{lens:"A reflection between two surfaces of the lens",sensor:"The sensor's reflection, sent back by its cover glass",filter:"The sensor's reflection, sent back by the filter",glass:"A reflection between the two faces of the glass in front of the lens",drops:"Light scattered by drops on the glass",condensation:"Light scattered by condensation on the glass",dirt:"Light scattered by dirt on the glass"},opposite:"across the centre of the picture from the light",sameSide:"on the same side of the centre as the light",around:"round the light",drop:{lens:"Drop on the lens",filter:"Drop on the filter",window:"Drop on the window",windscreen:"Drop on the windscreen"},dropDetail:"{name}. Like a small lens, it shows upside down and blurred what is on the other side of it, rather than what is behind it."},opticsTooltips:{halo22:"22° halo — a ring round the Sun, from light bent through hexagonal ice crystals in high cirrus; its inner edge is red, at 21.7°",halo46:"46° halo — a rarer, fainter ring: light entering a crystal by a side face and leaving by an end face",oddRadius:"{angle}° halo — an odd-radius ring, rare and faint, made by ice crystals with pyramid ends",parhelion:"Parhelion (sundog) — a bright coloured spot beside the Sun at its own height, from flat plates falling level; red toward the Sun",parhelion120:"120° parhelion — a faint white spot 120° from the Sun, from light reflected inside flat plates",upperTangentArc:"Upper tangent arc — a bright arc resting on top of the 22° halo, from columns lying level",lowerTangentArc:"Lower tangent arc — an arc touching the bottom of the 22° halo, from columns lying level",circumzenithal:"Circumzenithal arc — a vivid band of colour near the zenith, from light entering the top face of flat plates (only with the Sun under 32°)",circumhorizontal:"Circumhorizontal arc — a band of colour low in the sky, from light entering the side face of flat plates (only with the Sun over 58°)",parhelicCircle:"Parhelic circle — a white circle round the whole sky at the Sun's own height, from reflections on the vertical faces of flat plates",pillar:"Light pillar — a shaft of light standing above the Sun, from reflections off slightly tilted flat plates",subsun:"Subsun — a mirror image of the Sun below the horizon, from reflections off the flat faces of plates"},trafficTooltip:{unnamed:"Aircraft {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"heading {value}°",position:"{distance} km away, {elevation}° above the horizon, {bearing}",heard:"Heard at {level} dB(A), left the aircraft {delay} s ago, {lag}° behind it: {character}{pitch}",rumble:"a low rumble, nothing above {cutoff} Hz",muffled:"a dull noise, nothing above {cutoff} Hz",broad:"a broad roar",pitchHigher:", pitch {percent} % higher",pitchLower:", pitch {percent} % lower",inaudible:"Not audible here: {level} dB(A) against {ambient} dB(A) of ambient noise",soundUnknown:"Its sound cannot be worked out: the aircraft was not recorded yet when it left",contrailPersistent:"Leaves a trail that lasts: the air is supersaturated over ice ({rhi} % over ice)",contrailShort:"Leaves a short-lived trail: the air is dry over ice ({rhi} % over ice)",military:"military",restricted:"identity withheld by its owner",candidate:"A compatible candidate, not an identification"},railwayTooltip:{kinds:{rail:"Railway",light_rail:"Light rail",tram:"Tramway",subway:"Metro",funicular:"Funicular"},highSpeed:"High-speed line",service:"Siding",singleTrack:"single track",tracks:"{count} tracks",overhead:"overhead wire {height} m above the rail",overheadVoltage:"overhead wire at {voltage}, {height} m above the rail",thirdRail:"third rail",thirdRailVoltage:"third rail at {voltage}",notElectrified:"not electrified",gauge:"{mm} mm gauge",metreGauge:"metre gauge",distance:"{distance} away"},credits:"Credits",notAVideo:"This is not a video",isASimulation:"It is a real-time simulation."};export{r as sceneNames_en};
@@ -0,0 +1 @@
1
+ import{V as a,D as o}from"./VisualAids-DI-hEL46.js";const r={bodies:{sun:"Sol",moon:"Luna",Venus:"Venus",Mars:"Marte",Jupiter:"Júpiter",Saturn:"Saturno"},stars:{Sirius:"Sirio",Canopus:"Canopo",Arcturus:"Arturo",Capella:"Capela",Procyon:"Proción",Aldebaran:"Aldebarán",Spica:"Espiga",Pollux:"Pólux",Castor:"Cástor",Regulus:"Régulo"},comets:{"halley-1910":"cometa Halley","brooks-1911":"cometa Brooks","skjellerup-maristany-1927":"cometa Skjellerup-Maristany","de-kock-paraskevopoulos-1941":"cometa de Kock-Paraskevopoulos","southern-1947":"cometa austral","eclipse-1948":"cometa del eclipse","arend-roland-1957":"cometa Arend-Roland","mrkos-1957":"cometa Mrkos","seki-lines-1962":"cometa Seki-Lines","ikeya-seki-1965":"cometa Ikeya-Seki","bennett-1970":"cometa Bennett","white-ortiz-bolelli-1970":"cometa White-Ortiz-Bolelli","kohoutek-1973":"cometa Kohoutek","west-1976":"cometa West","iras-araki-alcock-1983":"cometa IRAS-Araki-Alcock","halley-1986":"cometa Halley","hyakutake-1996":"cometa Hyakutake","hale-bopp-1997":"cometa Hale-Bopp","mcnaught-2007":"cometa McNaught","lovejoy-2011":"cometa Lovejoy","panstarrs-2013":"cometa PANSTARRS","neowise-2020":"cometa NEOWISE","tsuchinshan-atlas-2024":"cometa Tsuchinshan-ATLAS"},novae:{"sn-1006":"supernova de 1006","sn-1054":"supernova de 1054","sn-1181":"supernova de 1181","sn-1572":"supernova de Tycho","sn-1604":"supernova de Kepler","t-crb-1866":"nova de la Corona Boreal 1866","t-aur-1891":"nova de Auriga 1891","gk-per-1901":"nova de Perseo 1901","dn-gem-1912":"nova de Géminis 1912","v603-aql-1918":"nova del Águila 1918","v476-cyg-1920":"nova del Cisne 1920","rr-pic-1925":"nova del Pintor 1925","dq-her-1934":"nova de Hércules 1934","cp-lac-1936":"nova del Lagarto 1936","cp-pup-1942":"nova de la Popa 1942","t-crb-1946":"nova de la Corona Boreal 1946","v446-her-1960":"nova de Hércules 1960","v533-her-1963":"nova de Hércules 1963","hr-del-1967":"nova del Delfín 1967","lv-vul-1968":"nova de la Zorra 1968","fh-ser-1970":"nova de la Serpiente 1970","v1500-cyg-1975":"nova del Cisne 1975","v842-cen-1986":"nova del Centauro 1986","sn-1987a":"supernova 1987A","v1974-cyg-1992":"nova del Cisne 1992","v382-vel-1999":"nova de las Velas 1999","v1494-aql-1999":"nova del Águila 1999","v4743-sgr-2002":"nova de Sagitario 2002","rs-oph-2006":"nova de Ofiuco 2006","v1280-sco-2007":"nova de Escorpio 2007","v339-del-2013":"nova del Delfín 2013","v1369-cen-2013":"nova del Centauro 2013","rs-oph-2021":"nova de Ofiuco 2021"},satelliteClasses:{echo:"los globos Echo","iridium-flares":"los destellos de los Iridium",iss:"la Estación Espacial Internacional","starlink-trains":"los trenes de Starlink"},showers:{quadrantids:"Cuadrántidas",lyrids:"Líridas de abril","eta-aquariids":"Eta Acuáridas","alpha-capricornids":"Alfa Capricórnidas","southern-delta-aquariids":"Delta Acuáridas del Sur",perseids:"Perseidas","southern-taurids":"Táuridas del Sur",draconids:"Dracónidas de octubre",orionids:"Oriónidas","northern-taurids":"Táuridas del Norte",leonids:"Leónidas",geminids:"Gemínidas",ursids:"Úrsidas"},lightRigs:{airliner:"Avión de pasajeros",helicopter:"Helicóptero","car-headlights":"Coche, faros encendidos","car-hazards":"Coche, luces de emergencia","emergency-beacons":"Rotativos de vehículo de emergencia","traffic-signal":"Semáforo","pedestrian-signal":"Semáforo peatonal",streetlamp:"Farola"},instruments:{eye:"A simple vista","rectilinear-lens":"Cámara, modelo desconocido","roamer-1-120":"Roamer 1, película 120","kodak-35":"Kodak 35, 50 mm f/3,5","instamatic-126":"Instamatic, película 126","cine-35mm-broadcast":"Cámara de 35 mm, vista en televisión","slr-35mm-50":"Réflex 35 mm, objetivo 50 mm","slr-35mm-zoom":"Réflex 35 mm, zoom 70-210 mm","phone-landscape":"Teléfono, en horizontal","phone-portrait":"Teléfono, en vertical",dashcam:"Cámara de salpicadero",cctv:"Cámara de vigilancia",...o.names(),...a.names()},decorKinds:{building:"Edificio",tree:"Árbol",shrub:"Arbusto",bridge:"Puente",wire:"Línea aérea",crop:"Hilera de cultivo",terrace:"Bancal (terraza)",mound:"Montón de piedras",wall:"Muro de piedra seca",streetlight:"Farola",trafficlight:"Semáforo",peak:"Cumbre",crossing:"Paso de peatones",roadsign:"Señal de tráfico",vehicle:"Vehículo",observer:"Testigo",aircraft:"Aeronave",entity:"Ser"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO","NNO"],towards:e=>`al ${e}`,starTooltip:"{name} — mag {mag}, {alt}° sobre el horizonte",starTooltipBelow:"{name} — mag {mag}, {alt}° bajo la horizontal",decorTooltip:"{name} — {size}, a {distance}",satelliteTooltip:"{name} — satélite, mag {mag}, a {height} km de altitud",afterimageTooltip:{name:"Imagen remanente, en el ojo",detail:"{name}: donde cayó la imagen de una luz más brillante que el Sol, el pigmento de la retina está decolorado: durante unos segundos sigue brillando, blanca y luego de colores, y después lo que se ve allí parece más oscuro. Se queda en el mismo lugar del campo de visión hacia donde se gire la mirada, y tarda minutos en borrarse."},ghostTooltip:{ghost:"Reflejo: {name}",halo:"Halo: {name}",double:"Doble: {name}",unnamed:"una luz",detail:"{name}. {cause}, {where}.",causes:{lens:"Reflejo entre dos superficies del objetivo",sensor:"Reflejo del sensor devuelto por su vidrio protector",filter:"Reflejo del sensor devuelto por el filtro",glass:"Reflejo entre las dos caras del cristal delante del objetivo",drops:"Luz difundida por las gotas sobre el cristal",condensation:"Luz difundida por el vaho sobre el cristal",dirt:"Luz difundida por la suciedad sobre el cristal"},opposite:"al otro lado del centro de la imagen respecto a la luz",sameSide:"del mismo lado del centro que la luz",around:"alrededor de la luz",drop:{lens:"Gota en el objetivo",filter:"Gota en el filtro",window:"Gota en el cristal",windscreen:"Gota en el parabrisas"},dropDetail:"{name}. Como una pequeña lente, muestra al revés y desenfocado lo que hay al otro lado de ella, en lugar de lo que hay detrás."},opticsTooltips:{halo22:"Halo de 22° — un anillo alrededor del Sol, por luz desviada en cristales de hielo hexagonales de los cirros; su borde interior es rojo, a 21,7°",halo46:"Halo de 46° — un anillo más raro y débil: la luz entra por una cara lateral del cristal y sale por una cara del extremo",oddRadius:"Halo de {angle}° — un anillo de radio impar, raro y débil, hecho por cristales de hielo con extremos piramidales",parhelion:"Parhelio — una mancha brillante de colores junto al Sol, a su altura, por placas de hielo que caen planas; rojo hacia el Sol",parhelion120:"Parhelio de 120° — una mancha blanca débil a 120° del Sol, por luz reflejada dentro de placas planas",upperTangentArc:"Arco tangente superior — un arco brillante apoyado sobre el halo de 22°, por columnas tumbadas en horizontal",lowerTangentArc:"Arco tangente inferior — un arco que toca la base del halo de 22°, por columnas tumbadas en horizontal",circumzenithal:"Arco circuncenital — una banda de colores vivos cerca del cenit, por luz que entra por la cara superior de placas planas (solo con el Sol bajo 32°)",circumhorizontal:"Arco circunhorizontal — una banda de colores baja en el cielo, por luz que entra por la cara lateral de placas planas (solo con el Sol sobre 58°)",parhelicCircle:"Círculo parhélico — un círculo blanco alrededor de todo el cielo a la altura del Sol, por reflejos en las caras verticales de placas planas",pillar:"Pilar de luz — una columna de luz sobre el Sol, por reflejos en placas planas ligeramente inclinadas",subsun:"Subsol — una imagen del Sol bajo el horizonte, por reflejos en las caras planas de las placas"},trafficTooltip:{unnamed:"Aeronave {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"rumbo {value}°",position:"a {distance} km, {elevation}° sobre el horizonte, {bearing}",heard:"Se oye a {level} dB(A), salió del avión hace {delay} s, {lag}° detrás de él: {character}{pitch}",rumble:"un rumor grave, nada por encima de {cutoff} Hz",muffled:"un ruido sordo, nada por encima de {cutoff} Hz",broad:"un rugido ancho",pitchHigher:", sonido {percent} % más agudo",pitchLower:", sonido {percent} % más grave",inaudible:"Inaudible aquí: {level} dB(A) frente a {ambient} dB(A) de ruido ambiente",soundUnknown:"Sonido no calculable: el avión aún no estaba registrado cuando salió",contrailPersistent:"Deja una estela que dura: el aire está sobresaturado respecto al hielo ({rhi} % respecto al hielo)",contrailShort:"Deja una estela breve: el aire está seco respecto al hielo ({rhi} % respecto al hielo)",military:"militar",restricted:"identidad oculta por su propietario",candidate:"Un candidato compatible, no una identificación"},railwayTooltip:{kinds:{rail:"Vía férrea",light_rail:"Metro ligero",tram:"Tranvía",subway:"Metro",funicular:"Funicular"},highSpeed:"Línea de alta velocidad",service:"Vía de servicio",singleTrack:"vía única",tracks:"{count} vías",overhead:"catenaria, hilo de contacto a {height} m sobre el carril",overheadVoltage:"catenaria a {voltage}, hilo de contacto a {height} m sobre el carril",thirdRail:"tercer carril",thirdRailVoltage:"tercer carril a {voltage}",notElectrified:"sin electrificar",gauge:"ancho de {mm} mm",metreGauge:"vía métrica",distance:"a {distance}"},credits:"Créditos",notAVideo:"Esto no es un vídeo",isASimulation:"Es una simulación en tiempo real."};export{r as sceneNames_es};