@rr0/ufoathome 0.192.0 → 0.193.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/rr0-interview.mjs +3 -3
- package/dist-embed-scene/rr0-scene.mjs +306 -306
- package/dist-embed-sighting/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-sighting/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-sighting/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-sighting/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-sighting/{CaseReportExport-dMWWJNIh.js → CaseReportExport-CYeoYzU0.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +345 -330
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BrZzIuec.js → AdsbLolArchiveProvider--KjPxNqw.js} +1 -1
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CXvIvYxV.js → BallesterGuaspAssessor-BTmq0r-G.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-5-OlhNfL.js → BeamEditor-CI8-9VOc.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-BGdR-Xez.js → BeamSystem-odg570aR.js} +1 -1
- package/dist-embed-sighting-editor/BirdEditor-DV3ndYff.js +16 -0
- package/dist-embed-sighting-editor/{BirdFlock-DtshFXGT.js → BirdFlock-O7K_g8y7.js} +1 -1
- package/dist-embed-sighting-editor/{BodyEditor-Dn5HrH2t.js → BodyEditor-COLTBHzX.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_en-DrJY0M8h.js → CaseEditorMessages_en-CoFukfwf.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_es-j8EeOBq6.js → CaseEditorMessages_es-DZptbzB7.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_fr-BkwEF9mu.js → CaseEditorMessages_fr-DXl2GNmR.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_it-d3Z0PBEw.js → CaseEditorMessages_it-ss10VmRM.js} +1 -1
- package/dist-embed-sighting-editor/CaseElement-Bo31UxpS.js +100 -0
- package/dist-embed-sighting-editor/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-sighting-editor/{CaseReportExport-ByPXoIiq.js → CaseReportExport-DpsJ5_r9.js} +2 -2
- package/dist-embed-sighting-editor/{ContrailSystem-BTVyJpmn.js → ContrailSystem-BddkU7fj.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-DiQAXMzD.js → ControlPasses-CNlCUT1L.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-CJQzNdyr.js → CoverageAssessor-DjY8iKp5.js} +1 -1
- package/dist-embed-sighting-editor/DroneEditor-DRsM2ash.js +16 -0
- package/dist-embed-sighting-editor/{DroneFlight-tXCk1Tg1.js → DroneFlight-Fr4Vgso3.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-DUVcPAF2.js → Flightradar24Provider-BxeduRam.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-C6nlGTTi.js +1 -0
- package/dist-embed-sighting-editor/{GenerativeKitMessages-I8xH2ec9.js → GenerativeKitMessages-B8L7U7gD.js} +1 -1
- package/dist-embed-sighting-editor/{GeoExportTexts-DAllttgw.js → GeoExportTexts-DrGdI2OF.js} +1 -1
- package/dist-embed-sighting-editor/{GeoJsonExport-_yjIEd4F.js → GeoJsonExport-BZ-0v8fM.js} +1 -1
- package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +1 -0
- package/dist-embed-sighting-editor/{HeadlightSystem-DRq40K7R.js → HeadlightSystem-DI5wHYZu.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-PxE7JR1h.js → HynekAssessor-DlXalbph.js} +1 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-Bbkze5KE.js +240 -0
- package/dist-embed-sighting-editor/InterviewElement-B3tm7y49.js +31 -0
- package/dist-embed-sighting-editor/{KmlExport-dpml2tIJ.js → KmlExport-Bh4eTycx.js} +1 -1
- package/dist-embed-sighting-editor/LanternEditor-M887ltwe.js +24 -0
- package/dist-embed-sighting-editor/{LaserBeam-CadJcSMd.js → LaserBeam-Drpkr84G.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-BjAk4XZR.js +22 -0
- package/dist-embed-sighting-editor/{LaunchPlume-C7My5ccR.js → LaunchPlume-CrzPcqw7.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-45Z9GUBF.js → LaunchSimulation-C1ZWpKZT.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-CzGHu4XS.js → ModelSource-Bko_3OJt.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-CNO_j-KM.js → ModelThumbnails-DSshyLu2.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-yfIxofpG.js → ModelViewer-_yhAYvNy.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-C9DED8Lk.js → ModuleConformance-B6iFVb8X.js} +2 -2
- package/dist-embed-sighting-editor/{ModuleSession-Cxe0BJue.js → ModuleSession-jKFl1FMo.js} +3 -3
- package/dist-embed-sighting-editor/ModuleThree-Fvr5G-Yh.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-DgbOYqaS.js → ModulesPanelElement-VPRCdjmv.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-EbQIYGTt.js → NearestApproach-O8k2n_qL.js} +1 -1
- package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BisQ5ybV.js → PoherAssessor-sTJEnlmb.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-CIAIBvLT.js → RailwaySystem-BZqNSSFA.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-DfDGpL5C.js +28 -0
- package/dist-embed-sighting-editor/{ReentrySimulation-Crd-CW_o.js → ReentrySimulation-BuUK0niI.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-DUIJceGg.js → ReferenceSystem-DvcQp167.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-D9-6Cy9S.js → RoadMarkings-BGK7ToZP.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-sighting-editor/SightingElement-FJvhqoCj.js +693 -0
- package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-sighting-editor/{SkyLantern-De_MXfQz.js → SkyLantern-B7UlFgmB.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Ba5H90GB.js → TraceSystem-vZF4B5EC.js} +2 -2
- package/dist-embed-sighting-editor/{UfoMessages_en-FAvzKxmR.js → UfoMessages_en-JeMK-39o.js} +1 -1
- package/dist-embed-sighting-editor/VideoButton-Kxg7pF1Y.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-Dpdw46hF.js → WaterSystem-DSWmZbiL.js} +2 -2
- package/dist-embed-sighting-editor/{interviewImport-CgWyTdKb.js → interviewImport-BlSMFEw_.js} +1 -1
- package/dist-embed-sighting-editor/interviewJson-CsMHIcZ-.js +8 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +440 -393
- package/dist-embed-sighting-editor/{surroundingsSources-YIawBCws.js → surroundingsSources-z7680fTA.js} +1 -1
- package/dist-embed-sighting-editor/{trafficRuntime-DwnTE9-7.js → trafficRuntime-C5BXL-G6.js} +1 -1
- package/dist-embed-ufoathome/Account-C4jhsVtN.js +1 -0
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-886uuL_s.js +1 -0
- package/dist-embed-ufoathome/AssemblyAiTranscriptionProvider-o2kkPD5o.js +1 -0
- package/dist-embed-ufoathome/BallesterGuaspAssessor-BSKybYn0.js +1 -0
- package/dist-embed-ufoathome/BeamEditor-U2XQEG_6.js +30 -0
- package/dist-embed-ufoathome/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-ufoathome/BeamSystem-eYdKPRQZ.js +1 -0
- package/dist-embed-ufoathome/BirdEditor-6vr7bLHy.js +16 -0
- package/dist-embed-ufoathome/BirdEditorMessages_en-CN1OJud9.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_es-DDEnjRrz.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_fr-hL72V8wm.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_it-BmLyiPYp.js +1 -0
- package/dist-embed-ufoathome/BirdFlock-ByBkJV35.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_en-c_-L7frF.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_es-8Zo2t0o4.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_fr-C1TuqqEj.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_it-DQZcrCkf.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_en-C6FkYUww.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_es-T8JyeNlI.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_fr-BiTR-olu.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_it-oQY4DX6B.js +1 -0
- package/dist-embed-ufoathome/BodyEditor-CRlKW7yl.js +28 -0
- package/dist-embed-ufoathome/BodyEditorMessages_en-CckxSS1L.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_es-B8GlFFBo.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_fr-638ypdqf.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_it-SKpMkHFI.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_en-CKiFdpaz.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_es-DT9XO1Hc.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_fr-B5jLsE0g.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_it-iyJGx4Ta.js +1 -0
- package/dist-embed-ufoathome/BrowserWhisperProvider-Dn44ZE45.js +1 -0
- package/dist-embed-ufoathome/CaseEditorElement-Ds4yB5UC.js +3033 -0
- package/dist-embed-ufoathome/CaseEditorMessages_en-CoFukfwf.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_es-DZptbzB7.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_fr-DXl2GNmR.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_it-ss10VmRM.js +1 -0
- package/dist-embed-ufoathome/CaseElement-fKdvuMAp.js +100 -0
- package/dist-embed-ufoathome/CaseExportMessages_en-jHlu58Y7.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_es-dCQQFgjq.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_fr-sDfEgjWg.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_it-BJaglZtP.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-ufoathome/CaseReportExport-Dy1xmhTI.js +66 -0
- package/dist-embed-ufoathome/CaseReportTexts_en-DlN7p1pC.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_es-CncAEaey.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_fr-B5nP6RlP.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_it-Dc-oPmXB.js +1 -0
- package/dist-embed-ufoathome/CaseTimeline-Dq1H2Ucy.js +142 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_en-CBLJZ7b6.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_es-BDV0GimU.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_fr-DiKzTF9T.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_it-DwxjRDVG.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_en-SmcRKW1O.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_es-DFCuS9Qg.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_fr-SvL-CR04.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_it-BvfiHWV9.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_en-NIa0gfgA.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_es-DXu4T30p.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_fr-Bv-jc2dq.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_it-C3RrkRwI.js +1 -0
- package/dist-embed-ufoathome/ContrailGrowth-DwHS8If9.js +1 -0
- package/dist-embed-ufoathome/ContrailSystem-pwF1XPex.js +1 -0
- package/dist-embed-ufoathome/ControlPasses-ApTdQK9r.js +29 -0
- package/dist-embed-ufoathome/CoverageAssessor-DFMo5umu.js +1 -0
- package/dist-embed-ufoathome/Decor-Dn-cvniW.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_en-idbdHsFG.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_es-CIkkLQc2.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_fr-D9GeuW_Y.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_it-v7TBrnsr.js +1 -0
- package/dist-embed-ufoathome/DecoyFlare-DUt1_LcW.js +1 -0
- package/dist-embed-ufoathome/DroneEditor-C3SH8yYq.js +16 -0
- package/dist-embed-ufoathome/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-ufoathome/DroneFlight-CGNIh9XS.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-ufoathome/FilmChrome-DYiyzoB_.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_en-j3CY_TxX.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_es-CZgrFIOO.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_fr-B2MezoN2.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_it-CmZmb3RP.js +1 -0
- package/dist-embed-ufoathome/Flightradar24Provider-BT0RC4qJ.js +1 -0
- package/dist-embed-ufoathome/GLTFLoader-DpXgTKpb.js +1 -0
- package/dist-embed-ufoathome/GenerativeKit-BmhvjjzB.js +9 -0
- package/dist-embed-ufoathome/GenerativeKitMessages-BwG7cWZX.js +1 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_en-BY4B6yas.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_es-_iYkoRhK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_fr-BY5yUJwK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_it-DAgB31P1.js +34 -0
- package/dist-embed-ufoathome/GeoExportTexts-3a51cuxQ.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_en-Dq0fSJQp.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_es-CoVHdOo0.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_fr-DVAMpZIR.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_it-Bh1uJBQp.js +1 -0
- package/dist-embed-ufoathome/GeoJsonExport-bpBmwqb7.js +2 -0
- package/dist-embed-ufoathome/GeoJsonImport-CIftC0ws.js +1 -0
- package/dist-embed-ufoathome/GeographicFigures-B0Bqeh10.js +1 -0
- package/dist-embed-ufoathome/GhostSearchView-Dlhj3xWa.js +1 -0
- package/dist-embed-ufoathome/HeadlightSystem-CMT7XiIH.js +34 -0
- package/dist-embed-ufoathome/HynekAssessor-qlHGyZnD.js +1 -0
- package/dist-embed-ufoathome/InterviewEditorElement-B33-sGHI.js +240 -0
- package/dist-embed-ufoathome/InterviewElement-CiZNhb70.js +31 -0
- package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +1 -0
- package/dist-embed-ufoathome/KmlExport-gFuPcL9A.js +19 -0
- package/dist-embed-ufoathome/KmlImport-BMAfiqoV.js +1 -0
- package/dist-embed-ufoathome/LanternEditor-BaRDgTw-.js +24 -0
- package/dist-embed-ufoathome/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_en-CQXdJ-k6.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_es-BOO6kPjs.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_fr-D7tQa_tQ.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_it-B8J-29Mj.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-ufoathome/LaserBeam-BKuiBaAN.js +1 -0
- package/dist-embed-ufoathome/LaunchEditor-CFsq327k.js +22 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-ufoathome/LaunchPlume-p7V7Yg6y.js +1 -0
- package/dist-embed-ufoathome/LaunchSimulation-3vTsM_A7.js +1 -0
- package/dist-embed-ufoathome/ModelSource-Cd7ByLN1.js +1 -0
- package/dist-embed-ufoathome/ModelThumbnails-CASGbavJ.js +1 -0
- package/dist-embed-ufoathome/ModelViewer-DEaj6_6R.js +1 -0
- package/dist-embed-ufoathome/ModuleConformance-CSg3Ac74.js +2 -0
- package/dist-embed-ufoathome/ModuleSession-BaaLmhnz.js +3 -0
- package/dist-embed-ufoathome/ModuleThree-DF_JfVBK.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelElement-BqF6eK1X.js +15 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +1 -0
- package/dist-embed-ufoathome/NearestApproach-DnGPayAo.js +1 -0
- package/dist-embed-ufoathome/Obstacles-v9SkfBD7.js +1 -0
- package/dist-embed-ufoathome/OffThreadTracer-ByPLWaYU.js +6 -0
- package/dist-embed-ufoathome/OpenAiTranscriptionProvider-DDW446tK.js +1 -0
- package/dist-embed-ufoathome/PanoramaxPictures-CELY3Ecc.js +1 -0
- package/dist-embed-ufoathome/ParameterForm-DfpJQGku.js +91 -0
- package/dist-embed-ufoathome/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-ufoathome/PictureFetch-C3wgf1ZV.js +1 -0
- package/dist-embed-ufoathome/PictureRegistration-BFn75haQ.js +1 -0
- package/dist-embed-ufoathome/PoherAssessor-DRTvhhZp.js +1 -0
- package/dist-embed-ufoathome/RailwaySystem-CUJHpW5y.js +41 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
- package/dist-embed-ufoathome/RecordingIssue-BlWT8Xsu.js +3 -0
- package/dist-embed-ufoathome/ReentryArchive-CeXHrU7L.js +1 -0
- package/dist-embed-ufoathome/ReentryEditor-DynYe51Y.js +28 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-ufoathome/ReentrySimulation-BTcyhCCG.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-ufoathome/ReferenceSystem-WdAT5UCN.js +1 -0
- package/dist-embed-ufoathome/ReferenceTimeline-2kBldQeG.js +1 -0
- package/dist-embed-ufoathome/RoadMarkings-BsN3rh0W.js +1 -0
- package/dist-embed-ufoathome/SaidPosition-CWiVNaNW.js +4 -0
- package/dist-embed-ufoathome/SatellitePasses-Pfro2-0Z.js +1 -0
- package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +1 -0
- package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +1 -0
- package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +1 -0
- package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +1 -0
- package/dist-embed-ufoathome/ShareCodeEditor-DyEYu_9d.js +13 -0
- package/dist-embed-ufoathome/ShareDialogElement-C3HL-Smq.js +9222 -0
- package/dist-embed-ufoathome/ShareMessages_en-B43x8LgJ.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_es-DZCJojSc.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_fr-CzZyVbbX.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_it-C_Z6eDQK.js +1 -0
- package/dist-embed-ufoathome/Sighting-CBpJpdm9.js +1 -0
- package/dist-embed-ufoathome/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-ufoathome/SightingElement-CexCUTjH.js +693 -0
- package/dist-embed-ufoathome/SightingFileEditor-Cllslp2u.js +8 -0
- package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-ufoathome/SkyEventEditorStyle-CvY_AhbI.js +1 -0
- package/dist-embed-ufoathome/SkyLantern-DJT_Ibzh.js +1 -0
- package/dist-embed-ufoathome/TagNames_es-BfnMpc3D.js +1 -0
- package/dist-embed-ufoathome/TagNames_fr-Dnqq6HQ5.js +1 -0
- package/dist-embed-ufoathome/TagNames_it-n6E4EGYO.js +1 -0
- package/dist-embed-ufoathome/TimelineTracks-X_GEZi12.js +35 -0
- package/dist-embed-ufoathome/TraceImport-CntRHXoJ.js +2 -0
- package/dist-embed-ufoathome/TraceSystem-Bm9JDfkW.js +393 -0
- package/dist-embed-ufoathome/TranscriptionAudio-C_xvRUv2.js +5 -0
- package/dist-embed-ufoathome/TranscriptionError-D_TCbYbt.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-dlx_C679.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-uLOvtAD0.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-LR76-eHS.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-CQl4uTnG.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_en-D5OYWJ3K.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_es-CO-v8Jl6.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_fr-CGkQBn5r.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_it-BScqxIaH.js +1 -0
- package/dist-embed-ufoathome/VideoButton-CH3rw9kX.js +1 -0
- package/dist-embed-ufoathome/VideoExport-B8ZhHNnd.js +169 -0
- package/dist-embed-ufoathome/VisualAids-DI-hEL46.js +1 -0
- package/dist-embed-ufoathome/WaterSystem-CraSRAgB.js +19 -0
- package/dist-embed-ufoathome/browser-CltifEM0.js +1 -0
- package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +1 -0
- package/dist-embed-ufoathome/index-C8cdeM8E.js +11 -0
- package/dist-embed-ufoathome/index-DqGmxMZD.js +42 -0
- package/dist-embed-ufoathome/interviewImport-ym5iXO4Z.js +4 -0
- package/{dist-embed-sighting-editor/interviewJson-iURHP4Zk.js → dist-embed-ufoathome/interviewJson-D-i14LTf.js} +1 -1
- package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +1 -0
- package/dist-embed-ufoathome/logo-h2-w4Mwu.png +0 -0
- package/dist-embed-ufoathome/lunar-relief.bin-ByThqxUn.gz +0 -0
- package/dist-embed-ufoathome/node.browser-AK49Qif5.js +1 -0
- package/dist-embed-ufoathome/node.browser-HEqoqodz.js +1 -0
- package/dist-embed-ufoathome/rain-BvWZrB9h.ogg +0 -0
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +159 -0
- package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +1 -0
- package/dist-embed-ufoathome/stars-mag7.5-9-BLV2tFmZ.bin +0 -0
- package/dist-embed-ufoathome/stars-mag7.5-B43R6Wvg.bin +0 -0
- package/dist-embed-ufoathome/surroundingsSources-kPwp7ewe.js +1 -0
- package/dist-embed-ufoathome/thunder-DA48qs_v.wav +0 -0
- package/dist-embed-ufoathome/trafficRuntime-DM6gQGDZ.js +2 -0
- package/dist-embed-ufoathome/upperAirSources-BGuLpdwu.js +1 -0
- package/dist-embed-ufoathome/wind-BjklexY7.ogg +0 -0
- package/package.json +9 -6
- package/dist-embed-sighting/CaseMessages_en-Bv5lKWl_.js +0 -1
- package/dist-embed-sighting/CaseMessages_es-BhZv_CtC.js +0 -1
- package/dist-embed-sighting/CaseMessages_fr-C5V5YNc_.js +0 -1
- package/dist-embed-sighting/CaseMessages_it-NPdAZwa_.js +0 -1
- package/dist-embed-sighting-editor/BirdEditor-ESUliJEN.js +0 -16
- package/dist-embed-sighting-editor/DroneEditor-DDaJO8FS.js +0 -16
- package/dist-embed-sighting-editor/GLTFLoader-DdijxzcI.js +0 -1
- package/dist-embed-sighting-editor/GeographicFigures-DC6Tw3ja.js +0 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-D-UDHU0L.js +0 -270
- package/dist-embed-sighting-editor/LanternEditor-DDcI5Kv1.js +0 -24
- package/dist-embed-sighting-editor/LaunchEditor-Pkk0K648.js +0 -22
- package/dist-embed-sighting-editor/ModuleThree-DSghL4fp.js +0 -1
- package/dist-embed-sighting-editor/PictureRegistration-CbfytwCX.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-NE8z5aZT.js +0 -28
- package/dist-embed-sighting-editor/SightingEditorMessages_en-DSPvgYFi.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Bl3DipHr.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-BTmWQX0n.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-lzbDsHjx.js +0 -12
- package/dist-embed-sighting-editor/VideoButton-CqCZ65oK.js +0 -1
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
import{R as G,E as q,H as N,s as W,U as K,a as Z,b as J,c as Q,S as y,C as m,F as U,O as $,P as X}from"./rr0-ufoathome.mjs";import{a as _,O as E,M as S,b as Y,P as ee,R as D,C as te,c as se,d as ie,B as ne,e as P,f as oe,g as ae,h as re,i as he,s as le,j as de,r as V,S as z,A as ce}from"./ShareDialogElement-C3HL-Smq.js";import{S as M}from"./SaidPosition-CWiVNaNW.js";import{D as pe,p as j}from"./Sighting-CBpJpdm9.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const ue=`
|
|
2
|
+
<div class="toolbar" id="toolbar" hidden>
|
|
3
|
+
<!-- The case this account belongs to, when it was read from one: an observation of a case is shown in its frame, not as a lone
|
|
4
|
+
recording (the info panel also lists it, but behind a button nobody opens to find out where they are). -->
|
|
5
|
+
<span id="case-of" class="case-of" hidden></span>
|
|
6
|
+
<span id="account" class="account">
|
|
7
|
+
<span id="account-prefix"></span>
|
|
8
|
+
<span id="observer-text"></span><select id="observer" hidden></select>
|
|
9
|
+
</span>
|
|
10
|
+
<!-- What to replay the account with: the raw account, the observer's own reading of it, or an
|
|
11
|
+
analyst's from the case (see InterpretationJson). Only there when there is a choice. -->
|
|
12
|
+
<label id="interpretation-choice" class="interpretation-choice" hidden>
|
|
13
|
+
<span id="interpretation-label"></span> <select id="interpretation"></select>
|
|
14
|
+
</label>
|
|
15
|
+
<!-- The playback layer's own toggles, taken out of the picture and put here — see
|
|
16
|
+
UfoElement.hostControls. -->
|
|
17
|
+
<span id="scene-controls" class="scene-controls">
|
|
18
|
+
<!-- Whether the account is shown beside the interpretation on show, as outlines, and
|
|
19
|
+
measured against it — see SceneElement.compareAccount. Only while an interpretation is. -->
|
|
20
|
+
<button id="compare-account" type="button" aria-pressed="false" hidden>◌</button>
|
|
21
|
+
</span>
|
|
22
|
+
<!-- The way into this very observation in the online editor, where what the recording does not
|
|
23
|
+
say shows as missing. Beside "?" rather than inside its panel, which is where it used to hide
|
|
24
|
+
behind the version link. Hidden for a recording with no address (set by script, pasted),
|
|
25
|
+
which the editor could not open. -->
|
|
26
|
+
<a id="edit-link" class="edit-link" target="_blank" rel="noopener" hidden><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M11.3 1.3a1 1 0 0 1 1.4 0l2 2a1 1 0 0 1 0 1.4l-8.5 8.5-3.4.9.9-3.4 8.6-8.4Zm-7 9.2-.5 1.7 1.7-.5 6.9-6.9-1.2-1.2-6.9 6.9Z" fill="currentColor"/></svg></a>
|
|
27
|
+
<!-- Turns the strip of what the recording states on and off, beside the way into the editor and the panel: it was behind the panel,
|
|
28
|
+
which is one place too far for something a reader turns on while watching (dicté). -->
|
|
29
|
+
<button id="labels-button" class="info-btn" type="button" aria-pressed="false"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><circle cx="3.1" cy="4.2" r="1.1" fill="currentColor" stroke="none"/><circle cx="3.1" cy="8" r="1.1" fill="currentColor" stroke="none"/><circle cx="3.1" cy="11.8" r="1.1" fill="currentColor" stroke="none"/><path d="M6.4 4.2h7.1M6.4 8h7.1M6.4 11.8h4.5"/></svg></button>
|
|
30
|
+
<button id="info-button" class="info-btn" type="button" aria-expanded="false"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><circle cx="8" cy="3.6" r="1.4" fill="currentColor"/><path d="M6 6.5h3v6h1.5V14h-4.5v-1.5H7.5V8H6Z" fill="currentColor"/></svg></button>
|
|
31
|
+
<div id="info-panel" class="info-panel" hidden>
|
|
32
|
+
<button id="info-close" class="info-close" type="button">×</button>
|
|
33
|
+
<section>
|
|
34
|
+
<h3 id="info-observation-heading"></h3>
|
|
35
|
+
<dl id="info-observation-list" class="info-dl"></dl>
|
|
36
|
+
</section>
|
|
37
|
+
<!-- Both fold-out blocks sit ABOVE the footer, never after it: the footer is sticky to the
|
|
38
|
+
panel's bottom edge, so anything following it in the flow opens underneath it — which is
|
|
39
|
+
exactly how clicking Credits came to reveal a list nobody could see. -->
|
|
40
|
+
<ul id="info-credits-list" class="info-ul" hidden></ul>
|
|
41
|
+
<div class="info-footer">
|
|
42
|
+
<a id="info-app-link" href="https://ufoathome.org" target="_blank" rel="noopener"></a>
|
|
43
|
+
<span class="info-footer-actions">
|
|
44
|
+
<button id="info-credits-toggle" class="info-credits-toggle" type="button" aria-expanded="false"></button>
|
|
45
|
+
</span>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<!-- Sharing the replay (see ShareDialogElement): the dialog is everyone's, what the replay lets its reader choose of it is slotted in. -->
|
|
50
|
+
<rr0-share-dialog id="share-dialog">
|
|
51
|
+
<div slot="options">
|
|
52
|
+
<!-- Only for a recording that is one of a case's: share the case (opening on one of its recordings) or one recording. -->
|
|
53
|
+
<div id="share-scope-row" class="share-scope" hidden>
|
|
54
|
+
<label><span id="share-scope-label"></span> <select id="share-scope"></select></label>
|
|
55
|
+
<label id="share-opens-row"><span id="share-opens-label"></span> <select id="share-opens"></select></label>
|
|
56
|
+
</div>
|
|
57
|
+
<!-- How the shared replay opens. -->
|
|
58
|
+
<fieldset id="share-replay-options" class="share-flags">
|
|
59
|
+
<span class="share-start">
|
|
60
|
+
<label><input id="share-start-on" type="checkbox"/> <span id="share-start-label"></span></label>
|
|
61
|
+
<input id="share-start" class="share-start-input" type="number" min="0" step="1" value="0"/>
|
|
62
|
+
<span id="share-start-unit">s</span>
|
|
63
|
+
</span>
|
|
64
|
+
<label><input id="share-opt-labels" type="checkbox" checked/> <span id="share-opt-labels-label"></span></label>
|
|
65
|
+
<label><input id="share-opt-map" type="checkbox"/> <span id="share-opt-map-label"></span></label>
|
|
66
|
+
<label><input id="share-opt-milestones" type="checkbox" checked/> <span id="share-opt-milestones-label"></span></label>
|
|
67
|
+
<label><input id="share-opt-compare" type="checkbox"/> <span id="share-opt-compare-label"></span></label>
|
|
68
|
+
</fieldset>
|
|
69
|
+
</div>
|
|
70
|
+
</rr0-share-dialog>
|
|
71
|
+
<div id="ufo-slot"></div>
|
|
72
|
+
<!-- The interpretation's bodies against what the observer said, at the instant on show — see
|
|
73
|
+
BodyConfrontation. Only while an interpretation is. -->
|
|
74
|
+
<div id="confrontation" class="confrontation" hidden>
|
|
75
|
+
<span id="confrontation-heading" class="confrontation-heading"></span>
|
|
76
|
+
<ul id="confrontation-list"></ul>
|
|
77
|
+
</div>
|
|
78
|
+
<!-- What the reading of the case on show was tested against, and what that gave (see ReadingVerdict): its verdict, then each finding. Only
|
|
79
|
+
while a reading is, and one that has findings. -->
|
|
80
|
+
<div id="reading-findings" class="reading-findings" hidden>
|
|
81
|
+
<button id="reading-chip" type="button" class="reading-chip" aria-expanded="false" aria-controls="reading-findings-list"><span class="dot"></span><span id="reading-verdict" class="reading-verdict"></span></button>
|
|
82
|
+
<ul id="reading-findings-list" hidden></ul>
|
|
83
|
+
<rr0-reading-sensitivity id="reading-sensitivity"></rr0-reading-sensitivity>
|
|
84
|
+
</div>
|
|
85
|
+
<!-- The variants the recording keeps (see InterpretationJson.variant): one chip a candidate, with
|
|
86
|
+
its verdict, leading to it; and, while one is on show, each value it moves, the account's struck
|
|
87
|
+
beside the variant's. The account itself never changes. -->
|
|
88
|
+
<div id="variant-chips" class="variant-chips" hidden></div>
|
|
89
|
+
<div id="variant-moved" class="variant-moved" hidden></div>
|
|
90
|
+
<!-- What this recording states, field by field, in the same words the editor uses for the same
|
|
91
|
+
fields — the very same SightingSummary the editor shows under its own render. Off unless
|
|
92
|
+
the page asks for it (show-labels) or the reader does (the info panel's own toggle): a player
|
|
93
|
+
dropped into an article is there to be watched, and forty labels under it is a data sheet.
|
|
94
|
+
Read-only here, unlike in the editor, where each one is a way back to its field. -->
|
|
95
|
+
<div id="param-summary" class="param-summary" hidden></div>
|
|
96
|
+
`,me=`
|
|
97
|
+
:host {
|
|
98
|
+
color-scheme: light dark;
|
|
99
|
+
display: block;
|
|
100
|
+
font-family: sans-serif;
|
|
101
|
+
}
|
|
102
|
+
/* Normal document flow, above the canvas — unlike the video player's own toolbar (ufoTemplate.ts),
|
|
103
|
+
this row itself never overlays the scene, so it needs none of that toolbar's hover/auto-hide
|
|
104
|
+
dance: once there's something to show, it just stays visible like any other page content. Its
|
|
105
|
+
own info panel (below) is the one thing that overlays — anchored to this row via
|
|
106
|
+
position:relative — so opening it never shifts the canvas or the rest of the page. */
|
|
107
|
+
.toolbar {
|
|
108
|
+
position: relative;
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: 0.5em;
|
|
112
|
+
/* On a phone the account's choice of observer, the interpretation and the buttons do not fit on
|
|
113
|
+
one line: the ones that do not go to the next, rather than the first being squeezed to nothing. */
|
|
114
|
+
flex-wrap: wrap;
|
|
115
|
+
margin-bottom: 0.5em;
|
|
116
|
+
/* Room for what a button draws OUTSIDE itself — the 2px outline of a pressed toggle, a focus
|
|
117
|
+
ring. Flush against its host, that ring was cut off by any page that clips this element:
|
|
118
|
+
ufoathome.org's own player wraps it in overflow:hidden, and so can any page it is embedded in. */
|
|
119
|
+
padding: 3px 3px 0;
|
|
120
|
+
}
|
|
121
|
+
.case-of {
|
|
122
|
+
/* Before the account's own name, dimmer than it: it says where this observation stands, the account says what it is. */
|
|
123
|
+
min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .75;
|
|
124
|
+
}
|
|
125
|
+
.case-of::after { content: "·"; padding: 0 .4em; opacity: .6; }
|
|
126
|
+
.account {
|
|
127
|
+
/* Shrinks to what the buttons leave and then wraps, the choice of observer under its words: it was
|
|
128
|
+
kept on one line and clipped to "Com…", with the choice itself out of reach, on a phone. */
|
|
129
|
+
min-width: 0;
|
|
130
|
+
}
|
|
131
|
+
.account select {
|
|
132
|
+
max-width: 12em;
|
|
133
|
+
}
|
|
134
|
+
/* The interpretation's name is long ("A straight, level flight 100 m up, in the plane fitted to…"), and
|
|
135
|
+
the row has room: the choice takes what the account's own name and the buttons leave, instead of a
|
|
136
|
+
cap that cut it after a dozen letters. */
|
|
137
|
+
.interpretation-choice {
|
|
138
|
+
flex: 1 1 0;
|
|
139
|
+
min-width: 12em;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
gap: 0.4em;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
}
|
|
145
|
+
/* An author rule for display beats the hidden attribute: without this the label stayed laid out,
|
|
146
|
+
192px of "Interpretation" and an empty-looking choice, on a recording that has no interpretation
|
|
147
|
+
to choose, and on a phone squeezed the account's own choice of observer down to "Com…". */
|
|
148
|
+
.interpretation-choice[hidden] {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
.interpretation-choice select {
|
|
152
|
+
flex: 1 1 0;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
}
|
|
156
|
+
.confrontation {
|
|
157
|
+
margin-top: 0.4em;
|
|
158
|
+
font-size: 0.85em;
|
|
159
|
+
}
|
|
160
|
+
.confrontation ul {
|
|
161
|
+
display: inline;
|
|
162
|
+
margin: 0;
|
|
163
|
+
padding: 0;
|
|
164
|
+
list-style: none;
|
|
165
|
+
}
|
|
166
|
+
.confrontation li {
|
|
167
|
+
display: inline;
|
|
168
|
+
margin-left: 0.8em;
|
|
169
|
+
font-variant-numeric: tabular-nums;
|
|
170
|
+
}
|
|
171
|
+
/* What the interpretation fails to reproduce. Red, and not struck through: a strike is kept for a
|
|
172
|
+
observer's word the facts contradict, and here it is the interpretation that is at fault. */
|
|
173
|
+
.variant-chips {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-wrap: wrap;
|
|
176
|
+
gap: 6px;
|
|
177
|
+
margin-top: 0.5em;
|
|
178
|
+
}
|
|
179
|
+
.variant-chips[hidden], .variant-moved[hidden] {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
.variant-chips button {
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
gap: 6px;
|
|
186
|
+
padding: 2px 10px;
|
|
187
|
+
border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
|
|
188
|
+
border-radius: 999px;
|
|
189
|
+
background: none;
|
|
190
|
+
color: inherit;
|
|
191
|
+
font: inherit;
|
|
192
|
+
font-size: 0.85em;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
195
|
+
/* The reader takes its colours from the page it is dropped into (see .confrontation): what is
|
|
196
|
+
pressed is outlined in the text's own colour rather than filled with one of ours. */
|
|
197
|
+
.variant-chips button[aria-pressed="true"] {
|
|
198
|
+
border-color: currentColor;
|
|
199
|
+
box-shadow: inset 0 0 0 1px currentColor;
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
}
|
|
202
|
+
.variant-chips .dot {
|
|
203
|
+
width: 8px;
|
|
204
|
+
height: 8px;
|
|
205
|
+
border-radius: 50%;
|
|
206
|
+
}
|
|
207
|
+
.variant-chips [data-verdict="consolidated"] .dot { background: #2e9d5b; }
|
|
208
|
+
.variant-chips [data-verdict="contested"] .dot { background: #e08a2c; }
|
|
209
|
+
.variant-chips [data-verdict="incompatible"] .dot { background: #e04848; }
|
|
210
|
+
.variant-moved {
|
|
211
|
+
margin-top: 0.4em;
|
|
212
|
+
font-size: 0.85em;
|
|
213
|
+
font-variant-numeric: tabular-nums;
|
|
214
|
+
}
|
|
215
|
+
.variant-moved span {
|
|
216
|
+
margin-right: 1em;
|
|
217
|
+
}
|
|
218
|
+
.variant-moved .reading {
|
|
219
|
+
font-style: italic;
|
|
220
|
+
}
|
|
221
|
+
.variant-moved s {
|
|
222
|
+
opacity: .65;
|
|
223
|
+
text-decoration-color: #e04848;
|
|
224
|
+
}
|
|
225
|
+
.confrontation .disagrees {
|
|
226
|
+
color: #d33;
|
|
227
|
+
}
|
|
228
|
+
.reading-findings {
|
|
229
|
+
margin-top: 0.4em;
|
|
230
|
+
font-size: 0.85em;
|
|
231
|
+
}
|
|
232
|
+
.reading-findings[hidden] {
|
|
233
|
+
display: none;
|
|
234
|
+
}
|
|
235
|
+
/* A chip, as the description's: its verdict and how many tests, the tests themselves a click away. */
|
|
236
|
+
.reading-chip {
|
|
237
|
+
display: inline-flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 0.4em;
|
|
240
|
+
padding: 0.1em 0.7em;
|
|
241
|
+
border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
|
|
242
|
+
border-radius: 999px;
|
|
243
|
+
background: none;
|
|
244
|
+
color: inherit;
|
|
245
|
+
font: inherit;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
}
|
|
248
|
+
.reading-chip[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); }
|
|
249
|
+
.reading-chip .dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: currentColor; }
|
|
250
|
+
.reading-findings[data-verdict="incompatible"] .dot { background: #e04848; }
|
|
251
|
+
.reading-findings[data-verdict="unsettled"] .dot { background: #e08a2c; }
|
|
252
|
+
.reading-findings[data-verdict="compatible"] .dot { background: #2e9d5b; }
|
|
253
|
+
.reading-findings ul[hidden] { display: none; }
|
|
254
|
+
.reading-findings rr0-reading-sensitivity { margin-top: 0.3em; font-size: 1em; color: inherit; }
|
|
255
|
+
.reading-findings .reading-chip[hidden] { display: none; }
|
|
256
|
+
.reading-findings ul {
|
|
257
|
+
margin: 0.2em 0 0;
|
|
258
|
+
padding: 0;
|
|
259
|
+
list-style: none;
|
|
260
|
+
display: grid;
|
|
261
|
+
gap: 0.15em;
|
|
262
|
+
}
|
|
263
|
+
.reading-findings li {
|
|
264
|
+
display: grid;
|
|
265
|
+
grid-template-columns: 1.2em minmax(0, 1fr);
|
|
266
|
+
column-gap: 0.3em;
|
|
267
|
+
}
|
|
268
|
+
.reading-findings .finding-mark { font-weight: 700; text-align: center; }
|
|
269
|
+
.reading-findings li[data-outcome="holds"] .finding-mark { color: #2e8b3e; }
|
|
270
|
+
.reading-findings li[data-outcome="fails"] .finding-mark { color: #d33; }
|
|
271
|
+
.reading-findings li[data-outcome="untested"] .finding-mark { opacity: 0.6; }
|
|
272
|
+
.reading-findings .finding-against { grid-column: 2; opacity: 0.7; }
|
|
273
|
+
/* The toggles the playback layer lends this toolbar (see UfoElement.hostControls): the look they
|
|
274
|
+
have in the picture's corner, at the toolbar's own scale. */
|
|
275
|
+
.scene-controls {
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
gap: 0.3em;
|
|
279
|
+
margin-left: auto;
|
|
280
|
+
}
|
|
281
|
+
.scene-controls [hidden] {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
/* The squares of this row take their colours from the page when it gives them (--rr0-button-bg, -fg, -border, -hover, -on, -ring,
|
|
285
|
+
inherited from anywhere, :root included), and otherwise from the popups' own light/dark palette below: a light grey square was
|
|
286
|
+
left glaring on a dark page. */
|
|
287
|
+
.scene-controls button {
|
|
288
|
+
display: inline-flex;
|
|
289
|
+
align-items: center;
|
|
290
|
+
justify-content: center;
|
|
291
|
+
width: 1.8em;
|
|
292
|
+
height: 1.8em;
|
|
293
|
+
padding: 0;
|
|
294
|
+
border: 1px solid var(--rr0-button-border, var(--pop-border));
|
|
295
|
+
border-radius: 3px;
|
|
296
|
+
cursor: pointer;
|
|
297
|
+
font-size: 1em;
|
|
298
|
+
line-height: 1;
|
|
299
|
+
background: var(--rr0-button-bg, var(--pop-fill));
|
|
300
|
+
color: var(--rr0-button-fg, var(--pop-fg));
|
|
301
|
+
}
|
|
302
|
+
.scene-controls button[aria-pressed="true"],
|
|
303
|
+
.info-btn[aria-expanded="true"] {
|
|
304
|
+
outline: 2px solid var(--rr0-button-ring, var(--pop-on-border));
|
|
305
|
+
}
|
|
306
|
+
.scene-controls input[type="range"] {
|
|
307
|
+
width: 5.5em;
|
|
308
|
+
margin: 0;
|
|
309
|
+
accent-color: var(--rr0-button-ring, var(--pop-on-border));
|
|
310
|
+
}
|
|
311
|
+
/* The pen and the "i" wear the same square as the toggles the playback layer lends this row (see
|
|
312
|
+
.scene-controls button), so the row reads as one set of buttons. */
|
|
313
|
+
.edit-link {
|
|
314
|
+
flex-shrink: 0;
|
|
315
|
+
display: inline-flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
justify-content: center;
|
|
318
|
+
width: 1.8em;
|
|
319
|
+
height: 1.8em;
|
|
320
|
+
box-sizing: border-box;
|
|
321
|
+
border-radius: 3px;
|
|
322
|
+
border: 1px solid var(--rr0-button-border, var(--pop-border));
|
|
323
|
+
background: var(--rr0-button-bg, var(--pop-fill));
|
|
324
|
+
color: var(--rr0-button-fg, var(--pop-fg));
|
|
325
|
+
}
|
|
326
|
+
.edit-link:hover, .edit-link:focus-visible,
|
|
327
|
+
.info-btn:hover, .info-btn:focus-visible,
|
|
328
|
+
.scene-controls button:hover, .scene-controls button:focus-visible {
|
|
329
|
+
background: var(--rr0-button-hover, var(--pop-fill-hover));
|
|
330
|
+
}
|
|
331
|
+
/* Same trap as elsewhere: a rule setting display outranks the UA sheet's [hidden]. */
|
|
332
|
+
.edit-link[hidden] {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
335
|
+
.info-btn {
|
|
336
|
+
/* Named so the info panel can anchor itself to this button from the top layer — see
|
|
337
|
+
.info-panel:popover-open below. */
|
|
338
|
+
anchor-name: --info-button;
|
|
339
|
+
flex-shrink: 0;
|
|
340
|
+
display: inline-flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: center;
|
|
343
|
+
width: 1.8em;
|
|
344
|
+
height: 1.8em;
|
|
345
|
+
box-sizing: border-box;
|
|
346
|
+
border-radius: 3px;
|
|
347
|
+
border: 1px solid var(--rr0-button-border, var(--pop-border));
|
|
348
|
+
background: var(--rr0-button-bg, var(--pop-fill));
|
|
349
|
+
color: var(--rr0-button-fg, var(--pop-fg));
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
font-size: 1em;
|
|
352
|
+
line-height: 1;
|
|
353
|
+
padding: 0;
|
|
354
|
+
}
|
|
355
|
+
/* The panel's own look, independent of where it is placed. It caps its height and scrolls: a real
|
|
356
|
+
case description runs to a paragraph or more, and its footer holds the link to this
|
|
357
|
+
observation's editor — the close button and that footer are pinned to its edges rather than
|
|
358
|
+
scrolling away with the content, since they are how you leave it and what you came for. */
|
|
359
|
+
/* Deliberately quieter than the render it sits under, and wrapping rather than scrolling: this is
|
|
360
|
+
meant to be scanned in one pass, and a strip that hides half of itself off the right edge would
|
|
361
|
+
be worse than not showing it. */
|
|
362
|
+
.param-summary {
|
|
363
|
+
display: flex;
|
|
364
|
+
flex-wrap: wrap;
|
|
365
|
+
/* Each chip at its own height, centred on the line: stretched to the height of a boxed group
|
|
366
|
+
beside it (see .param-nest), a chip kept its text at the top of a taller pill. */
|
|
367
|
+
align-items: center;
|
|
368
|
+
gap: 0.3em;
|
|
369
|
+
margin-top: 0.5em;
|
|
370
|
+
font-size: 0.85em;
|
|
371
|
+
}
|
|
372
|
+
.param-summary[hidden] {
|
|
373
|
+
display: none;
|
|
374
|
+
}
|
|
375
|
+
/* A chip holding chips: everything said about ONE sub-element — the observer, a decor object —
|
|
376
|
+
boxed under its name, so a Heading inside a box saying Environment needs no prefix to say which
|
|
377
|
+
heading it is. Drawn as a frame rather than as a filled pill: the members already carry an
|
|
378
|
+
outline each, and a second solid shape around them would read as a button they sit on. */
|
|
379
|
+
.param-nest {
|
|
380
|
+
display: inline-flex;
|
|
381
|
+
flex-wrap: wrap;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 0.3em;
|
|
384
|
+
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
385
|
+
border-radius: 12px;
|
|
386
|
+
padding: 0.25em 0.5em;
|
|
387
|
+
max-width: 100%;
|
|
388
|
+
/* A flex item is never narrower than its content unless it says so: a nest holding a chip that
|
|
389
|
+
stays on one line (a long place name) was as wide as that line, past the edge of a phone. */
|
|
390
|
+
min-width: 0;
|
|
391
|
+
}
|
|
392
|
+
${_.CSS}
|
|
393
|
+
.param-nest-label {
|
|
394
|
+
font-weight: 600;
|
|
395
|
+
color: color-mix(in srgb, currentColor 62%, transparent);
|
|
396
|
+
letter-spacing: 0.02em;
|
|
397
|
+
text-transform: uppercase;
|
|
398
|
+
font-size: 0.85em;
|
|
399
|
+
}
|
|
400
|
+
.param-label {
|
|
401
|
+
/* Mixed from the host page's own text colour rather than fixed — see the same rule in
|
|
402
|
+
template.ts for why. Only the introducing word steps back: the value keeps the host's ink,
|
|
403
|
+
which a child cannot recover once the whole chip has been faded. */
|
|
404
|
+
border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
|
|
405
|
+
border-radius: 999px;
|
|
406
|
+
padding: 0.1em 0.6em;
|
|
407
|
+
white-space: nowrap;
|
|
408
|
+
/* One line, as a chip is, but a long value gives up its tail rather than the width of the page. */
|
|
409
|
+
max-width: 100%;
|
|
410
|
+
box-sizing: border-box;
|
|
411
|
+
overflow: hidden;
|
|
412
|
+
text-overflow: ellipsis;
|
|
413
|
+
}
|
|
414
|
+
.param-label-label {
|
|
415
|
+
color: color-mix(in srgb, currentColor 78%, transparent);
|
|
416
|
+
}
|
|
417
|
+
.param-label .param-label-value {
|
|
418
|
+
font-weight: 600;
|
|
419
|
+
}
|
|
420
|
+
/* A value no observer gave: read from a record (ERA5's weather, a terrain provider's ground) — the
|
|
421
|
+
distinction this whole project turns on, and the one thing a plain list of numbers loses. */
|
|
422
|
+
.param-label.from-source .param-label-value {
|
|
423
|
+
color: color-mix(in srgb, #3a9fd8 72%, currentColor);
|
|
424
|
+
font-weight: normal;
|
|
425
|
+
font-style: italic;
|
|
426
|
+
}
|
|
427
|
+
.param-label .param-label-swatch {
|
|
428
|
+
display: inline-block;
|
|
429
|
+
width: 0.7em;
|
|
430
|
+
height: 0.7em;
|
|
431
|
+
border: 1px solid #666;
|
|
432
|
+
border-radius: 2px;
|
|
433
|
+
vertical-align: -1px;
|
|
434
|
+
}
|
|
435
|
+
/* What the popups (the info panel) are drawn with: light by default, and the
|
|
436
|
+
dark set when the system asks for it, as the editor does. The form controls follow through
|
|
437
|
+
color-scheme. */
|
|
438
|
+
:host {
|
|
439
|
+
--pop-bg: #fff;
|
|
440
|
+
--pop-fg: #222;
|
|
441
|
+
--pop-border: #ccc;
|
|
442
|
+
--pop-soft: #eee;
|
|
443
|
+
--pop-faint: #666;
|
|
444
|
+
--pop-fill: #f2f2f2;
|
|
445
|
+
--pop-fill-hover: #e4e4e4;
|
|
446
|
+
--pop-on: #dbe6f7;
|
|
447
|
+
--pop-on-border: #9bb6e0;
|
|
448
|
+
--pop-link: #06c;
|
|
449
|
+
--pop-derived: #2a6fb0;
|
|
450
|
+
--pop-assumed: #b06a00;
|
|
451
|
+
--pop-tag: #1a5fb4;
|
|
452
|
+
--pop-attr: #8a4b00;
|
|
453
|
+
--pop-string: #1a7f37;
|
|
454
|
+
}
|
|
455
|
+
@media (prefers-color-scheme: dark) {
|
|
456
|
+
:host {
|
|
457
|
+
--pop-bg: #1e1f22;
|
|
458
|
+
--pop-fg: #e6e6e6;
|
|
459
|
+
--pop-border: #4a4c52;
|
|
460
|
+
--pop-soft: #34363b;
|
|
461
|
+
--pop-faint: #a0a3aa;
|
|
462
|
+
--pop-fill: #2c2e33;
|
|
463
|
+
--pop-fill-hover: #3a3d43;
|
|
464
|
+
--pop-on: #274066;
|
|
465
|
+
--pop-on-border: #4f7bc4;
|
|
466
|
+
--pop-link: #7fb2ff;
|
|
467
|
+
--pop-derived: #7fb2ff;
|
|
468
|
+
--pop-assumed: #e0a040;
|
|
469
|
+
--pop-tag: #8cb8ff;
|
|
470
|
+
--pop-attr: #e0a860;
|
|
471
|
+
--pop-string: #7fd08a;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
.info-panel {
|
|
475
|
+
padding: 0.6em 0.8em;
|
|
476
|
+
border: 1px solid var(--pop-border);
|
|
477
|
+
border-radius: 4px;
|
|
478
|
+
background: var(--pop-bg);
|
|
479
|
+
color: var(--pop-fg);
|
|
480
|
+
max-width: 28em;
|
|
481
|
+
overflow-y: auto;
|
|
482
|
+
/* Its own scrolling shouldn't carry on into the page behind it once it reaches an end. */
|
|
483
|
+
overscroll-behavior: contain;
|
|
484
|
+
font-size: 0.9em;
|
|
485
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
|
486
|
+
}
|
|
487
|
+
/* Placement wherever the browser has the popover API: the top layer, which is the only way out of
|
|
488
|
+
an ancestor's clipping. Anchored under the "?" button, this panel was being CUT OFF by a host
|
|
489
|
+
page's own wrapper in overflow:hidden (rr0.org's layout) — not merely pushed off-screen, so no
|
|
490
|
+
scrolling could bring it back and its footer was plainly unreachable. A top-layer popover is
|
|
491
|
+
clipped by nothing at all; the UA's own [popover] rules centre it in the viewport, leaving it
|
|
492
|
+
needing only a height cap. */
|
|
493
|
+
.info-panel:popover-open {
|
|
494
|
+
display: block;
|
|
495
|
+
max-height: 80vh;
|
|
496
|
+
}
|
|
497
|
+
/* Back under the "?" button it belongs to, rather than centred in the viewport as the UA's own
|
|
498
|
+
[popover] rules place it. Anchor positioning is what makes that possible from the top layer:
|
|
499
|
+
the panel is no longer a descendant of anything, so there is nothing left to position it
|
|
500
|
+
against but the button itself. Where the browser lacks it, the centred placement above stands —
|
|
501
|
+
correct, just less connected to what opened it. */
|
|
502
|
+
@supports (position-area: bottom span-left) {
|
|
503
|
+
.info-panel:popover-open {
|
|
504
|
+
position-anchor: --info-button;
|
|
505
|
+
/* The UA centres a popover with inset:0 + margin:auto; both have to go for the anchor to
|
|
506
|
+
have any say. */
|
|
507
|
+
inset: auto;
|
|
508
|
+
/* The BASE position, not a fallback: fallbacks are only ever consulted when the base itself
|
|
509
|
+
overflows, so leaving the base centred (as the UA has it) meant the anchored options were
|
|
510
|
+
never even tried. */
|
|
511
|
+
position-area: bottom span-left;
|
|
512
|
+
margin: 0.3em 0 0 0;
|
|
513
|
+
/* Fit the space this side actually offers, and scroll inside it. This is what keeps the panel
|
|
514
|
+
anchored at all: the browser judges whether a position option overflows by the element's
|
|
515
|
+
UNCONSTRAINED height, so a percentage or viewport cap still reads as "doesn't fit" and hands
|
|
516
|
+
over to the next option — with a description long enough (Socorro's wants 515px against the
|
|
517
|
+
465 a normal window leaves below the button) that meant every anchored option was rejected
|
|
518
|
+
and the panel went back to the middle of the screen. A stretch cap has no such effect: the
|
|
519
|
+
used height IS the available space, so the option genuinely fits. Declared twice for the
|
|
520
|
+
browsers that only know the prefixed spelling; the later valid one wins. */
|
|
521
|
+
max-height: -webkit-fill-available;
|
|
522
|
+
max-height: stretch;
|
|
523
|
+
/* Only reached if a browser understands neither stretch spelling above (so the panel keeps its
|
|
524
|
+
full height and really does overflow): above the button, then the viewport centre.
|
|
525
|
+
Deliberately no position-try-order — most-height ranks the centred option first, since the
|
|
526
|
+
whole viewport is always taller than either side of the button, which is exactly how the
|
|
527
|
+
panel ended up centred everywhere. */
|
|
528
|
+
position-try-fallbacks: --info-panel-above, --info-panel-centred;
|
|
529
|
+
}
|
|
530
|
+
@position-try --info-panel-above {
|
|
531
|
+
position-area: top span-left;
|
|
532
|
+
margin: 0 0 0.3em 0;
|
|
533
|
+
max-height: -webkit-fill-available;
|
|
534
|
+
max-height: stretch;
|
|
535
|
+
}
|
|
536
|
+
@position-try --info-panel-centred {
|
|
537
|
+
position-area: none;
|
|
538
|
+
inset: 0;
|
|
539
|
+
margin: auto;
|
|
540
|
+
max-height: 80vh;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
/* Placement without the popover API (browsers older than 2024): the plain absolutely-positioned
|
|
544
|
+
overlay this has always been, capped against the viewport. Still clippable by a host page — the
|
|
545
|
+
very limitation the popover path above removes — but no worse than what those browsers had. */
|
|
546
|
+
.info-panel:not([popover]) {
|
|
547
|
+
position: absolute;
|
|
548
|
+
top: 100%;
|
|
549
|
+
right: 0;
|
|
550
|
+
z-index: 2;
|
|
551
|
+
margin-top: 0.3em;
|
|
552
|
+
max-height: 70vh;
|
|
553
|
+
}
|
|
554
|
+
/* Floated rather than absolutely positioned, so it stays pinned to the top of the panel's own
|
|
555
|
+
scrolling content (position: absolute would anchor it to the panel's full height and scroll out
|
|
556
|
+
of sight); the heading beside it simply wraps around it. */
|
|
557
|
+
.info-close {
|
|
558
|
+
position: sticky;
|
|
559
|
+
float: right;
|
|
560
|
+
top: 0;
|
|
561
|
+
margin-left: 0.4em;
|
|
562
|
+
width: 1.6em;
|
|
563
|
+
height: 1.6em;
|
|
564
|
+
border: none;
|
|
565
|
+
background: transparent;
|
|
566
|
+
color: var(--pop-faint);
|
|
567
|
+
cursor: pointer;
|
|
568
|
+
font-size: 1.1em;
|
|
569
|
+
line-height: 1;
|
|
570
|
+
padding: 0;
|
|
571
|
+
}
|
|
572
|
+
.info-panel h3 {
|
|
573
|
+
margin: 0 0 0.2em;
|
|
574
|
+
font-size: 0.95em;
|
|
575
|
+
}
|
|
576
|
+
.info-dl {
|
|
577
|
+
margin: 0;
|
|
578
|
+
display: grid;
|
|
579
|
+
grid-template-columns: auto 1fr;
|
|
580
|
+
gap: 0.15em 0.6em;
|
|
581
|
+
}
|
|
582
|
+
.info-dl dt {
|
|
583
|
+
color: var(--pop-faint);
|
|
584
|
+
}
|
|
585
|
+
.info-dl dd {
|
|
586
|
+
margin: 0;
|
|
587
|
+
}
|
|
588
|
+
/* How a line is known (see SightingElement.basisOf): quiet when the observer said it, louder the
|
|
589
|
+
further it is from what they said. */
|
|
590
|
+
.basis {
|
|
591
|
+
display: inline-block;
|
|
592
|
+
margin-left: 0.3em;
|
|
593
|
+
padding: 0 0.35em;
|
|
594
|
+
border-radius: 3px;
|
|
595
|
+
border: 1px solid currentColor;
|
|
596
|
+
font-size: 0.75em;
|
|
597
|
+
line-height: 1.4;
|
|
598
|
+
white-space: nowrap;
|
|
599
|
+
cursor: help;
|
|
600
|
+
}
|
|
601
|
+
.basis-stated {
|
|
602
|
+
color: var(--pop-faint);
|
|
603
|
+
border-color: var(--pop-border);
|
|
604
|
+
}
|
|
605
|
+
.basis-derived {
|
|
606
|
+
color: var(--pop-derived);
|
|
607
|
+
}
|
|
608
|
+
.basis-assumed {
|
|
609
|
+
color: var(--pop-assumed);
|
|
610
|
+
}
|
|
611
|
+
/* The smaller, secondary row below the observation details — app identity on the left, the
|
|
612
|
+
credits reveal on the right, matching the reduced visual weight of "fine print" rather than
|
|
613
|
+
competing with the sighting's own metadata for attention. */
|
|
614
|
+
/* What the replay lets its reader choose of what is shared, slotted into the share dialog (see ShareDialogElement). */
|
|
615
|
+
.share-scope {
|
|
616
|
+
display: flex;
|
|
617
|
+
flex-wrap: wrap;
|
|
618
|
+
justify-content: center;
|
|
619
|
+
gap: 0.5em 1.5em;
|
|
620
|
+
margin-bottom: 0.7em;
|
|
621
|
+
font-size: 0.9em;
|
|
622
|
+
}
|
|
623
|
+
.share-scope[hidden], .share-scope label[hidden] {
|
|
624
|
+
display: none;
|
|
625
|
+
}
|
|
626
|
+
/* As wide as what it names, and no wider than the dialog: "T1, at the GEIPAN simulation" is not "T1, at the GEIPAN simulatior". */
|
|
627
|
+
.share-scope label {
|
|
628
|
+
max-width: 100%;
|
|
629
|
+
}
|
|
630
|
+
.share-scope select {
|
|
631
|
+
font: inherit;
|
|
632
|
+
field-sizing: content;
|
|
633
|
+
max-width: 100%;
|
|
634
|
+
}
|
|
635
|
+
.share-flags {
|
|
636
|
+
display: grid;
|
|
637
|
+
grid-template-columns: 1fr 1fr;
|
|
638
|
+
gap: 0.45em 1em;
|
|
639
|
+
margin: 0 0 0.8em;
|
|
640
|
+
padding: 0;
|
|
641
|
+
border: none;
|
|
642
|
+
font-size: 0.9em;
|
|
643
|
+
}
|
|
644
|
+
.share-start {
|
|
645
|
+
display: flex;
|
|
646
|
+
align-items: center;
|
|
647
|
+
gap: 0.4em;
|
|
648
|
+
grid-column: 1 / -1;
|
|
649
|
+
}
|
|
650
|
+
.share-start-input {
|
|
651
|
+
width: 4.5em;
|
|
652
|
+
font: inherit;
|
|
653
|
+
}
|
|
654
|
+
.info-footer-actions {
|
|
655
|
+
display: flex;
|
|
656
|
+
align-items: center;
|
|
657
|
+
gap: 0.8em;
|
|
658
|
+
}
|
|
659
|
+
.info-footer {
|
|
660
|
+
position: sticky;
|
|
661
|
+
bottom: 0;
|
|
662
|
+
/* Opaque, or the scrolling content would show through it — inherited rather than repeated, so
|
|
663
|
+
it can never drift from the panel's own background. */
|
|
664
|
+
background: inherit;
|
|
665
|
+
display: flex;
|
|
666
|
+
align-items: center;
|
|
667
|
+
justify-content: space-between;
|
|
668
|
+
gap: 0.8em;
|
|
669
|
+
margin-top: 0.6em;
|
|
670
|
+
padding-top: 0.4em;
|
|
671
|
+
padding-bottom: 0.2em;
|
|
672
|
+
border-top: 1px solid var(--pop-soft);
|
|
673
|
+
font-size: 0.8em;
|
|
674
|
+
}
|
|
675
|
+
#info-app-link {
|
|
676
|
+
color: var(--pop-faint);
|
|
677
|
+
}
|
|
678
|
+
.info-credits-toggle {
|
|
679
|
+
border: none;
|
|
680
|
+
background: none;
|
|
681
|
+
padding: 0;
|
|
682
|
+
color: var(--pop-link);
|
|
683
|
+
cursor: pointer;
|
|
684
|
+
font-size: 1em;
|
|
685
|
+
text-decoration: underline;
|
|
686
|
+
}
|
|
687
|
+
.info-ul {
|
|
688
|
+
margin: 0.4em 0 0;
|
|
689
|
+
padding-left: 1.2em;
|
|
690
|
+
}
|
|
691
|
+
`;class u{static PLAIN=/^\d+(?:[.,]\d+)?$/;static COLONS=/^(?:(\d+):)?(\d{1,2}):(\d{1,2}(?:[.,]\d+)?)$/;static UNITS=/^(?:(\d+(?:[.,]\d+)?)h)?(?:(\d+(?:[.,]\d+)?)m)?(?:(\d+(?:[.,]\d+)?)s)?$/i;static CLOCK=/^(?:(\d{4})-(\d{2})-(\d{2})[T ])?T?(\d{1,2}):(\d{2})(?::(\d{2}(?:[.,]\d+)?))?$/;static num(e){return e===void 0?0:Number(e.replace(",","."))}static delta(e){const t=(e??"").trim();if(t==="")return;if(u.PLAIN.test(t))return u.num(t);const i=u.COLONS.exec(t);if(i){const[,n,o,a]=i;return Number(o)>=60||u.num(a)>=60?void 0:u.num(n)*3600+Number(o)*60+u.num(a)}const s=u.UNITS.exec(t);return s&&(s[1]!==void 0||s[2]!==void 0||s[3]!==void 0)?u.num(s[1])*3600+u.num(s[2])*60+u.num(s[3]):/^P/i.test(t)?pe.seconds(t.toUpperCase()):void 0}static isClock(e){return u.clock(e)!==void 0}static clock(e){const t=u.CLOCK.exec((e??"").trim());if(!t)return;const[,i,s,n,o,a,r]=t,h={hour:Number(o),minute:Number(a),second:u.num(r)};if(!(h.hour>=24||h.minute>=60||h.second>=60)){if(i!==void 0){const c={year:Number(i),month:Number(s),day:Number(n)};if(c.month<1||c.month>12||c.day<1||c.day>31)return;h.date=c}return h}}static elapsedSince(e,t){if(!e||e.hour===void 0||e.minute===void 0)return;const i=e.hour*3600+e.minute*60+(e.second??0),s=t.hour*3600+t.minute*60+t.second;if(t.date){if(e.year===void 0||e.month===void 0||e.day===void 0)return;const o=Date.UTC(t.date.year,t.date.month-1,t.date.day)/1e3+s,a=Date.UTC(e.year,e.month-1,e.day)/1e3+i;return Math.max(0,o-a)}let n=s-i;return n<=-43200&&(n+=86400),Math.max(0,n)}}V();z.register();const T=ce.home(),k="compare-account",I="start-time",H="start-clock",v="observer",A="case-named",L="show-info",B="interpretation",x="hide-pickers",C="case",w="account",O="variant-",R=`${T}/edit/`;class b extends HTMLElement{static get observedAttributes(){return["src","show-labels",L,x,B,A,I,H,v,E,S,k]}shadow;sceneElement;toolbarElement;accountElement;accountPrefix;caseOfElement;observerText;observerSelect;infoButton;infoPanel;infoAppLink;editLink;readingFindingsElement;readingSensible=!1;readingCheck;bestCases;readingScene=!1;readingEntry;static VERDICT_COLOURS={incompatible:"#e04848",unsettled:"#e08a2c",compatible:"#2e9d5b"};infoObservationHeading;infoObservationList;infoCreditsToggle;infoCreditsList;infoCloseButton;shareButton;shareMessages;shareDialog;shareStartOn;shareStart;shareScopeRow;shareScopeLabel;shareScope;shareOpensRow;shareOpensLabel;shareOpens;shareStartLabel;shareOptions;labelsToggle;paramSummary;summaryBuilder;summarySignature="";assessmentEntries=[];assessmentToken=0;supportsPopover=typeof HTMLElement.prototype.showPopover=="function";entries=[];caseSource;interpretationChoice;interpretationLabel;interpretationSelect;confrontationElement;confrontationHeading;confrontationList;compareButton;variantChips;variantMoved;interpretationLoaders=new Map;interpretationToken=0;shownInterpretation;offeredFor;currentSrc;infoOpen=!1;creditsOpen=!1;labelsShown=!1;language="en";messages;ready=Promise.resolve();constructor(){super(),this.shadow=this.attachShadow({mode:"open"});const e=document.createElement("template");e.innerHTML=`<style>${me}</style>${ue}`,this.shadow.appendChild(e.content.cloneNode(!0)),customElements.upgrade(this.shadow),this.sceneElement=document.createElement(Y),this.forwardPlayerAttributes(),this.sceneElement.ufoElement.creditShownExternally=!0,this.sceneElement.ownCredits=!1,this.shadow.getElementById("ufo-slot").replaceWith(this.sceneElement),this.toolbarElement=this.shadow.getElementById("toolbar"),this.accountElement=this.shadow.getElementById("account"),this.accountPrefix=this.shadow.getElementById("account-prefix"),this.caseOfElement=this.shadow.getElementById("case-of"),this.observerText=this.shadow.getElementById("observer-text"),this.observerSelect=this.shadow.getElementById("observer"),this.infoButton=this.shadow.getElementById("info-button"),this.infoPanel=this.shadow.getElementById("info-panel"),this.infoAppLink=this.shadow.getElementById("info-app-link"),this.editLink=this.shadow.getElementById("edit-link"),this.infoObservationHeading=this.shadow.getElementById("info-observation-heading"),this.infoObservationList=this.shadow.getElementById("info-observation-list"),this.infoCreditsToggle=this.shadow.getElementById("info-credits-toggle"),this.infoCreditsList=this.shadow.getElementById("info-credits-list"),this.infoCloseButton=this.shadow.getElementById("info-close"),this.labelsToggle=this.shadow.getElementById("labels-button"),this.paramSummary=this.shadow.getElementById("param-summary"),this.labelsToggle.addEventListener("click",()=>{this.showLabels=!this.showLabels}),this.shareButton=document.createElement("button"),this.shareButton.type="button",this.shareButton.id="share-button",this.shareButton.setAttribute("aria-haspopup","dialog"),this.shareButton.innerHTML=ee.SHARE,this.sceneElement.ufoElement.addControl(this.shareButton),this.shareDialog=this.shadow.getElementById("share-dialog"),this.shareDialog.subject=this.shareSubject,this.shareStartOn=this.shadow.getElementById("share-start-on"),this.shareStart=this.shadow.getElementById("share-start"),this.shareStartLabel=this.shadow.getElementById("share-start-label"),this.shareScopeRow=this.shadow.getElementById("share-scope-row"),this.shareScopeLabel=this.shadow.getElementById("share-scope-label"),this.shareScope=this.shadow.getElementById("share-scope"),this.shareOpensRow=this.shadow.getElementById("share-opens-row"),this.shareOpensLabel=this.shadow.getElementById("share-opens-label"),this.shareOpens=this.shadow.getElementById("share-opens");const t=s=>({input:this.shadow.getElementById(`share-opt-${s}`),label:this.shadow.getElementById(`share-opt-${s}-label`)});this.shareOptions={labels:t("labels"),map:t("map"),milestones:t("milestones"),compare:t("compare")},this.interpretationChoice=this.shadow.getElementById("interpretation-choice"),this.interpretationLabel=this.shadow.getElementById("interpretation-label"),this.interpretationSelect=this.shadow.getElementById("interpretation"),this.confrontationElement=this.shadow.getElementById("confrontation"),this.confrontationHeading=this.shadow.getElementById("confrontation-heading"),this.confrontationList=this.shadow.getElementById("confrontation-list"),D.register(),this.readingFindingsElement=this.shadow.getElementById("reading-findings");const i=this.shadow.getElementById("reading-chip");i.addEventListener("click",()=>{const s=i.getAttribute("aria-expanded")!=="true";i.setAttribute("aria-expanded",String(s)),this.shadow.getElementById("reading-findings-list").hidden=!s}),this.compareButton=this.shadow.getElementById("compare-account"),this.variantChips=this.shadow.getElementById("variant-chips"),this.variantMoved=this.shadow.getElementById("variant-moved"),this.compareButton.addEventListener("click",()=>this.setComparing(!this.sceneElement.compareAccount)),this.observerSelect.addEventListener("change",()=>this.selectObserver(this.observerSelect.value)),this.interpretationSelect.addEventListener("change",()=>void this.chooseInterpretation(this.interpretationSelect.value)),this.sceneElement.addEventListener(te,s=>this.showConfrontation(s.detail)),this.sceneElement.ufoElement.addEventListener("timeupdate",()=>this.refreshParamSummary()),this.supportsPopover?(this.infoPanel.setAttribute("popover","auto"),this.infoPanel.removeAttribute("hidden"),this.infoButton.setAttribute("popovertarget","info-panel"),this.infoPanel.addEventListener("beforetoggle",s=>{s.newState==="open"&&(this.populateInfoPanel(),this.bringInfoButtonIntoView())}),this.infoPanel.addEventListener("toggle",s=>this.syncInfoOpen(s.newState==="open"))):this.infoButton.addEventListener("click",()=>this.toggleInfoPanel()),this.infoCloseButton.addEventListener("click",()=>this.toggleInfoPanel()),this.infoCreditsToggle.addEventListener("click",()=>this.toggleCredits()),this.shareButton.addEventListener("click",()=>this.openShare()),this.editLink.addEventListener("click",s=>{const n=this.editDetail();n&&G.ask(this,q,n)&&s.preventDefault()});for(const s of[this.shareStartOn,this.shareStart,...Object.values(this.shareOptions).map(n=>n.input)])s.addEventListener("input",()=>this.refreshShareLinks());for(const s of[this.shareScope,this.shareOpens])s.addEventListener("change",()=>this.refreshShareLinks());this.isConnected&&(this.ready=this.loadLocaleMessages())}get scene(){return this.sceneElement}async loadLocaleMessages(){const e=++this.localeToken,t=N.preferencesFor(this);this.preferences=t;const i=W(t,K),[s,n,o,a]=await Promise.all([Z.load(i),J(i),Q(i),se.load(i)]);if(e!==this.localeToken)return;const r=i!==this.language||this.messages===void 0;this.language=i,this.messages=s,this.readingCheck=new ie(a),this.bestCases=new ne(a),this.tags=new P(n),this.said=new M(t),this.summaryBuilder=new oe(this.messages,new ae(o),this.said,this.tags,{messages:this.messages,locale:i}),this.accountPrefix.textContent=this.messages?.accountBy??"",this.interpretationLabel.textContent=this.messages?.interpretation??"",this.confrontationHeading.textContent=this.messages?.confrontation??"";const h=this.entries.find(c=>c.src===this.currentSrc);h&&this.offerInterpretations(h),this.updateCompareButton(),this.infoButton.title=this.messages?.about??"",this.infoButton.setAttribute("aria-label",this.messages?.about??""),this.editLink.title=this.messages?.editThisObservation??"",this.editLink.setAttribute("aria-label",this.messages?.editThisObservation??""),this.infoCloseButton.setAttribute("aria-label",this.messages?.close??""),this.infoObservationHeading.textContent=this.messages?.observation??"",this.infoCreditsToggle.textContent=this.messages?.credits??"",this.syncLabelsToggle(),this.refreshParamSummary(),r&&this.currentSrc&&this.runAssessments(),this.shareButton.title=this.messages?.share??"",this.shareButton.setAttribute("aria-label",this.messages?.share??""),this.shareStartLabel.textContent=this.messages?.shareStartAt??"",this.shareScopeLabel.textContent=this.messages?.shareScope??"",this.shareOpensLabel.textContent=this.messages?.shareOpensOn??"",this.shareOptions.labels.label.textContent=this.messages?.shareOptionLabels??"",this.shareOptions.map.label.textContent=this.messages?.shareOptionMap??"",this.shareOptions.milestones.label.textContent=this.messages?.shareOptionMilestones??"",this.shareOptions.compare.label.textContent=this.messages?.shareOptionCompare??"",this.shareStart.setAttribute("aria-label",this.messages?.shareStartAt??""),this.shareDialog.useLanguage(i).then(c=>{c&&(this.shareMessages=c)}),this.infoOpen&&this.populateInfoPanel(),this.updateAccountLine()}preferences=[];localeToken=0;said=new M(["en"]);tags=new P({});connectedCallback(){N.preferencesFor(this).join()!==this.preferences.join()&&(this.ready=this.loadLocaleMessages()),this.applyAskedInfo();const e=this.getAttribute("src");e&&this.loadFromSrc(e)}applyAskedInfo(){this.isConnected&&this.hasAttribute(L)!==this.infoOpen&&this.toggleInfoPanel()}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}attributeChangedCallback(e,t,i){if(e==="src"&&i&&i!==t&&this.isConnected&&this.loadFromSrc(i),e===B){const s=this.entries.find(n=>n.src===this.currentSrc);s&&this.offerInterpretations(s)}if(e===x){const s=this.entries.find(n=>n.src===this.currentSrc);this.setEntries(this.entries,this.caseSource),s&&this.offerInterpretations(s)}if(e===L&&this.applyAskedInfo(),e==="show-labels"&&this.applyLabels(this.hasAttribute("show-labels")),(e===E||e===S)&&this.forwardPlayerAttributes(),e===v&&this.entries.length>1){const s=this.entryAsked(this.entries);s&&s.src!==this.currentSrc&&this.selectObserver(s.src)}e===k&&this.setComparing(this.hasAttribute(k))}forwardPlayerAttributes(){for(const e of[E,S]){const t=this.getAttribute(e);t===null?this.sceneElement.removeAttribute(e):this.sceneElement.setAttribute(e,t)}}get loaded(){return this.loading??Promise.resolve()}loading;loadFromSrc(e){const t=this.readFromSrc(e);return this.loading=t.catch(()=>{}),t}async readFromSrc(e){this.startPending=!0;const t=y.recording(e);this.sceneElement.holdForNewScene(t);const i=await t;if(Array.isArray(i))throw new Error(`${e} is a bare list of recordings, which is no longer read: list them as the sighting events of a case.json`);if(m.isCase(i)){m.check(i);const s=m.sightingUrls(i,new URL(e,location.href).href);if(s.length===0)throw new Error(`${e} is a case with no sighting event: no recording to show`);await this.loadObserverUrls(s,{json:i,url:new URL(e,location.href).href})}else this.setEntries([{src:e,sighting:i}],void 0)}get sightingData(){return this.entries.find(e=>e.src===this.currentSrc)?.sighting}set sightingData(e){const t=U.recording(e);this.startPending=!0,this.currentSrc="",this.setEntries([{src:"",sighting:t}],void 0)}seekTo(e,t){const i=this.caseSource,s=t===void 0?void 0:this.entries.find(n=>{const o=this.plain(n).id;return(i?m.accountIds(i.json,i.url,n.src,o):[o]).includes(t)});s&&s.src!==this.currentSrc&&this.selectObserver(s.src),this.sceneElement.ufoElement.currentTime=Math.max(0,e)*1e3}set citedMoments(e){this.sceneElement.ufoElement.citedMoments=e}get playedSeconds(){return this.sceneElement.ufoElement.currentTime/1e3}get observerUrls(){return this.entries.map(e=>e.src)}set observerUrls(e){this.loadObserverUrls(e)}async loadObserverUrls(e,t){const i=await Promise.all(e.map(async s=>({src:s,sighting:await y.recording(s)})));this.setEntries(i,t)}reportCaseProblems(e,t){const{duplicateIds:i,unresolved:s}=m.problems(e,t.map(n=>this.plain(n).id).filter(n=>n!==void 0));for(const n of i)console.warn(`The case ${e.id??""} gives the id "${n}" to more than one event: a reference to it is ambiguous.`);for(const{reading:n,reference:o}of s)console.warn(`The reading ${n} of the case ${e.id??""} is "interpretationOf" "${o}", which no event of the case has as its id, nor any recording it lists.`)}setEntries(e,t){this.entries=e.map(o=>({...o,sighting:U.recording(o.sighting)})),this.caseSource=t,t&&this.reportCaseProblems(t.json,e),this.toolbarElement.hidden=e.length===0;const i=e.length>1&&!this.hasAttribute(x);this.observerSelect.hidden=!i,this.observerText.hidden=i,this.observerSelect.innerHTML="";const s=e.map((o,a)=>this.observerDisplayName(this.plain(o).observer)??this.caseTitleOf(o)??(this.messages?.unnamedObserver??"").replace("{n}",String(a+1)));for(const[o,a]of e.entries()){const r=document.createElement("option");r.value=a.src;const h=s.filter(c=>c===s[o]).length>1;r.textContent=(h?this.caseTitleOf(a):void 0)??s[o],this.observerSelect.appendChild(r)}const n=e.find(o=>o.src===this.currentSrc)??this.entryAsked(e)??e[0];n?this.selectObserver(n.src):this.updateAccountLine()}entryAsked(e){const t=this.getAttribute(v)?.trim();if(!t)return;const i=e.find(o=>this.plain(o).observer?.id===t);if(i)return i;const s=this.caseSource;if(s){const o=e.find(a=>m.accountIds(s.json,s.url,a.src,this.plain(a).id).includes(t));if(o)return o}const n=e.find(o=>o.src.split("/").pop()===t.split("/").pop());return n||(/^\d+$/.test(t)?e[Number(t)-1]:void 0)}observerKeyOf(e){return this.plain(e).observer?.id??String(this.entries.indexOf(e)+1)}sharedEntry(){const e=this.shareScope.value;if(!(!this.caseSource||e===C))return this.entries.find(t=>t.src===e)}get sharesCase(){return this.caseSource!==void 0&&!this.shareScopeRow.hidden&&this.shareScope.value===C}editorUrl(){if(!this.currentSrc)return R;const e=new URL(this.currentSrc,location.href),t=this.caseSource;return t?`${R}?file=${encodeURIComponent(t.url)}&track=${encodeURIComponent(this.shownTrackUrl()??e.href)}`:`${R}?file=${encodeURIComponent(e.href)}`}editDetail(){if(!this.currentSrc)return;const e=new URL(this.currentSrc,location.href).href,t=this.caseSource;return t?{src:t.url,track:this.shownTrackUrl()??e}:{src:e}}get editorHref(){return this.editorUrl()}get shownRecordingUrl(){return this.currentSrc?new URL(this.currentSrc,location.href).href:void 0}get shownReadingUrl(){return this.shownTrackUrl()}shownTrackUrl(){return this.readingUrlOf(this.interpretationSelect.value)}shareSubject={module:"rr0-sighting",link:()=>this.playUrl(),element:()=>this.replayElement()};replayElement(){const e=this.sharedAddress(),i=[...e.observer?[[v,e.observer]]:[],...this.replayAttributes()].map(([s,n])=>n===""?` ${s}`:` ${s}="${n}"`).join("");return`<rr0-sighting src="${e.src}"${i}></rr0-sighting>`}playUrl(){const e=this.sharedAddress(),t=[...e.observer?[`${v}=${encodeURIComponent(e.observer)}`]:[],...this.replayQuery()].join("&");return e.src?`${T}/play/?file=${encodeURIComponent(e.src)}${t&&"&"+t}`:`${T}/play/${t&&"?"+t}`}sharedAddress(){const e=t=>t?new URL(t,location.href).href:"";if(this.sharesCase){const t=this.entries.find(i=>i.src===this.shareOpens.value)??this.entries.find(i=>i.src===this.currentSrc);return{src:e(this.caseSource.url),observer:t?this.observerKeyOf(t):void 0}}return{src:e(this.sharedEntry()?.src??this.currentSrc??"")}}replayAttributes(){const e=this.shareOptions,t=[];return this.shareStartSeconds!==void 0&&t.push([I,String(this.shareStartSeconds)]),e.labels.input.checked&&t.push(["show-labels",""]),e.map.input.checked&&t.push([E,""]),e.milestones.input.checked||t.push([S,""]),e.compare.input.checked&&t.push([k,""]),t}replayQuery(){const e=this.shareOptions,t=[];return this.shareStartSeconds!==void 0&&t.push(`d=${this.shareStartSeconds}`),e.labels.input.checked||t.push("labels=0"),e.map.input.checked&&t.push("map=1"),e.milestones.input.checked||t.push("moments=0"),e.compare.input.checked&&t.push("compare=1"),t}get shareStartSeconds(){const e=Math.floor(Number(this.shareStart.value));return this.shareStartOn.checked&&Number.isFinite(e)&&e>=0?e:void 0}refreshShareLinks(){this.shareOpensRow.hidden=!this.sharesCase,this.shareDialog.refresh()}openShare(){const e=this.sceneElement.ufoElement;this.shareStart.max=String(Math.floor(e.seekableDuration/1e3)),this.shareStart.value=String(Math.floor(e.currentTime/1e3)),this.shareStartOn.checked=!1,this.shareOptions.labels.input.checked=this.labelsShown,this.shareOptions.map.input.checked=e.observerMapOpen,this.shareOptions.milestones.input.checked=e.milestonesVisible,this.shareOptions.compare.input.checked=this.sceneElement.compareAccount,this.offerShareScope(),this.shareOpensRow.hidden=!this.sharesCase;const t=[this.caseSource?.url,this.currentSrc,this.shownTrackUrl(),...this.entries.map(i=>i.src)];this.shareDialog.note=$.changed(...t)?this.shareMessages?.unsaved:void 0,this.shareDialog.open()}offerShareScope(){const e=this.caseSource!==void 0&&this.entries.length>1&&!this.hasAttribute(A);if(this.shareScopeRow.hidden=!e,this.shareScope.innerHTML="",this.shareOpens.innerHTML="",!e)return;const t=(i,s,n)=>{const o=document.createElement("option");o.value=s,o.textContent=n,i.appendChild(o)};t(this.shareScope,C,this.messages?.shareScopeCase??"");for(const i of this.entries){const s=this.observerDisplayName(this.plain(i).observer)??this.caseTitleOf(i)??(this.messages?.unnamedObserver??"").replace("{n}",String(this.entries.indexOf(i)+1));t(this.shareScope,i.src,s),t(this.shareOpens,i.src,s)}this.shareScope.value=C,this.shareOpens.value=this.currentSrc??this.entries[0].src}offerInterpretations(e){const t=this.offeredFor===e.sighting,i=this.interpretationSelect.value;this.offeredFor=e.sighting,this.interpretationToken++,this.interpretationLoaders=new Map,this.interpretationSelect.innerHTML="";const s=(d,l,p)=>{const f=document.createElement("option");f.value=d,f.textContent=l,this.interpretationSelect.appendChild(f),this.interpretationLoaders.set(d,p)},n=e===this.entries.find(d=>d.src===this.currentSrc),o=n?this.sceneElement.ufoElement.sighting.interpretation:void 0;s(w,this.messages?.account??"",()=>Promise.resolve(o));const a=this.caseSource;a&&m.interpretationEvents(a.json,m.accountIds(a.json,a.url,e.src,this.plain(e).id)).forEach((d,l)=>{const p=this.said.read(d.title)??`#${l+1}`,f=(d.by??[]).map(g=>this.agentName(g)).filter(Boolean).join(", ");s(`case-${l}`,f?(this.messages?.interpretationBy??"").replace("{title}",p).replace("{by}",f):p,()=>m.interpretationOf(d,a.url,g=>y.recording(g)))});const r=n?this.keptVariants(e):[];for(const{index:d,kept:l}of r)s(`${O}${d}`,`${this.variantLabel(l)} (${this.messages?.verdicts[l.variant.verdict]??""})`,()=>Promise.resolve(l.bodies.length>0?l:void 0));const h=t&&[...this.interpretationSelect.options].some(d=>d.value===i),c=this.askedInterpretation()??(h?i:w);this.interpretationSelect.value=c,c===w?(this.sceneElement.interpretation!==o&&(this.sceneElement.interpretation=o),this.shownInterpretation=w):(!this.sceneElement.interpretation||this.shownInterpretation!==c)&&this.chooseInterpretation(c),this.interpretationChoice.hidden=this.interpretationSelect.options.length<2||this.hasAttribute(x),this.showConfrontation(this.sceneElement.confrontation),this.updateCompareButton(),this.showVariants(r)}keptVariants(e){const t={consolidated:0,contested:1,incompatible:2};return(e.sighting.variants??[]).map((i,s)=>({index:s,kept:i})).filter(({kept:i})=>i.variant).sort((i,s)=>t[i.kept.variant.verdict]-t[s.kept.variant.verdict]||i.kept.variant.cost-s.kept.variant.cost)}variantLabel(e){return(this.messages?.variant??"").replace("{name}",e.variant.label??e.variant.candidate)}showVariants(e){if(!this.messages)return;if(this.variantChips.innerHTML="",this.variantChips.hidden=e.length===0,e.length===0){this.showVariantMoved();return}const t=(i,s,n)=>{const o=document.createElement("button");o.type="button",o.dataset.value=i,n&&(o.dataset.verdict=n,o.title=this.messages.verdicts[n],o.append(Object.assign(document.createElement("span"),{className:"dot"}))),o.append(s),o.addEventListener("click",()=>{this.interpretationSelect.value!==i&&(this.interpretationSelect.value=i,this.chooseInterpretation(i))}),this.variantChips.append(o)};t(w,this.messages?.account??"");for(const{index:i,kept:s}of e)t(`${O}${i}`,s.variant.label??s.variant.candidate,s.variant.verdict);this.showVariantMoved()}showVariantMoved(){if(!this.messages)return;const e=this.interpretationSelect.value;for(const n of this.variantChips.querySelectorAll("button"))n.setAttribute("aria-pressed",String(n.dataset.value===e));this.variantMoved.innerHTML="";const t=e.startsWith(O)?Number(e.slice(O.length)):-1,i=this.sceneElement.ufoElement.sighting.variants?.[t]?.variant;if(this.variantMoved.hidden=!i||i.moved.length+(i.readings?.length??0)===0,!i)return;const s=new Intl.NumberFormat(this.language,{maximumFractionDigits:1});for(const n of i.moved){const[o,a]=n.field==="time"?["0 min",`${n.variant>0?"+":""}${s.format(n.variant)} min`]:n.field==="duration"?[`${s.format(n.stated)} s`,`${s.format(n.variant)} s`]:[`${s.format(n.stated)}°`,`${s.format(n.variant)}°`],r=document.createElement("span");r.append(`${this.messages.variantFields[n.field]}${this.colon}`,Object.assign(document.createElement("s"),{textContent:o})," → ",Object.assign(document.createElement("b"),{textContent:a})),this.variantMoved.append(r)}for(const n of i.readings??[]){const o=this.messages.variantReadings[n.reading];o&&this.variantMoved.append(Object.assign(document.createElement("span"),{className:"reading",textContent:o}))}}setComparing(e){this.sceneElement.compareAccount=e,this.updateCompareButton(),this.showConfrontation(this.sceneElement.confrontation)}updateCompareButton(){const e=this.sceneElement.compareAccount;this.compareButton.hidden=!this.sceneElement.interpretation,this.compareButton.setAttribute("aria-pressed",String(e));const t=e?this.messages?.hideComparison??"":this.messages?.showComparison??"";this.compareButton.title=t,this.compareButton.setAttribute("aria-label",t)}get colon(){return this.language==="fr"?" : ":": "}askedInterpretation(){const e=this.getAttribute(B)?.trim(),t=this.caseSource;if(!e||!t)return;const i=this.entries.find(o=>o.src===this.currentSrc);if(!i)return;const n=m.interpretationEvents(t.json,m.accountIds(t.json,t.url,i.src,this.plain(i).id)).findIndex(o=>o.id===e||typeof o.url=="string"&&new URL(o.url,t.url).href===new URL(e,location.href).href);return n>=0?`case-${n}`:void 0}async chooseInterpretation(e){const t=++this.interpretationToken,i=this.interpretationLoaders.get(e),s=i?await i().catch(l=>{console.warn(`<rr0-sighting>: could not read interpretation "${e}":`,l)}):void 0,n=this.readingUrlOf(e),o=n?await y.recording(n).catch(()=>{}):void 0;if(t!==this.interpretationToken)return;const a=this.entries.find(l=>l.src===this.currentSrc),r=a&&o&&"timeline"in o?this.bestCases?.bestSceneOf(a.sighting,o):void 0,h=r??o,c=r?.interpretation&&s?{...s,bodies:[...s.bodies.map(l=>{const p=r.interpretation.bodies.find(f=>f.id===l.id);return p?{...l,track:p.track}:l}),...r.interpretation.bodies.filter(l=>!s.bodies.some(p=>p.id===l.id))]}:s,d=a&&h&&"timeline"in h&&b.changesTheScene(a.sighting,h)?{...h,timeline:h.timeline.keyframes?.length?h.timeline:a.sighting.timeline}:void 0;if(d&&n)this.showScene(d,n);else if(this.readingScene&&a)this.showScene(a.sighting,a.src,!0);else if(a){const l=!this.sceneElement.ufoElement.playRequested;n?this.sceneElement.showPoster(o?.image,n,l):a.sighting.image?this.sceneElement.showPoster(a.sighting.image,a.src?new URL(a.src,location.href).href:void 0,l):this.sceneElement.showPoster(this.caseSource?.json.image,this.caseSource?.url,l)}this.readingScene=d!==void 0,this.sceneElement.interpretation=c,this.shownInterpretation=e,this.showReadingFindings(a,h),this.editLink.href=this.editorUrl(),this.dispatchEvent(new CustomEvent(ge,{detail:{track:this.shownTrackUrl()}})),this.updateCompareButton(),this.showConfrontation(this.sceneElement.confrontation),this.showVariantMoved()}readingUrlOf(e){const t=this.caseSource,i=this.entries.find(o=>o.src===this.currentSrc),s=/^case-(\d+)$/.exec(e);if(!t||!i||!s)return;const n=m.interpretationEvents(t.json,m.accountIds(t.json,t.url,i.src,this.plain(i).id))[Number(s[1])];return n?.url?new URL(n.url,t.url).href:void 0}static SCENE_FIELDS=["time","utcOffsetHours","place","observerTrack","weatherTrack","decor","instrument","lens","film","exposureSeconds","iso","references","lighting","lightPollution","vehicle"];static changesTheScene(e,t){const i=s=>JSON.stringify(b.SCENE_FIELDS.map(n=>s[n]));return i(e)!==i(t)}showScene(e,t,i=!1){const s=this.sceneElement.ufoElement.currentTime;this.sceneElement.documentUrl=t?new URL(t,location.href).href:void 0;const n=!this.sceneElement.ufoElement.playRequested,o=t?new URL(t,location.href).href:void 0;e.image?this.sceneElement.showPoster(e.image,o,n):i?this.sceneElement.showPoster(this.caseSource?.json.image,this.caseSource?.url,n):this.sceneElement.showPoster(void 0,void 0,n),this.sceneElement.sightingData=e,this.sceneElement.ufoElement.currentTime=s}showReadingFindings(e,t){const i=this.readingFindingsElement,s=this.messages,n=t?.interpretation?.findings??[],o=e&&t&&this.readingCheck?this.readingCheck.findingsOf(e.sighting,t):[],a=[...n,...o],r=re.of(a);this.readingEntry=s&&r?{group:"summary",field:"reading",label:s.readingLabel,unit:"",fromSource:!1,value:(a.length===1?s.readingChipOne:s.readingChip).replace("{verdict}",s.readingVerdict[r]).replace("{n}",String(a.length)),color:b.VERDICT_COLOURS[r],full:a.map(d=>`${{holds:"✓",fails:"✗",untested:"?"}[d.outcome]} ${this.said.read(d.text)??""}`+(d.outcome==="fails"?` (${s.findingAgainst[d.against??"established"]})`:"")).join(`
|
|
692
|
+
`)}:void 0,this.summarySignature="\0",this.refreshParamSummary();const h=i.querySelector("#reading-sensitivity");if(this.readingSensible=e&&t?D.resultOf(e.sighting,t)!==void 0:!1,h.show(e?.sighting,t),this.showReadingBox(),!s||!r){i.querySelector("#reading-findings-list").hidden=!0,delete i.dataset.verdict;return}i.dataset.verdict=r,i.querySelector("#reading-verdict").textContent=(a.length===1?s.readingChipOne:s.readingChip).replace("{verdict}",s.readingVerdict[r]).replace("{n}",String(a.length));const c=i.querySelector("#reading-findings-list");i.querySelector("#reading-chip").setAttribute("aria-expanded","false"),c.hidden=!0,c.replaceChildren(...a.map(d=>{const l=document.createElement("li");l.dataset.outcome=d.outcome;const p=document.createElement("span");p.className="finding-mark",p.textContent={holds:"✓",fails:"✗",untested:"?"}[d.outcome],p.title=s.findingOutcome[d.outcome],p.setAttribute("aria-label",s.findingOutcome[d.outcome]);const f=document.createElement("span");if(f.textContent=this.said.read(d.text)??"",l.append(p,f),d.outcome==="fails"){const g=document.createElement("span");g.className="finding-against",g.textContent=`(${s.findingAgainst[d.against??"established"]})`,l.append(g)}return l}))}agentName(e){if("people"in e){const[t,...i]=e.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...i,t].join(" ")}return"org"in e?e.org.replace(/([a-z])([A-Z])/g,"$1 $2"):this.observerDisplayName(e)??""}showConfrontation(e){this.confrontationList.innerHTML="",this.confrontationElement.hidden=!this.sceneElement.interpretation||!this.sceneElement.compareAccount;const t=new Intl.NumberFormat(this.language,{maximumFractionDigits:1,minimumFractionDigits:1}),i=new Intl.NumberFormat(this.language,{maximumFractionDigits:2,minimumFractionDigits:2});for(const s of e){const n=document.createElement("li");n.append(`${this.said.read(s.title)??s.sourceId}${this.colon}`);const o=[];s.separationDeg!==void 0&&o.push([(this.messages?.confrontationDirection??"").replace("{deg}",t.format(s.separationDeg)),s.disagreements.includes("direction")]),s.widthRatio!==void 0&&o.push([(this.messages?.confrontationWidth??"").replace("{ratio}",i.format(s.widthRatio)),s.disagreements.includes("width")]),s.heightRatio!==void 0&&o.push([(this.messages?.confrontationHeight??"").replace("{ratio}",i.format(s.heightRatio)),s.disagreements.includes("height")]),o.forEach(([a,r],h)=>{h>0&&n.append(" · ");const c=document.createElement("span");c.textContent=a,r&&(c.className="disagrees"),n.append(c)}),this.confrontationList.appendChild(n)}}startPending=!1;startSeconds(e){const t=u.clock(this.getAttribute(H)),i=this.plain(e).time;return(t?u.elapsedSince(i===void 0?void 0:j(i),t):void 0)??u.delta(this.getAttribute(I))}selectObserver(e){const t=this.entries.find(s=>s.src===e);if(!t)return;this.currentSrc=e,this.observerSelect.value=e,this.sceneElement.documentUrl=t.src?new URL(t.src,location.href).href:void 0;const i=!this.sceneElement.ufoElement.playRequested;if(t.sighting.image?this.sceneElement.showPoster(t.sighting.image,t.src?new URL(t.src,location.href).href:void 0,i):this.sceneElement.showPoster(this.caseSource?.json.image,this.caseSource?.url,i),this.sceneElement.holdForNewScene(),this.sceneElement.sightingData=t.sighting,this.readingScene=!1,this.startPending){this.startPending=!1;const s=this.startSeconds(t);s!==void 0&&(this.sceneElement.ufoElement.currentTime=Math.max(0,s)*1e3)}this.offerInterpretations(t),this.updateAccountLine(),this.refreshParamSummary(),this.runAssessments(),this.infoOpen&&this.populateInfoPanel(),this.dispatchEvent(new CustomEvent(fe,{detail:{src:e}}))}async runAssessments(){if(!this.messages)return;const e=++this.assessmentToken,t=await new he(this.messages).read(this.sceneElement.ufoElement.sighting);e===this.assessmentToken&&(this.assessmentEntries=t.entries,this.refreshParamSummary())}updateAccountLine(){const e=this.entries.find(a=>a.src===this.currentSrc),t=e?this.observerDisplayName(this.plain(e).observer):void 0,i=t!==void 0||this.entries.length>1;this.accountElement.hidden=!i,this.observerText.textContent=t??"";const n=!this.hasAttribute(A)&&this.caseSource&&(this.said.read(this.caseSource.json.title)??this.caseSource.json.id);this.caseOfElement.hidden=!n,this.caseOfElement.textContent=n?`${this.messages?.case??""} ${n}`:"";const o=t!==void 0?`${this.messages?.accountBy??""} ${t}`.trim():void 0;this.sceneElement.filmName=[n||void 0,o].filter(Boolean).join(" - ")||void 0,this.editLink.hidden=!this.currentSrc,this.editLink.href=this.editorUrl(),this.shareButton.hidden=$.local(this.caseSource?.url??this.currentSrc),this.editLink.title=this.messages?.editThisObservation??"",this.editLink.setAttribute("aria-label",this.messages?.editThisObservation??"")}caseTitleOf(e){const t=this.caseSource;if(!t)return;const i=t.json.events?.find(s=>s.url!==void 0&&!s.interpretationOf&&new URL(s.url,t.url).href===new URL(e.src,location.href).href);return i?this.said.read(i.title):void 0}observerDisplayName(e){if(!e)return;const t=[...e.firstNames??[],e.lastName].filter(Boolean).join(" ");return this.said.read(e.title)||t||e.id}plainRecordings=new WeakMap;plain(e){return this.stripped(e).recording}stripped(e){let t=this.plainRecordings.get(e.sighting);return t||(t=X.strip(e.sighting),this.plainRecordings.set(e.sighting,t)),t}basisOf(e,t){const i=this.stripped(e).provenance,s={established:-2,measured:-1,stated:0,derived:1,assumed:2,fitted:3},n=i.paths().filter(r=>t.some(h=>r===h||r.startsWith(`${h}.`))).map(r=>i.at(r)),o=n.reduce((r,h)=>s[h.basis]>s[r]?h.basis:r,"stated"),a=n.filter(r=>r.basis===o&&r.rationale).map(r=>this.said.read(r.rationale)??"").filter(r=>r!=="");return{basis:o,rationales:a}}formatDate(e){const t=e.place?.locations?.[0],i=le((e.time?j(e.time):void 0)??{},t?.lng??0,e.utcOffsetHours);if(!i)return;const s=i.getTime()+this.utcOffsetHoursOf(e,t?.lng??0)*36e5;if(Number.isFinite(s))return new Intl.DateTimeFormat(this.language,{dateStyle:"long",timeStyle:"short",timeZone:"UTC"}).format(new Date(s))}utcOffsetHoursOf(e,t){return e.utcOffsetHours??Math.round(t/15)}formatLocation(e){const t=e.place?.locations?.[0];if(t)return`${t.lat.toFixed(4)}, ${t.lng.toFixed(4)}`}toggleInfoPanel(){const e=!this.infoOpen;if(this.supportsPopover){const t=this.infoPanel.matches(":popover-open");e&&!t?this.infoPanel.showPopover():!e&&t&&this.infoPanel.hidePopover();return}e&&this.bringInfoButtonIntoView(),this.syncInfoOpen(e),this.infoPanel.hidden=!e,e?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}bringInfoButtonIntoView(){const e=this.infoButton.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;e.top>=0&&e.bottom<=t||this.infoButton.scrollIntoView({block:"center"})}syncInfoOpen(e){e!==this.infoOpen&&(this.infoOpen=e,this.infoButton.setAttribute("aria-expanded",String(e)),e?this.supportsPopover||this.populateInfoPanel():(this.creditsOpen=!1,this.infoCreditsList.hidden=!0,this.infoCreditsToggle.setAttribute("aria-expanded","false")))}handleOutsideClick=e=>{const t=e.composedPath();!t.includes(this.infoPanel)&&!t.includes(this.infoButton)&&this.toggleInfoPanel()};toggleCredits(){this.creditsOpen=!this.creditsOpen,this.infoCreditsList.hidden=!this.creditsOpen,this.infoCreditsToggle.setAttribute("aria-expanded",String(this.creditsOpen)),this.creditsOpen&&this.revealInPanel(this.infoCreditsList)}revealInPanel(e){e.scrollIntoView?.({block:"nearest"})}get showLabels(){return this.labelsShown}set showLabels(e){this.toggleAttribute("show-labels",e)}applyLabels(e){this.labelsShown=e,this.syncLabelsToggle(),this.refreshParamSummary(),this.populateInfoPanel()}syncLabelsToggle(){const e=this.labelsShown?this.messages?.hideLabels??"":this.messages?.showLabels??"";this.labelsToggle.title=e,this.labelsToggle.setAttribute("aria-label",e),this.labelsToggle.setAttribute("aria-pressed",String(this.labelsShown))}showReadingBox(){const e=this.readingFindingsElement,t=this.readingEntry!==void 0&&!this.labelsShown;e.hidden=!t&&!this.readingSensible,e.querySelector("#reading-chip").hidden=!t,t||(e.querySelector("#reading-findings-list").hidden=!0)}refreshParamSummary(){if(this.paramSummary.hidden=!this.labelsShown,this.showReadingBox(),!this.labelsShown){this.paramSummary.replaceChildren(),this.summarySignature="";return}const e=this.sceneElement.ufoElement.sighting,t=this.summaryBuilder?.entriesFor(e,this.sceneElement.ufoElement.currentTime,{roadGradeDeg:this.sceneElement.roadGradeDeg})??[],i=t.map(h=>h.group).lastIndexOf("summary"),s=this.readingEntry?[this.readingEntry]:[],n=[...t.slice(0,i+1),...s,...t.slice(i+1),...this.assessmentEntries],o=n.map(h=>`${h.field}=${h.label}=${h.value}${h.unit}${h.full??""}${h.fromSource?"*":""}`).join("|");if(o===this.summarySignature)return;this.summarySignature=o;const a=[];let r;for(const h of n){r&&r.group!==h.group&&(r=void 0);const c=h.group==="summary"?this.messages?.summaryGroup??"":h.group==="observer"?this.messages?.observerGroup??"":this.messages&&h.group in this.messages.summaryGroups?this.messages.summaryGroups[h.group]:h.group==="assessment"?this.messages?.assessmentGroup??"":void 0;if(c!==void 0&&!r){const l=document.createElement("span");l.className="param-nest";const p=document.createElement("span");p.className="param-nest-label",p.textContent=c,l.append(p),r={group:h.group,element:l},a.push(l)}const d=this.paramItem(h);r?r.element.append(d):a.push(d)}this.paramSummary.replaceChildren(...a),this.syncDescription(n)}openDescription;openDescriptionTitle;syncDescription(e){this.openDescription!==void 0&&!e.some(t=>t.full===this.openDescription)&&(this.openDescription=void 0),_.sync(this.paramSummary,this.openDescription,this.openDescriptionTitle??this.messages?.summaryDescription??"",this.messages?.closeDescription??"",()=>{this.openDescription=void 0,this.syncDescription(e)})}paramItem(e){const t=document.createElement("span");if(t.className=e.fromSource?"param-label from-source":"param-label",e.detail&&(t.title=e.detail),e.full!==void 0){t.classList.add("describable"),t.tabIndex=0,t.setAttribute("role","button");const n=()=>{this.openDescription=e.full,this.openDescriptionTitle=e.label,this.syncDescription([e])};t.addEventListener("click",n),t.addEventListener("keydown",o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),n())})}const i=document.createElement("span");if(i.className="param-label-label",i.textContent=`${e.label} `,t.append(i),e.color!==void 0){const n=document.createElement("span");n.className="param-label-swatch",n.style.background=e.color,t.append(n)}const s=document.createElement("span");return s.className="param-label-value",s.textContent=e.unit===""?e.value:`${e.value} ${e.unit}`,t.append(s),t}populateInfoPanel(){const e=this.entries.find(t=>t.src===this.currentSrc);if(this.infoObservationList.innerHTML="",e){const t=this.caseSource&&(this.caseSource.json.title??this.caseSource.json.id);if(t&&this.appendInfoRow(this.infoObservationList,this.messages?.case??"",t),!this.labelsShown){const n=this.formatDate(this.plain(e));n&&this.appendInfoRow(this.infoObservationList,this.messages?.date??"",n,this.basisOf(e,b.DATE_PATHS));const o=this.formatLocation(this.plain(e));o&&this.appendInfoRow(this.infoObservationList,this.messages?.location??"",o,this.basisOf(e,b.PLACE_PATHS))}const i=this.said.read(this.plain(e).description);i&&!this.labelsShown&&this.appendInfoRow(this.infoObservationList,this.messages?.description??"",i);for(const n of this.plain(e).sources??[])this.appendInfoSource(this.infoObservationList,this.messages?.source??"",n);const s=this.plain(e).tags;!this.labelsShown&&s&&s.length>0&&this.appendInfoRow(this.infoObservationList,this.messages?.tags??"",s.map(n=>this.tags.name(n)).join(", "))}this.infoAppLink.href=T,this.infoAppLink.textContent="UFO@home v0.193.0",de.fill(this.infoCreditsList,this.sceneElement)}appendInfoSource(e,t,i){const s=document.createElement("dt");s.textContent=t;const n=document.createElement("dd"),o=this.said.read(i.title)??i.url??"";if(i.url&&/^https?:\/\//i.test(i.url)){const r=document.createElement("a");r.href=i.url,r.target="_blank",r.rel="noopener noreferrer",r.textContent=o,n.appendChild(r)}else n.append(o);const a=[i.authors?.join(", "),i.publication?.publisher,i.publication?.time,i.index].filter(Boolean);a.length>0&&n.append(`, ${a.join(", ")}`),e.append(s,n)}static DATE_PATHS=["time","utcOffsetHours","timeZone"];static PLACE_PATHS=["place"];appendInfoRow(e,t,i,s){if(!this.messages)return;const n=document.createElement("dt");n.textContent=t;const o=document.createElement("dd");if(o.textContent=i,s){const a=document.createElement("span");a.className=`basis basis-${s.basis}`,a.textContent=this.messages.basis[s.basis],s.rationales.length>0&&(a.title=s.rationales.join(`
|
|
693
|
+
`)),o.append(" ",a)}e.appendChild(n),e.appendChild(o)}}const F="rr0-sighting",fe="observerchange",ge="interpretationchange";function Ce(){V(),z.register(),customElements.get(F)||customElements.define(F,b)}export{A as CASE_NAMED_ATTRIBUTE,k as COMPARE_ACCOUNT_ATTRIBUTE,x as HIDE_PICKERS_ATTRIBUTE,B as INTERPRETATION_ATTRIBUTE,ge as INTERPRETATION_CHANGE_EVENT,v as OBSERVER_ATTRIBUTE,fe as OBSERVER_CHANGE_EVENT,L as SHOW_INFO_ATTRIBUTE,F as SIGHTING_ELEMENT_NAME,H as START_CLOCK_ATTRIBUTE,I as START_TIME_ATTRIBUTE,b as SightingElement,Ce as registerSighting};
|