@rr0/ufoathome 0.164.0 → 0.166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-interview/InterviewMessages_en-BNau2xU8.js +1 -0
- package/dist-embed-interview/rr0-interview.mjs +6 -6
- package/dist-embed-scene/{AdsbLolArchiveProvider-CO4IRthj.js → AdsbLolArchiveProvider-C5EeYhpl.js} +1 -1
- package/dist-embed-scene/BeamEditor-ClooLylg.js +30 -0
- package/dist-embed-scene/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-scene/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-scene/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-scene/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-scene/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-scene/BeamSystem-PF6irYQf.js +1 -0
- package/dist-embed-scene/{ContrailSystem-GO0Hkyj3.js → ContrailSystem-CcDlnjiD.js} +1 -1
- package/dist-embed-scene/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-scene/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-scene/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-scene/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-scene/GLTFLoader-DB2upivM.js +1 -0
- package/dist-embed-scene/{HeadlightSystem-DNMtQJ-Z.js → HeadlightSystem-B0Ubhwxs.js} +1 -1
- package/dist-embed-scene/LanternEditor-DWhJGaQW.js +9 -0
- package/dist-embed-scene/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-scene/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-scene/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-scene/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-scene/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-scene/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-scene/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-scene/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-scene/LaserBeam-DXZysEYv.js +1 -0
- package/dist-embed-scene/LaunchEditor-DQ-F25le.js +22 -0
- package/dist-embed-scene/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-scene/LaunchPlume-lH1zITP-.js +1 -0
- package/dist-embed-scene/LaunchSimulation-BrDxk8DW.js +1 -0
- package/dist-embed-scene/ModuleSession-fhQ2P9LG.js +3 -0
- package/dist-embed-scene/ModuleThree-Du7Omkv6.js +1 -0
- package/dist-embed-scene/ParameterForm-BNfKnqZ4.js +85 -0
- package/dist-embed-scene/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-scene/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-scene/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-scene/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-scene/{RailwaySystem-1yA_UYdB.js → RailwaySystem-DZQr_rS_.js} +1 -1
- package/dist-embed-scene/ReentryEditor-IDlX4mtf.js +27 -0
- package/dist-embed-scene/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-scene/ReentrySimulation-BHQBGIr_.js +1 -0
- package/dist-embed-scene/ReferenceSystem-BgT1nVgA.js +1 -0
- package/dist-embed-scene/SceneNames_en-MuZS0swp.js +1 -0
- package/dist-embed-scene/SceneNames_es-DuwAjd1R.js +1 -0
- package/dist-embed-scene/SceneNames_fr-ChDjaMY9.js +1 -0
- package/dist-embed-scene/SceneNames_it-CWzCQiEh.js +1 -0
- package/dist-embed-scene/TimelineTracks-C02lbugN.js +35 -0
- package/dist-embed-scene/{TraceSystem-B9WBM9ut.js → TraceSystem-D7pxye9d.js} +1 -1
- package/dist-embed-scene/UfoMessages_en-BbYI-msn.js +1 -0
- package/dist-embed-scene/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-scene/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-scene/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-scene/WaterSystem-DI_NBDfH.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +347 -347
- package/dist-embed-scene/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-scene/trafficRuntime-CdAJY70O.js +2 -0
- package/dist-embed-sighting/{AdsbLolArchiveProvider-CX1R8zJF.js → AdsbLolArchiveProvider-Dfc5WtsT.js} +1 -1
- package/dist-embed-sighting/{BallesterGuaspAssessor-CCjRjJck.js → BallesterGuaspAssessor-VMcyGlQb.js} +1 -1
- package/dist-embed-sighting/BeamEditor-Dvqs7sme.js +30 -0
- package/dist-embed-sighting/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-sighting/BeamSystem-BSO1d2Na.js +1 -0
- package/dist-embed-sighting/ContrailSystem-Bgre4cLs.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-sighting/GLTFLoader-BkhEomyw.js +1 -0
- package/dist-embed-sighting/HeadlightSystem-CmppP6Mm.js +34 -0
- package/dist-embed-sighting/HynekAssessor-tNpli5GC.js +1 -0
- package/dist-embed-sighting/LanternEditor-DRmWNbXO.js +9 -0
- package/dist-embed-sighting/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-sighting/LaserBeam-CT0D5uXQ.js +1 -0
- package/dist-embed-sighting/LaunchEditor-BWm07eFT.js +22 -0
- package/dist-embed-sighting/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-sighting/LaunchPlume-DONCQxUE.js +1 -0
- package/dist-embed-sighting/LaunchSimulation-otlua1RW.js +1 -0
- package/dist-embed-sighting/ModuleSession-BfP999ya.js +3 -0
- package/dist-embed-sighting/ModuleThree-ColxHy_y.js +1 -0
- package/dist-embed-sighting/NearestApproach-hO2JFAfU.js +1 -0
- package/dist-embed-sighting/ParameterForm-DxN0Nf1y.js +85 -0
- package/dist-embed-sighting/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-sighting/{PoherAssessor-CwQN9pB1.js → PoherAssessor-CxcKyCRu.js} +1 -1
- package/dist-embed-sighting/{RailwaySystem-9blFcIdg.js → RailwaySystem-C920HhY6.js} +1 -1
- package/dist-embed-sighting/ReentryEditor-DXrar7b7.js +27 -0
- package/dist-embed-sighting/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-sighting/ReentrySimulation-BtiVr8cY.js +1 -0
- package/dist-embed-sighting/ReferenceSystem-90M3kYiP.js +1 -0
- package/dist-embed-sighting/{RoadMarkings-DKxgMzE-.js → RoadMarkings-DDNrriGo.js} +1 -1
- package/dist-embed-sighting/SceneNames_en-CryY5Edh.js +1 -0
- package/dist-embed-sighting/SceneNames_es-StyJlKmE.js +1 -0
- package/dist-embed-sighting/SceneNames_fr-B3c9bWLO.js +1 -0
- package/dist-embed-sighting/SceneNames_it--6HUBaRO.js +1 -0
- package/dist-embed-sighting/ShareMessages_en-DE1WoeWH.js +1 -0
- package/dist-embed-sighting/SightingMessages_en-C6mh8cZI.js +1 -0
- package/dist-embed-sighting/TimelineTracks-B1dXX0uV.js +35 -0
- package/dist-embed-sighting/{TraceSystem-CLYZFxAf.js → TraceSystem-BrpqiAAJ.js} +2 -2
- package/dist-embed-sighting/UfoMessages_en-Bau9u8Mz.js +1 -0
- package/dist-embed-sighting/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-sighting/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-sighting/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-sighting/{WaterSystem-BulddAwi.js → WaterSystem-D3andNtL.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +370 -370
- package/dist-embed-sighting/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-sighting/trafficRuntime-dT3zw02J.js +2 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-gX_y6kL8.js → BallesterGuaspAssessor-Db5otqP1.js} +1 -1
- package/dist-embed-sighting-editor/BeamEditor-DsOf0VRe.js +30 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-sighting-editor/BeamSystem-D5tLjXtH.js +1 -0
- package/dist-embed-sighting-editor/BodyEditor-CamqX5Xg.js +28 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_en-zfy3BJb5.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_es-w95anMnI.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_fr-ixsDgTbt.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_it-B3oQzqHE.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_en-CKiFdpaz.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_es-DT9XO1Hc.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_fr-B5jLsE0g.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_it-iyJGx4Ta.js +1 -0
- package/dist-embed-sighting-editor/CaseEditorMessages_en-BONSJaQA.js +1 -0
- package/dist-embed-sighting-editor/ClaudeNarrativeTexts_en-CBLJZ7b6.js +1 -0
- package/dist-embed-sighting-editor/CloudEditorMessages_en-SmcRKW1O.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_en-NIa0gfgA.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_es-DXu4T30p.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_fr-Bv-jc2dq.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_it-C3RrkRwI.js +1 -0
- package/dist-embed-sighting-editor/{ContrailSystem-BXARgrR4.js → ContrailSystem-rUmDVijn.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-mvpHgNx3.js → CoverageAssessor-cODG-YV9.js} +1 -1
- package/dist-embed-sighting-editor/DecorParameterTexts_en-C5dEeI_C.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_es-BysMOaxT.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_fr-CThgxosI.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_it-D0ZsTK16.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-sighting-editor/{GLTFLoader-BVRuOnnK.js → GLTFLoader-5AJGh-k1.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-9ywZKJNB.js → HeadlightSystem-neTrWCCo.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-B9lO770Q.js → HynekAssessor-DRD9zLEH.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-1brfxXM5.js → InterviewEditorElement-Cs8mzPb7.js} +28 -28
- package/dist-embed-sighting-editor/LanternEditor-CnxhMWVp.js +9 -0
- package/dist-embed-sighting-editor/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-sighting-editor/LaserBeam-Be555mrH.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditor-7uWzz1to.js +22 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-sighting-editor/LaunchPlume-Bc8eFHmR.js +1 -0
- package/dist-embed-sighting-editor/LaunchSimulation-3YNBjyS2.js +1 -0
- package/dist-embed-sighting-editor/ModuleSession-CBJWLo9w.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-Brz-0Orl.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-BdnB0iIX.js +13 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-D97Nh2yy.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-CE9Ajw2-.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-BWsj-7_t.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-CtKrboEg.js +1 -0
- package/dist-embed-sighting-editor/{NearestApproach-DCFh8vV6.js → NearestApproach-BfoIDPh8.js} +1 -1
- package/dist-embed-sighting-editor/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-sighting-editor/{PictureRegistration-cp0utyhJ.js → PictureRegistration-ZyvGfReK.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-CzLQhAxP.js → PoherAssessor-Cy0fVE2j.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-BfDjza60.js → RailwaySystem-J2yWIAbD.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-BA4Jirp1.js +27 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-sighting-editor/ReentrySimulation-GEWa9zRD.js +1 -0
- package/dist-embed-sighting-editor/{ReferenceSystem-DHPnvAXN.js → ReferenceSystem-DvWi5osh.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-HF9xJtTp.js → RoadMarkings-Ci3fp-tS.js} +1 -1
- package/dist-embed-sighting-editor/SceneNames_en-oNPwLOsb.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_es-Z_lHKIao.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_fr-CTfqBDCK.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_it-Bjfu1PyS.js +1 -0
- package/dist-embed-sighting-editor/ShareMessages_en-DE1WoeWH.js +1 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_en-CAWfFtUQ.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Botf2OEe.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-D5f-KX1w.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-DBMXvC62.js +12 -0
- package/dist-embed-sighting-editor/{SightingFileEditor-BekK-f3R.js → SightingFileEditor-DB3jyBzw.js} +1 -1
- package/dist-embed-sighting-editor/SkyEventEditorStyle-CvY_AhbI.js +1 -0
- package/dist-embed-sighting-editor/{TraceSystem-C1HaC0DX.js → TraceSystem-DO70_HjB.js} +2 -2
- package/dist-embed-sighting-editor/UfoMessages_en-DVlS5Elx.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-BDkfNF8C.js → WaterSystem-Cx8Lct9F.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +680 -693
- package/dist-embed-sighting-editor/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-sighting-editor/surroundingsSources-DXpzMDPy.js +1 -0
- package/dist-embed-sighting-editor/{trafficRuntime-DVOOnJGD.js → trafficRuntime-PSRYgFJb.js} +2 -2
- package/package.json +2 -1
- package/dist-embed-scene/BeamSystem-Dp1WU1Zx.js +0 -1
- package/dist-embed-scene/GLTFLoader-wJ0bjCoG.js +0 -1
- package/dist-embed-scene/ReferenceSystem-DOCydyPG.js +0 -1
- package/dist-embed-scene/SceneNames_es-xcbww_vR.js +0 -1
- package/dist-embed-scene/SceneNames_fr-COj1rUw_.js +0 -1
- package/dist-embed-scene/SceneNames_it-BiqZMsLB.js +0 -1
- package/dist-embed-scene/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-scene/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-scene/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-scene/WaterSystem-yC8sKIc5.js +0 -1
- package/dist-embed-scene/trafficRuntime-BPEJW9KZ.js +0 -2
- package/dist-embed-sighting/BeamSystem-B0H346X_.js +0 -1
- package/dist-embed-sighting/ContrailSystem-BeK11Jxe.js +0 -1
- package/dist-embed-sighting/GLTFLoader-B_T3zy3i.js +0 -1
- package/dist-embed-sighting/HeadlightSystem-DjtbpwEp.js +0 -34
- package/dist-embed-sighting/HynekAssessor-B8Iw0Cbz.js +0 -1
- package/dist-embed-sighting/NearestApproach-B5s-b6tU.js +0 -1
- package/dist-embed-sighting/ReferenceSystem-DFM_jZ-Q.js +0 -1
- package/dist-embed-sighting/SceneNames_es-Cu0CS6c0.js +0 -1
- package/dist-embed-sighting/SceneNames_fr-BAQt0-Zp.js +0 -1
- package/dist-embed-sighting/SceneNames_it-CeXG9jCC.js +0 -1
- package/dist-embed-sighting/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-sighting/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-sighting/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-sighting/trafficRuntime-CfPqH9j0.js +0 -2
- package/dist-embed-sighting-editor/BeamEditor-DDNul0KE.js +0 -13
- package/dist-embed-sighting-editor/BeamEditorMessages_en-SQumGyrS.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_es-BrR6Pk6G.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_fr-CT24bHfq.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_it-BgwwRjlh.js +0 -1
- package/dist-embed-sighting-editor/BeamSystem-BBonCZQ1.js +0 -1
- package/dist-embed-sighting-editor/BodyEditor-Br-GYDsy.js +0 -27
- package/dist-embed-sighting-editor/BodyEditorMessages_en-esgrRKGZ.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_es-C1ZvwV-v.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_fr-B_exFt_Q.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_it-AJ_KrzkS.js +0 -1
- package/dist-embed-sighting-editor/LanternEditor-DpZQqBGL.js +0 -9
- package/dist-embed-sighting-editor/LaserBeam-DZ6ILkZ8.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditor-BvnOtPyj.js +0 -18
- package/dist-embed-sighting-editor/LaunchEditorMessages_en-9lV7bQZy.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_es-D-Kz7fI5.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_fr-VEZBh9Ky.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_it-B0MeP7ki.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_es-DFcAoDph.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_fr-Cf8NgtIe.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_it-CLLu_NHU.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_es-oZAu3CCU.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-ycaYW34j.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Chlr7U2v.js +0 -12
- package/dist-embed-sighting-editor/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-sighting-editor/surroundingsSources-Bq5A0HA5.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={letGo:"Let go",lanterns:"Lanterns",air:"Air",eachLantern:"Each lantern",skyLanterns:"Sky lanterns",name:"Name",whereTheyAreLetGo:"Where they are let go",whereTheyAreLetGoFrom:"Where they are let go: from the witness, from something else in the scene, or as a latitude and a longitude.",heightAboveThePlaceSGround:"Height above the place's ground",aGardenOnAHillAbove:"A garden on a hill above the place, a roof.",thePlaceSGroundAboveThe:"The place's ground above the sea",whatSetsHowThinTheAir:"What sets how thin the air they climb into is: a lantern climbs less high from a mountain town.",howMany:"How many",firstLetGoAt:"First let go at",secondsOfTheRecordingBeforeIts:"Seconds of the recording: before its start (negative) for lanterns already up when it begins.",lastLetGoAt:"Last let go at",secondsOfTheRecordingTheOthers:"Seconds of the recording; the others in between, about evenly.",letGoWithin:"Let go within",aCrowdLetsThemGoA:"A crowd lets them go a few metres apart.",burnsAtLeast:"Burns at least",howLongEachBurnsFromWhen:"How long each burns from when it is let go, drawn between the two: 8 to 15 minutes by the sellers. It vanishes when it goes out.",burnsAtMost:"Burns at most",hotterThanTheAirAtLeast:"Hotter than the air, at least",howMuchHotterThanTheAir:"How much hotter than the air its air is at full burn, drawn between the two: what sets how fast it climbs, and so how high it gets.",hotterThanTheAirAtMost:"Hotter than the air, at most",alreadyBurntWhenLetGo:"Already burnt when let go",forLanternsTheAccountOnlyHas:"For lanterns the account only has from where they were first seen, already up and partly burnt.",draw:"Draw",whatTheDrawsStartFromAnother:"What the draws start from: another number, other lanterns within the same bounds, the same each time for the same number.",standForTheShapes:"Stand for the shapes",noShape:"No shape",windAtTheGroundTowards:"Wind at the ground, towards",windAtTheGroundSpeed:"Wind at the ground, speed",whereItBlowsTowardsWhichIs:"Where it blows TOWARDS, which is where the lanterns go: the opposite of where a weather report says it comes from.",windAloftTowards:"Wind aloft, towards",windAloftSpeed:"Wind aloft, speed",theWindHigherUpBlendedWith:"The wind higher up, blended with the ground's in between: what makes lanterns let go at one spot part ways as they climb.",windAloftAt:"Wind aloft, at",metresAboveWhereTheyAreLet:"Metres above where they are let go.",airTemperature:"Air temperature",atTheGroundFallingBy6:"At the ground, falling by 6.5 °C a kilometre above: what their hot air is lighter than. A cold night lifts them higher.",gustsAcross:"Gusts, across",howFarTheAirSSpeed:"How far the air's speed strays from the wind's, each lantern meeting its own gusts: what stretches a group into a shifting string. 0 for a still air.",gustsUpAndDown:"Gusts, up and down",aGustLasts:"A gust lasts",light:"Light",itsFlameSLightThroughThe:"Its flame's light through the paper, at full burn.",shape:"Shape",roundAtTheMouthSquareAt:"Round at the mouth, square at the top",balloonLobedTop:"Balloon, lobed top",paperColour:"Paper colour",whatItLooksLikeByDay:"What it looks like by day; by night, what its flame's light comes through.",flameLight:"Flame light",itsFlameSLightThroughWhite:"Its flame's light through white paper.",airItHolds:"Air it holds",weightWhenLetGo:"Weight when let go"};export{e as lanternParameterTexts_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={letGo:"Suelta",lanterns:"Farolillos",air:"Aire",eachLantern:"Cada farolillo",skyLanterns:"Farolillos voladores",name:"Nombre",whereTheyAreLetGo:"Lugar de la suelta",whereTheyAreLetGoFrom:"Desde dónde se sueltan: respecto al testigo, a otra cosa de la escena, o en latitud y longitud.",heightAboveThePlaceSGround:"Altura sobre el suelo del lugar",aGardenOnAHillAbove:"Un jardín en una colina sobre el lugar, un tejado.",thePlaceSGroundAboveThe:"Suelo del lugar sobre el mar",whatSetsHowThinTheAir:"Lo que fija lo enrarecido del aire en que suben: un farolillo sube menos desde un pueblo de montaña.",howMany:"Cuántos",firstLetGoAt:"Primero soltado a",secondsOfTheRecordingBeforeIts:"Segundos de la grabación: antes de su inicio (negativo) para farolillos ya en el aire cuando empieza.",lastLetGoAt:"Último soltado a",secondsOfTheRecordingTheOthers:"Segundos de la grabación; los demás entre ambos, más o menos regularmente.",letGoWithin:"Soltados en un radio de",aCrowdLetsThemGoA:"Una multitud los suelta a pocos metros unos de otros.",burnsAtLeast:"Arde al menos",howLongEachBurnsFromWhen:"Cuánto arde cada uno desde que se suelta, sorteado entre ambos: de 8 a 15 minutos según los vendedores. Desaparece al apagarse.",burnsAtMost:"Arde como mucho",hotterThanTheAirAtLeast:"Más caliente que el aire, al menos",howMuchHotterThanTheAir:"Cuánto más caliente que el aire está su aire a pleno fuego, sorteado entre ambos: lo que fija lo rápido que sube, y por tanto hasta dónde.",hotterThanTheAirAtMost:"Más caliente que el aire, como mucho",alreadyBurntWhenLetGo:"Ya ardido al soltarlo",forLanternsTheAccountOnlyHas:"Para farolillos que el relato solo tiene desde donde se vieron por primera vez, ya en el aire y en parte consumidos.",draw:"Sorteo",whatTheDrawsStartFromAnother:"De qué parten los sorteos: otro número, otros farolillos dentro de los mismos límites, los mismos cada vez para el mismo número.",standForTheShapes:"Representan las formas",noShape:"Ninguna forma",windAtTheGroundTowards:"Viento en el suelo, hacia",windAtTheGroundSpeed:"Viento en el suelo, velocidad",whereItBlowsTowardsWhichIs:"Hacia DÓNDE sopla, que es adonde van los farolillos: lo contrario de donde un parte dice que viene.",windAloftTowards:"Viento en altura, hacia",windAloftSpeed:"Viento en altura, velocidad",theWindHigherUpBlendedWith:"El viento más arriba, mezclado con el del suelo en medio: lo que separa al subir farolillos soltados en el mismo sitio.",windAloftAt:"Viento en altura, a",metresAboveWhereTheyAreLet:"Metros sobre donde se sueltan.",airTemperature:"Temperatura del aire",atTheGroundFallingBy6:"En el suelo, bajando 6,5 °C por kilómetro: de lo que su aire caliente es más ligero. Una noche fría los sube más.",gustsAcross:"Ráfagas, en horizontal",howFarTheAirSSpeed:"Cuánto se aparta la velocidad del aire de la del viento, cada farolillo en sus propias ráfagas: lo que estira un grupo en una fila cambiante. 0 para un aire quieto.",gustsUpAndDown:"Ráfagas, arriba y abajo",aGustLasts:"Una ráfaga dura",light:"Luz",itsFlameSLightThroughThe:"La luz de su llama a través del papel, a pleno fuego.",shape:"Forma",roundAtTheMouthSquareAt:"Redonda en la base, cuadrada arriba",balloonLobedTop:"Globo, cima lobulada",paperColour:"Color del papel",whatItLooksLikeByDay:"Su aspecto de día; de noche, lo que atraviesa la luz de su llama.",flameLight:"Luz de la llama",itsFlameSLightThroughWhite:"La luz de su llama a través de un papel blanco.",airItHolds:"Aire que contiene",weightWhenLetGo:"Peso al soltarlo"};export{e as lanternParameterTexts_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={letGo:"Lâcher",lanterns:"Lanternes",air:"Air",eachLantern:"Chaque lanterne",skyLanterns:"Lanternes célestes",name:"Nom",whereTheyAreLetGo:"Lieu du lâcher",whereTheyAreLetGoFrom:"D'où elles sont lâchées : par rapport au témoin, à autre chose dans la scène, ou en latitude et longitude.",heightAboveThePlaceSGround:"Hauteur au-dessus du sol du lieu",aGardenOnAHillAbove:"Un jardin sur une colline au-dessus du lieu, un toit.",thePlaceSGroundAboveThe:"Sol du lieu au-dessus de la mer",whatSetsHowThinTheAir:"Ce qui règle la raréfaction de l'air où elles montent : une lanterne monte moins haut depuis une ville de montagne.",howMany:"Combien",firstLetGoAt:"Première lâchée à",secondsOfTheRecordingBeforeIts:"Secondes de l'enregistrement : avant son début (négatif) pour des lanternes déjà en l'air quand il commence.",lastLetGoAt:"Dernière lâchée à",secondsOfTheRecordingTheOthers:"Secondes de l'enregistrement ; les autres entre les deux, à peu près régulièrement.",letGoWithin:"Lâchées dans un rayon de",aCrowdLetsThemGoA:"Une foule les lâche à quelques mètres les unes des autres.",burnsAtLeast:"Brûle au moins",howLongEachBurnsFromWhen:"Combien de temps chacune brûle après son lâcher, tiré entre les deux : 8 à 15 minutes selon les vendeurs. Elle disparaît en s'éteignant.",burnsAtMost:"Brûle au plus",hotterThanTheAirAtLeast:"Plus chaude que l'air, au moins",howMuchHotterThanTheAir:"De combien son air est plus chaud que l'air autour à plein feu, tiré entre les deux : ce qui règle à quelle vitesse elle monte, et donc jusqu'où.",hotterThanTheAirAtMost:"Plus chaude que l'air, au plus",alreadyBurntWhenLetGo:"Déjà brûlé au lâcher",forLanternsTheAccountOnlyHas:"Pour des lanternes que le compte rendu n'a que depuis là où elles ont été vues la première fois, déjà en l'air et en partie consumées.",draw:"Tirage",whatTheDrawsStartFromAnother:"Ce dont partent les tirages : un autre nombre, d'autres lanternes dans les mêmes bornes, les mêmes à chaque fois pour le même nombre.",standForTheShapes:"Représentent les formes",noShape:"Aucune forme",windAtTheGroundTowards:"Vent au sol, vers",windAtTheGroundSpeed:"Vent au sol, vitesse",whereItBlowsTowardsWhichIs:"Là où il souffle, VERS où, qui est où vont les lanternes : l'inverse d'où un bulletin météo dit qu'il vient.",windAloftTowards:"Vent en altitude, vers",windAloftSpeed:"Vent en altitude, vitesse",theWindHigherUpBlendedWith:"Le vent plus haut, mêlé à celui du sol entre les deux : ce qui fait se séparer en montant des lanternes lâchées au même endroit.",windAloftAt:"Vent en altitude, à",metresAboveWhereTheyAreLet:"Mètres au-dessus d'où elles sont lâchées.",airTemperature:"Température de l'air",atTheGroundFallingBy6:"Au sol, baissant de 6,5 °C par kilomètre au-dessus : ce dont leur air chaud est plus léger. Une nuit froide les porte plus haut.",gustsAcross:"Rafales, à l'horizontale",howFarTheAirSSpeed:"De combien la vitesse de l'air s'écarte de celle du vent, chaque lanterne prise dans ses propres rafales : ce qui étire un groupe en une file mouvante. 0 pour un air immobile.",gustsUpAndDown:"Rafales, de haut en bas",aGustLasts:"Une rafale dure",light:"Lumière",itsFlameSLightThroughThe:"La lumière de sa flamme à travers le papier, à plein feu.",shape:"Forme",roundAtTheMouthSquareAt:"Ronde à la base, carrée au sommet",balloonLobedTop:"Montgolfière, sommet en lobes",paperColour:"Couleur du papier",whatItLooksLikeByDay:"Son aspect de jour ; de nuit, ce que traverse la lumière de sa flamme.",flameLight:"Lumière de la flamme",itsFlameSLightThroughWhite:"La lumière de sa flamme à travers un papier blanc.",airItHolds:"Air qu'elle contient",weightWhenLetGo:"Poids au lâcher"};export{e as lanternParameterTexts_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={letGo:"Lancio",lanterns:"Lanterne",air:"Aria",eachLantern:"Ogni lanterna",skyLanterns:"Lanterne volanti",name:"Nome",whereTheyAreLetGo:"Luogo del rilascio",whereTheyAreLetGoFrom:"Da dove vengono lasciate andare: rispetto al testimone, a qualcos'altro nella scena, o in latitudine e longitudine.",heightAboveThePlaceSGround:"Altezza sul suolo del luogo",aGardenOnAHillAbove:"Un giardino su una collina sopra il luogo, un tetto.",thePlaceSGroundAboveThe:"Suolo del luogo sul mare",whatSetsHowThinTheAir:"Ciò che fissa la rarefazione dell'aria in cui salgono: una lanterna sale meno in alto da un paese di montagna.",howMany:"Quante",firstLetGoAt:"Prima lasciata a",secondsOfTheRecordingBeforeIts:"Secondi della registrazione: prima del suo inizio (negativo) per lanterne già in aria quando inizia.",lastLetGoAt:"Ultima lasciata a",secondsOfTheRecordingTheOthers:"Secondi della registrazione; le altre in mezzo, più o meno regolarmente.",letGoWithin:"Lasciate entro",aCrowdLetsThemGoA:"Una folla le lascia andare a pochi metri l'una dall'altra.",burnsAtLeast:"Brucia almeno",howLongEachBurnsFromWhen:"Quanto brucia ciascuna da quando è lasciata andare, estratto tra i due: da 8 a 15 minuti secondo i venditori. Scompare spegnendosi.",burnsAtMost:"Brucia al massimo",hotterThanTheAirAtLeast:"Più calda dell'aria, almeno",howMuchHotterThanTheAir:"Di quanto la sua aria è più calda dell'aria intorno a piena fiamma, estratto tra i due: ciò che fissa quanto in fretta sale, e quindi fin dove.",hotterThanTheAirAtMost:"Più calda dell'aria, al massimo",alreadyBurntWhenLetGo:"Già bruciato al lancio",forLanternsTheAccountOnlyHas:"Per lanterne che il resoconto ha solo da dove sono state viste la prima volta, già in aria e in parte consumate.",draw:"Estrazione",whatTheDrawsStartFromAnother:"Da cosa partono le estrazioni: un altro numero, altre lanterne negli stessi limiti, le stesse ogni volta per lo stesso numero.",standForTheShapes:"Rappresentano le forme",noShape:"Nessuna forma",windAtTheGroundTowards:"Vento al suolo, verso",windAtTheGroundSpeed:"Vento al suolo, velocità",whereItBlowsTowardsWhichIs:"VERSO dove soffia, che è dove vanno le lanterne: l'opposto di da dove un bollettino dice che viene.",windAloftTowards:"Vento in quota, verso",windAloftSpeed:"Vento in quota, velocità",theWindHigherUpBlendedWith:"Il vento più in alto, mescolato a quello al suolo nel mezzo: ciò che separa salendo lanterne lasciate andare nello stesso punto.",windAloftAt:"Vento in quota, a",metresAboveWhereTheyAreLet:"Metri sopra dove vengono lasciate andare.",airTemperature:"Temperatura dell'aria",atTheGroundFallingBy6:"Al suolo, calando di 6,5 °C per chilometro: ciò di cui la loro aria calda è più leggera. Una notte fredda le porta più in alto.",gustsAcross:"Raffiche, in orizzontale",howFarTheAirSSpeed:"Di quanto la velocità dell'aria si scosta da quella del vento, ogni lanterna nelle proprie raffiche: ciò che allunga un gruppo in una fila mutevole. 0 per un'aria ferma.",gustsUpAndDown:"Raffiche, in su e in giù",aGustLasts:"Una raffica dura",light:"Luce",itsFlameSLightThroughThe:"La luce della sua fiamma attraverso la carta, a piena fiamma.",shape:"Forma",roundAtTheMouthSquareAt:"Rotonda alla base, quadrata in cima",balloonLobedTop:"Mongolfiera, cima a lobi",paperColour:"Colore della carta",whatItLooksLikeByDay:"Il suo aspetto di giorno; di notte, ciò che attraversa la luce della sua fiamma.",flameLight:"Luce della fiamma",itsFlameSLightThroughWhite:"La luce della sua fiamma attraverso una carta bianca.",airItHolds:"Aria che contiene",weightWhenLetGo:"Peso al lancio"};export{a as lanternParameterTexts_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as O,b3 as D,b4 as y}from"./rr0-sighting.mjs";class l{static DEFAULT_DIVERGENCE_MRAD=.1;static DEFAULT_APERTURE_M=.01;static AEROSOL_SINGLE_SCATTERING_ALBEDO=.9;static AEROSOL_ASYMMETRY=.7;static DEFAULT_PATCHINESS=.35;static PATCH_M=120;static STEP_M=25;static MAX_SAMPLES=2e3;static viewsAt(n,o,t,s){return l.onAt(n,o).map(c=>l.viewOf(c,t,s))}static viewOf(n,o,t){return{id:n.id,wavelengthNm:n.wavelengthNm,patchiness:n.patchiness??l.DEFAULT_PATCHINESS,samples:l.samplesOf(n,o,t)}}static onAt(n,o){return n.filter(t=>(t.fromT===void 0||o>=t.fromT)&&(t.untilT===void 0||o<=t.untilT)).map(t=>l.stateAt(t,o)).filter(t=>t.path.length>=2)}static stateAt(n,o){if(!n.light?.length&&!n.moves?.length)return n;const t={...n};if(n.light?.length){const s=l.joined(n.light.filter(e=>e.wavelengthNm!==void 0),o,e=>e.wavelengthNm),c=l.joined(n.light.filter(e=>e.powerW!==void 0),o,e=>e.powerW);s!==void 0&&(t.wavelengthNm=s),c!==void 0&&(t.powerW=c)}return n.moves?.length&&(t.path=l.pathAt(n.moves,o)),t}static joined(n,o,t){if(n.length===0)return;const s=[...n].sort((a,i)=>a.t-i.t);if(o<=s[0].t)return t(s[0]);const c=s[s.length-1];if(o>=c.t)return t(c);const e=s.findIndex(a=>a.t>o),r=s[e-1],h=s[e],M=(o-r.t)/(h.t-r.t);return t(r)+(t(h)-t(r))*M}static pathAt(n,o){const t=[...n].sort((a,i)=>a.t-i.t);if(o<=t[0].t)return t[0].path;const s=t[t.length-1];if(o>=s.t)return s.path;const c=t.findIndex(a=>a.t>o),e=t[c-1],r=t[c];if(e.path.length!==r.path.length)return e.path;const h=(o-e.t)/(r.t-e.t),M=(a,i)=>a+(i-a)*h;return e.path.map((a,i)=>({lat:M(a.lat,r.path[i].lat),lng:M(a.lng,r.path[i].lng),altitudeM:M(a.altitudeM,r.path[i].altitudeM)}))}static patchAt(n,o,t){if(t.patchiness<=0)return 1;const s=o/1e3,c=(r,h)=>{const M=(n-t.windAlongMS*s)/r,a=(Math.abs(t.windAcrossMS)+.3)*s/r+h;return l.valueNoise(M,a)},e=(2*c(l.PATCH_M,0)+c(l.PATCH_M/3,17.3))/3;return 1+t.patchiness*(2*e-1)}static valueNoise(n,o){const t=Math.floor(n),s=Math.floor(o),c=n-t,e=o-s,r=i=>i*i*(3-2*i),h=(i,g)=>{const v=Math.sin(i*127.1+g*311.7)*43758.5453;return v-Math.floor(v)},M=h(t,s)+(h(t+1,s)-h(t,s))*r(c),a=h(t,s+1)+(h(t+1,s+1)-h(t,s+1))*r(c);return M+(a-M)*r(e)}static samplesOf(n,o,t){const s=O.ecef({lat:o.lat,lng:o.lng,heightM:0}),c=o.lat*Math.PI/180,e=o.lng*Math.PI/180,r=u=>{const p=u[0]-s[0],A=u[1]-s[1],f=u[2]-s[2];return[-Math.sin(e)*p+Math.cos(e)*A,-Math.sin(c)*Math.cos(e)*p-Math.sin(c)*Math.sin(e)*A+Math.cos(c)*f,Math.cos(c)*Math.cos(e)*p+Math.cos(c)*Math.sin(e)*A+Math.sin(c)*f]},h=(n.divergenceMrad??l.DEFAULT_DIVERGENCE_MRAD)/1e3,M=n.apertureM??l.DEFAULT_APERTURE_M,a=[];let i=0,g=n.powerW,v=0;for(let u=0;u+1<n.path.length;u++){const p=n.path[u],A=n.path[u+1],f=O.ecef({lat:p.lat,lng:p.lng,heightM:p.altitudeM}),w=O.ecef({lat:A.lat,lng:A.lng,heightM:A.altitudeM}),d=Math.hypot(w[0]-f[0],w[1]-f[1],w[2]-f[2]),[C,S]=(()=>{const[E,R]=r(f),[N,T]=r(w);return[(N-E)/(d||1),(T-R)/(d||1)]})(),I=Math.max(1,Math.min(l.MAX_SAMPLES,Math.ceil(d/l.STEP_M)));for(let E=u===0?0:1;E<=I;E++){const R=E/I,N=[0,1,2].map(P=>f[P]+(w[P]-f[P])*R),T=R*d,x=p.altitudeM+(A.altitudeM-p.altitudeM)*R+l.bulgeM(T,d);if(E>0){const P=a[a.length-1],W=T+i-P.fromSourceM,H=l.extinctionAt(t,n.wavelengthNm,(P.altitudeM+x)/2);v+=H*W,g=n.powerW*Math.exp(-v)}const[U,F,G]=r(N);a.push({eastM:U,northM:F,upM:G,altitudeM:x,fromSourceM:i+T,dirEast:C,dirNorth:S,widthM:M+h*(i+T),powerW:g})}i+=d}return a}static bulgeM(n,o){return n*(o-n)/(2*6371e3)}static extinctionAt(n,o,t){const{rayleighPerM:s,aerosolPerM:c}=l.coefficientsAt(n,o,t);return s+c}static coefficientsAt(n,o,t){const s=D.rayleighAt(o)*D.rayleighDensity(t),c=n.aerosol[1]*(o/550)**-1.3*D.aerosolDensity(t);return{rayleighPerM:s,aerosolPerM:c}}static phasedScattering(n,o){const t=3/(16*Math.PI)*(1+o*o),s=l.AEROSOL_ASYMMETRY,c=(1-s*s)/(4*Math.PI*(1+s*s-2*s*o)**1.5);return n.rayleighPerM*t+n.aerosolPerM*l.AEROSOL_SINGLE_SCATTERING_ALBEDO*c}static efficacy(n){return 683*Math.max(0,y.colourMatching(n)[1])}static colourOf(n){const[o,t,s]=y.colourMatching(n);if(t<=0)return[0,0,0];const c=y.linearSrgbOf([o/t,1,s/t]).map(r=>Math.max(0,r)),e=.2126*c[0]+.7152*c[1]+.0722*c[2];return c.map(r=>r/e)}static luminanceCdM2(n,o,t,s,c){return l.efficacy(o)*n*t/(s*Math.max(c,.001))}}export{l as L};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{ae as y,_ as d,ag as b,ah as E,b5 as w}from"./rr0-sighting.mjs";import{S as j,P as x,I as g,E as k,a as v}from"./ParameterForm-DxN0Nf1y.js";import{L as T}from"./LaunchPlume-DONCQxUE.js";import{T as I}from"./TimelineTracks-B1dXX0uV.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=>T.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),o=(m,h)=>m+(h-m)*l;return{t,lat:o(s.lat,a.lat),lng:o(s.lng,a.lng),altitudeKm:Math.max(0,o(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(T.releaseOf(s,t,a)):void 0}}static JET_GROUP="jet";static JET={kind:"launch-jet",title:"jet",parameters:[{type:"choice",key:"kind",required:!0,label:"what",choices:[{value:"burn",label:"engineBurn"},{value:"vent",label:"propellantVented"}],group:n.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"from",hint:"secondsOfTheRecordingNegativeBefore2",group:n.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"until",group:n.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:"directionFromAft",hint:"t0StraightBackAlongTheStage",group:n.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:"side",hint:"roundTheLineOfMotionWhich",group:n.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:"spinPeriod",hint:"howLongTheStageTakesTo",group:n.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:n.jetValue(e=>e.speedKmPerS),label:"speed",hint:"howFastItLeavesTheStage",group:n.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:n.jetValue(e=>e.massKgPerS),label:"flow",group:n.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:n.jetValue(e=>e.condensedShare),label:"shareThatScatters",group:n.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:n.jetValue(e=>e.particleRadiusUm),label:"particleRadius",group:n.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:n.jetValue(e=>e.populations[0].expansionKmPerS),label:"spreading",hint:"howFastEachPuffOfIt",group:n.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:n.jetValue(e=>e.initialRadiusKm),label:"radiusAtRelease",group:n.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:n.jetValue(e=>e.populations[0].lifetimeS),label:"lifetime",group:n.JET_GROUP}]};static publish(){b.publish(n.SET)}}const O=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,j.attach(e,"launch-editor-part",u.STYLE),this.language=i,b.of("launch")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="path";placeForm;placeIndex=0;jetForm;jetIndex=0;language;shown=[];static STYLE='.launch-editor-part { flex-basis: 100%; min-width: 0; } .launch-editor-part #launch-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .launch-editor-part .launch-path > .icon-btn { align-self: flex-end; } .launch-editor-part #launch-list, .launch-editor-part #launch-places { flex-basis: 100%; min-width: 0; } .launch-editor-part .launch-editor, .launch-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .launch-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .launch-editor-part [hidden] { display: none !important; } .launch-editor-part select { min-width: 0; width: 100%; } .launch-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-track { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .launch-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .launch-editor-part input, .launch-editor-part select { max-width: 100%; box-sizing: border-box; } .launch-editor-part input[type="text"] { width: 12em; } .launch-editor-part #launch-title { width: 18em; } .launch-editor-part label { min-width: 0; max-width: 100%; } .launch-editor-part input.parameter-derived::placeholder { opacity: .65; } .launch-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([O.load(e),S.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlace(!0),this.syncJet(!0);const i=this.resolved(b.of("launch"));this.form??=new x(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;if(e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.jetIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
|
+
<p class="launch-intro">${e.intro}</p>
|
|
3
|
+
<div id="launch-list"></div>
|
|
4
|
+
<div id="launch-fields" class="launch-fields">
|
|
5
|
+
<div id="launch-parameters" class="launch-parameters"></div>
|
|
6
|
+
<div id="launch-timeline" class="launch-timeline"></div>
|
|
7
|
+
<button id="launch-jet-add-burn" type="button" title="${e.addJet}">${g.PLUS} ${e.jetBurn}</button>
|
|
8
|
+
<button id="launch-jet-add-vent" type="button" title="${e.addJet}">${g.PLUS} ${e.jetVent}</button>
|
|
9
|
+
<p class="launch-intro">${e.timelineNote}</p>
|
|
10
|
+
<fieldset id="launch-path" class="launch-path">
|
|
11
|
+
<legend>${e.path}</legend>
|
|
12
|
+
<div id="launch-place-parameters" class="launch-parameters"></div>
|
|
13
|
+
<button id="launch-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${g.TRASH}</button>
|
|
14
|
+
</fieldset>
|
|
15
|
+
<fieldset id="launch-jets" class="launch-path">
|
|
16
|
+
<legend id="launch-jet-legend">${e.jet}</legend>
|
|
17
|
+
<div id="launch-jet-parameters" class="launch-parameters"></div>
|
|
18
|
+
<button id="launch-jet-delete" class="icon-btn" type="button" title="${e.deleteJet}" aria-label="${e.deleteJet}">${g.TRASH}</button>
|
|
19
|
+
</fieldset>
|
|
20
|
+
<p class="launch-intro">${e.derivedNote}</p>
|
|
21
|
+
</div>
|
|
22
|
+
</div>`;const t=this.element("launch-list");this.list=new k({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:i=>`launch-add-${i}`},onSelect:i=>this.show(i),onAdd:i=>this.addLaunch(i??u.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(u.VEHICLES.map(i=>({value:i.id,label:i.vehicle.name??i.id}))),this.timeline=new I(this.element("launch-timeline"),i=>this.host.seekTo(i),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.element("launch-jet-add-burn").addEventListener("click",()=>this.addJet("burn",this.host.currentTime())),this.element("launch-jet-add-vent").addEventListener("click",()=>this.addJet("vent",this.host.currentTime())),this.element("launch-place-delete").addEventListener("click",()=>this.removePlace()),this.element("launch-jet-delete").addEventListener("click",()=>this.removeJet()),this.placeForm=void 0,this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline())}static PATH_COLOR="#e08a1e";static JET_COLOR="#4f8fd6";jetLabel(e,t){return`${e.kind==="vent"?this.messages.jetVent:this.messages.jetBurn} ${t+1}`}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const i={id:"path",label:this.messages.path,color:u.PATH_COLOR,times:e.track.map(h=>h.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(h,c)=>{const p=c===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===c);this.selectPlace(p>=0?p:this.placeIndex)},move:(h,c)=>this.movePlace(h,c),add:()=>this.addPlaceAt(this.host.currentTime())},s=(e.jets??[]).map((h,c)=>({id:`jet-${c}`,label:this.jetLabel(h,c),color:u.JET_COLOR,times:[h.fromT,h.untilT],spans:[{t:h.fromT,until:h.untilT,label:""}],active:this.row==="jet"&&c===this.jetIndex,open:()=>this.selectJet(c),pressed:()=>this.selectJet(c),move:(p,f)=>this.moveJetEnd(c,p,f),add:()=>this.addJet(h.kind??"burn",this.host.currentTime())})),a=n.instantsOf(e),l=Math.min(...a),o=Math.max(...a),m=Math.max(500,(o-l)/10);this.timeline.show([i,...s],this.host.duration(),this.host.currentTime(),{from:l-m,to:o+m})}syncDetail(){const t=this.current?.jets?.[this.jetIndex];this.row==="jet"&&!t&&(this.row="path"),this.element("launch-path").hidden=this.row!=="path",this.element("launch-jets").hidden=this.row!=="jet",this.element("launch-jet-legend").textContent=t?this.jetLabel(t,this.jetIndex):this.messages.jet}static MIN_PLACES=2;syncPlace(e=!1){const t=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.element("launch-place-delete").disabled=t.length<=u.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(this.resolved(n.PLACE),new v(()=>this.current?.track[this.placeIndex],i=>this.editPlace(this.placeIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncDetail(),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncPlace(!0)}editPlace(e,t){const i=this.current;if(!i)return;const s={...i.track[e]};t(s),i.track=i.track.map((a,l)=>l===e?s:a).sort((a,l)=>a.t-l.t),this.placeIndex=i.track.indexOf(s),this.syncPlace(),this.written()}movePlace(e,t){const i=this.current?.track.findIndex(s=>s.t===e)??-1;i<0||(this.editPlace(i,s=>{s.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const i=t.track.findIndex(s=>Math.abs(s.t-e)<1);if(i<0){const s=n.placeAt(t.track,Math.round(e));t.track=[...t.track,s].sort((a,l)=>a.t-l.t),this.host.changed(),this.selectPlace(t.track.indexOf(s));return}this.selectPlace(i)}removePlace(){const e=this.current;!e||e.track.length<=u.MIN_PLACES||(e.track=e.track.filter((t,i)=>i!==this.placeIndex),this.syncPlace(!0),this.host.changed())}syncJet(e=!1){const t=this.current?.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,t.length-1)),this.jetForm?this.jetForm.sync(e):(this.jetForm=new x(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(this.resolved(n.JET),new v(()=>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(o=>o.id===e)??u.VEHICLES[0];let s=this.launches.length+1;for(;this.launches.some(o=>o.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=w.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"A rocket launch while the recording runs, a fact of the sky: its exhaust shows lit by a Sun the ground no longer sees. Its path, its engine and how its exhaust spreads are set below.",none:"No launch in this recording",launch:"Launch",deleteLaunch:"Delete launch",addLaunch:"Add a launch",path:"Path",deletePlace:"Remove this place",jet:"Jet",addJet:"Add a jet",deleteJet:"Remove this jet",jetBurn:"Engine burn",jetVent:"Propellant vented",addLaunchNowhere:"Give the recording a place first: a launch is put in front of the witness",derivedNote:"An empty field shows, greyed, the value used: the default, or what the engine implies. Clear a field to go back to it.",timelineNote:`On the timeline, a row pressed is the one shown below: the path, or a jet. A diamond pressed takes the scene to its instant; drag it to move it in time. The "+" of a row adds at the playhead. The hatched parts are before the recording's start or after its end.`,addHere:"Add here, at the playhead",here:"Already at the playhead: press it to edit it",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll"};export{e as launchEditorMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Un lanzamiento de cohete durante la grabación, un hecho del cielo: su escape se ve iluminado por un Sol que el suelo ya no ve. Su trayectoria, su motor y la expansión del escape se ajustan abajo.",none:"Ningún lanzamiento en esta grabación",launch:"Lanzamiento",deleteLaunch:"Eliminar el lanzamiento",addLaunch:"Añadir un lanzamiento",path:"Trayectoria",deletePlace:"Quitar este punto",jet:"Chorro",addJet:"Añadir un chorro",deleteJet:"Quitar este chorro",jetBurn:"Encendido del motor",jetVent:"Propelentes purgados",addLaunchNowhere:"Dé primero un lugar a la grabación: un lanzamiento se pone delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado: el predeterminado, o lo que implica el motor. Vacíe un campo para volver a él.",timelineNote:"En la línea de tiempo, una fila pulsada es la que se detalla debajo: la trayectoria, o un chorro. Un rombo pulsado lleva la escena a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila añade en el cabezal. Las partes rayadas están antes del inicio de la grabación o después de su final.",addHere:"Añadir aquí, en el cabezal",here:"Ya en el cabezal: púlselo para editarlo",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar"};export{e as launchEditorMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Un lancement de fusée pendant l'enregistrement, un fait du ciel : son échappement se voit éclairé par un Soleil que le sol ne voit plus. Son chemin, son moteur et l'étalement de l'échappement se règlent ci-dessous.",none:"Aucun lancement dans cet enregistrement",launch:"Lancement",deleteLaunch:"Supprimer le lancement",addLaunch:"Ajouter un lancement",path:"Chemin",deletePlace:"Retirer ce point",jet:"Jet",addJet:"Ajouter un jet",deleteJet:"Retirer ce jet",jetBurn:"Allumage du moteur",jetVent:"Ergols vidangés",addLaunchNowhere:"Donnez d'abord un lieu à l'enregistrement : un lancement est placé devant le témoin",derivedNote:"Un champ vide montre, en grisé, la valeur utilisée : le défaut, ou ce que le moteur implique. Videz un champ pour y revenir.",timelineNote:"Sur la frise, une ligne pressée est celle détaillée dessous : le chemin, ou un jet. Un losange pressé amène la scène à son instant ; faites-le glisser pour le déplacer dans le temps. Le « + » d'une ligne ajoute à la tête de lecture. Les parties hachurées sont avant le début de l'enregistrement ou après sa fin.",addHere:"Ajouter ici, à la tête de lecture",here:"Déjà à la tête de lecture : pressez-le pour le modifier",zoomHint:"Pincez, ou Ctrl + molette, pour zoomer ; Maj + molette pour défiler"};export{e as launchEditorMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Un lancio di razzo durante la registrazione, un fatto del cielo: il suo scarico si vede illuminato da un Sole che il suolo non vede più. Il suo percorso, il motore e l'espansione dello scarico si regolano qui sotto.",none:"Nessun lancio in questa registrazione",launch:"Lancio",deleteLaunch:"Elimina il lancio",addLaunch:"Aggiungi un lancio",path:"Percorso",deletePlace:"Rimuovi questo punto",jet:"Getto",addJet:"Aggiungere un getto",deleteJet:"Togliere questo getto",jetBurn:"Accensione del motore",jetVent:"Propellenti scaricati",addLaunchNowhere:"Dia prima un luogo alla registrazione: un lancio è posto davanti al testimone",derivedNote:"Un campo vuoto mostra, in grigio, il valore usato: il predefinito, o ciò che implica il motore. Svuota un campo per tornarci.",timelineNote:"Sulla linea del tempo, una riga premuta è quella dettagliata sotto: il percorso, o un getto. Un rombo premuto porta la scena al suo istante; trascinatelo per spostarlo nel tempo. Il «+» di una riga aggiunge alla testina. Le parti tratteggiate sono prima dell'inizio della registrazione o dopo la sua fine.",addHere:"Aggiungere qui, alla testina",here:"Già alla testina: premetelo per modificarlo",zoomHint:"Pizzicate, o Ctrl + rotella, per ingrandire; Maiusc + rotella per scorrere"};export{e as launchEditorMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Launches",name:"Rocket plume",detail:"{name} — {part}, {distance} away, {height} km up",ascent:"exhaust of the ascent",burn:"exhaust of an engine burn",vent:"vented propellant"};export{e as launchKindMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Lanzamientos",name:"Estela de cohete",detail:"{name} — {part}, a {distance}, a {height} km de altitud",ascent:"escape del ascenso",burn:"escape de un encendido",vent:"propelentes purgados"};export{e as launchKindMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Lancements",name:"Panache de fusée",detail:"{name} — {part}, à {distance}, à {height} km d'altitude",ascent:"échappement de la montée",burn:"échappement d'un allumage",vent:"ergols vidangés"};export{e as launchKindMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={title:"Lanci",name:"Scia di razzo",detail:"{name} — {part}, a {distance}, a {height} km di quota",ascent:"scarico dell'ascesa",burn:"scarico di un'accensione",vent:"propellenti scaricati"};export{a as launchKindMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={engine:"Engine",launch:"Launch",name:"Name",vehicle:"Vehicle",mission:"Mission",thrustVacuum:"Thrust (vacuum)",merlinVacuum934Rl10110A:"Merlin Vacuum 934, RL10 110, a solid booster several thousand. With the specific impulse, it sets how much exhaust leaves each second.",specificImpulseVacuum:"Specific impulse (vacuum)",times981MSIt:"Times 9.81 m/s² it is the exhaust velocity, which sets how fast the exhaust spreads round the stage: 348 s is 3.4 km/s.",propellant:"Propellant",whatTheExhaustIsMadeOf:"What the exhaust is made of decides how much of it turns into particles that scatter light.",keroseneAndOxygen:"Kerosene and oxygen",methaneAndOxygen:"Methane and oxygen",hydrogenAndOxygen:"Hydrogen and oxygen",hypergolic:"Hypergolic",solid:"Solid",engineStart:"Engine start",whenTheEngineStartedInSeconds:"When the engine started, in seconds of the recording; it may be before it. Empty: the first point of the path.",engineCutOff:"Engine cut-off",whenTheEngineStoppedInSeconds:"When the engine stopped, in seconds of the recording. Empty: the last point of the path. Nothing is let go after it.",exhaustFlow:"Exhaust flow",howMuchExhaustLeavesTheEngine:"How much exhaust leaves the engine each second: how bright the plume is. Thrust over exhaust velocity when the engine is stated.",plume:"Plume",shareThatScatters:"Share that scatters",theShareOfTheExhaustThat:"The share of the exhaust that ends up as particles that scatter the Sun's light. Nobody has measured it for a launch: the one number to fit against a photograph.",particleRadius:"Particle radius",trailLifetime:"Trail lifetime",howLongTheNarrowTrailLasts:"How long the narrow trail lasts before the particles have gone.",trailSpreading:"Trail spreading",radiusAtRelease:"Radius at release",shareInTheCollar:"Share in the collar",theCollarIsTheExhaustJust:"The collar is the exhaust just let go, which spreads fast into a wide short-lived shell round the stage; the rest stays behind as the narrow trail.",collar:"Collar",collarSpreading:"Collar spreading",howFastTheCollarWidensThree:"How fast the collar widens: three quarters of the exhaust velocity when the engine is stated.",collarLifetime:"Collar lifetime",placeOfThePath:"Place of the path",time:"Time",secondsOfTheRecordingNegativeBefore:"Seconds of the recording; negative before it began: a stage seen minutes after its launch was already high when the recording started.",position:"Position",altitude:"Altitude",jet:"Jet",what:"What",engineBurn:"Engine burn",propellantVented:"Propellant vented",from:"From",secondsOfTheRecordingNegativeBefore2:"Seconds of the recording; negative before it began.",until:"Until",directionFromAft:"Direction from aft",t0StraightBackAlongTheStage:"0 straight back along the stage's motion (an engine pushing it on), 90 sideways, 180 straight ahead (an engine braking it).",side:"Side",roundTheLineOfMotionWhich:"Round the line of motion, which side it leaves on at the start: 0 away from the Earth, 90 to the right of the motion.",spinPeriod:"Spin period",howLongTheStageTakesTo:"How long the stage takes to turn once round its line of motion; the jet turns with it and vented propellant draws a spiral. Negative turns the other way. Empty: it does not turn.",speed:"Speed",howFastItLeavesTheStage:"How fast it leaves the stage. A burn: the engine's exhaust velocity.",flow:"Flow",spreading:"Spreading",howFastEachPuffOfIt:"How fast each puff of it widens: a narrow jet keeps the arms of a spiral apart.",lifetime:"Lifetime"};export{e as launchParameterTexts_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={engine:"Motor",launch:"Lanzamiento",name:"Nombre",vehicle:"Lanzador",mission:"Misión",thrustVacuum:"Empuje (en el vacío)",merlinVacuum934Rl10110A:"Merlin Vacuum 934, RL10 110, un propulsor sólido varios miles. Con el impulso específico, fija el caudal de escape.",specificImpulseVacuum:"Impulso específico (en el vacío)",times981MSIt:"Multiplicado por 9,81 m/s² es la velocidad de escape, que fija la rapidez con que el escape se extiende alrededor de la etapa: 348 s son 3,4 km/s.",propellant:"Propelentes",whatTheExhaustIsMadeOf:"De qué está hecho el escape decide qué parte se vuelve partículas que difunden la luz.",keroseneAndOxygen:"Queroseno y oxígeno",methaneAndOxygen:"Metano y oxígeno",hydrogenAndOxygen:"Hidrógeno y oxígeno",hypergolic:"Hipergólico",solid:"Sólido",engineStart:"Encendido del motor",whenTheEngineStartedInSeconds:"Cuándo se encendió el motor, en segundos de la grabación; puede ser antes. Vacío: el primer punto de la trayectoria.",engineCutOff:"Apagado del motor",whenTheEngineStoppedInSeconds:"Cuándo se apagó el motor, en segundos de la grabación. Vacío: el último punto de la trayectoria. Nada se suelta después.",exhaustFlow:"Caudal de escape",howMuchExhaustLeavesTheEngine:"La masa de escape que sale del motor cada segundo: el brillo de la estela. El empuje sobre la velocidad de escape cuando se da el motor.",plume:"Estela",shareThatScatters:"Parte que difunde",theShareOfTheExhaustThat:"La parte del escape que acaba como partículas que difunden la luz del Sol. Nadie la ha medido para un lanzamiento: el único número que ajustar con una fotografía.",particleRadius:"Radio de las partículas",trailLifetime:"Duración de la estela",howLongTheNarrowTrailLasts:"Cuánto dura la estela estrecha antes de que las partículas hayan desaparecido.",trailSpreading:"Expansión de la estela",radiusAtRelease:"Radio al soltar",shareInTheCollar:"Parte en el collar",theCollarIsTheExhaustJust:"El collar es el escape recién soltado, que se extiende rápido en una envoltura ancha y breve alrededor de la etapa; el resto queda detrás como estela estrecha.",collar:"Collar",collarSpreading:"Expansión del collar",howFastTheCollarWidensThree:"La rapidez con que el collar se ensancha: tres cuartos de la velocidad de escape cuando se da el motor.",collarLifetime:"Duración del collar",placeOfThePath:"Punto de la trayectoria",time:"Instante",secondsOfTheRecordingNegativeBefore:"Segundos de la grabación; negativos antes de que empezara: una etapa vista minutos después de su lanzamiento ya estaba alta cuando empezó la grabación.",position:"Posición",altitude:"Altitud",jet:"Chorro",what:"Qué",engineBurn:"Encendido del motor",propellantVented:"Propelentes purgados",from:"Desde",secondsOfTheRecordingNegativeBefore2:"Segundos de la grabación; negativos antes de que empezara.",until:"Hasta",directionFromAft:"Dirección desde atrás",t0StraightBackAlongTheStage:"0 hacia atrás del movimiento de la etapa (un motor que la empuja), 90 de lado, 180 hacia delante (un motor que la frena).",side:"Lado",roundTheLineOfMotionWhich:"Alrededor de la línea del movimiento, el lado por el que sale al principio: 0 opuesto a la Tierra, 90 a la derecha del movimiento.",spinPeriod:"Período de giro",howLongTheStageTakesTo:"Lo que tarda la etapa en dar una vuelta alrededor de su línea de movimiento; el chorro gira con ella y los propelentes purgados dibujan una espiral. Negativo: en el otro sentido. Vacío: no gira.",speed:"Velocidad",howFastItLeavesTheStage:"La velocidad con que sale de la etapa. Un encendido: la velocidad de escape del motor.",flow:"Caudal",spreading:"Expansión",howFastEachPuffOfIt:"La rapidez con que se ensancha cada bocanada: un chorro estrecho mantiene separados los brazos de una espiral.",lifetime:"Duración"};export{e as launchParameterTexts_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={engine:"Moteur",launch:"Lancement",name:"Nom",vehicle:"Lanceur",mission:"Mission",thrustVacuum:"Poussée (dans le vide)",merlinVacuum934Rl10110A:"Merlin Vacuum 934, RL10 110, un booster à poudre plusieurs milliers. Avec l'impulsion spécifique, elle fixe le débit d'échappement.",specificImpulseVacuum:"Impulsion spécifique (dans le vide)",times981MSIt:"Multipliée par 9,81 m/s², c'est la vitesse d'éjection, qui fixe la vitesse à laquelle l'échappement s'étale autour de l'étage : 348 s font 3,4 km/s.",propellant:"Ergols",whatTheExhaustIsMadeOf:"Ce dont l'échappement est fait décide quelle part devient des particules qui diffusent la lumière.",keroseneAndOxygen:"Kérosène et oxygène",methaneAndOxygen:"Méthane et oxygène",hydrogenAndOxygen:"Hydrogène et oxygène",hypergolic:"Hypergolique",solid:"Poudre",engineStart:"Allumage du moteur",whenTheEngineStartedInSeconds:"Quand le moteur s'est allumé, en secondes de l'enregistrement ; avant lui si besoin. Vide : le premier point du chemin.",engineCutOff:"Extinction du moteur",whenTheEngineStoppedInSeconds:"Quand le moteur s'est éteint, en secondes de l'enregistrement. Vide : le dernier point du chemin. Rien n'est lâché après.",exhaustFlow:"Débit d'échappement",howMuchExhaustLeavesTheEngine:"La masse d'échappement qui sort du moteur chaque seconde : la luminosité du panache. La poussée sur la vitesse d'éjection quand le moteur est donné.",plume:"Panache",shareThatScatters:"Part qui diffuse",theShareOfTheExhaustThat:"La part de l'échappement qui devient des particules diffusant la lumière du Soleil. Personne ne l'a mesurée pour un lancement : le seul nombre à caler sur une photographie.",particleRadius:"Rayon des particules",trailLifetime:"Durée de la traînée",howLongTheNarrowTrailLasts:"Combien de temps la traînée étroite dure avant que les particules aient disparu.",trailSpreading:"Étalement de la traînée",radiusAtRelease:"Rayon au lâcher",shareInTheCollar:"Part dans la collerette",theCollarIsTheExhaustJust:"La collerette est l'échappement qui vient d'être lâché, qui s'étale vite en une coque large et brève autour de l'étage ; le reste demeure derrière en traînée étroite.",collar:"Collerette",collarSpreading:"Étalement de la collerette",howFastTheCollarWidensThree:"La vitesse à laquelle la collerette s'élargit : les trois quarts de la vitesse d'éjection quand le moteur est donné.",collarLifetime:"Durée de la collerette",placeOfThePath:"Point du chemin",time:"Instant",secondsOfTheRecordingNegativeBefore:"Secondes de l'enregistrement ; négatives avant son début : un étage vu des minutes après son lancement était déjà haut quand l'enregistrement a commencé.",position:"Position",altitude:"Altitude",jet:"Jet",what:"Quoi",engineBurn:"Allumage du moteur",propellantVented:"Ergols vidangés",from:"Début",secondsOfTheRecordingNegativeBefore2:"Secondes de l'enregistrement ; négatives avant son début.",until:"Fin",directionFromAft:"Direction depuis l'arrière",t0StraightBackAlongTheStage:"0 droit vers l'arrière du mouvement de l'étage (un moteur qui le pousse), 90 sur le côté, 180 droit devant (un moteur qui le freine).",side:"Côté",roundTheLineOfMotionWhich:"Autour de la ligne du mouvement, le côté par lequel il part au début : 0 à l'opposé de la Terre, 90 à droite du mouvement.",spinPeriod:"Période de rotation",howLongTheStageTakesTo:"Le temps que met l'étage à faire un tour autour de sa ligne de mouvement ; le jet tourne avec lui et les ergols vidangés dessinent une spirale. Négative : dans l'autre sens. Vide : il ne tourne pas.",speed:"Vitesse",howFastItLeavesTheStage:"La vitesse à laquelle il quitte l'étage. Un allumage : la vitesse d'éjection du moteur.",flow:"Débit",spreading:"Étalement",howFastEachPuffOfIt:"La vitesse à laquelle chaque bouffée s'élargit : un jet étroit garde les bras d'une spirale séparés.",lifetime:"Durée"};export{e as launchParameterTexts_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={engine:"Motore",launch:"Lancio",name:"Nome",vehicle:"Lanciatore",mission:"Missione",thrustVacuum:"Spinta (nel vuoto)",merlinVacuum934Rl10110A:"Merlin Vacuum 934, RL10 110, un booster solido diverse migliaia. Con l'impulso specifico, fissa la portata dello scarico.",specificImpulseVacuum:"Impulso specifico (nel vuoto)",times981MSIt:"Moltiplicato per 9,81 m/s² è la velocità di scarico, che fissa quanto in fretta lo scarico si allarga attorno allo stadio: 348 s sono 3,4 km/s.",propellant:"Propellenti",whatTheExhaustIsMadeOf:"Di cosa è fatto lo scarico decide quanta parte diventa particelle che diffondono la luce.",keroseneAndOxygen:"Cherosene e ossigeno",methaneAndOxygen:"Metano e ossigeno",hydrogenAndOxygen:"Idrogeno e ossigeno",hypergolic:"Ipergolico",solid:"Solido",engineStart:"Accensione del motore",whenTheEngineStartedInSeconds:"Quando si è acceso il motore, in secondi della registrazione; può essere prima. Vuoto: il primo punto del percorso.",engineCutOff:"Spegnimento del motore",whenTheEngineStoppedInSeconds:"Quando si è spento il motore, in secondi della registrazione. Vuoto: l'ultimo punto del percorso. Dopo non si rilascia nulla.",exhaustFlow:"Portata di scarico",howMuchExhaustLeavesTheEngine:"La massa di scarico che esce dal motore ogni secondo: la luminosità della scia. La spinta sulla velocità di scarico quando il motore è dato.",plume:"Scia",shareThatScatters:"Parte che diffonde",theShareOfTheExhaustThat:"La parte dello scarico che diventa particelle che diffondono la luce del Sole. Nessuno l'ha misurata per un lancio: l'unico numero da tarare su una fotografia.",particleRadius:"Raggio delle particelle",trailLifetime:"Durata della scia",howLongTheNarrowTrailLasts:"Quanto dura la scia stretta prima che le particelle siano sparite.",trailSpreading:"Espansione della scia",radiusAtRelease:"Raggio al rilascio",shareInTheCollar:"Parte nel collare",theCollarIsTheExhaustJust:"Il collare è lo scarico appena rilasciato, che si allarga in fretta in un guscio largo e breve attorno allo stadio; il resto resta dietro come scia stretta.",collar:"Collare",collarSpreading:"Espansione del collare",howFastTheCollarWidensThree:"Quanto in fretta il collare si allarga: tre quarti della velocità di scarico quando il motore è dato.",collarLifetime:"Durata del collare",placeOfThePath:"Punto del percorso",time:"Istante",secondsOfTheRecordingNegativeBefore:"Secondi della registrazione; negativi prima del suo inizio: uno stadio visto minuti dopo il lancio era già alto quando la registrazione è iniziata.",position:"Posizione",altitude:"Altitudine",jet:"Getto",what:"Cosa",engineBurn:"Accensione del motore",propellantVented:"Propellenti scaricati",from:"Da",secondsOfTheRecordingNegativeBefore2:"Secondi della registrazione; negativi prima del suo inizio.",until:"Fino a",directionFromAft:"Direzione da dietro",t0StraightBackAlongTheStage:"0 dritto all'indietro rispetto al moto dello stadio (un motore che lo spinge), 90 di lato, 180 dritto in avanti (un motore che lo frena).",side:"Lato",roundTheLineOfMotionWhich:"Attorno alla linea del moto, il lato da cui esce all'inizio: 0 opposto alla Terra, 90 a destra del moto.",spinPeriod:"Periodo di rotazione",howLongTheStageTakesTo:"Il tempo che lo stadio impiega a fare un giro attorno alla sua linea di moto; il getto gira con lui e i propellenti scaricati disegnano una spirale. Negativo: nell'altro verso. Vuoto: non gira.",speed:"Velocità",howFastItLeavesTheStage:"La velocità con cui lascia lo stadio. Un'accensione: la velocità di scarico del motore.",flow:"Portata",spreading:"Espansione",howFastEachPuffOfIt:"Quanto in fretta si allarga ogni sbuffo: un getto stretto tiene separati i bracci di una spirale.",lifetime:"Durata"};export{e as launchParameterTexts_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b8 as w,b9 as F,ba as v,bb as Y,R as H}from"./rr0-sighting.mjs";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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as M}from"./LaunchPlume-DONCQxUE.js";import{G as T,n as z,q as f,j as C,b6 as w,b7 as A}from"./rr0-sighting.mjs";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 p of t){if(c>=n.MAX_PUFFS)break;const d=o(p.centre);if(d<=0)continue;const a=s(p.centre),r=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,p.luminanceCdM2*(p.colour?.[g]??1)*i*p.sunTransmittance[g]*a[g]*d));Math.max(...r)<=0||(h=this.pushPuff(h,p,r),this.drawn.push({view:p,direction:this.normalise(A(p.centre.altitudeDeg,p.centre.azimuthDeg,1)),radiusRad:p.radiusDeg*Math.PI/180,luminance:.2126*r[0]+.7152*r[1]+.0722*r[2]}),c++)}this.shown=c;const u=this.mesh.geometry;u.setDrawRange(0,h),u.getAttribute("position").needsUpdate=!0,u.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)),u=this.cross(h,c),p=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(r,g)=>{const e=g/n.SECTORS*2*Math.PI,I=n.RINGS[r]*p,R=Math.cos(e)*I,l=Math.sin(e)*I;return{x:o.x+c.x*R+u.x*l,y:o.y+c.y*R+u.y*l,z:o.z+c.z*R+u.z*l}},a=r=>n.COLUMN[r];for(let r=0;r<n.SECTORS;r++){const g=(r+1)%n.SECTORS;t=this.push(t,o,s,a(0)),t=this.push(t,d(1,r),s,a(1)),t=this.push(t,d(1,g),s,a(1));for(let e=1;e<n.RINGS.length-1;e++){const I=d(e,r),R=d(e,g),l=d(e+1,r),E=d(e+1,g);t=this.push(t,I,s,a(e)),t=this.push(t,R,s,a(e)),t=this.push(t,l,s,a(e+1)),t=this.push(t,R,s,a(e)),t=this.push(t,E,s,a(e+1)),t=this.push(t,l,s,a(e+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,c;for(const u of this.drawn){const p=Math.max(-1,Math.min(1,o.x*u.direction.x+o.y*u.direction.y+o.z*u.direction.z)),d=Math.max(0,Math.acos(p)-i)/Math.max(u.radiusRad,1e-9),a=u.luminance*n.profile(d);a<=0||(h+=a,(!c||a>c.light)&&(c={view:u.view,light:a}))}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 b{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{b as LaunchSimulation};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-ColxHy_y.js","./rr0-sighting.mjs"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{f as g,b as w,_ as b,M as p}from"./rr0-sighting.mjs";class n{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=n.storage()){try{const e=t?.getItem(n.STORAGE_KEY);return e?n.parse(e):n.empty()}catch{return n.empty()}}static write(t,e=n.storage()){try{return e?(t.modules.length===0?e.removeItem(n.STORAGE_KEY):e.setItem(n.STORAGE_KEY,n.text(t)),!0):!1}catch{return!1}}static parse(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||!Array.isArray(e.modules))throw new Error("not a UFO@home module list");if(typeof e.format=="number"&&e.format>n.FORMAT)throw new Error(`format ${e.format} is newer than ${n.FORMAT}`);const r=new Set,s=[];for(const i of e.modules)typeof i?.url!="string"||r.has(i.url)||(r.add(i.url),s.push({url:i.url,enabled:i.enabled!==!1}));return{format:1,modules:s}}static text(t){return JSON.stringify({format:n.FORMAT,modules:t.modules},null,2)+`
|
|
3
|
+
`}static storage(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}}class E{constructor(t,e){this.attribution=t,this.models=e}async entries(t){return t?this.models.filter(e=>[e.kind].flat().includes(t)):[...this.models]}async entry(t){return this.models.find(e=>e.id===t)}}class f{attribution;fetchImpl;tileUrlTemplate;constructor(t){this.attribution=t.attribution,this.tileUrlTemplate=t.tileUrlTemplate,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis)}getImageryTexture(t,e){return g(t,e,r=>f.tileUrl(this.tileUrlTemplate,r),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class v extends Error{constructor(t,e){super(`${t}: ${e}`),this.url=t,this.reason=e,this.name="ModuleManifestError"}}class d{static FORMAT=1;static check(t,e){const r=o=>{throw new v(e,o)};(t===null||typeof t!="object"||Array.isArray(t))&&r("not a JSON object");const s=t;typeof s.format!="number"&&r('no "format"'),s.format>d.FORMAT&&r(`format ${s.format} is newer than ${d.FORMAT}, which this version reads`),(typeof s.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(s.id))&&r(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof s.name!="string"||s.name.trim()==="")&&r('no "name"'),s.script!==void 0&&typeof s.script!="string"&&r('"script" must be an address');const i=s.contributes??{};for(const o of["imagery","elevation"]){const c=i[o];c!==void 0&&(Array.isArray(c)||r(`"contributes.${o}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&r(`"contributes.${o}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||r(`"contributes.${o}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=i.models;return a!==void 0&&(Array.isArray(a)||r('"contributes.models" must be a list'),a.forEach((o,c)=>{for(const l of["id","name","file"])(typeof o?.[l]!="string"||o[l]==="")&&r(`"contributes.models[${c}].${l}" is missing`);o.kind===void 0&&r(`"contributes.models[${c}].kind" is missing`),(!o.credit||typeof o.credit!="object")&&r(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),s}static contributions(t,e){const r=t.contributes??{},s={};if(r.imagery?.length&&(s.imagery=r.imagery.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),attribution:i.credit,fetchImpl:a})}))),r.elevation?.length&&(s.elevation=r.elevation.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new w({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),fetchImpl:a})}))),r.models?.length){const i=r.models.map(({file:o,...c})=>({...c,url:new URL(o,e).href})),a=t.credit??t.name;s.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,i)}]}return s}static module(t,e,r={}){const s=d.contributions(t,e);for(const[i,a]of Object.entries(r))Array.isArray(a)&&(s[i]=[...s[i]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:s}}static absoluteTemplate(t,e){const r=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(r,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class T{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const r=await this.fetchImpl(t);if(!r.ok)throw new Error(`${t}: HTTP ${r.status}`);const s=d.check(await r.json(),t),i=s.script!==void 0;let a={};if(i&&e.runScript){const o=new URL(s.script,t).href,c=await this.importImpl(o);if(typeof c.default!="function")throw new Error(`${o}: its default export is not a function`);const{MODULE_THREE:l}=await b(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-ColxHy_y.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:s,module:d.module(s,t,a),hasScript:i,scriptRun:i&&e.runScript}}}class y{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=n.empty();started;list(){const t=[...this.states.values()];return[...t.filter(e=>e.addedByPerson),...t.filter(e=>!e.addedByPerson)]}state(t){return this.states.get(t)}start(){return this.started??=this.applyConfig(n.read(this.storage)),this.started}async add(t){await this.start();const e=new URL(t,typeof location>"u"?void 0:location.href).href;return this.config.modules.some(r=>r.url===e)||(this.config={...this.config,modules:[...this.config.modules,{url:e,enabled:!0}]},this.save()),this.reload(e)}async remove(t){this.config={...this.config,modules:this.config.modules.filter(e=>e.url!==t)},this.save(),await this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(r=>r.url===t?{...r,enabled:e}:r)},this.save(),await this.reload(t)}exportText(){return n.text(this.config)}async importText(t){const e=n.parse(t);await this.start();const r=this.config.modules.map(s=>s.url);this.config=e,this.save(),await Promise.all([...new Set([...r,...e.modules.map(s=>s.url)])].map(s=>this.reload(s)))}async require(t,e){t?.length&&(await this.start(),await Promise.all(t.map(async r=>{let s;try{s=new URL(r,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const i=this.states.get(s);if(i&&i.status!=="off")return i.status==="loading"?this.pending.get(s):void 0;this.named.add(s),await this.reload(s)})))}named=new Set;pending=new Map;async applyConfig(t){this.config=t,await Promise.all(t.modules.map(e=>this.reload(e.url)))}reload(t){const e=this.reloadNow(t);return this.pending.set(t,e),e}async reloadNow(t){const e=this.config.modules.find(a=>a.url===t),r=this.states.get(t);r?.loaded&&p.uninstall(r.loaded.module.id);const s=e!==void 0,i=e?.enabled??!0;if(!s&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:s,enabled:i,status:"off"};if(s&&!i&&!this.named.has(t))return this.set({url:t,addedByPerson:s,enabled:i,status:"off"});this.set({url:t,addedByPerson:s,enabled:i,status:"loading"});try{const a=await this.loader.load(t,{runScript:s&&i});return p.install(a.module),this.set({url:t,addedByPerson:s,enabled:i,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:s,enabled:i,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){n.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as a,k as e,bh as s,Y as t,$ as r,a9 as i,z as o,ax as n,Q as l,X as b,au as u,aa as m,ab as d,bi as M,o as y,a0 as B,j as G,N as S,aO as c,aL as f,aP as h,G as p,b1 as x,F as L,bj as C,a1 as P,bk as g,bl as D,bm as E,C as T,Z as j,n as k,q as A,bn as F,a8 as O,a4 as v}from"./rr0-sighting.mjs";const Q={AdditiveBlending:v,BackSide:O,BoxGeometry:F,BufferAttribute:A,BufferGeometry:k,CanvasTexture:j,Color:T,ConeGeometry:E,CylinderGeometry:D,DataTexture:g,DoubleSide:P,Euler:C,Float32BufferAttribute:L,FrontSide:x,Group:p,Line:h,LineBasicMaterial:f,LineSegments:c,Matrix4:S,Mesh:G,MeshBasicMaterial:B,MeshStandardMaterial:y,NormalBlending:M,Object3D:d,PlaneGeometry:m,PointLight:u,Points:b,PointsMaterial:l,Quaternion:n,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{Q as MODULE_THREE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as y,B as h}from"./rr0-sighting.mjs";class c{static FLAT={heightAt:()=>0};static of(e){const s=e.timeline.sourceIds.map(n=>y.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 r=M.at(f),a=l(f);if(!r||!a)continue;const m=Math.hypot(r.eastM-a.eastM,r.northM-a.northM,r.upM-a.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};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import{al as p,S as D,am as f}from"./rr0-sighting.mjs";class Y{static attach(t,e,i){t.classList.add(e);const n=`${e}-style`;if(t.parentElement?.querySelector(`:scope > style.${n}`))return;const s=t.ownerDocument.createElement("style");s.className=n,s.textContent=i,t.before(s)}}class V{constructor(t,e,i,n){this.button=t,this.onPick=i,this.idOf=n;const s=this.panel=t.ownerDocument.createElement("div");s.id=e,s.className="add-menu",s.setAttribute("popover",""),s.setAttribute("role","menu");const o=`--add-menu-${e}`;t.style.setProperty("anchor-name",o),s.style.setProperty("position-anchor",o),t.setAttribute("popovertarget",e),t.setAttribute("aria-haspopup","menu"),t.after(s)}static CSS=`
|
|
2
|
+
.add-menu { padding: .3em 0; border: 1px solid color-mix(in srgb, CanvasText 30%, transparent); border-radius: 4px; background: Canvas; color: CanvasText;
|
|
3
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, .25); max-height: 60vh; overflow-y: auto; font-size: .9em; }
|
|
4
|
+
@supports (position-area: bottom span-left) {
|
|
5
|
+
.add-menu:popover-open { inset: auto; position-area: bottom span-left; margin: .2em 0 0 0; }
|
|
6
|
+
}
|
|
7
|
+
.add-menu-choice { display: block; width: 100%; padding: .25em .9em; border: 0; background: none; color: inherit; font: inherit; text-align: left;
|
|
8
|
+
cursor: pointer; white-space: nowrap; }
|
|
9
|
+
.add-menu-choice:hover, .add-menu-choice:focus-visible { background: color-mix(in srgb, CanvasText 12%, transparent); }
|
|
10
|
+
.add-menu-choice[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: none; }
|
|
11
|
+
.add-menu-choice[hidden] { display: none; }
|
|
12
|
+
`;panel;kinds=[];last;setKinds(t){this.kinds=t;const e=this.button.ownerDocument;this.panel.replaceChildren(...t.map(i=>{const n=e.createElement("button");return n.type="button",n.className="add-menu-choice",n.setAttribute("role","menuitem"),this.idOf&&(n.id=this.idOf(i.value)),n.dataset.value=i.value,n.textContent=i.label,n.hidden=i.hidden===!0,i.disabledReason&&(n.setAttribute("aria-disabled","true"),n.title=i.disabledReason),n.addEventListener("click",()=>{n.getAttribute("aria-disabled")!=="true"&&(this.close(),this.last=i.value,this.onPick(i.value))}),n}))}setDisabled(t,e){this.kinds=this.kinds.map(n=>n.value===t?{...n,disabledReason:e}:n);const i=[...this.panel.children].find(n=>n.dataset.value===t);i&&(e?(i.setAttribute("aria-disabled","true"),i.title=e):(i.removeAttribute("aria-disabled"),i.title=""))}labelOf(t){return this.kinds.find(e=>e.value===t)?.label??t}get lastPicked(){return this.last}close(){if(typeof this.panel.hidePopover=="function")try{this.panel.matches(":popover-open")&&this.panel.hidePopover()}catch{}}}class l{static draw(t,e="none"){return`<svg class="icon" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="${e}" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${t}</svg>`}static TRASH=l.draw('<path d="M2.5 4.5h11"/><path d="M6 4.5V3h4v1.5"/><path d="M4 4.5l.7 9h6.6l.7-9"/><path d="M6.8 7v4.5M9.2 7v4.5"/>');static TARGET=l.draw('<circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.6"/><path d="M8 1v2.2M8 12.8V15M1 8h2.2M12.8 8H15"/>');static PLAY=l.draw('<path d="M5 3.2v9.6L12.6 8z"/>',"currentColor");static PAUSE=l.draw('<path d="M5.5 3.5v9M10.5 3.5v9"/>');static RECORD=l.draw('<circle cx="8" cy="8" r="4.2" fill="var(--error, #d93025)" stroke="none"/>');static STOP=l.draw('<rect x="4" y="4" width="8" height="8" rx="1.2"/>',"currentColor");static PREVIOUS_MARK=l.draw('<path d="M6.5 4 2.5 8l4 4"/><path d="M11 5.2 13.8 8 11 10.8 8.2 8z"/>');static NEXT_MARK=l.draw('<path d="M9.5 4l4 4-4 4"/><path d="M5 5.2 7.8 8 5 10.8 2.2 8z"/>');static CLOSE=l.draw('<path d="M4 4l8 8M12 4l-8 8"/>');static PLUS=l.draw('<path d="M8 3v10M3 8h10"/>');static METEOR=l.draw('<path d="M2.5 2.5l7 7"/><path d="M5.5 2.5l5 5"/><circle cx="11.5" cy="11.5" r="2"/>');static COMET=l.draw('<circle cx="11" cy="11" r="2.4"/><path d="M9.3 9.3 2.5 2.5M9 11.2 3 7M11.2 9 7 3"/>');static STAR=l.draw('<path d="M8 2.2l1.7 3.6 3.9.5-2.9 2.7.8 3.9L8 11l-3.5 1.9.8-3.9-2.9-2.7 3.9-.5z"/>');static SATELLITE=l.draw('<rect x="6.3" y="6.3" width="3.4" height="3.4" transform="rotate(45 8 8)"/><path d="M5.4 5.4 3 3M10.6 10.6 13 13"/><path d="M1.8 4.2 4.2 1.8M11.8 14.2l2.4-2.4"/><path d="M10.5 3.5a3 3 0 0 1 2 2"/>');static FIREBALL=l.draw('<circle cx="10.5" cy="10.5" r="2.6"/><path d="M8.6 8.6 3 3M8 10.6 4.5 8.5M10.6 8 8.5 4.5"/>');static SUMMARY=l.draw('<rect x="3" y="2" width="10" height="12" rx="1.5"/><path d="M5.5 5.5h5M5.5 8h5M5.5 10.5h3"/>');static WITNESS=l.draw('<circle cx="8" cy="5" r="2.6"/><path d="M2.8 14c.6-3 2.6-4.6 5.2-4.6s4.6 1.6 5.2 4.6"/>');static LOCATION=l.draw('<path d="M8 14.3s4.5-4.3 4.5-7.8a4.5 4.5 0 0 0-9 0c0 3.5 4.5 7.8 4.5 7.8z"/><circle cx="8" cy="6.5" r="1.6"/>');static DATE=l.draw('<rect x="2.3" y="3.3" width="11.4" height="10.4" rx="1.5"/><path d="M2.3 6.6h11.4M5.3 1.8v2.8M10.7 1.8v2.8"/>');static ENVIRONMENT=l.draw('<path d="M1.5 14h13"/><path d="M2.8 14V8.3L6.3 5.5l3.5 2.8V14"/><path d="M12.2 14V9.4"/><circle cx="12.2" cy="7.4" r="2.1"/>');static SKY=l.draw('<path d="M4.6 12.5h7a2.6 2.6 0 0 0 .3-5.2 3.8 3.8 0 0 0-7.3-.6 2.9 2.9 0 0 0 0 5.8z"/>');static PHENOMENON=l.draw('<ellipse cx="8" cy="9" rx="6.3" ry="2.1"/><path d="M4.6 7.8a3.4 3.4 0 0 1 6.8 0"/><path d="M5 13.4l.6-1.4M11 13.4l-.6-1.4M8 14v-1.4"/>');static SOUND=l.draw('<path d="M2.5 6.2h2.3L8 3.5v9L4.8 9.8H2.5z"/><path d="M10.5 6a2.8 2.8 0 0 1 0 4M12.3 4.2a5.4 5.4 0 0 1 0 7.6"/>');static PICTURES=l.draw('<rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="5.8" cy="6.4" r="1.2"/><path d="M2.5 12l3.8-3.6 2.4 2.2 2.2-1.8 2.6 2.5"/>');static FILES=l.draw('<path d="M4 1.8h5.2L12.5 5v9.2H4z"/><path d="M9 1.8V5.2h3.5"/>');static BY_GLYPH={"🗑":l.TRASH,"🎯":l.TARGET,"+":l.PLUS,"✕":l.CLOSE,"▶":l.PLAY,"⏸":l.PAUSE,"⏺":l.RECORD,"⏹":l.STOP};static show(t,e){if(t.dataset.icon===e&&t.firstChild)return;const i=l.BY_GLYPH[e];i?t.innerHTML=i:t.textContent=e,t.dataset.icon=e}static CSS=`
|
|
13
|
+
.icon { display: block; flex: none; }
|
|
14
|
+
button:has(> .icon:only-child) { display: inline-flex; align-items: center; justify-content: center; }
|
|
15
|
+
`}class L{constructor(t){this.options=t,this.row=document.createElement("div"),this.row.className="element-list-row",this.pickerRow=document.createElement("label"),this.pickerRow.className="element-list-picker",this.select=document.createElement("select"),this.select.id=t.ids.list,this.select.addEventListener("change",()=>t.onSelect(this.select.value)),this.pickerRow.append(this.select),t.header.append(this.row),this.row.append(this.pickerRow);const e=t.navigation;e&&(this.previousButton=this.iconButton(`${t.ids.list}-previous`,"▲"),this.nextButton=this.iconButton(`${t.ids.list}-next`,"▼"),this.previousButton.addEventListener("click",()=>e.onStep(-1)),this.nextButton.addEventListener("click",()=>e.onStep(1)),this.row.append(this.previousButton,this.nextButton),e.scope.addEventListener("keydown",i=>{if(!i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||i.key!=="ArrowUp"&&i.key!=="ArrowDown"||this.pickerRow.closest("[hidden]")||!this.pickerRow.isConnected)return;i.preventDefault(),i.stopPropagation();const n=i.key==="ArrowUp"?this.previousButton:this.nextButton;n&&!n.disabled&&e.onStep(i.key==="ArrowUp"?-1:1)}));for(const i of t.actions??[]){const n=this.iconButton(i.id,i.glyph);n.addEventListener("click",()=>i.onClick()),this.actionButtons.set(i.id,n),this.row.append(n)}this.removeButton=this.iconButton(t.ids.remove,"🗑"),this.removeButton.addEventListener("click",()=>t.onRemove()),this.emptyText=document.createElement("span"),this.emptyText.className="element-list-empty",this.addButton=this.iconButton(t.ids.add,"+"),this.addButton.classList.add("element-list-add"),this.row.append(this.removeButton,this.emptyText,this.addButton),t.ids.kinds?this.kindMenu=new V(this.addButton,t.ids.kinds,i=>t.onAdd(i),t.ids.kind):this.addButton.addEventListener("click",()=>t.onAdd(void 0)),t.body&&t.body.classList.add("element-list-body")}static CSS=`
|
|
16
|
+
.element-list-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .4em; flex: 1 1 100%; min-width: 0; }
|
|
17
|
+
.element-list-picker { flex: 1 1 10em; min-width: 0; display: flex; }
|
|
18
|
+
.element-list-picker select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
|
|
19
|
+
.element-list-empty { align-self: center; opacity: .75; font-style: italic; }
|
|
20
|
+
/* The fields of the picked element unroll from its picker: the frame starts where the picker ends, with no space between (the gap of the
|
|
21
|
+
container both stand in is taken back, see glue), its corner under the picker square. The row is aligned on its bottom so that the
|
|
22
|
+
picker's lower edge is the row's, whatever the height of the buttons beside it. */
|
|
23
|
+
.element-list-body { flex: 1 1 100%; min-width: 0; box-sizing: border-box; border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
|
|
24
|
+
border-radius: 0 6px 6px 6px; padding: .5em .6em; margin: 0 0 .3em; display: flex; flex-wrap: wrap;
|
|
25
|
+
align-items: center; gap: .5em; }
|
|
26
|
+
.element-list-picker select { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
|
|
27
|
+
.element-list-row [hidden], .element-list-body[hidden] { display: none !important; }
|
|
28
|
+
${V.CSS}`;static showPresence(t,e,i,n=!1){for(const s of t.children)if(!s.matches(".element-list-add, .add-menu, .add-reason")){if(s.matches(".element-list-empty")){s.hidden=i||n;continue}if(s.matches(".element-list-picker")){s.hidden=!i&&!n;continue}s.hidden=!i&&!n,s instanceof HTMLButtonElement&&!i&&(s.disabled=!0)}e&&(e.hidden=!i,i&&!L.glued.has(e)&&L.glue(e))}static glued=new WeakSet;static glue(t){const e=t.parentElement,i=t.ownerDocument.defaultView;if(!e||!i)return;const n=i.getComputedStyle(e),s=/flex|grid/.test(n.display)&&parseFloat(n.rowGap)||0;t.style.marginTop=`${-s}px`,n.display!=="none"&&L.glued.add(t)}select;row;pickerRow;emptyText;removeButton;addButton;addReason;kindMenu;previousButton;nextButton;actionButtons=new Map;items=[];noneLabel="—";addLabel="";removeEnabled=!0;actionEnabled=new Map;iconButton(t,e){const i=document.createElement("button");return i.type="button",i.className="icon-btn",i.id=t,l.show(i,e),i}setLabels(t){if(this.previousButton&&this.nextButton)for(const[e,i,n]of[[this.previousButton,t.previous??"","Alt+↑"],[this.nextButton,t.next??"","Alt+↓"]]){const s=i===""?n:`${i} (${n})`;e.title=s,e.setAttribute("aria-label",i||s),e.setAttribute("aria-keyshortcuts",n.replace("↑","ArrowUp").replace("↓","ArrowDown"))}this.select.setAttribute("aria-label",t.list),this.emptyText.textContent=t.empty??"",this.noneLabel=t.none??this.noneLabel,this.addLabel=t.add,this.kindMenu?.panel.setAttribute("aria-label",t.add),this.options.optional&&this.listed(this.items,this.select.value);for(const[e,i]of[[this.removeButton,t.remove],[this.addButton,t.add],...[...this.actionButtons].map(([n,s])=>[s,t.actions?.[n]??""])])e.title=i,e.setAttribute("aria-label",i)}setKinds(t){this.kindMenu?.setKinds(t)}kindLabel(t){return this.kindMenu?.labelOf(t)??t}get pickedKind(){return this.kindMenu?.lastPicked}setItems(t,e){this.items=t,this.listed(t,e)}listed(t,e){this.select.replaceChildren(...this.options.optional?[new Option(this.noneLabel,"")]:[],...t.map(i=>new Option(i.label,i.id))),e!==void 0&&(this.select.value=e),this.select.selectedIndex<0&&(this.select.selectedIndex=0),this.setPresent(this.options.optional?this.select.value!=="":t.length>0)}setStepState(t,e){this.previousButton&&(this.previousButton.disabled=!t),this.nextButton&&(this.nextButton.disabled=!e)}setActionEnabled(t,e){const i=this.actionButtons.get(t);i&&(i.disabled=!e||this.select.disabled),this.actionEnabled.set(t,e)}setRemoveEnabled(t){this.removeEnabled=t,this.removeButton.disabled=!t||this.select.value===""&&this.options.optional===!0}get value(){return this.select.value}setAddState(t,e){this.addButton.disabled=!t;const i=e??this.addLabel;this.addButton.title=i,this.addButton.setAttribute("aria-label",i),this.addReason||(this.addReason=this.addButton.ownerDocument.createElement("span"),this.addReason.className="add-reason",this.addReason.style.cssText="font-size: .85em; opacity: .8; align-self: center;",this.row.append(this.addReason)),this.addReason.textContent=!t&&e?e:"",this.addReason.hidden=t||!e}rename(t,e){const i=[...this.select.options].find(n=>n.value===t);i&&(i.textContent=e)}show(t){this.select.value=t,this.options.optional&&this.setPresent(this.select.value!=="")}setPresent(t){const e=this.options.optional===!0;if(L.showPresence(this.row,this.options.body,t,e),this.select.disabled=!t&&!e,!!t){this.removeButton.disabled=!this.removeEnabled;for(const[i,n]of this.actionButtons)n.disabled=this.actionEnabled.get(i)===!1}}focus(){this.select.focus()}}class m{static CHROME="2.6em";static UNBOUNDED=9999;static fit(t){const e=[...t.querySelectorAll('input[type="number"]')];for(const i of e)i.style.width=`calc(${m.charsFor(i)}ch + ${m.CHROME})`,m.hold(i,!0),i.dataset.held!==""&&(i.dataset.held="",i.addEventListener("input",()=>m.hold(i)),i.addEventListener("change",()=>m.hold(i,!0)));return e.length}static hold(t,e=!1){const i=m.heldValue(t.value,t,e);i!==t.value&&(t.value=i,t.dispatchEvent(new Event("input",{bubbles:!0})))}static heldValue(t,e,i=!1){if(t===""||!/^-?\d+(\.\d+)?$/.test(t))return t;const n=m.wholeOnly(e.step)?0:m.decimalsOf(e.step),s=t.indexOf("."),o=s>=0&&t.length-s-1>n?n===0?t.slice(0,s):t.slice(0,s+n+1):t,r=Number(o),d=e.min===""?void 0:Number(e.min),a=e.max===""?void 0:Number(e.max);return a!==void 0&&r>a?String(a):i&&d!==void 0&&r<d?String(d):o}static charsFor(t){const e=r=>r===""?void 0:Math.abs(Number(r)),i=Math.max(e(t.max)??m.UNBOUNDED,e(t.min)??0),n=String(Math.floor(Number.isFinite(i)?i:m.UNBOUNDED)).length,s=t.min!==""&&Number(t.min)<0?1:0,o=m.wholeOnly(t.step)?0:m.decimalsOf(t.step);return n+s+(o>0?o+1:0)}static decimalsOf(t){if(t===""||t==="any")return 2;const e=t.indexOf(".");return Math.max(2,e<0?0:t.length-e-1)}static wholeOnly(t){return t!==""&&t!=="any"&&!t.includes(".")}}class x{static CSS=`
|
|
29
|
+
.window-close {
|
|
30
|
+
position: absolute; top: 8px; right: 8px; z-index: 1;
|
|
31
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
32
|
+
width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0;
|
|
33
|
+
border: 0; border-radius: 8px; background: none; color: inherit; opacity: .7; cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
.window-close:hover, .window-close:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
|
|
36
|
+
:is(dialog, [popover], .context-menu):has(> .window-close) { position: relative; padding-right: 44px; }
|
|
37
|
+
.context-menu:has(> .window-close) { position: fixed; }
|
|
38
|
+
`;static button(t,e,i){const n=t.querySelector(":scope > .window-close");if(n)return x.label(n,e),n;const s=document.createElement("button");return s.type="button",s.className="window-close",s.innerHTML=l.CLOSE,x.label(s,e),s.addEventListener("click",o=>{o.stopPropagation(),i()}),t.prepend(s),s}static popover(t,e){return x.button(t,e,()=>{typeof t.hidePopover=="function"&&t.matches(":popover-open")&&t.hidePopover()})}static dialog(t,e,i){if(!t.dataset.closesBeside){t.dataset.closesBeside="true";let n=!1;t.addEventListener("pointerdown",s=>n=s.target===t),t.addEventListener("click",s=>{s.target===t&&n&&x.outside(t,s)&&i()})}return x.button(t,e,i)}static outside(t,e){const i=t.getBoundingClientRect();return e.clientX<i.left||e.clientX>i.right||e.clientY<i.top||e.clientY>i.bottom}static label(t,e){t.title=e,t.setAttribute("aria-label",e)}}class E extends HTMLElement{static TAG="rr0-input-basis";static CSS=`
|
|
39
|
+
rr0-input-basis { display: inline-block; }
|
|
40
|
+
rr0-input-basis[hidden] { display: none; }
|
|
41
|
+
.basis-mark {
|
|
42
|
+
display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--glow-dim); border-radius: 999px;
|
|
43
|
+
font: 600 11px/1.6 var(--sans); color: var(--glow); cursor: pointer; vertical-align: .05em; user-select: none;
|
|
44
|
+
}
|
|
45
|
+
/* Always there, so that nothing moves when it shows: "stated", the default, said quietly, and fully on the hover of its field. */
|
|
46
|
+
.basis-mark[data-basis="stated"] { border-style: dashed; opacity: .55; }
|
|
47
|
+
:is(label, .field, .event-param-label):is(:hover, :focus-within) .basis-mark, .basis-mark:is(:hover, :focus-visible) { opacity: 1; }
|
|
48
|
+
.basis-mark[data-basis="assumed"], .basis-mark[data-basis="derived"] { font-style: italic; }
|
|
49
|
+
.basis-window { width: min(26em, 92vw); padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--ground-raised); color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
|
|
50
|
+
.basis-window h3 { margin: 0 0 12px; font: 600 19px/1.3 var(--serif); }
|
|
51
|
+
.basis-window label { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; font: 600 13px/1.3 var(--sans); color: var(--ink-dim); }
|
|
52
|
+
.basis-window :is(select, textarea) { box-sizing: border-box; width: 100%; font-weight: 400; }
|
|
53
|
+
/* Beside its pill, under it or above it where there is room (anchored, see open); centred where anchors are not known. Fixed, against a
|
|
54
|
+
window's own rule (WindowClose), which makes a popover with a ✕ relative, and so drawn at the top of the page. */
|
|
55
|
+
.basis-window.basis-window:popover-open { position: fixed; inset: auto; margin: 6px 0; max-height: calc(100vh - 24px); overflow: auto;
|
|
56
|
+
position-area: bottom span-right; position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline; }
|
|
57
|
+
@supports not (position-area: bottom) { .basis-window.basis-window:popover-open { inset: 0; margin: auto; height: fit-content; } }
|
|
58
|
+
.basis-window textarea { min-height: 8em; font: 400 14px/1.45 var(--sans, sans-serif); resize: vertical; }
|
|
59
|
+
`;hows=[];rationaleKept=!0;wording;shown;mark;window;static count=0;anchor=`--rr0-basis-${++E.count}`;set anchorKey(t){this.anchor=`--rr0-basis-${t.replace(/[^a-zA-Z0-9_-]/g,"-")}`,this.mark?.style.setProperty("anchor-name",this.anchor)}build(){if(this.mark)return;const t=document.createElement("span");t.className="basis-mark",t.setAttribute("role","button"),t.tabIndex=0,t.style.setProperty("anchor-name",this.anchor);const e=i=>{i.preventDefault(),i.stopPropagation(),this.open()};t.addEventListener("click",e),t.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&e(i)}),this.append(t),this.mark=t,this.say()}connectedCallback(){this.build()}set messages(t){this.wording=t,this.say()}get entry(){return this.shown}set entry(t){this.shown=t&&(t.basis!=="stated"||t.how!==void 0||t.rationale!==void 0)?{...t}:void 0,this.say()}get pill(){return this.build(),this.mark}say(){const t=this.mark,e=this.wording;if(!t||!e)return;const i=this.shown?.basis??"stated";t.dataset.basis=i,this.dataset.basis=i,t.textContent!==e.basis[i]&&(t.textContent=e.basis[i]),t.title=this.shown?.rationale?`${e.title} : ${this.shown.rationale}`:e.title,t.setAttribute("aria-label",`${e.title} : ${e.basis[i]}`)}open(){const t=this.wording;if(!t)return;const e=Object.assign(document.createElement("h3"),{textContent:t.title}),i=document.createElement("select");for(const a of["measured","stated","derived","assumed"])i.append(new Option(t.basis[a],a));i.value=this.shown?.basis??"stated";const n=document.createElement("select");n.append(new Option("—",""));for(const a of this.hows)n.append(new Option(a.label,a.value));n.value=this.shown?.how??"";const s=document.createElement("textarea");s.value=this.shown?.rationale??"";const o=()=>{this.entry={basis:i.value,...n.value?{how:n.value}:{},...s.value.trim()?{rationale:s.value.trim()}:{}},this.dispatchEvent(new CustomEvent("basischange",{detail:{entry:this.shown},bubbles:!0,composed:!0}))};for(const a of[i,n])a.addEventListener("change",o);s.addEventListener("change",o);const r=(a,u)=>{const h=document.createElement("label");return h.append(Object.assign(document.createElement("span"),{textContent:a}),u),h},d=this.windowElement();d.replaceChildren(e,r(t.basisField,i),...this.hows.length>0?[r(t.howField,n)]:[],...this.rationaleKept?[r(t.rationaleField,s)]:[]),x.popover(d,t.title),typeof d.showPopover=="function"&&d.isConnected?d.showPopover():d.hidden=!1}windowElement(){if(this.window)return this.window;const t=document.createElement("div");t.className="basis-window",t.setAttribute("popover",""),t.setAttribute("role","dialog"),t.style.setProperty("position-anchor",this.anchor),t.addEventListener("toggle",i=>{i.newState==="closed"&&(t.remove(),this.window=void 0)});const e=this.getRootNode();return e instanceof ShadowRoot?e.append(t):(e instanceof Document?e.body:this).append(t),this.window=t,t}get openWindow(){return this.window}}function K(){customElements.get(E.TAG)||customElements.define(E.TAG,E)}const G="rr0-input-position",H={positionRelative:"relative",positionAbsolute:"absolute",positionModeHint:"Click to say it the other way: from something else, or as a latitude and a longitude",positionNoPlace:"The recording has no place yet: give the observer a latitude and a longitude first",positionFrom:"from",positionObserver:"the observer",positionEast:"East",positionNorth:"North",positionLatitude:"Latitude",positionLongitude:"Longitude",positionLabel:"Position",positionBasisHint:"Where this position comes from",positionBasisStated:"stated",positionBasisMeasured:"measured",positionBasisDerived:"derived",positionBasisAssumed:"assumed",positionBasisField:"Basis"},U=`${E.CSS}
|
|
60
|
+
rr0-input-position { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em .5em; }
|
|
61
|
+
/* As the date's own switch (see DateInputElement): it reads as part of the label, before the fields. */
|
|
62
|
+
rr0-input-position .position-mode { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
|
|
63
|
+
rr0-input-position .position-mode:hover:not(:disabled) { text-decoration-thickness: 2px; }
|
|
64
|
+
rr0-input-position .position-mode:disabled { cursor: default; text-decoration: none; opacity: .75; }
|
|
65
|
+
rr0-input-position .position-mode:focus-visible { outline: 2px solid #4af; outline-offset: 2px; border-radius: 2px; }
|
|
66
|
+
rr0-input-position .position-axis { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
|
|
67
|
+
/* East and North are two fields, each with its unit: room between the unit of one and the name of the next. */
|
|
68
|
+
rr0-input-position :is(.position-local, .position-geo) { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em 1em; }
|
|
69
|
+
rr0-input-position .position-from { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
|
|
70
|
+
rr0-input-position .position-from select { width: auto; max-width: 14em; }
|
|
71
|
+
rr0-input-position input[type="number"] { width: 7em; }
|
|
72
|
+
rr0-input-position .position-geo input[type="number"] { width: 9.5em; }
|
|
73
|
+
/* What it stands on (see BasisInputElement): before the switch, as a date's. */
|
|
74
|
+
rr0-input-position .position-basis { order: -2; }
|
|
75
|
+
rr0-input-position .position-mode { order: -1; }
|
|
76
|
+
rr0-input-position [hidden] { display: none !important; }
|
|
77
|
+
`;class v extends HTMLElement{modeButton;fromRow;fromSelect;localRow;geoRow;eastField;northField;latField;lngField;basisSelect;eastLabel;northLabel;latLabel;lngLabel;wording=H;shownFrame={references:[]};shownValue;shownBasis;relativeShown=!0;referenceId;build(){if(this.modeButton)return;const t=this.getAttribute("name")??"position",e=this.ownerDocument,i=e.createElement("style");i.textContent=U;const n=e.createElement("button");n.type="button",n.className="position-mode",n.addEventListener("click",()=>this.setRelative(!this.relativeShown));const s=e.createElement("span");s.className="position-from";const o=e.createElement("span");o.className="position-from-text";const r=e.createElement("select");r.id=`${t}-from`,r.addEventListener("input",()=>this.pickReference(r.value)),s.append(o,r);const d=this.getAttribute("step")??"0.1",a=(w,k,S,R)=>{const y=e.createElement("input");return y.type="number",y.id=w,y.min=String(k),y.max=String(S),y.step=R,y.autocomplete="off",y},u=(w,k)=>{const S=e.createElement("label");S.className="position-axis";const R=e.createElement("span");return S.append(R,w,k),{row:S,label:R}},h=Number(this.getAttribute("range")??3e4),c=a(this.getAttribute("east-id")??`${t}-east`,-h,h,d),b=a(this.getAttribute("north-id")??`${t}-north`,-h,h,d),O=a(this.getAttribute("lat-id")??`${t}-lat`,-90,90,"0.000001"),N=a(this.getAttribute("lng-id")??`${t}-lng`,-180,180,"0.000001"),A=e.createElement("span");A.className="position-local";const P=u(c,"m"),T=u(b,"m");A.append(P.row,T.row);const B=e.createElement("span");B.className="position-geo";const $=u(O,"°"),F=u(N,"°");B.append($.row,F.row);for(const w of[c,b])w.addEventListener("input",()=>this.typedLocal());for(const w of[O,N])w.addEventListener("input",()=>this.typedGeo());K();const g=e.createElement(E.TAG);g.id=`${t}-basis`,g.className="position-basis",g.rationaleKept=!1,g.anchorKey=`${t}-basis`,g.addEventListener("basischange",w=>{w.stopPropagation();const k=w.detail.entry;this.shownBasis=k?.basis==="stated"?void 0:k?.basis,this.dispatchEvent(new CustomEvent("basischange",{detail:{basis:this.shownBasis},bubbles:!0,composed:!0}))}),this.append(i,n,s,A,B,g),this.modeButton=n,this.fromRow=s,this.fromSelect=r,this.localRow=A,this.geoRow=B,this.eastField=c,this.northField=b,this.latField=O,this.lngField=N,this.basisSelect=g,this.eastLabel=P.label,this.northLabel=T.label,this.latLabel=$.label,this.lngLabel=F.label,this.relativeShown=!this.isGeo,this.word(),this.show()}connectedCallback(){this.build()}get isGeo(){return this.getAttribute("native")==="geo"}get eastInput(){return this.build(),this.eastField}get northInput(){return this.build(),this.northField}get latInput(){return this.build(),this.latField}get lngInput(){return this.build(),this.lngField}get frame(){return this.shownFrame}set frame(t){this.shownFrame=t,this.build(),this.pullDegrees(),this.show()}get value(){return this.shownValue}set value(t){if(this.shownValue=t,this.build(),this.isGeo){const e=t;this.latField.value=e?String(p.degrees(e.lat)):"",this.lngField.value=e?String(p.degrees(e.lng)):""}this.show()}set said(t){this.build(),this.pullDegrees(),p.isRelative(t)?(this.relativeShown=!0,this.referenceId=t.relativeTo):p.isAbsolute(t)?this.relativeShown=!1:(this.relativeShown=!this.isGeo,this.referenceId=void 0),this.show()}get said(){const t=this.localValue();if(t)return p.restated(this.relativeShown?p.relative(0,0,this.referenceId):{lat:0,lng:0},t,this.shownFrame)}get relative(){return this.relativeShown}get basis(){return this.shownBasis}set basis(t){this.shownBasis=t==="stated"?void 0:t,this.build(),this.markBasis()}set basisShown(t){this.build(),this.basisSelect.hidden=!t}set messages(t){this.wording=t,this.modeButton&&(this.word(),this.show())}setRelative(t){!this.shownFrame.origin||this.references().length===0||(this.pullDegrees(),this.relativeShown=t,this.show())}pullDegrees(){if(!this.isGeo||!this.latField)return;const t=v.typed(this.latField),e=v.typed(this.lngField);this.shownValue=t!==void 0&&e!==void 0?{lat:t,lng:e}:this.latField.value===""&&this.lngField.value===""?void 0:this.shownValue}word(){const t=this.wording;this.eastLabel.textContent=t.positionEast,this.northLabel.textContent=t.positionNorth,this.latLabel.textContent=t.positionLatitude,this.lngLabel.textContent=t.positionLongitude,this.fromRow.querySelector(".position-from-text").textContent=t.positionFrom,this.basisSelect.messages={title:t.positionBasisHint,basisField:t.positionBasisField,howField:"",rationaleField:"",basis:{stated:t.positionBasisStated,measured:t.positionBasisMeasured,derived:t.positionBasisDerived,assumed:t.positionBasisAssumed}},this.markBasis()}markBasis(){this.basisSelect&&(this.basisSelect.entry=this.shownBasis?{basis:this.shownBasis}:void 0)}references(){const t=this.shownFrame.references;return t.length>0||this.isGeo?t:[{label:this.wording.positionObserver,eastM:0,northM:0}]}reference(){const t=this.references();return t.find(e=>e.id===this.referenceId)??t[0]??{label:"",eastM:0,northM:0}}localValue(){const t=this.shownValue;if(!t)return;if(!this.isGeo)return t;const e=this.shownFrame.origin;return e?p.toLocal(t,e):void 0}geoValue(){const t=this.shownValue;if(!t)return;if(this.isGeo)return t;const e=this.shownFrame.origin;return e?p.toGeo(t,e):void 0}show(){if(!this.modeButton)return;const t=this.wording,e=this.shownFrame.origin!==void 0&&this.references().length>0;e||(this.relativeShown=!this.isGeo);const i=this.modeButton;i.textContent=this.relativeShown?t.positionRelative:t.positionAbsolute,i.disabled=!e,i.title=e?t.positionModeHint:t.positionNoPlace;const n=this.references(),s=this.fromSelect,o=n.map(c=>c.id??"");([...s.options].map(c=>c.value).join(`
|
|
78
|
+
`)!==o.join(`
|
|
79
|
+
`)||[...s.options].map(c=>c.text).join(`
|
|
80
|
+
`)!==n.map(c=>c.label).join(`
|
|
81
|
+
`))&&s.replaceChildren(...n.map(c=>new Option(c.label,c.id??""))),this.referenceId!==void 0&&!n.some(c=>c.id===this.referenceId)&&(this.referenceId=void 0),s.value=this.referenceId??o[0]??"",this.fromRow.hidden=!this.relativeShown,this.localRow.hidden=!this.relativeShown,this.geoRow.hidden=this.relativeShown;const r=this.getRootNode().activeElement,d=(c,b)=>{c!==r&&(c.value=b===void 0?"":String(b))},a=this.localValue(),u=this.reference();if(d(this.eastField,a?p.metres(a.eastM-u.eastM):void 0),d(this.northField,a?p.metres(a.northM-u.northM):void 0),this.isGeo&&!this.relativeShown)return;const h=this.geoValue();d(this.latField,h?p.degrees(h.lat):void 0),d(this.lngField,h?p.degrees(h.lng):void 0)}pickReference(t){this.pullDegrees(),this.referenceId=t===""?void 0:t,this.show();const e=this.said;e&&this.shownValue&&this.tell(this.shownValue,e)}static typed(t){const e=t.value.trim(),i=e===""?NaN:Number(e);return Number.isFinite(i)?i:void 0}typedLocal(){const t=v.typed(this.eastField),e=v.typed(this.northField);if(t===void 0||e===void 0)return;const i=this.reference(),n={eastM:i.eastM+t,northM:i.northM+e};let s=n;if(this.isGeo){const o=this.shownFrame.origin;if(!o)return;s=p.toGeo(n,o)}this.shownValue=s,this.tell(s,p.relative(t,e,this.referenceId))}typedGeo(){const t=v.typed(this.latField),e=v.typed(this.lngField);if(t===void 0||e===void 0)return;let i={lat:t,lng:e};if(!this.isGeo){const n=this.shownFrame.origin;if(!n)return;i=p.toLocal({lat:t,lng:e},n)}this.shownValue=i,this.tell(i,{lat:t,lng:e})}tell(t,e){this.show();const i=this.isGeo?p.isAbsolute(e):p.isRelative(e)&&e.relativeTo===void 0;this.dispatchEvent(new CustomEvent("positionchange",{detail:{value:t,said:i?void 0:e},bubbles:!0,composed:!0}))}}function z(){customElements.get(G)||customElements.define(G,v)}class C{constructor(t,e,i=()=>{},n){this.read=t,this.edit=e,this.context=i,this.place=n}static inPlace(t){return new C(()=>t,e=>e(t))}}class M{constructor(t,e,i="",n,s){this.container=t,this.idPrefix=i,this.values=n,this.enhance=s,this.said=new D([e,"en"])}set;target;changed=()=>{};said;setLanguage(t){this.said=new D([t,"en"]),this.set&&this.target&&this.show(this.set,this.target,this.changed)}show(t,e,i){this.set=t,this.target=e instanceof C?e:C.inPlace(e),this.changed=i,this.container.replaceChildren();const n=new Map;for(const s of t.parameters){const o=this.read(s.group)??"";let r=n.get(o);if(!r){if(r=document.createElement("fieldset"),r.className="parameter-group",o!==""){const d=document.createElement("legend");d.textContent=o,r.append(d)}else r.classList.add("parameter-group-untitled"),r.style.border="0",r.style.padding="0",r.style.marginInline="0";n.set(o,r),this.container.append(r)}r.append(this.fieldOf(s))}m.fit(this.container),this.sync()}clear(){this.set=void 0,this.target=void 0,this.container.replaceChildren()}field(t){return this.container.querySelector(`[data-key="${t}"]`)??void 0}sync(t=!1){const e=this.target?.read();if(!this.set||!e)return;const i=this.target.context(),n=t?null:this.container.getRootNode().activeElement;for(const s of this.set.parameters){const o=s.type==="position"?this.positionOf(s):this.field(s.key);if(!o)continue;const r=o.closest("label, .parameter-row")??o;r.hidden=s.visibleWhen!==void 0&&!s.visibleWhen(e,i);const d=f.read(e,s.key);if(s.type==="number"){const a=o;a!==n&&(a.value=typeof d=="number"?M.shown(d,s):"");const u=M.boundsOf(s,e,i);a.min=String(u.min),a.max=String(u.max);const h=s.effective?.(e,i);a.placeholder=h!==void 0?M.shown(h,s):this.read(s.placeholder)??"",a.classList.toggle("parameter-derived",d===void 0)}else if(s.type==="choice"){const a=o,u=s.optionsOf?.(e,i)??s.choices;if([...a.options].filter(h=>h.value!=="").map(h=>h.value).join(`
|
|
82
|
+
`)!==u.map(h=>h.value).join(`
|
|
83
|
+
`)&&a.replaceChildren(...s.required?[]:[new Option("—","")],...u.map(h=>new Option(this.read(h.label)??h.value,h.value))),a!==n&&(a.value=typeof d=="string"&&u.some(h=>h.value===d)?d:s.required?a.options[0]?.value??"":""),!s.required){const h=s.effective?.(e,i),c=u.find(b=>b.value===h);a.options[0].textContent=c?this.read(c.label)??c.value:this.read(s.empty)??"—"}}else if(s.type==="boolean"){const a=o;a.checked=d===!0}else if(s.type==="colour"){const a=o;a!==n&&(a.value=M.swatchOf(d,s.fallback??"#808080"))}else if(s.type==="set")this.syncSet(s,o,e,i);else if(s.type==="position")this.syncPosition(s,o,e);else if(s.type==="said"){const a=o;a!==n&&(a.value=this.values?.said().read(f.read(e,s.key))??""),this.markMissing(s,a)}else{const a=o;a!==n&&(a.value=typeof d=="string"?d:"",a.classList.remove("invalid"),a.removeAttribute("aria-invalid"))}}for(const s of this.container.querySelectorAll("fieldset.parameter-group"))s.hidden=[...s.querySelectorAll("label, .parameter-row")].filter(o=>o.parentElement===s).every(o=>o.hidden)}fieldOf(t){const e=document.createElement("label"),i=this.read(t.hint);i&&(e.title=i);const n=document.createElement("span");n.textContent=this.read(t.label)??t.key,e.append(n," ");let s;if(t.type==="choice"){const o=document.createElement("select");this.identify(o,t),t.required||o.append(new Option("—","")),o.append(...t.choices.map(r=>new Option(this.read(r.label)??r.value,r.value))),o.addEventListener("input",()=>this.write(t,o.value===""?void 0:o.value)),e.append(o),this.enhance?.(t,o)}else{if(t.type==="position")return this.setRow(t,this.positionFieldOf(t));if(t.type==="set"){const o=document.createElement("div");return this.identify(o,t),o.className="parameter-set",o.addEventListener("input",()=>{const r=[...o.querySelectorAll("input:checked")].map(d=>d.value);this.write(t,r.length>0?r:void 0)}),this.setRow(t,o)}else if(t.type==="boolean"){const o=document.createElement("input");o.type="checkbox",this.identify(o,t),o.addEventListener("input",()=>this.write(t,o.checked?!0:t.required?!1:void 0)),e.prepend(o),e.append(" ")}else{const o=document.createElement("input");this.identify(o,t),o.autocomplete="off",t.type==="number"?(o.type="number",o.min=String(t.min),o.max=String(t.max),o.step=String(t.step),s=t.unit,o.addEventListener("input",()=>{const r=o.value.trim();if(r==="")return t.required?void 0:this.write(t,void 0);const d=Number(r);Number.isFinite(d)&&this.write(t,d)})):t.type==="colour"?(o.type="color",o.addEventListener("input",()=>this.write(t,o.value))):t.type==="said"?(o.type="text",o.placeholder=this.read(t.placeholder)??"",o.addEventListener("input",()=>{const r=this.target?.read(),d=this.values;!r||!d||(this.write(t,d.said().write(f.read(r,t.key),o.value,d.writingLanguage())),this.markMissing(t,o))})):(o.type="text",o.placeholder=this.read(t.placeholder)??"",o.addEventListener("input",()=>{const r=t.required||t.validate?o.value.trim():o.value,d=this.target?.read(),a=d!==void 0&&(t.required===!0&&r===""||r!==""&&t.validate?.(r,d,this.target.context())===!1);o.classList.toggle("invalid",a),a?o.setAttribute("aria-invalid","true"):o.removeAttribute("aria-invalid"),!a&&this.write(t,r===""?void 0:r)}),o.addEventListener("change",()=>{if(!o.classList.contains("invalid"))return;o.classList.remove("invalid"),o.removeAttribute("aria-invalid");const r=this.target?.read(),d=r===void 0?void 0:f.read(r,t.key);o.value=typeof d=="string"?d:""})),e.append(o)}}return s&&e.append(` ${s}`),e}markMissing(t,e){t.type!=="said"||!t.required||(e.classList.toggle("invalid",e.value===""),e.setAttribute("aria-invalid",String(e.value==="")))}positionFieldOf(t){z();const e=document.createElement("rr0-input-position"),i=`${this.idPrefix}${t.key}`;e.setAttribute("name",i),t.native==="geo"&&e.setAttribute("native","geo"),t.step!==void 0&&e.setAttribute("step",String(t.step)),t.rangeM!==void 0&&e.setAttribute("range",String(t.rangeM));const n=t.native==="geo"?["lat-id","lng-id"]:["east-id","north-id"];this.idPrefix!==""&&(e.setAttribute(n[0],`${this.idPrefix}${t.key}`),e.setAttribute(n[1],`${this.idPrefix}${t.secondKey}`)),e.dataset.position=t.key,e.build();const[s,o]=t.native==="geo"?[e.latInput,e.lngInput]:[e.eastInput,e.northInput];s.dataset.key=t.key,o.dataset.key=t.secondKey;const r=this.target?.place;return r&&(e.messages=r.messages()),e.basisShown=r?.basis!==void 0,e.addEventListener("positionchange",d=>{const{value:a,said:u}=d.detail;this.writePosition(t,a,u)}),e.addEventListener("basischange",d=>this.target?.place?.basis?.write(t,d.detail.basis)),e}positionOf(t){return this.container.querySelector(`rr0-input-position[data-position="${t.key}"]`)??void 0}syncPosition(t,e,i){const n=this.target?.place;n&&(e.messages=n.messages(),e.frame=n.frame());const s=f.read(i,t.key),o=f.read(i,t.secondKey),r=typeof s=="number"&&typeof o=="number";e.value=r?t.native==="geo"?{lat:s,lng:o}:{eastM:s,northM:o}:void 0;const d=f.read(i,t.saidKey),a=JSON.stringify(d??null);e.dataset.said!==a&&(e.dataset.said=a,e.said=d),e.basis=n?.basis?.read(t)}writePosition(t,e,i){const n=this.target;if(!n)return;const[s,o]="lat"in e?[e.lat,e.lng]:[e.eastM,e.northM],r=t.native==="geo"?d=>Math.round(d*1e7)/1e7:d=>Math.round(d*1e3)/1e3;this.positionOf(t)?.setAttribute("data-said",JSON.stringify(i??null)),n.edit(d=>{f.write(d,t.key,r(s)),f.write(d,t.secondKey,r(o)),f.write(d,t.saidKey,i)},t),this.changed(),this.sync()}setRow(t,e){const i=document.createElement("div");i.className="parameter-row";const n=this.read(t.hint);n&&(i.title=n);const s=document.createElement("span");return s.textContent=this.read(t.label)??t.key,i.append(s," ",e),i}syncSet(t,e,i,n){if(t.type!=="set")return;const s=f.read(i,t.key),o=new Set(Array.isArray(s)?s:[]),r=t.options(i,n);if(r.length===0){e.textContent=this.read(t.empty)??"";return}[...e.querySelectorAll("input")].map(a=>a.value).join(`
|
|
84
|
+
`)===r.map(a=>a.value).join(`
|
|
85
|
+
`)||e.replaceChildren(...r.map(a=>{const u=document.createElement("label"),h=document.createElement("input");return h.type="checkbox",h.value=a.value,u.append(h," ",a.label),u}));for(const a of e.querySelectorAll("input"))a.checked=o.has(a.value)}identify(t,e){t.dataset.key=e.key,this.idPrefix!==""&&(t.id=`${this.idPrefix}${e.key}`)}write(t,e){const i=this.target;if(!i)return;let n=e;if(t.type==="number"&&typeof e=="number"){const s=i.read();if(s){const o=M.boundsOf(t,s,i.context());n=Math.max(o.min,Math.min(o.max,e))/(t.scale??1)}}i.edit(s=>f.write(s,t.key,n),t),this.changed(),this.sync()}read(t){return this.said.read(t)}static boundsOf(t,e,i){const n=t.bounds?.(e,i);return{min:n?.min??t.min,max:n?.max??t.max}}static swatchOf(t,e){if(typeof t!="string")return e;const i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t);return i?`#${i[1]}${i[1]}${i[2]}${i[2]}${i[3]}${i[3]}`.toLowerCase():/^#[0-9a-f]{6}$/i.test(t)?t.toLowerCase():e}static shown(t,e){const i=Math.max(2,Math.min(6,(String(e.step).split(".")[1]??"").length));return String(Number((t*(e.scale??1)).toFixed(i)))}static choicesOf(t){return t.choices.map(e=>e.value)}}export{L as E,l as I,M as P,Y as S,C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={"color-vision":"Colour vision","color-vision.hint":"How colours look to someone whose cones differ, from Machado et al. 2009. Only recolours: it does not change brightness or what the eye can resolve.","color-vision.type":"Type","color-vision.type.normal":"Typical","color-vision.type.protan":"Protan (red-weak or red-blind)","color-vision.type.deutan":"Deutan (green-weak or green-blind)","color-vision.type.tritan":"Tritan (blue-weak or blue-blind)","color-vision.severity":"Severity",intoxication:"Alcohol","intoxication.hint":"Lowers contrast sensitivity by about 0.9 dB at 0.08 % blood alcohol (one controlled study, results vary), drawn up to 0.1 % at most: a higher level is recorded but shown as 0.1 %, since nothing was measured past it. Double vision, narrowed field and other drugs are not modelled: no source quantifies them.","intoxication.bloodAlcohol":"Blood alcohol",fatigue:"Fatigue","fatigue.hint":"Stated only: sleep loss has not been shown to change what a healthy eye receives, so the picture is unchanged. It bears on attention and memory, not on vision.","fatigue.hoursAwake":"Awake for"};export{o as perceptionMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={"color-vision":"Visión del color","color-vision.hint":"Cómo se ven los colores con conos distintos (Machado et al. 2009). Solo recolorea: brillo y resolución no cambian.","color-vision.type":"Tipo","color-vision.type.normal":"Típica","color-vision.type.protan":"Protán (rojo débil o ciego)","color-vision.type.deutan":"Deután (verde débil o ciego)","color-vision.type.tritan":"Tritán (azul débil o ciego)","color-vision.severity":"Gravedad",intoxication:"Alcohol","intoxication.hint":"Reduce la sensibilidad al contraste unos 0,9 dB con 0,08 % de alcohol en sangre (un estudio controlado; los resultados varían), mostrado hasta 0,1 % como máximo: un nivel mayor se registra pero se muestra como 0,1 %, ya que nada se midió por encima. La visión doble, el campo reducido y otras drogas no se modelan: ninguna fuente los cuantifica.","intoxication.bloodAlcohol":"Alcoholemia",fatigue:"Fatiga","fatigue.hint":"Solo declarada: no se ha demostrado que la falta de sueño cambie lo que recibe un ojo sano, así que la imagen no cambia. Afecta a la atención y la memoria, no a la vista.","fatigue.hoursAwake":"Despierto desde hace"};export{o as perceptionMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={"color-vision":"Vision des couleurs","color-vision.hint":"Comment les couleurs apparaissent à qui a des cônes différents (Machado et al. 2009). Ne fait que recolorer : luminosité et résolution inchangées.","color-vision.type":"Type","color-vision.type.normal":"Typique","color-vision.type.protan":"Protan (rouge faible ou aveugle)","color-vision.type.deutan":"Deutan (vert faible ou aveugle)","color-vision.type.tritan":"Tritan (bleu faible ou aveugle)","color-vision.severity":"Sévérité",intoxication:"Alcool","intoxication.hint":"Abaisse la sensibilité au contraste d'environ 0,9 dB à 0,08 % d'alcool dans le sang (une étude contrôlée ; les résultats varient), montré jusqu'à 0,1 % au plus : un taux supérieur est consigné mais montré comme 0,1 %, rien n'ayant été mesuré au-delà. Vision double, champ rétréci et autres drogues ne sont pas modélisés : aucune source ne les chiffre.","intoxication.bloodAlcohol":"Alcoolémie",fatigue:"Fatigue","fatigue.hint":"Énoncée seulement : le manque de sommeil n'a pas été montré comme changeant ce que reçoit un œil sain, l'image est donc inchangée. Il touche l'attention et la mémoire, pas la vue.","fatigue.hoursAwake":"Éveillé depuis"};export{e as perceptionMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={"color-vision":"Visione dei colori","color-vision.hint":"Come appaiono i colori a chi ha coni diversi (Machado et al. 2009). Ricolora soltanto: luminosità e risoluzione restano uguali.","color-vision.type":"Tipo","color-vision.type.normal":"Tipica","color-vision.type.protan":"Protan (rosso debole o cieco)","color-vision.type.deutan":"Deutan (verde debole o cieco)","color-vision.type.tritan":"Tritan (blu debole o cieco)","color-vision.severity":"Gravità",intoxication:"Alcol","intoxication.hint":"Riduce la sensibilità al contrasto di circa 0,9 dB a 0,08 % di alcol nel sangue (uno studio controllato; i risultati variano), mostrato fino a 0,1 % al massimo: un livello più alto viene registrato ma mostrato come 0,1 %, poiché oltre non è stato misurato nulla. Visione doppia, campo ristretto e altre droghe non sono modellati: nessuna fonte li quantifica.","intoxication.bloodAlcohol":"Alcolemia",fatigue:"Stanchezza","fatigue.hint":"Solo dichiarata: non è dimostrato che la mancanza di sonno cambi ciò che riceve un occhio sano, quindi l'immagine non cambia. Riguarda attenzione e memoria, non la vista.","fatigue.hoursAwake":"Sveglio da"};export{o as perceptionMessages_it};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as u}from"./rr0-sighting.mjs";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),e=this.oscillation(n),a=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=a.shown&&r.shown?5:a.shown&&c.shown?4:a.shown||t.value==="erratic"||s.shown||e.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,i=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",e),{...this.criterion("poher-landing",a),unsupported:a.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:i}}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 e=this.seen(n,s).filter(i=>i.aim!==void 0).map(i=>i.aim);if(e.length<2)continue;const a=[o.unit(e[0])];for(const i of e.slice(1)){const l=o.unit(i);o.angleDeg(a[a.length-1],l)>=o.STEP_DEG&&a.push(l)}const c=a.length-1;let r=0;for(let i=1;i<a.length-1;i++){const l=o.cross(a[i-1],a[i]),d=o.cross(a[i],a[i+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(e=>e.id)),s=(n.events??[]).findIndex(e=>o.OSCILLATIONS.includes(e.eventType)&&(u.isPhenomenon(n,e)||t.has(e.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=e=>!e.onGround&&((e.altitudeAboveGroundM??0)>0||(e.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(e=>Array.isArray(e.track)&&e.track.some(a=>a.onGround)&&e.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(e=>e.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:e})=>({t:s,aim:e.aim,visible:e.transparency<1})).sort((s,e)=>s.t-e.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 e=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,e)))*180/Math.PI}}export{o as PoherAssessor};
|