@rr0/ufoathome 0.165.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-interview/InterviewMessages_en-BNau2xU8.js +1 -0
- package/dist-embed-interview/rr0-interview.mjs +6 -6
- package/dist-embed-scene/{AdsbLolArchiveProvider-Cea0LAnZ.js → AdsbLolArchiveProvider-C5EeYhpl.js} +1 -1
- package/dist-embed-scene/BeamEditor-ClooLylg.js +30 -0
- package/dist-embed-scene/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-scene/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-scene/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-scene/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-scene/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-scene/{BeamSystem-B80EaJKx.js → BeamSystem-PF6irYQf.js} +1 -1
- package/dist-embed-scene/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-scene/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-scene/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-scene/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-scene/{GLTFLoader-YecOnQON.js → GLTFLoader-DB2upivM.js} +1 -1
- package/dist-embed-scene/LanternEditor-DWhJGaQW.js +9 -0
- package/dist-embed-scene/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-scene/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-scene/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-scene/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-scene/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-scene/{LaserBeam-DXzWB-xk.js → LaserBeam-DXZysEYv.js} +1 -1
- package/dist-embed-scene/LaunchEditor-DQ-F25le.js +22 -0
- package/dist-embed-scene/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-scene/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-scene/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-scene/{LaunchPlume-DwOSrKP_.js → LaunchPlume-lH1zITP-.js} +1 -1
- package/dist-embed-scene/{LaunchSimulation-ClGdZJHr.js → LaunchSimulation-BrDxk8DW.js} +1 -1
- package/dist-embed-scene/{ModuleSession-DAQNvnRi.js → ModuleSession-fhQ2P9LG.js} +2 -2
- package/dist-embed-scene/ModuleThree-Du7Omkv6.js +1 -0
- package/dist-embed-scene/{ParameterForm-D0GvLmqx.js → ParameterForm-BNfKnqZ4.js} +14 -14
- package/dist-embed-scene/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-scene/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-scene/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-scene/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-scene/ReentryEditor-IDlX4mtf.js +27 -0
- package/dist-embed-scene/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-scene/{ReentrySimulation-rnJU2x1Y.js → ReentrySimulation-BHQBGIr_.js} +1 -1
- package/dist-embed-scene/SceneNames_en-MuZS0swp.js +1 -0
- package/dist-embed-scene/SceneNames_es-DuwAjd1R.js +1 -0
- package/dist-embed-scene/SceneNames_fr-ChDjaMY9.js +1 -0
- package/dist-embed-scene/SceneNames_it-CWzCQiEh.js +1 -0
- package/{dist-embed-sighting/TimelineTracks-C7uTt9N5.js → dist-embed-scene/TimelineTracks-C02lbugN.js} +1 -1
- package/dist-embed-scene/UfoMessages_en-BbYI-msn.js +1 -0
- package/dist-embed-scene/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-scene/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-scene/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +310 -310
- package/dist-embed-scene/{trafficRuntime-C3sA3Jg_.js → trafficRuntime-CdAJY70O.js} +2 -2
- package/dist-embed-sighting/{AdsbLolArchiveProvider-BGg8e-TS.js → AdsbLolArchiveProvider-Dfc5WtsT.js} +1 -1
- package/dist-embed-sighting/{BallesterGuaspAssessor-DHpHbF6s.js → BallesterGuaspAssessor-VMcyGlQb.js} +1 -1
- package/dist-embed-sighting/BeamEditor-Dvqs7sme.js +30 -0
- package/dist-embed-sighting/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-sighting/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-sighting/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-sighting/BeamSystem-BSO1d2Na.js +1 -0
- package/dist-embed-sighting/ContrailSystem-Bgre4cLs.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-sighting/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-sighting/GLTFLoader-BkhEomyw.js +1 -0
- package/dist-embed-sighting/{HeadlightSystem-CXPE3feA.js → HeadlightSystem-CmppP6Mm.js} +1 -1
- package/dist-embed-sighting/HynekAssessor-tNpli5GC.js +1 -0
- package/dist-embed-sighting/LanternEditor-DRmWNbXO.js +9 -0
- package/dist-embed-sighting/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-sighting/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-sighting/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-sighting/{LaserBeam-CovzRtac.js → LaserBeam-CT0D5uXQ.js} +1 -1
- package/dist-embed-sighting/LaunchEditor-BWm07eFT.js +22 -0
- package/dist-embed-sighting/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-sighting/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-sighting/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-sighting/{LaunchSimulation-C0cSHpLE.js → LaunchSimulation-otlua1RW.js} +1 -1
- package/dist-embed-sighting/{ModuleSession-CRVX-5Br.js → ModuleSession-BfP999ya.js} +2 -2
- package/dist-embed-sighting/ModuleThree-ColxHy_y.js +1 -0
- package/dist-embed-sighting/{NearestApproach-BOWntoKZ.js → NearestApproach-hO2JFAfU.js} +1 -1
- package/dist-embed-sighting/{ParameterForm-BMfViRUv.js → ParameterForm-DxN0Nf1y.js} +1 -1
- package/dist-embed-sighting/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-sighting/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-sighting/{PoherAssessor-CM7oCyEk.js → PoherAssessor-CxcKyCRu.js} +1 -1
- package/dist-embed-sighting/{RailwaySystem-D8yJRUc8.js → RailwaySystem-C920HhY6.js} +1 -1
- package/dist-embed-sighting/ReentryEditor-DXrar7b7.js +27 -0
- package/dist-embed-sighting/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-sighting/ReentrySimulation-BtiVr8cY.js +1 -0
- package/dist-embed-sighting/ReferenceSystem-90M3kYiP.js +1 -0
- package/dist-embed-sighting/{RoadMarkings-BC76NPX4.js → RoadMarkings-DDNrriGo.js} +1 -1
- package/dist-embed-sighting/SceneNames_en-CryY5Edh.js +1 -0
- package/dist-embed-sighting/SceneNames_es-StyJlKmE.js +1 -0
- package/dist-embed-sighting/SceneNames_fr-B3c9bWLO.js +1 -0
- package/dist-embed-sighting/SceneNames_it--6HUBaRO.js +1 -0
- package/dist-embed-sighting/ShareMessages_en-DE1WoeWH.js +1 -0
- package/dist-embed-sighting/SightingMessages_en-C6mh8cZI.js +1 -0
- package/{dist-embed-scene/TimelineTracks-Bv2FX3_W.js → dist-embed-sighting/TimelineTracks-B1dXX0uV.js} +1 -1
- package/dist-embed-sighting/{TraceSystem-Cd2FqhcV.js → TraceSystem-BrpqiAAJ.js} +2 -2
- package/dist-embed-sighting/UfoMessages_en-Bau9u8Mz.js +1 -0
- package/dist-embed-sighting/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-sighting/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-sighting/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-sighting/{WaterSystem-S81tdPno.js → WaterSystem-D3andNtL.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +358 -358
- package/dist-embed-sighting/{trafficRuntime-DL5Zul8z.js → trafficRuntime-dT3zw02J.js} +2 -2
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-DS9ev-HU.js +1 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CRfTg7iA.js → BallesterGuaspAssessor-Db5otqP1.js} +1 -1
- package/dist-embed-sighting-editor/BeamEditor-DsOf0VRe.js +30 -0
- package/dist-embed-sighting-editor/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-sighting-editor/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-sighting-editor/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-sighting-editor/{BeamSystem-BQbLn-3t.js → BeamSystem-D5tLjXtH.js} +1 -1
- package/dist-embed-sighting-editor/BodyEditor-CamqX5Xg.js +28 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_en-CKiFdpaz.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_es-DT9XO1Hc.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_fr-B5jLsE0g.js +1 -0
- package/dist-embed-sighting-editor/BodyParameterTexts_it-iyJGx4Ta.js +1 -0
- package/dist-embed-sighting-editor/CaseEditorMessages_en-BONSJaQA.js +1 -0
- package/dist-embed-sighting-editor/ClaudeNarrativeTexts_en-CBLJZ7b6.js +1 -0
- package/dist-embed-sighting-editor/CloudEditorMessages_en-SmcRKW1O.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_en-NIa0gfgA.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_es-DXu4T30p.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_fr-Bv-jc2dq.js +1 -0
- package/dist-embed-sighting-editor/CloudParameterTexts_it-C3RrkRwI.js +1 -0
- package/dist-embed-sighting-editor/{ContrailSystem-BQXLg_WA.js → ContrailSystem-rUmDVijn.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-D3HBwZuC.js → CoverageAssessor-cODG-YV9.js} +1 -1
- package/dist-embed-sighting-editor/DecorParameterTexts_en-C5dEeI_C.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_es-BysMOaxT.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_fr-CThgxosI.js +1 -0
- package/dist-embed-sighting-editor/DecorParameterTexts_it-D0ZsTK16.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_en-BroHgiwr.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_es-SraQyQ3Y.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_fr-Dy5SlSna.js +1 -0
- package/dist-embed-sighting-editor/FlareKindMessages_it-CF39wmrC.js +1 -0
- package/dist-embed-sighting-editor/{GLTFLoader-CQeR3NC8.js → GLTFLoader-5AJGh-k1.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-Cy4jSEsq.js → HeadlightSystem-neTrWCCo.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-Covu9I3x.js → HynekAssessor-DRD9zLEH.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-IBABfqta.js → InterviewEditorElement-Cs8mzPb7.js} +27 -27
- package/dist-embed-sighting-editor/LanternEditor-CnxhMWVp.js +9 -0
- package/dist-embed-sighting-editor/LanternKindMessages_en-fUfoRYC0.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_es-Chyc607D.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_fr-CDem7PTY.js +1 -0
- package/dist-embed-sighting-editor/LanternKindMessages_it-yOojym1u.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-sighting-editor/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-sighting-editor/LaserBeam-Be555mrH.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditor-7uWzz1to.js +22 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-sighting-editor/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-sighting-editor/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-sighting-editor/LaunchPlume-Bc8eFHmR.js +1 -0
- package/dist-embed-sighting-editor/{LaunchSimulation-4f9-9d7Z.js → LaunchSimulation-3YNBjyS2.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-CYfSBTeB.js → ModelSource-D0ZuOymh.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-DYWQQdaZ.js → ModelThumbnails-BA3zFrn5.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BjIOswb8.js → ModelViewer-BDorZEms.js} +1 -1
- package/dist-embed-sighting-editor/ModuleConformance-DqZDQ_RP.js +2 -0
- package/dist-embed-sighting-editor/{ModuleSession-D3GrBJ3j.js → ModuleSession-CBJWLo9w.js} +2 -2
- package/dist-embed-sighting-editor/ModuleThree-Brz-0Orl.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-BrOayCKN.js +15 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-t8LOPRx0.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-DQFuXaUa.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-DZMwqDs0.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-DfX1ObVK.js +1 -0
- package/dist-embed-sighting-editor/{NearestApproach-DCUW8bB4.js → NearestApproach-BfoIDPh8.js} +1 -1
- package/dist-embed-sighting-editor/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-sighting-editor/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BoGGdasd.js → PoherAssessor-Cy0fVE2j.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-C8Dby19B.js → RailwaySystem-J2yWIAbD.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-BA4Jirp1.js +27 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_en-Cbgk3paQ.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_es-DwgJQanC.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_fr-D9r9x2bK.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_it-DQ-J5YpD.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_en-BH1tGP5C.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_es-BDMJ4K1g.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_fr-C8ROK57p.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_it-CwC8vNTI.js +1 -0
- package/dist-embed-sighting-editor/ReentrySimulation-GEWa9zRD.js +1 -0
- package/dist-embed-sighting-editor/{ReferenceSystem-PYF540r7.js → ReferenceSystem-DvWi5osh.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-VqRLMg59.js → RoadMarkings-Ci3fp-tS.js} +1 -1
- package/dist-embed-sighting-editor/SceneNames_en-oNPwLOsb.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_es-Z_lHKIao.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_fr-CTfqBDCK.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_it-Bjfu1PyS.js +1 -0
- package/dist-embed-sighting-editor/ShareMessages_en-DE1WoeWH.js +1 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_en-CAWfFtUQ.js +12 -0
- package/dist-embed-sighting-editor/{SightingEditorMessages_es-CQU200Hj.js → SightingEditorMessages_es-Botf2OEe.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-Bd4Ht-jW.js → SightingEditorMessages_fr-D5f-KX1w.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-CSnPiCy2.js → SightingEditorMessages_it-DBMXvC62.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-BX0FwUB1.js → TraceSystem-DO70_HjB.js} +2 -2
- package/dist-embed-sighting-editor/UfoMessages_en-DVlS5Elx.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_es-DreLXcIR.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_fr-D9BCRY2m.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_it-C8r0jnJP.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-uWnkivpP.js → WaterSystem-Cx8Lct9F.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +664 -673
- package/dist-embed-sighting-editor/trafficRuntime-PSRYgFJb.js +2 -0
- package/package.json +2 -1
- package/dist-embed-scene/BeamEditor-DcUBLvPh.js +0 -30
- package/dist-embed-scene/LanternEditor-DQ9Y_eBl.js +0 -9
- package/dist-embed-scene/LaunchEditor-Csb2Pfq3.js +0 -22
- package/dist-embed-scene/ModuleThree-Cozd8KlK.js +0 -1
- package/dist-embed-scene/ReentryEditor-AsKtWLMw.js +0 -27
- package/dist-embed-scene/SceneNames_es-DL0IWHOw.js +0 -1
- package/dist-embed-scene/SceneNames_fr-B2NX5JJO.js +0 -1
- package/dist-embed-scene/SceneNames_it-wq6fqU10.js +0 -1
- package/dist-embed-scene/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-scene/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-scene/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-sighting/BeamEditor-KLBjeTRU.js +0 -30
- package/dist-embed-sighting/BeamSystem-C6YXI9Da.js +0 -1
- package/dist-embed-sighting/ContrailSystem-BUKo3qVd.js +0 -1
- package/dist-embed-sighting/GLTFLoader-BYMKgQLE.js +0 -1
- package/dist-embed-sighting/HynekAssessor-Cc8hHe3R.js +0 -1
- package/dist-embed-sighting/LanternEditor-J_d2le0V.js +0 -9
- package/dist-embed-sighting/LaunchEditor-DuVZmb3n.js +0 -22
- package/dist-embed-sighting/ModuleThree-YgLqKZM9.js +0 -1
- package/dist-embed-sighting/ReentryEditor-DCDavAGw.js +0 -27
- package/dist-embed-sighting/ReentrySimulation-BzMMTqck.js +0 -1
- package/dist-embed-sighting/ReferenceSystem-Dt28-Egu.js +0 -1
- package/dist-embed-sighting/SceneNames_es-Cu0CS6c0.js +0 -1
- package/dist-embed-sighting/SceneNames_fr-BAQt0-Zp.js +0 -1
- package/dist-embed-sighting/SceneNames_it-CeXG9jCC.js +0 -1
- package/dist-embed-sighting/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-sighting/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-sighting/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-k2xqWyaR.js +0 -1
- package/dist-embed-sighting-editor/BeamEditor-DTkjy61A.js +0 -30
- package/dist-embed-sighting-editor/BodyEditor-D5PfqEg2.js +0 -28
- package/dist-embed-sighting-editor/LanternEditor-BoxxG443.js +0 -9
- package/dist-embed-sighting-editor/LaserBeam-j5Z4tIOw.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditor-rJud4C3y.js +0 -22
- package/dist-embed-sighting-editor/LaunchPlume-Dm1YdsZp.js +0 -1
- package/dist-embed-sighting-editor/ModuleThree-CkOgRXM2.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelElement-Uz0lPYwu.js +0 -13
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-D97Nh2yy.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-CE9Ajw2-.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-BWsj-7_t.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-CtKrboEg.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-8sfHq7hY.js +0 -27
- package/dist-embed-sighting-editor/ReentrySimulation-KMMVK82G.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_es-CLvEspFd.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_fr-oYQgZ-TZ.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_it-CDTw3VAX.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_es-BxNc9t8X.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_fr-DnD6eSjQ.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_it-BubvnWTa.js +0 -1
- package/dist-embed-sighting-editor/trafficRuntime-BeMCM4Ap.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={front:"Front",behind:"Behind",left:"Left",right:"Right",frontLeft:"Front-left",frontRight:"Front-right",behindLeft:"Behind-left",behindRight:"Behind-right",windows:"Windows",building:"Building",bridge:"Bridge",railing:"Railing",overheadLine:"Overhead line",properties:"Properties",floors:"Floors",upperStoriesAboveTheGround:"Upper stories above the ground floor.",occupiedFloor:"Occupied floor",theFloorTheWitnessIs:"The floor the witness is on, from 0 (ground floor).",walls:"Walls",wallColour:"Wall colour",theColourOfTheWalls:"The colour of the walls, drawn with the facade of their kind where the width, the length and the height of the building are all stated. Empty: a pale plaster.",facade:"Facade",aHouseS:"A house's",aHouseSAWindowEvery:"A house's: a window every three metres of every floor and a door, from a storey high (lower, a shed's bare wall). The tall windows of an old building, the tall narrow bays of a church, a bare wall (a warehouse, a shed, a monument), or none: the plain box.",oldBuilding:"Old building",church:"Church",bareWall:"Bare wall",noFacade:"None",roof:"Roof",flat:"Flat",flatTheBoxTwoSlopes:"Flat (the box), two slopes to a ridge, four slopes, or a dome.",twoSlopes:"Two slopes",fourSlopes:"Four slopes",dome:"Dome",rise:"Rise",howFarTheRidgeStands:"How far the ridge stands above the eaves: the walls are the building's height less this.",ridgeAlong:"Ridge along",theWidth:"The width",theDepth:"The depth",roofColour:"Roof colour",opacityOfTheWindowOn:"Opacity of the window on this side: 0 is open, 100 shut. Empty: no window.",engineSound:"Engine sound",engine:"Engine",whetherTheVehicleIsHeard:"Whether the vehicle is heard running, and what sort of engine: how many cylinders fire, how low they turn, how its gears are spaced.",silentParked:"Silent (parked)",car:"Car",van:"Van",truck:"Truck",motorcycle:"Motorcycle",unknown:"Unknown",loudness:"Loudness",againstAnOrdinaryOneOf:"Against an ordinary one of its kind: 1 by default, 1.5 for a very noisy one.",theirOwnRecordingURL:"Their own recording URL",sound:"Sound",noiseInFlight:"Noise in flight",whatItSoundsLikeWhile:"What it sounds like while it flies: nothing is heard of a machine that flies silent, and the stand-in of a phenomenon says so.",silentAsTheModel:"Silent (as the model)",asTheModel:"As the model",span:"Span",metresOfOpenSpanUnder:"Metres of open span under the deck, centred. Empty: the whole length, no embankments.",deckThickness:"Deck thickness",height:"Height",postSpacing:"Post spacing",rails:"Rails",poles:"Poles",whichEndsStandOnA:"Which ends stand on a pole: both, the one the heading points away from, the one it points towards, or none (a line anchored on buildings).",both:"Both",start:"Start",end:"End",noPoles:"None",strandThickness:"Strand thickness",poleHeight:"Pole height",emptyHalfAMetreOver:"Empty: half a metre over the highest strand.",object:"Object",name:"Name",position:"Position",altitude:"Altitude",heading:"Heading",colour:"Colour",width:"Width",length:"Length",n3DModel:"3D model",noModelBuiltInShape:"No model (built-in shape)",off:"Off",positionLights:"Position lights",dippedBeam:"Dipped beam",mainBeam:"Main beam",fogLamps:"Fog lamps",state:"State",lit:"Lit",headlights:"Headlights",lights:"Lights",noLights:"none",witnessLocation:"Witness location",notPresent:"Not present",aircraftNarrowBodyAirliner:"Narrow-body airliner",aircraftWideBodyAirliner:"Wide-body airliner",aircraftRegionalJet:"Regional jet",aircraftTurboprop:"Turboprop",aircraftBusinessJet:"Business jet",aircraftLightPistonAircraft:"Light piston aircraft",aircraftLightHelicopter:"Light helicopter",aircraftMediumHelicopter:"Medium helicopter",aircraftHeavyHelicopter:"Heavy helicopter",aircraftMilitaryJet:"Military jet",aircraftUltralight:"Ultralight",aircraftDrone:"Drone",aircraftGlider:"Glider",aircraftSilent:"Silent"};export{e as decorParameterTexts_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={front:"Frente",behind:"Detrás",left:"Izquierda",right:"Derecha",frontLeft:"Delantero izquierdo",frontRight:"Delantero derecho",behindLeft:"Trasero izquierdo",behindRight:"Trasero derecho",windows:"Ventanas",building:"Edificio",bridge:"Puente",railing:"Barandilla",overheadLine:"Línea aérea",properties:"Propiedades",floors:"Plantas",upperStoriesAboveTheGround:"Plantas sobre la planta baja.",occupiedFloor:"Planta ocupada",theFloorTheWitnessIs:"La planta donde está el testigo, desde 0 (planta baja).",walls:"Muros",wallColour:"Color de los muros",theColourOfTheWalls:"El color de los muros, dibujados con la fachada de su tipo donde el ancho, el largo y el alto del edificio están todos enunciados. Vacío: un enlucido pálido.",facade:"Tipo de fachada",aHouseS:"De una casa",aHouseSAWindowEvery:"De una casa: una ventana cada tres metros de cada planta y una puerta, desde la altura de una planta (más bajo, el muro liso de un cobertizo). Las ventanas altas de un edificio antiguo, los vanos altos y estrechos de una iglesia, un muro liso (un almacén, un cobertizo, un monumento), o ninguna: la caja lisa.",oldBuilding:"Edificio antiguo",church:"Iglesia",bareWall:"Muro liso",noFacade:"Ninguna",roof:"Tejado",flat:"Plano",flatTheBoxTwoSlopes:"Plano (la caja), dos vertientes hasta una cumbrera, cuatro vertientes, o una cúpula.",twoSlopes:"Dos vertientes",fourSlopes:"Cuatro vertientes",dome:"Cúpula",rise:"Altura del tejado",howFarTheRidgeStands:"Cuánto sube la cumbrera sobre el alero: los muros miden la altura del edificio menos esto.",ridgeAlong:"Cumbrera a lo largo de",theWidth:"El ancho",theDepth:"El largo",roofColour:"Color del tejado",opacityOfTheWindowOn:"Opacidad de la ventana de este lado: 0 abierta, 100 cerrada. Vacío: sin ventana.",engineSound:"Sonido del motor",engine:"Motor",whetherTheVehicleIsHeard:"Si se oye el vehículo en marcha, y qué motor: cuántos cilindros disparan, cuán bajo giran, cómo se escalonan sus marchas.",silentParked:"Silencioso (parado)",car:"Coche",van:"Furgoneta",truck:"Camión",motorcycle:"Moto",unknown:"Desconocido",loudness:"Volumen",againstAnOrdinaryOneOf:"Frente a uno ordinario de su tipo: 1 por defecto, 1,5 para uno muy ruidoso.",theirOwnRecordingURL:"URL de su propia grabación",sound:"Sonido",noiseInFlight:"Ruido en vuelo",whatItSoundsLikeWhile:"Cómo suena mientras vuela: nada se oye de una máquina que vuela en silencio, y la maqueta de un fenómeno lo dice.",silentAsTheModel:"Silencioso (como el modelo)",asTheModel:"Según el modelo",span:"Luz",metresOfOpenSpanUnder:"Metros de luz libre bajo el tablero, centrados. Vacío: toda la longitud, sin terraplenes.",deckThickness:"Espesor del tablero",height:"Altura",postSpacing:"Separación de postes",rails:"Barandas",poles:"Postes",whichEndsStandOnA:"Qué extremos se apoyan en un poste: ambos, aquel del que se aleja el rumbo, aquel hacia el que apunta, o ninguno (una línea anclada en edificios).",both:"Ambos",start:"Inicio",end:"Fin",noPoles:"Ninguno",strandThickness:"Grosor del hilo",poleHeight:"Altura de los postes",emptyHalfAMetreOver:"Vacío: medio metro sobre el hilo más alto.",object:"Objeto",name:"Nombre",position:"Posición",altitude:"Altitud",heading:"Orientación",colour:"Color",width:"Anchura",length:"Longitud",n3DModel:"Modelo 3D",noModelBuiltInShape:"Sin modelo (forma básica)",off:"Apagados",positionLights:"Luces de posición",dippedBeam:"Luces de cruce",mainBeam:"Luces de carretera",fogLamps:"Faros antiniebla",state:"Estado",lit:"Encendido",headlights:"Faros",lights:"Luces",noLights:"ninguna",witnessLocation:"Ubicación del testigo",notPresent:"No presente",aircraftNarrowBodyAirliner:"Avión de pasillo único",aircraftWideBodyAirliner:"Avión de fuselaje ancho",aircraftRegionalJet:"Jet regional",aircraftTurboprop:"Turbohélice",aircraftBusinessJet:"Jet privado",aircraftLightPistonAircraft:"Avioneta de pistones",aircraftLightHelicopter:"Helicóptero ligero",aircraftMediumHelicopter:"Helicóptero medio",aircraftHeavyHelicopter:"Helicóptero pesado",aircraftMilitaryJet:"Reactor militar",aircraftUltralight:"Ultraligero",aircraftDrone:"Dron",aircraftGlider:"Planeador",aircraftSilent:"Silencioso"};export{e as decorParameterTexts_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={front:"Avant",behind:"Arrière",left:"Gauche",right:"Droite",frontLeft:"Avant gauche",frontRight:"Avant droit",behindLeft:"Arrière gauche",behindRight:"Arrière droit",windows:"Fenêtres",building:"Bâtiment",bridge:"Pont",railing:"Garde-corps",overheadLine:"Ligne aérienne",properties:"Propriétés",floors:"Étages",upperStoriesAboveTheGround:"Étages au-dessus du rez-de-chaussée.",occupiedFloor:"Étage occupé",theFloorTheWitnessIs:"L'étage où se tient le témoin, à partir de 0 (rez-de-chaussée).",walls:"Murs",wallColour:"Couleur des murs",theColourOfTheWalls:"La couleur des murs, dessinés avec la façade de leur type là où la largeur, la longueur et la hauteur du bâtiment sont toutes énoncées. Vide : un enduit pâle.",facade:"Type de façade",aHouseS:"D'une maison",aHouseSAWindowEvery:"D'une maison : une fenêtre tous les trois mètres de chaque étage et une porte, dès la hauteur d'un étage (plus bas, le mur nu d'un abri). Les hautes fenêtres d'un immeuble ancien, les hautes baies étroites d'une église, un mur nu (un entrepôt, un hangar, un monument), ou aucune : la simple boîte.",oldBuilding:"Immeuble ancien",church:"Église",bareWall:"Mur nu",noFacade:"Aucune",roof:"Toit",flat:"Plat",flatTheBoxTwoSlopes:"Plat (la boîte), deux pentes jusqu'à un faîte, quatre pentes, ou une coupole.",twoSlopes:"Deux pentes",fourSlopes:"Quatre pentes",dome:"Coupole",rise:"Hauteur du toit",howFarTheRidgeStands:"De combien le faîte dépasse l'égout : les murs font la hauteur du bâtiment moins cela.",ridgeAlong:"Faîte le long de",theWidth:"La largeur",theDepth:"La profondeur",roofColour:"Couleur du toit",opacityOfTheWindowOn:"Opacité de la fenêtre de ce côté : 0 ouverte, 100 fermée. Vide : pas de fenêtre.",engineSound:"Bruit du moteur",engine:"Moteur",whetherTheVehicleIsHeard:"Si le véhicule s'entend rouler, et de quel moteur : combien de cylindres tirent, à quel régime bas ils tournent, comment ses vitesses sont étagées.",silentParked:"Silencieux (à l'arrêt)",car:"Voiture",van:"Camionnette",truck:"Camion",motorcycle:"Moto",unknown:"Inconnu",loudness:"Volume",againstAnOrdinaryOneOf:"Par rapport à un véhicule ordinaire de son genre : 1 par défaut, 1,5 pour un très bruyant.",theirOwnRecordingURL:"URL de son propre enregistrement",sound:"Bruit",noiseInFlight:"Bruit en vol",whatItSoundsLikeWhile:"Ce qu'on entend quand il vole : rien d'une machine qui vole en silence, et la maquette d'un phénomène le dit.",silentAsTheModel:"Silencieux (comme le modèle)",asTheModel:"Selon le modèle",span:"Portée",metresOfOpenSpanUnder:"Mètres de portée libre sous le tablier, centrés. Vide : toute la longueur, sans remblais.",deckThickness:"Épaisseur du tablier",height:"Hauteur",postSpacing:"Espacement des poteaux",rails:"Lisses",poles:"Poteaux",whichEndsStandOnA:"Quelles extrémités reposent sur un poteau : les deux, celle dont le cap s'éloigne, celle vers laquelle il pointe, ou aucune (une ligne ancrée sur des bâtiments).",both:"Les deux",start:"Début",end:"Fin",noPoles:"Aucun",strandThickness:"Épaisseur du brin",poleHeight:"Hauteur des poteaux",emptyHalfAMetreOver:"Vide : un demi-mètre au-dessus du brin le plus haut.",object:"Objet",name:"Nom",position:"Position",altitude:"Altitude",heading:"Orientation",colour:"Couleur",width:"Largeur",length:"Longueur",n3DModel:"Modèle 3D",noModelBuiltInShape:"Aucun modèle (forme de base)",off:"Éteints",positionLights:"Feux de position",dippedBeam:"Feux de croisement",mainBeam:"Feux de route",fogLamps:"Antibrouillards",state:"État",lit:"Allumé",headlights:"Phares",lights:"Feux",noLights:"aucun",witnessLocation:"Emplacement du témoin",notPresent:"Non présent",aircraftNarrowBodyAirliner:"Avion de ligne monocouloir",aircraftWideBodyAirliner:"Avion de ligne gros-porteur",aircraftRegionalJet:"Jet régional",aircraftTurboprop:"Turbopropulseur",aircraftBusinessJet:"Jet d'affaires",aircraftLightPistonAircraft:"Avion léger à pistons",aircraftLightHelicopter:"Hélicoptère léger",aircraftMediumHelicopter:"Hélicoptère moyen",aircraftHeavyHelicopter:"Hélicoptère lourd",aircraftMilitaryJet:"Avion de combat",aircraftUltralight:"ULM",aircraftDrone:"Drone",aircraftGlider:"Planeur",aircraftSilent:"Silencieux"};export{e as decorParameterTexts_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={front:"Fronte",behind:"Dietro",left:"Sinistra",right:"Destra",frontLeft:"Anteriore sinistro",frontRight:"Anteriore destro",behindLeft:"Posteriore sinistro",behindRight:"Posteriore destro",windows:"Finestre",building:"Edificio",bridge:"Ponte",railing:"Parapetto",overheadLine:"Linea aerea",properties:"Proprietà",floors:"Piani",upperStoriesAboveTheGround:"Piani sopra il pianterreno.",occupiedFloor:"Piano occupato",theFloorTheWitnessIs:"Il piano dove si trova il testimone, da 0 (pianterreno).",walls:"Muri",wallColour:"Colore dei muri",theColourOfTheWalls:"Il colore dei muri, disegnati con la facciata del loro tipo dove larghezza, lunghezza e altezza dell'edificio sono tutte enunciate. Vuoto: un intonaco chiaro.",facade:"Tipo di facciata",aHouseS:"Di una casa",aHouseSAWindowEvery:"Di una casa: una finestra ogni tre metri di ogni piano e una porta, dall'altezza di un piano (più basso, il muro liscio di un capanno). Le finestre alte di un edificio antico, le alte aperture strette di una chiesa, un muro liscio (un magazzino, un capannone, un monumento), o nessuna: la semplice scatola.",oldBuilding:"Edificio antico",church:"Chiesa",bareWall:"Muro liscio",noFacade:"Nessuna",roof:"Tetto",flat:"Piano",flatTheBoxTwoSlopes:"Piano (la scatola), due falde fino a un colmo, quattro falde, o una cupola.",twoSlopes:"Due falde",fourSlopes:"Quattro falde",dome:"Cupola",rise:"Altezza del tetto",howFarTheRidgeStands:"Quanto il colmo sta sopra la gronda: i muri sono l'altezza dell'edificio meno questo.",ridgeAlong:"Colmo lungo",theWidth:"La larghezza",theDepth:"La profondità",roofColour:"Colore del tetto",opacityOfTheWindowOn:"Opacità della finestra di questo lato: 0 aperta, 100 chiusa. Vuoto: nessuna finestra.",engineSound:"Suono del motore",engine:"Motore",whetherTheVehicleIsHeard:"Se il veicolo si sente in marcia, e di che motore: quanti cilindri sparano, quanto in basso girano, come sono distanziate le marce.",silentParked:"Silenzioso (fermo)",car:"Auto",van:"Furgone",truck:"Camion",motorcycle:"Moto",unknown:"Sconosciuto",loudness:"Volume",againstAnOrdinaryOneOf:"Rispetto a uno ordinario del suo tipo: 1 per impostazione predefinita, 1,5 per uno molto rumoroso.",theirOwnRecordingURL:"URL della sua registrazione",sound:"Suono",noiseInFlight:"Rumore in volo",whatItSoundsLikeWhile:"Come suona mentre vola: nulla si sente di una macchina che vola in silenzio, e il modello di un fenomeno lo dice.",silentAsTheModel:"Silenzioso (come il modello)",asTheModel:"Secondo il modello",span:"Luce",metresOfOpenSpanUnder:"Metri di luce libera sotto l'impalcato, centrati. Vuoto: tutta la lunghezza, senza rilevati.",deckThickness:"Spessore dell'impalcato",height:"Altezza",postSpacing:"Distanza dei montanti",rails:"Correnti",poles:"Pali",whichEndsStandOnA:"Quali estremità poggiano su un palo: entrambe, quella da cui si allontana la direzione, quella verso cui punta, o nessuna (una linea ancorata a edifici).",both:"Entrambi",start:"Inizio",end:"Fine",noPoles:"Nessuno",strandThickness:"Spessore del filo",poleHeight:"Altezza dei pali",emptyHalfAMetreOver:"Vuoto: mezzo metro sopra il filo più alto.",object:"Oggetto",name:"Nome",position:"Posizione",altitude:"Altitudine",heading:"Orientamento",colour:"Colore",width:"Larghezza",length:"Lunghezza",n3DModel:"Modello 3D",noModelBuiltInShape:"Nessun modello (forma di base)",off:"Spenti",positionLights:"Luci di posizione",dippedBeam:"Anabbaglianti",mainBeam:"Abbaglianti",fogLamps:"Fendinebbia",state:"Stato",lit:"Acceso",headlights:"Fari",lights:"Luci",noLights:"nessuna",witnessLocation:"Posizione del testimone",notPresent:"Non presente",aircraftNarrowBodyAirliner:"Aereo di linea a fusoliera stretta",aircraftWideBodyAirliner:"Aereo di linea a fusoliera larga",aircraftRegionalJet:"Jet regionale",aircraftTurboprop:"Turboelica",aircraftBusinessJet:"Jet privato",aircraftLightPistonAircraft:"Aereo leggero a pistoni",aircraftLightHelicopter:"Elicottero leggero",aircraftMediumHelicopter:"Elicottero medio",aircraftHeavyHelicopter:"Elicottero pesante",aircraftMilitaryJet:"Jet militare",aircraftUltralight:"Ultraleggero",aircraftDrone:"Drone",aircraftGlider:"Aliante",aircraftSilent:"Silenzioso"};export{e as decorParameterTexts_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Decoy flares"};export{e as flareKindMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Bengalas señuelo"};export{e as flareKindMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Leurres pyrotechniques"};export{e as flareKindMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Bengala esca"};export{e as flareKindMessages_it};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bi as be,bj as Q,bk as he,bl as Le,bm as v,bn as de,aQ as y,aS as pe,aE as F,bo as w,bd as U,ba as Me,bp as Se,af as ye,w as K,bq as we,V as C,Q as me,br as Ne,u as ge,bs as Ie,bt as Oe,am as V,bu as Ce,bv as Te,bw as Fe,bx as Pe,by as He,be as J,bz as Re,bA as Z,bB as ke,bC as De,b6 as Ge,bD as X,bE as ve,aa as Ee,ao as Ue,an as G,bF as Ke,al as Be,bG as je,a8 as Ve,bH as Xe,bI as ze,bJ as qe,aC as We,a5 as z,ag as Ye,b4 as Qe,bK as Je,bL as Ze,bM as $e,bN as en,bO as nn,bP as tn,bQ as xe,aY as sn,bc as ne,bR as te,bS as se,bT as ie,bU as re,bV as rn,bW as on,ab as an,ac as cn}from"./rr0-sighting-editor.mjs";function oe(f,n){if(n===be)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),f;if(n===Q||n===he){let e=f.getIndex();if(e===null){const r=[],a=f.getAttribute("position");if(a!==void 0){for(let o=0;o<a.count;o++)r.push(o);f.setIndex(r),e=f.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),f}const s=e.count-2,t=[];if(n===Q)for(let r=1;r<=s;r++)t.push(e.getX(0)),t.push(e.getX(r)),t.push(e.getX(r+1));else for(let r=0;r<s;r++)r%2===0?(t.push(e.getX(r)),t.push(e.getX(r+1)),t.push(e.getX(r+2))):(t.push(e.getX(r+2)),t.push(e.getX(r+1)),t.push(e.getX(r)));t.length/3!==s&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const i=f.clone();return i.setIndex(t),i.clearGroups(),i}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",n),f}class jn extends Le{constructor(n){super(n),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new dn(e)}),this.register(function(e){return new pn(e)}),this.register(function(e){return new bn(e)}),this.register(function(e){return new Ln(e)}),this.register(function(e){return new Mn(e)}),this.register(function(e){return new gn(e)}),this.register(function(e){return new Tn(e)}),this.register(function(e){return new Rn(e)}),this.register(function(e){return new En(e)}),this.register(function(e){return new hn(e)}),this.register(function(e){return new xn(e)}),this.register(function(e){return new mn(e)}),this.register(function(e){return new _n(e)}),this.register(function(e){return new An(e)}),this.register(function(e){return new ln(e)}),this.register(function(e){return new ae(e,g.EXT_MESHOPT_COMPRESSION)}),this.register(function(e){return new ae(e,g.KHR_MESHOPT_COMPRESSION)}),this.register(function(e){return new Sn(e)})}load(n,e,s,t){const i=this;let r;if(this.resourcePath!=="")r=this.resourcePath;else if(this.path!==""){const c=v.extractUrlBase(n);r=v.resolveURL(c,this.path)}else r=v.extractUrlBase(n);this.manager.itemStart(n);const a=function(c){t?t(c):console.error(c),i.manager.itemError(n),i.manager.itemEnd(n)},o=new de(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(n,function(c){try{i.parse(c,r,function(u){e(u),i.manager.itemEnd(n)},a)}catch(u){a(u)}},s,a)}setDRACOLoader(n){return this.dracoLoader=n,this}setKTX2Loader(n){return this.ktx2Loader=n,this}setMeshoptDecoder(n){return this.meshoptDecoder=n,this}register(n){return this.pluginCallbacks.indexOf(n)===-1&&this.pluginCallbacks.push(n),this}unregister(n){return this.pluginCallbacks.indexOf(n)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(n),1),this}parse(n,e,s,t){let i;const r={},a={},o=new TextDecoder;if(typeof n=="string")i=JSON.parse(n);else if(n instanceof ArrayBuffer)if(o.decode(new Uint8Array(n,0,4))===Ae){try{r[g.KHR_BINARY_GLTF]=new yn(n)}catch(l){t&&t(l);return}i=JSON.parse(r[g.KHR_BINARY_GLTF].content)}else i=JSON.parse(o.decode(n));else i=n;if(i.asset===void 0||i.asset.version[0]<2){t&&t(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const c=new Un(i,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const l=this.pluginCallbacks[u](c);l.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[l.name]=l,r[l.name]=!0}if(i.extensionsUsed)for(let u=0;u<i.extensionsUsed.length;++u){const l=i.extensionsUsed[u],h=i.extensionsRequired||[];switch(l){case g.KHR_MATERIALS_UNLIT:r[l]=new fn;break;case g.KHR_DRACO_MESH_COMPRESSION:r[l]=new wn(i,this.dracoLoader);break;case g.KHR_TEXTURE_TRANSFORM:r[l]=new Nn;break;case g.KHR_MESH_QUANTIZATION:r[l]=new In;break;default:h.indexOf(l)>=0&&a[l]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+l+'".')}}c.setExtensions(r),c.setPlugins(a),c.parse(s,t)}parseAsync(n,e){const s=this;return new Promise(function(t,i){s.parse(n,e,t,i)})}}function un(){let f={};return{get:function(n){return f[n]},add:function(n,e){f[n]=e},remove:function(n){delete f[n]},removeAll:function(){f={}}}}function _(f,n,e){const s=f.json.materials[n];return s.extensions&&s.extensions[e]?s.extensions[e]:null}const g={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",KHR_MESHOPT_COMPRESSION:"KHR_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class ln{constructor(n){this.parser=n,this.name=g.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const n=this.parser,e=this.parser.json.nodes||[];for(let s=0,t=e.length;s<t;s++){const i=e[s];i.extensions&&i.extensions[this.name]&&i.extensions[this.name].light!==void 0&&n._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(n){const e=this.parser,s="light:"+n;let t=e.cache.get(s);if(t)return t;const i=e.json,o=((i.extensions&&i.extensions[this.name]||{}).lights||[])[n];let c;const u=new F(16777215);o.color!==void 0&&u.setRGB(o.color[0],o.color[1],o.color[2],w);const l=o.range!==void 0?o.range:0;switch(o.type){case"directional":c=new ye(u),c.target.position.set(0,0,-1),c.add(c.target);break;case"point":c=new Se(u),c.distance=l;break;case"spot":c=new Me(u),c.distance=l,o.spot=o.spot||{},o.spot.innerConeAngle=o.spot.innerConeAngle!==void 0?o.spot.innerConeAngle:0,o.spot.outerConeAngle=o.spot.outerConeAngle!==void 0?o.spot.outerConeAngle:Math.PI/4,c.angle=o.spot.outerConeAngle,c.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}return c.position.set(0,0,0),S(c,o),o.intensity!==void 0&&(c.intensity=o.intensity),c.name=e.createUniqueName(o.name||"light_"+n),t=Promise.resolve(c),e.cache.add(s,t),t}getDependency(n,e){if(n==="light")return this._loadLight(e)}createNodeAttachment(n){const e=this,s=this.parser,i=s.json.nodes[n],a=(i.extensions&&i.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(o){return s._getNodeRef(e.cache,a,o)})}}class fn{constructor(){this.name=g.KHR_MATERIALS_UNLIT}getMaterialType(){return G}extendParams(n,e,s){const t=[];n.color=new F(1,1,1),n.opacity=1;const i=e.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){const r=i.baseColorFactor;n.color.setRGB(r[0],r[1],r[2],w),n.opacity=r[3]}i.baseColorTexture!==void 0&&t.push(s.assignTexture(n,"map",i.baseColorTexture,U))}return Promise.all(t)}}class hn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||s.emissiveStrength!==void 0&&(e.emissiveIntensity=s.emissiveStrength),Promise.resolve()}}class dn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_CLEARCOAT}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(s.clearcoatFactor!==void 0&&(e.clearcoat=s.clearcoatFactor),s.clearcoatTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatMap",s.clearcoatTexture)),s.clearcoatRoughnessFactor!==void 0&&(e.clearcoatRoughness=s.clearcoatRoughnessFactor),s.clearcoatRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatRoughnessMap",s.clearcoatRoughnessTexture)),s.clearcoatNormalTexture!==void 0&&(t.push(this.parser.assignTexture(e,"clearcoatNormalMap",s.clearcoatNormalTexture)),s.clearcoatNormalTexture.scale!==void 0)){const i=s.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new pe(i,i)}return Promise.all(t)}}class pn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_DISPERSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.dispersion=s.dispersion!==void 0?s.dispersion:0),Promise.resolve()}}class mn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IRIDESCENCE}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.iridescenceFactor!==void 0&&(e.iridescence=s.iridescenceFactor),s.iridescenceTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceMap",s.iridescenceTexture)),s.iridescenceIor!==void 0&&(e.iridescenceIOR=s.iridescenceIor),e.iridescenceThicknessRange===void 0&&(e.iridescenceThicknessRange=[100,400]),s.iridescenceThicknessMinimum!==void 0&&(e.iridescenceThicknessRange[0]=s.iridescenceThicknessMinimum),s.iridescenceThicknessMaximum!==void 0&&(e.iridescenceThicknessRange[1]=s.iridescenceThicknessMaximum),s.iridescenceThicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceThicknessMap",s.iridescenceThicknessTexture)),Promise.all(t)}}class gn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SHEEN}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(e.sheenColor=new F(0,0,0),e.sheenRoughness=0,e.sheen=1,s.sheenColorFactor!==void 0){const i=s.sheenColorFactor;e.sheenColor.setRGB(i[0],i[1],i[2],w)}return s.sheenRoughnessFactor!==void 0&&(e.sheenRoughness=s.sheenRoughnessFactor),s.sheenColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenColorMap",s.sheenColorTexture,U)),s.sheenRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenRoughnessMap",s.sheenRoughnessTexture)),Promise.all(t)}}class Tn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_TRANSMISSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.transmissionFactor!==void 0&&(e.transmission=s.transmissionFactor),s.transmissionTexture!==void 0&&t.push(this.parser.assignTexture(e,"transmissionMap",s.transmissionTexture)),Promise.all(t)}}class Rn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_VOLUME}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.thickness=s.thicknessFactor!==void 0?s.thicknessFactor:0,s.thicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"thicknessMap",s.thicknessTexture)),e.attenuationDistance=s.attenuationDistance||1/0;const i=s.attenuationColor||[1,1,1];return e.attenuationColor=new F().setRGB(i[0],i[1],i[2],w),Promise.all(t)}}class En{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IOR}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.ior=s.ior!==void 0?s.ior:1.5,e.ior===0&&(e.ior=1e3)),Promise.resolve()}}class xn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SPECULAR}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.specularIntensity=s.specularFactor!==void 0?s.specularFactor:1,s.specularTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularIntensityMap",s.specularTexture));const i=s.specularColorFactor||[1,1,1];return e.specularColor=new F().setRGB(i[0],i[1],i[2],w),s.specularColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularColorMap",s.specularColorTexture,U)),Promise.all(t)}}class An{constructor(n){this.parser=n,this.name=g.EXT_MATERIALS_BUMP}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return e.bumpScale=s.bumpFactor!==void 0?s.bumpFactor:1,s.bumpTexture!==void 0&&t.push(this.parser.assignTexture(e,"bumpMap",s.bumpTexture)),Promise.all(t)}}class _n{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_ANISOTROPY}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.anisotropyStrength!==void 0&&(e.anisotropy=s.anisotropyStrength),s.anisotropyRotation!==void 0&&(e.anisotropyRotation=s.anisotropyRotation),s.anisotropyTexture!==void 0&&t.push(this.parser.assignTexture(e,"anisotropyMap",s.anisotropyTexture)),Promise.all(t)}}class bn{constructor(n){this.parser=n,this.name=g.KHR_TEXTURE_BASISU}loadTexture(n){const e=this.parser,s=e.json,t=s.textures[n];if(!t.extensions||!t.extensions[this.name])return null;const i=t.extensions[this.name],r=e.options.ktx2Loader;if(!r){if(s.extensionsRequired&&s.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(n,i.source,r)}}class Ln{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_WEBP}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class Mn{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_AVIF}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class ae{constructor(n,e){this.name=e,this.parser=n}loadBufferView(n){const e=this.parser.json,s=e.bufferViews[n];if(s.extensions&&s.extensions[this.name]){const t=s.extensions[this.name],i=this.parser.getDependency("buffer",t.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(a){const o=t.byteOffset||0,c=t.byteLength||0,u=t.count,l=t.byteStride,h=new Uint8Array(a,o,c);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(u,l,h,t.mode,t.filter).then(function(d){return d.buffer}):r.ready.then(function(){const d=new ArrayBuffer(u*l);return r.decodeGltfBuffer(new Uint8Array(d),u,l,h,t.mode,t.filter),d})})}else return null}}class Sn{constructor(n){this.name=g.EXT_MESH_GPU_INSTANCING,this.parser=n}createNodeMesh(n){const e=this.parser.json,s=e.nodes[n];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const t=e.meshes[s.mesh];for(const c of t.primitives)if(c.mode!==L.TRIANGLES&&c.mode!==L.TRIANGLE_STRIP&&c.mode!==L.TRIANGLE_FAN&&c.mode!==void 0)return null;const r=s.extensions[this.name].attributes,a=[],o={};for(const c in r)a.push(this.parser.getDependency("accessor",r[c]).then(u=>(o[c]=u,o[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(n)),Promise.all(a).then(c=>{const u=c.pop(),l=u.isGroup?u.children:[u],h=c[0].count,d=[];for(const p of l){const R=new K,m=new C,T=new me,A=new C(1,1,1),x=new we(p.geometry,p.material,h);for(let E=0;E<h;E++)o.TRANSLATION&&m.fromBufferAttribute(o.TRANSLATION,E),o.ROTATION&&T.fromBufferAttribute(o.ROTATION,E),o.SCALE&&A.fromBufferAttribute(o.SCALE,E),x.setMatrixAt(E,R.compose(m,T,A));for(const E in o)if(E==="_COLOR_0"){const b=o[E];x.instanceColor=new Ne(b.array,b.itemSize,b.normalized)}else E!=="TRANSLATION"&&E!=="ROTATION"&&E!=="SCALE"&&p.geometry.setAttribute(E,o[E]);ge.prototype.copy.call(x,p),this.parser.assignFinalMaterial(x),d.push(x)}return u.isGroup?(u.clear(),u.add(...d),u):d[0]}))}}const Ae="glTF",D=12,ce={JSON:1313821514,BIN:5130562};class yn{constructor(n){this.name=g.KHR_BINARY_GLTF,this.content=null,this.body=null;const e=new DataView(n,0,D),s=new TextDecoder;if(this.header={magic:s.decode(new Uint8Array(n.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==Ae)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const t=this.header.length-D,i=new DataView(n,D);let r=0;for(;r<t;){const a=i.getUint32(r,!0);r+=4;const o=i.getUint32(r,!0);if(r+=4,o===ce.JSON){const c=new Uint8Array(n,D+r,a);this.content=s.decode(c)}else if(o===ce.BIN){const c=D+r;this.body=n.slice(c,c+a)}r+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class wn{constructor(n,e){if(!e)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=g.KHR_DRACO_MESH_COMPRESSION,this.json=n,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(n,e){const s=this.json,t=this.dracoLoader,i=n.extensions[this.name].bufferView,r=n.extensions[this.name].attributes,a={},o={},c={};for(const u in r){const l=$[u]||u.toLowerCase();a[l]=r[u]}for(const u in n.attributes){const l=$[u]||u.toLowerCase();if(r[u]!==void 0){const h=s.accessors[n.attributes[u]],d=H[h.componentType];c[l]=d.name,o[l]=h.normalized===!0}}return e.getDependency("bufferView",i).then(function(u){return new Promise(function(l,h){t.decodeDracoFile(u,function(d){for(const p in d.attributes){const R=d.attributes[p],m=o[p];m!==void 0&&(R.normalized=m)}l(d)},a,c,w,h)})})}}class Nn{constructor(){this.name=g.KHR_TEXTURE_TRANSFORM}extendTexture(n,e){return(e.texCoord===void 0||e.texCoord===n.channel)&&e.offset===void 0&&e.rotation===void 0&&e.scale===void 0||(n=n.clone(),e.texCoord!==void 0&&(n.channel=e.texCoord),e.offset!==void 0&&n.offset.fromArray(e.offset),e.rotation!==void 0&&(n.rotation=e.rotation),e.scale!==void 0&&n.repeat.fromArray(e.scale),n.needsUpdate=!0),n}}class In{constructor(){this.name=g.KHR_MESH_QUANTIZATION}}class _e extends on{constructor(n,e,s,t){super(n,e,s,t)}copySampleValue_(n){const e=this.resultBuffer,s=this.sampleValues,t=this.valueSize,i=n*t*3+t;for(let r=0;r!==t;r++)e[r]=s[i+r];return e}interpolate_(n,e,s,t){const i=this.resultBuffer,r=this.sampleValues,a=this.valueSize,o=a*2,c=a*3,u=t-e,l=(s-e)/u,h=l*l,d=h*l,p=n*c,R=p-c,m=-2*d+3*h,T=d-h,A=1-m,x=T-h+l;for(let E=0;E!==a;E++){const b=r[R+E+a],N=r[R+E+o]*u,M=r[p+E+a],k=r[p+E]*u;i[E]=A*b+x*N+m*M+T*k}return i}}const On=new me;class Cn extends _e{interpolate_(n,e,s,t){const i=super.interpolate_(n,e,s,t);return On.fromArray(i).normalize().toArray(i),i}}const L={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},H={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ue={9728:Re,9729:J,9984:He,9985:Pe,9986:Fe,9987:Te},le={33071:De,33648:ke,10497:Z},q={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},$={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},I={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Fn={CUBICSPLINE:void 0,LINEAR:xe,STEP:tn},W={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function Pn(f){return f.DefaultMaterial===void 0&&(f.DefaultMaterial=new Ee({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:rn})),f.DefaultMaterial}function O(f,n,e){for(const s in e.extensions)f[s]===void 0&&(n.userData.gltfExtensions=n.userData.gltfExtensions||{},n.userData.gltfExtensions[s]=e.extensions[s])}function S(f,n){n.extras!==void 0&&(typeof n.extras=="object"?Object.assign(f.userData,n.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+n.extras))}function Hn(f,n,e){let s=!1,t=!1,i=!1;for(let c=0,u=n.length;c<u;c++){const l=n[c];if(l.POSITION!==void 0&&(s=!0),l.NORMAL!==void 0&&(t=!0),l.COLOR_0!==void 0&&(i=!0),s&&t&&i)break}if(!s&&!t&&!i)return Promise.resolve(f);const r=[],a=[],o=[];for(let c=0,u=n.length;c<u;c++){const l=n[c];if(s){const h=l.POSITION!==void 0?e.getDependency("accessor",l.POSITION):f.attributes.position;r.push(h)}if(t){const h=l.NORMAL!==void 0?e.getDependency("accessor",l.NORMAL):f.attributes.normal;a.push(h)}if(i){const h=l.COLOR_0!==void 0?e.getDependency("accessor",l.COLOR_0):f.attributes.color;o.push(h)}}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o)]).then(function(c){const u=c[0],l=c[1],h=c[2];return s&&(f.morphAttributes.position=u),t&&(f.morphAttributes.normal=l),i&&(f.morphAttributes.color=h),f.morphTargetsRelative=!0,f})}function kn(f,n){if(f.updateMorphTargets(),n.weights!==void 0)for(let e=0,s=n.weights.length;e<s;e++)f.morphTargetInfluences[e]=n.weights[e];if(n.extras&&Array.isArray(n.extras.targetNames)){const e=n.extras.targetNames;if(f.morphTargetInfluences.length===e.length){f.morphTargetDictionary={};for(let s=0,t=e.length;s<t;s++)f.morphTargetDictionary[e[s]]=s}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function Dn(f){let n;const e=f.extensions&&f.extensions[g.KHR_DRACO_MESH_COMPRESSION];if(e?n="draco:"+e.bufferView+":"+e.indices+":"+Y(e.attributes):n=f.indices+":"+Y(f.attributes)+":"+f.mode,f.targets!==void 0)for(let s=0,t=f.targets.length;s<t;s++)n+=":"+Y(f.targets[s]);return n}function Y(f){let n="";const e=Object.keys(f).sort();for(let s=0,t=e.length;s<t;s++)n+=e[s]+":"+f[e[s]]+";";return n}function ee(f){switch(f){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function Gn(f){return f.search(/\.jpe?g($|\?)/i)>0||f.search(/^data\:image\/jpeg/)===0?"image/jpeg":f.search(/\.webp($|\?)/i)>0||f.search(/^data\:image\/webp/)===0?"image/webp":f.search(/\.ktx2($|\?)/i)>0||f.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const vn=new K;class Un{constructor(n={},e={}){this.json=n,this.extensions={},this.plugins={},this.options=e,this.cache=new un,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,t=-1,i=!1,r=-1;if(typeof navigator<"u"&&typeof navigator.userAgent<"u"){const a=navigator.userAgent;s=/^((?!chrome|android).)*safari/i.test(a)===!0;const o=a.match(/Version\/(\d+)/);t=s&&o?parseInt(o[1],10):-1,i=a.indexOf("Firefox")>-1,r=i?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||s&&t<17||i&&r<98?this.textureLoader=new Ie(this.options.manager):this.textureLoader=new Oe(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new de(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(n){this.extensions=n}setPlugins(n){this.plugins=n}parse(n,e){const s=this,t=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(r){return r._markDefs&&r._markDefs()}),Promise.all(this._invokeAll(function(r){return r.beforeRoot&&r.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(r){const a={scene:r[0][t.scene||0],scenes:r[0],animations:r[1],cameras:r[2],asset:t.asset,parser:s,userData:{}};return O(i,a,t),S(a,t),Promise.all(s._invokeAll(function(o){return o.afterRoot&&o.afterRoot(a)})).then(function(){for(const o of a.scenes)o.updateMatrixWorld();n(a)})}).catch(e)}_markDefs(){const n=this.json.nodes||[],e=this.json.skins||[],s=this.json.meshes||[];for(let t=0,i=e.length;t<i;t++){const r=e[t].joints;for(let a=0,o=r.length;a<o;a++)n[r[a]].isBone=!0}for(let t=0,i=n.length;t<i;t++){const r=n[t];r.mesh!==void 0&&(this._addNodeRef(this.meshCache,r.mesh),r.skin!==void 0&&(s[r.mesh].isSkinnedMesh=!0)),r.camera!==void 0&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(n,e){e!==void 0&&(n.refs[e]===void 0&&(n.refs[e]=n.uses[e]=0),n.refs[e]++)}_getNodeRef(n,e,s){if(n.refs[e]<=1)return s;const t=s.clone(),i=(r,a)=>{const o=this.associations.get(r);o!=null&&this.associations.set(a,o);for(const[c,u]of r.children.entries())i(u,a.children[c])};return i(s,t),t.name+="_instance_"+n.uses[e]++,t}_invokeOne(n){const e=Object.values(this.plugins);e.push(this);for(let s=0;s<e.length;s++){const t=n(e[s]);if(t)return t}return null}_invokeAll(n){const e=Object.values(this.plugins);e.unshift(this);const s=[];for(let t=0;t<e.length;t++){const i=n(e[t]);i&&s.push(i)}return s}getDependency(n,e){const s=n+":"+e;let t=this.cache.get(s);if(!t){switch(n){case"scene":t=this.loadScene(e);break;case"node":t=this._invokeOne(function(i){return i.loadNode&&i.loadNode(e)});break;case"mesh":t=this._invokeOne(function(i){return i.loadMesh&&i.loadMesh(e)});break;case"accessor":t=this.loadAccessor(e);break;case"bufferView":t=this._invokeOne(function(i){return i.loadBufferView&&i.loadBufferView(e)});break;case"buffer":t=this.loadBuffer(e);break;case"material":t=this._invokeOne(function(i){return i.loadMaterial&&i.loadMaterial(e)});break;case"texture":t=this._invokeOne(function(i){return i.loadTexture&&i.loadTexture(e)});break;case"skin":t=this.loadSkin(e);break;case"animation":t=this._invokeOne(function(i){return i.loadAnimation&&i.loadAnimation(e)});break;case"camera":t=this.loadCamera(e);break;default:if(t=this._invokeOne(function(i){return i!=this&&i.getDependency&&i.getDependency(n,e)}),!t)throw new Error("Unknown type: "+n);break}this.cache.add(s,t)}return t}getDependencies(n){let e=this.cache.get(n);if(!e){const s=this,t=this.json[n+(n==="mesh"?"es":"s")]||[];e=Promise.all(t.map(function(i,r){return s.getDependency(n,r)})),this.cache.add(n,e)}return e}loadBuffer(n){const e=this.json.buffers[n],s=this.fileLoader;if(e.type&&e.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+e.type+" buffer type is not supported.");if(e.uri===void 0&&n===0)return Promise.resolve(this.extensions[g.KHR_BINARY_GLTF].body);const t=this.options;return new Promise(function(i,r){s.load(v.resolveURL(e.uri,t.path),i,void 0,function(){r(new Error('THREE.GLTFLoader: Failed to load buffer "'+e.uri+'".'))})})}loadBufferView(n){const e=this.json.bufferViews[n];return this.getDependency("buffer",e.buffer).then(function(s){const t=e.byteLength||0,i=e.byteOffset||0;return s.slice(i,i+t)})}loadAccessor(n){const e=this,s=this.json,t=this.json.accessors[n];if(t.bufferView===void 0&&t.sparse===void 0){const r=q[t.type],a=H[t.componentType],o=t.normalized===!0,c=new a(t.count*r);return Promise.resolve(new V(c,r,o))}const i=[];return t.bufferView!==void 0?i.push(this.getDependency("bufferView",t.bufferView)):i.push(null),t.sparse!==void 0&&(i.push(this.getDependency("bufferView",t.sparse.indices.bufferView)),i.push(this.getDependency("bufferView",t.sparse.values.bufferView))),Promise.all(i).then(function(r){const a=r[0],o=q[t.type],c=H[t.componentType],u=c.BYTES_PER_ELEMENT,l=u*o,h=t.byteOffset||0,d=t.bufferView!==void 0?s.bufferViews[t.bufferView].byteStride:void 0,p=t.normalized===!0;let R,m;if(d&&d!==l){const T=Math.floor(h/d),A="InterleavedBuffer:"+t.bufferView+":"+t.componentType+":"+T+":"+t.count;let x=e.cache.get(A);x||(R=new c(a,T*d,t.count*d/u),x=new Ce(R,d/u),e.cache.add(A,x)),m=new sn(x,o,h%d/u,p)}else a===null?R=new c(t.count*o):R=new c(a,h,t.count*o),m=new V(R,o,p);if(t.sparse!==void 0){const T=q.SCALAR,A=H[t.sparse.indices.componentType],x=t.sparse.indices.byteOffset||0,E=t.sparse.values.byteOffset||0,b=new A(r[1],x,t.sparse.count*T),N=new c(r[2],E,t.sparse.count*o);a!==null&&(m=new V(m.array.slice(),m.itemSize,m.normalized)),m.normalized=!1;for(let M=0,k=b.length;M<k;M++){const P=b[M];if(m.setX(P,N[M*o]),o>=2&&m.setY(P,N[M*o+1]),o>=3&&m.setZ(P,N[M*o+2]),o>=4&&m.setW(P,N[M*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}m.normalized=p}return m})}loadTexture(n){const e=this.json,s=this.options,i=e.textures[n].source,r=e.images[i];let a=this.textureLoader;if(r.uri){const o=s.manager.getHandler(r.uri);o!==null&&(a=o)}return this.loadTextureImage(n,i,a)}loadTextureImage(n,e,s){const t=this,i=this.json,r=i.textures[n],a=i.images[e],o=(a.uri||a.bufferView)+":"+r.sampler;if(this.textureCache[o])return this.textureCache[o];const c=this.loadImageSource(e,s).then(function(u){u.flipY=!1,u.name=r.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const h=(i.samplers||{})[r.sampler]||{};return u.magFilter=ue[h.magFilter]||J,u.minFilter=ue[h.minFilter]||Te,u.wrapS=le[h.wrapS]||Z,u.wrapT=le[h.wrapT]||Z,u.generateMipmaps=!u.isCompressedTexture&&u.minFilter!==Re&&u.minFilter!==J,t.associations.set(u,{textures:n}),u}).catch(function(){return null});return this.textureCache[o]=c,c}loadImageSource(n,e){const s=this,t=this.json,i=this.options;if(this.sourceCache[n]!==void 0)return this.sourceCache[n].then(l=>l.clone());const r=t.images[n],a=self.URL||self.webkitURL;let o=r.uri||"",c=!1;if(r.bufferView!==void 0)o=s.getDependency("bufferView",r.bufferView).then(function(l){c=!0;const h=new Blob([l],{type:r.mimeType});return o=a.createObjectURL(h),o});else if(r.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+n+" is missing URI and bufferView");const u=Promise.resolve(o).then(function(l){return new Promise(function(h,d){let p=h;e.isImageBitmapLoader===!0&&(p=function(R){const m=new ne(R);m.needsUpdate=!0,h(m)}),e.load(v.resolveURL(l,i.path),p,void 0,d)})}).then(function(l){return c===!0&&a.revokeObjectURL(o),S(l,r),l.userData.mimeType=r.mimeType||Gn(r.uri),l}).catch(function(l){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),l});return this.sourceCache[n]=u,u}assignTexture(n,e,s,t){const i=this;return this.getDependency("texture",s.index).then(function(r){if(!r)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(r=r.clone(),r.channel=s.texCoord),i.extensions[g.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[g.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const o=i.associations.get(r);r=i.extensions[g.KHR_TEXTURE_TRANSFORM].extendTexture(r,a),i.associations.set(r,o)}}return t!==void 0&&(r.colorSpace=t),n[e]=r,r})}assignFinalMaterial(n){const e=n.geometry;let s=n.material;const t=e.attributes.tangent===void 0,i=e.attributes.color!==void 0,r=e.attributes.normal===void 0;if(n.isPoints){const a="PointsMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new Ge,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,o.sizeAttenuation=!1,this.cache.add(a,o)),s=o}else if(n.isLine){const a="LineBasicMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new ve,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,this.cache.add(a,o)),s=o}if(t||i||r){let a="ClonedMaterial:"+s.uuid+":";t&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),r&&(a+="flat-shading:");let o=this.cache.get(a);o||(o=s.clone(),i&&(o.vertexColors=!0),r&&(o.flatShading=!0),t&&(o.normalScale&&(o.normalScale.y*=-1),o.clearcoatNormalScale&&(o.clearcoatNormalScale.y*=-1)),this.cache.add(a,o),this.associations.set(o,this.associations.get(s))),s=o}n.material=s}getMaterialType(){return Ee}loadMaterial(n){const e=this,s=this.json,t=this.extensions,i=s.materials[n];let r;const a={},o=i.extensions||{},c=[];if(o[g.KHR_MATERIALS_UNLIT]){const l=t[g.KHR_MATERIALS_UNLIT];r=l.getMaterialType(),c.push(l.extendParams(a,i,e))}else{const l=i.pbrMetallicRoughness||{};if(a.color=new F(1,1,1),a.opacity=1,Array.isArray(l.baseColorFactor)){const h=l.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],w),a.opacity=h[3]}l.baseColorTexture!==void 0&&c.push(e.assignTexture(a,"map",l.baseColorTexture,U)),a.metalness=l.metallicFactor!==void 0?l.metallicFactor:1,a.roughness=l.roughnessFactor!==void 0?l.roughnessFactor:1,l.metallicRoughnessTexture!==void 0&&(c.push(e.assignTexture(a,"metalnessMap",l.metallicRoughnessTexture)),c.push(e.assignTexture(a,"roughnessMap",l.metallicRoughnessTexture))),r=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(n)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(n,a)})))}i.doubleSided===!0&&(a.side=Ue);const u=i.alphaMode||W.OPAQUE;if(u===W.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===W.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new pe(1,1),i.normalTexture.scale!==void 0)){const l=i.normalTexture.scale;a.normalScale.set(l,l)}if(i.occlusionTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&r!==G){const l=i.emissiveFactor;a.emissive=new F().setRGB(l[0],l[1],l[2],w)}return i.emissiveTexture!==void 0&&r!==G&&c.push(e.assignTexture(a,"emissiveMap",i.emissiveTexture,U)),Promise.all(c).then(function(){const l=new r(a);return i.name&&(l.name=i.name),S(l,i),e.associations.set(l,{materials:n}),i.extensions&&O(t,l,i),l})}createUniqueName(n){const e=Ke.sanitizeNodeName(n||"");return e in this.nodeNamesUsed?e+"_"+ ++this.nodeNamesUsed[e]:(this.nodeNamesUsed[e]=0,e)}loadGeometries(n){const e=this,s=this.extensions,t=this.primitiveCache;function i(a){return s[g.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,e).then(function(o){return fe(o,a,e)})}const r=[];for(let a=0,o=n.length;a<o;a++){const c=n[a],u=Dn(c),l=t[u];if(l)r.push(l.promise);else{let h;c.extensions&&c.extensions[g.KHR_DRACO_MESH_COMPRESSION]?h=i(c):h=fe(new Be,c,e),t[u]={primitive:c,promise:h},r.push(h)}}return Promise.all(r)}loadMesh(n){const e=this,s=this.json,t=this.extensions,i=s.meshes[n],r=i.primitives,a=[];for(let o=0,c=r.length;o<c;o++){const u=r[o].material===void 0?Pn(this.cache):this.getDependency("material",r[o].material);a.push(u)}return a.push(e.loadGeometries(r)),Promise.all(a).then(function(o){const c=o.slice(0,o.length-1),u=o[o.length-1],l=[];for(let d=0,p=u.length;d<p;d++){const R=u[d],m=r[d];let T;const A=c[d];if(m.mode===L.TRIANGLES||m.mode===L.TRIANGLE_STRIP||m.mode===L.TRIANGLE_FAN||m.mode===void 0)T=i.isSkinnedMesh===!0?new je(R,A):new Ve(R,A),T.isSkinnedMesh===!0&&T.normalizeSkinWeights(),m.mode===L.TRIANGLE_STRIP?T.geometry=oe(T.geometry,he):m.mode===L.TRIANGLE_FAN&&(T.geometry=oe(T.geometry,Q));else if(m.mode===L.LINES)T=new Xe(R,A);else if(m.mode===L.LINE_STRIP)T=new ze(R,A);else if(m.mode===L.LINE_LOOP)T=new qe(R,A);else if(m.mode===L.POINTS)T=new We(R,A);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+m.mode);Object.keys(T.geometry.morphAttributes).length>0&&kn(T,i),T.name=e.createUniqueName(i.name||"mesh_"+n),S(T,i),m.extensions&&O(t,T,m),e.assignFinalMaterial(T),l.push(T)}for(let d=0,p=l.length;d<p;d++)e.associations.set(l[d],{meshes:n,primitives:d});if(l.length===1)return i.extensions&&O(t,l[0],i),l[0];const h=new z;i.extensions&&O(t,h,i),e.associations.set(h,{meshes:n});for(let d=0,p=l.length;d<p;d++)h.add(l[d]);return h})}loadCamera(n){let e;const s=this.json.cameras[n],t=s[s.type];if(!t){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?e=new Ye(Qe.radToDeg(t.yfov),t.aspectRatio||1,t.znear||1,t.zfar||2e6):s.type==="orthographic"&&(e=new Je(-t.xmag,t.xmag,t.ymag,-t.ymag,t.znear,t.zfar)),s.name&&(e.name=this.createUniqueName(s.name)),S(e,s),Promise.resolve(e)}loadSkin(n){const e=this.json.skins[n],s=[];for(let t=0,i=e.joints.length;t<i;t++)s.push(this._loadNodeShallow(e.joints[t]));return e.inverseBindMatrices!==void 0?s.push(this.getDependency("accessor",e.inverseBindMatrices)):s.push(null),Promise.all(s).then(function(t){const i=t.pop(),r=t,a=[],o=[];for(let c=0,u=r.length;c<u;c++){const l=r[c];if(l){a.push(l);const h=new K;i!==null&&h.fromArray(i.array,c*16),o.push(h)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',e.joints[c])}return new Ze(a,o)})}loadAnimation(n){const e=this.json,s=this,t=e.animations[n],i=t.name?t.name:"animation_"+n,r=[],a=[],o=[],c=[],u=[];for(let l=0,h=t.channels.length;l<h;l++){const d=t.channels[l],p=t.samplers[d.sampler],R=d.target,m=R.node,T=t.parameters!==void 0?t.parameters[p.input]:p.input,A=t.parameters!==void 0?t.parameters[p.output]:p.output;R.node!==void 0&&(r.push(this.getDependency("node",m)),a.push(this.getDependency("accessor",T)),o.push(this.getDependency("accessor",A)),c.push(p),u.push(R))}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o),Promise.all(c),Promise.all(u)]).then(function(l){const h=l[0],d=l[1],p=l[2],R=l[3],m=l[4],T=[];for(let x=0,E=h.length;x<E;x++){const b=h[x],N=d[x],M=p[x],k=R[x],P=m[x];if(b===void 0)continue;b.updateMatrix&&b.updateMatrix();const B=s._createAnimationTracks(b,N,M,k,P);if(B)for(let j=0;j<B.length;j++)T.push(B[j])}const A=new $e(i,void 0,T);return S(A,t),A})}createNodeMesh(n){const e=this.json,s=this,t=e.nodes[n];return t.mesh===void 0?null:s.getDependency("mesh",t.mesh).then(function(i){const r=s._getNodeRef(s.meshCache,t.mesh,i);return t.weights!==void 0&&r.traverse(function(a){if(a.isMesh)for(let o=0,c=t.weights.length;o<c;o++)a.morphTargetInfluences[o]=t.weights[o]}),r})}loadNode(n){const e=this.json,s=this,t=e.nodes[n],i=s._loadNodeShallow(n),r=[],a=t.children||[];for(let c=0,u=a.length;c<u;c++)r.push(s.getDependency("node",a[c]));const o=t.skin===void 0?Promise.resolve(null):s.getDependency("skin",t.skin);return Promise.all([i,Promise.all(r),o]).then(function(c){const u=c[0],l=c[1],h=c[2];h!==null&&u.traverse(function(d){d.isSkinnedMesh&&d.bind(h,vn)});for(let d=0,p=l.length;d<p;d++)u.add(l[d]);if(u.userData.pivot!==void 0&&l.length>0){const d=u.userData.pivot,p=l[0];u.pivot=new C().fromArray(d),u.position.x-=d[0],u.position.y-=d[1],u.position.z-=d[2],p.position.set(0,0,0),delete u.userData.pivot}return u})}_loadNodeShallow(n){const e=this.json,s=this.extensions,t=this;if(this.nodeCache[n]!==void 0)return this.nodeCache[n];const i=e.nodes[n],r=i.name?t.createUniqueName(i.name):"",a=[],o=t._invokeOne(function(c){return c.createNodeMesh&&c.createNodeMesh(n)});return o&&a.push(o),i.camera!==void 0&&a.push(t.getDependency("camera",i.camera).then(function(c){return t._getNodeRef(t.cameraCache,i.camera,c)})),t._invokeAll(function(c){return c.createNodeAttachment&&c.createNodeAttachment(n)}).forEach(function(c){a.push(c)}),this.nodeCache[n]=Promise.all(a).then(function(c){let u;if(i.isBone===!0?u=new en:c.length>1?u=new z:c.length===1?u=c[0]:u=new ge,u!==c[0])for(let l=0,h=c.length;l<h;l++)u.add(c[l]);if(i.name&&(u.userData.name=i.name,u.name=r),S(u,i),i.extensions&&O(s,u,i),i.matrix!==void 0){const l=new K;l.fromArray(i.matrix),u.applyMatrix4(l)}else i.translation!==void 0&&u.position.fromArray(i.translation),i.rotation!==void 0&&u.quaternion.fromArray(i.rotation),i.scale!==void 0&&u.scale.fromArray(i.scale);if(!t.associations.has(u))t.associations.set(u,{});else if(i.mesh!==void 0&&t.meshCache.refs[i.mesh]>1){const l=t.associations.get(u);t.associations.set(u,{...l})}return t.associations.get(u).nodes=n,u}),this.nodeCache[n]}loadScene(n){const e=this.extensions,s=this.json.scenes[n],t=this,i=new z;s.name&&(i.name=t.createUniqueName(s.name)),S(i,s),s.extensions&&O(e,i,s);const r=s.nodes||[],a=[];for(let o=0,c=r.length;o<c;o++)a.push(t.getDependency("node",r[o]));return Promise.all(a).then(function(o){for(let u=0,l=o.length;u<l;u++){const h=o[u];h.parent!==null?i.add(nn(h)):i.add(h)}const c=u=>{const l=new Map;for(const[h,d]of t.associations)(h instanceof X||h instanceof ne)&&l.set(h,d);return u.traverse(h=>{const d=t.associations.get(h);d!=null&&l.set(h,d)}),l};return t.associations=c(i),i})}_createAnimationTracks(n,e,s,t,i){const r=[],a=n.name?n.name:n.uuid,o=[];function c(d){d.morphTargetInfluences&&o.push(d.name?d.name:d.uuid)}I[i.path]===I.weights?(c(n),n.isGroup&&n.children.forEach(c)):o.push(a);let u;switch(I[i.path]){case I.weights:u=se;break;case I.rotation:u=ie;break;case I.translation:case I.scale:u=te;break;default:switch(s.itemSize){case 1:u=se;break;case 2:case 3:default:u=te;break}break}const l=t.interpolation!==void 0?Fn[t.interpolation]:xe,h=this._getArrayFromAccessor(s);for(let d=0,p=o.length;d<p;d++){const R=new u(o[d]+"."+I[i.path],e.array,h,l);t.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(R),r.push(R)}return r}_getArrayFromAccessor(n){let e=n.array;if(n.normalized){const s=ee(e.constructor),t=new Float32Array(e.length);for(let i=0,r=e.length;i<r;i++)t[i]=e[i]*s;e=t}return e}_createCubicSplineTrackInterpolant(n){n.createInterpolant=function(s){const t=this instanceof ie?Cn:_e;return new t(this.times,this.values,this.getValueSize()/3,s)},n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function Kn(f,n,e){const s=n.attributes,t=new an;if(s.POSITION!==void 0){const a=e.json.accessors[s.POSITION],o=a.min,c=a.max;if(o!==void 0&&c!==void 0){if(t.set(new C(o[0],o[1],o[2]),new C(c[0],c[1],c[2])),a.normalized){const u=ee(H[a.componentType]);t.min.multiplyScalar(u),t.max.multiplyScalar(u)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const i=n.targets;if(i!==void 0){const a=new C,o=new C;for(let c=0,u=i.length;c<u;c++){const l=i[c];if(l.POSITION!==void 0){const h=e.json.accessors[l.POSITION],d=h.min,p=h.max;if(d!==void 0&&p!==void 0){if(o.setX(Math.max(Math.abs(d[0]),Math.abs(p[0]))),o.setY(Math.max(Math.abs(d[1]),Math.abs(p[1]))),o.setZ(Math.max(Math.abs(d[2]),Math.abs(p[2]))),h.normalized){const R=ee(H[h.componentType]);o.multiplyScalar(R)}a.max(o)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}t.expandByVector(a)}f.boundingBox=t;const r=new cn;t.getCenter(r.center),r.radius=t.min.distanceTo(t.max)/2,f.boundingSphere=r}function fe(f,n,e){const s=n.attributes,t=[];function i(r,a){return e.getDependency("accessor",r).then(function(o){f.setAttribute(a,o)})}for(const r in s){const a=$[r]||r.toLowerCase();a in f.attributes||t.push(i(s[r],a))}if(n.indices!==void 0&&!f.index){const r=e.getDependency("accessor",n.indices).then(function(a){f.setIndex(a)});t.push(r)}return re.workingColorSpace!==w&&"COLOR_0"in s&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${re.workingColorSpace}" not supported.`),S(f,n),Kn(f,n,e),Promise.all(t).then(function(){return n.targets!==void 0?Hn(f,n.targets,e):f})}export{jn as GLTFLoader};
|
|
1
|
+
import{bg as be,bh as Q,bi as he,bj as Le,bk as v,bl as de,aO as y,aQ as pe,aD as F,bm as w,bb as U,b8 as Me,bn as Se,ah as ye,w as B,bo as we,V as C,Q as me,bp as Ne,u as ge,bq as Ie,br as Oe,an as V,bs as Ce,bt as Te,bu as Fe,bv as Pe,bw as He,bc as J,bx as Re,by as Z,bz as ke,bA as De,b4 as Ge,bB as X,bC as ve,ac as Ee,ap as Ue,ao as G,bD as Be,am as Ke,bE as je,aa as Ve,bF as Xe,bG as ze,bH as qe,aB as We,a7 as z,ai as Ye,b2 as Qe,bI as Je,bJ as Ze,bK as $e,bL as en,bM as nn,bN as tn,bO as xe,aW as sn,ba as ne,bP as te,bQ as se,bR as ie,bS as re,bT as rn,bU as on,ad as an,ae as cn}from"./rr0-sighting-editor.mjs";function oe(f,n){if(n===be)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),f;if(n===Q||n===he){let e=f.getIndex();if(e===null){const r=[],a=f.getAttribute("position");if(a!==void 0){for(let o=0;o<a.count;o++)r.push(o);f.setIndex(r),e=f.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),f}const s=e.count-2,t=[];if(n===Q)for(let r=1;r<=s;r++)t.push(e.getX(0)),t.push(e.getX(r)),t.push(e.getX(r+1));else for(let r=0;r<s;r++)r%2===0?(t.push(e.getX(r)),t.push(e.getX(r+1)),t.push(e.getX(r+2))):(t.push(e.getX(r+2)),t.push(e.getX(r+1)),t.push(e.getX(r)));t.length/3!==s&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const i=f.clone();return i.setIndex(t),i.clearGroups(),i}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",n),f}class jn extends Le{constructor(n){super(n),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new dn(e)}),this.register(function(e){return new pn(e)}),this.register(function(e){return new bn(e)}),this.register(function(e){return new Ln(e)}),this.register(function(e){return new Mn(e)}),this.register(function(e){return new gn(e)}),this.register(function(e){return new Tn(e)}),this.register(function(e){return new Rn(e)}),this.register(function(e){return new En(e)}),this.register(function(e){return new hn(e)}),this.register(function(e){return new xn(e)}),this.register(function(e){return new mn(e)}),this.register(function(e){return new _n(e)}),this.register(function(e){return new An(e)}),this.register(function(e){return new ln(e)}),this.register(function(e){return new ae(e,g.EXT_MESHOPT_COMPRESSION)}),this.register(function(e){return new ae(e,g.KHR_MESHOPT_COMPRESSION)}),this.register(function(e){return new Sn(e)})}load(n,e,s,t){const i=this;let r;if(this.resourcePath!=="")r=this.resourcePath;else if(this.path!==""){const c=v.extractUrlBase(n);r=v.resolveURL(c,this.path)}else r=v.extractUrlBase(n);this.manager.itemStart(n);const a=function(c){t?t(c):console.error(c),i.manager.itemError(n),i.manager.itemEnd(n)},o=new de(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(n,function(c){try{i.parse(c,r,function(u){e(u),i.manager.itemEnd(n)},a)}catch(u){a(u)}},s,a)}setDRACOLoader(n){return this.dracoLoader=n,this}setKTX2Loader(n){return this.ktx2Loader=n,this}setMeshoptDecoder(n){return this.meshoptDecoder=n,this}register(n){return this.pluginCallbacks.indexOf(n)===-1&&this.pluginCallbacks.push(n),this}unregister(n){return this.pluginCallbacks.indexOf(n)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(n),1),this}parse(n,e,s,t){let i;const r={},a={},o=new TextDecoder;if(typeof n=="string")i=JSON.parse(n);else if(n instanceof ArrayBuffer)if(o.decode(new Uint8Array(n,0,4))===Ae){try{r[g.KHR_BINARY_GLTF]=new yn(n)}catch(l){t&&t(l);return}i=JSON.parse(r[g.KHR_BINARY_GLTF].content)}else i=JSON.parse(o.decode(n));else i=n;if(i.asset===void 0||i.asset.version[0]<2){t&&t(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const c=new Un(i,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const l=this.pluginCallbacks[u](c);l.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[l.name]=l,r[l.name]=!0}if(i.extensionsUsed)for(let u=0;u<i.extensionsUsed.length;++u){const l=i.extensionsUsed[u],h=i.extensionsRequired||[];switch(l){case g.KHR_MATERIALS_UNLIT:r[l]=new fn;break;case g.KHR_DRACO_MESH_COMPRESSION:r[l]=new wn(i,this.dracoLoader);break;case g.KHR_TEXTURE_TRANSFORM:r[l]=new Nn;break;case g.KHR_MESH_QUANTIZATION:r[l]=new In;break;default:h.indexOf(l)>=0&&a[l]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+l+'".')}}c.setExtensions(r),c.setPlugins(a),c.parse(s,t)}parseAsync(n,e){const s=this;return new Promise(function(t,i){s.parse(n,e,t,i)})}}function un(){let f={};return{get:function(n){return f[n]},add:function(n,e){f[n]=e},remove:function(n){delete f[n]},removeAll:function(){f={}}}}function _(f,n,e){const s=f.json.materials[n];return s.extensions&&s.extensions[e]?s.extensions[e]:null}const g={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",KHR_MESHOPT_COMPRESSION:"KHR_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class ln{constructor(n){this.parser=n,this.name=g.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const n=this.parser,e=this.parser.json.nodes||[];for(let s=0,t=e.length;s<t;s++){const i=e[s];i.extensions&&i.extensions[this.name]&&i.extensions[this.name].light!==void 0&&n._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(n){const e=this.parser,s="light:"+n;let t=e.cache.get(s);if(t)return t;const i=e.json,o=((i.extensions&&i.extensions[this.name]||{}).lights||[])[n];let c;const u=new F(16777215);o.color!==void 0&&u.setRGB(o.color[0],o.color[1],o.color[2],w);const l=o.range!==void 0?o.range:0;switch(o.type){case"directional":c=new ye(u),c.target.position.set(0,0,-1),c.add(c.target);break;case"point":c=new Se(u),c.distance=l;break;case"spot":c=new Me(u),c.distance=l,o.spot=o.spot||{},o.spot.innerConeAngle=o.spot.innerConeAngle!==void 0?o.spot.innerConeAngle:0,o.spot.outerConeAngle=o.spot.outerConeAngle!==void 0?o.spot.outerConeAngle:Math.PI/4,c.angle=o.spot.outerConeAngle,c.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}return c.position.set(0,0,0),S(c,o),o.intensity!==void 0&&(c.intensity=o.intensity),c.name=e.createUniqueName(o.name||"light_"+n),t=Promise.resolve(c),e.cache.add(s,t),t}getDependency(n,e){if(n==="light")return this._loadLight(e)}createNodeAttachment(n){const e=this,s=this.parser,i=s.json.nodes[n],a=(i.extensions&&i.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(o){return s._getNodeRef(e.cache,a,o)})}}class fn{constructor(){this.name=g.KHR_MATERIALS_UNLIT}getMaterialType(){return G}extendParams(n,e,s){const t=[];n.color=new F(1,1,1),n.opacity=1;const i=e.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){const r=i.baseColorFactor;n.color.setRGB(r[0],r[1],r[2],w),n.opacity=r[3]}i.baseColorTexture!==void 0&&t.push(s.assignTexture(n,"map",i.baseColorTexture,U))}return Promise.all(t)}}class hn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||s.emissiveStrength!==void 0&&(e.emissiveIntensity=s.emissiveStrength),Promise.resolve()}}class dn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_CLEARCOAT}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(s.clearcoatFactor!==void 0&&(e.clearcoat=s.clearcoatFactor),s.clearcoatTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatMap",s.clearcoatTexture)),s.clearcoatRoughnessFactor!==void 0&&(e.clearcoatRoughness=s.clearcoatRoughnessFactor),s.clearcoatRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatRoughnessMap",s.clearcoatRoughnessTexture)),s.clearcoatNormalTexture!==void 0&&(t.push(this.parser.assignTexture(e,"clearcoatNormalMap",s.clearcoatNormalTexture)),s.clearcoatNormalTexture.scale!==void 0)){const i=s.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new pe(i,i)}return Promise.all(t)}}class pn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_DISPERSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.dispersion=s.dispersion!==void 0?s.dispersion:0),Promise.resolve()}}class mn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IRIDESCENCE}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.iridescenceFactor!==void 0&&(e.iridescence=s.iridescenceFactor),s.iridescenceTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceMap",s.iridescenceTexture)),s.iridescenceIor!==void 0&&(e.iridescenceIOR=s.iridescenceIor),e.iridescenceThicknessRange===void 0&&(e.iridescenceThicknessRange=[100,400]),s.iridescenceThicknessMinimum!==void 0&&(e.iridescenceThicknessRange[0]=s.iridescenceThicknessMinimum),s.iridescenceThicknessMaximum!==void 0&&(e.iridescenceThicknessRange[1]=s.iridescenceThicknessMaximum),s.iridescenceThicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceThicknessMap",s.iridescenceThicknessTexture)),Promise.all(t)}}class gn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SHEEN}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(e.sheenColor=new F(0,0,0),e.sheenRoughness=0,e.sheen=1,s.sheenColorFactor!==void 0){const i=s.sheenColorFactor;e.sheenColor.setRGB(i[0],i[1],i[2],w)}return s.sheenRoughnessFactor!==void 0&&(e.sheenRoughness=s.sheenRoughnessFactor),s.sheenColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenColorMap",s.sheenColorTexture,U)),s.sheenRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenRoughnessMap",s.sheenRoughnessTexture)),Promise.all(t)}}class Tn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_TRANSMISSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.transmissionFactor!==void 0&&(e.transmission=s.transmissionFactor),s.transmissionTexture!==void 0&&t.push(this.parser.assignTexture(e,"transmissionMap",s.transmissionTexture)),Promise.all(t)}}class Rn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_VOLUME}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.thickness=s.thicknessFactor!==void 0?s.thicknessFactor:0,s.thicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"thicknessMap",s.thicknessTexture)),e.attenuationDistance=s.attenuationDistance||1/0;const i=s.attenuationColor||[1,1,1];return e.attenuationColor=new F().setRGB(i[0],i[1],i[2],w),Promise.all(t)}}class En{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IOR}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.ior=s.ior!==void 0?s.ior:1.5,e.ior===0&&(e.ior=1e3)),Promise.resolve()}}class xn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SPECULAR}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.specularIntensity=s.specularFactor!==void 0?s.specularFactor:1,s.specularTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularIntensityMap",s.specularTexture));const i=s.specularColorFactor||[1,1,1];return e.specularColor=new F().setRGB(i[0],i[1],i[2],w),s.specularColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularColorMap",s.specularColorTexture,U)),Promise.all(t)}}class An{constructor(n){this.parser=n,this.name=g.EXT_MATERIALS_BUMP}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return e.bumpScale=s.bumpFactor!==void 0?s.bumpFactor:1,s.bumpTexture!==void 0&&t.push(this.parser.assignTexture(e,"bumpMap",s.bumpTexture)),Promise.all(t)}}class _n{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_ANISOTROPY}getMaterialType(n){return _(this.parser,n,this.name)!==null?y:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.anisotropyStrength!==void 0&&(e.anisotropy=s.anisotropyStrength),s.anisotropyRotation!==void 0&&(e.anisotropyRotation=s.anisotropyRotation),s.anisotropyTexture!==void 0&&t.push(this.parser.assignTexture(e,"anisotropyMap",s.anisotropyTexture)),Promise.all(t)}}class bn{constructor(n){this.parser=n,this.name=g.KHR_TEXTURE_BASISU}loadTexture(n){const e=this.parser,s=e.json,t=s.textures[n];if(!t.extensions||!t.extensions[this.name])return null;const i=t.extensions[this.name],r=e.options.ktx2Loader;if(!r){if(s.extensionsRequired&&s.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(n,i.source,r)}}class Ln{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_WEBP}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class Mn{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_AVIF}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class ae{constructor(n,e){this.name=e,this.parser=n}loadBufferView(n){const e=this.parser.json,s=e.bufferViews[n];if(s.extensions&&s.extensions[this.name]){const t=s.extensions[this.name],i=this.parser.getDependency("buffer",t.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(a){const o=t.byteOffset||0,c=t.byteLength||0,u=t.count,l=t.byteStride,h=new Uint8Array(a,o,c);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(u,l,h,t.mode,t.filter).then(function(d){return d.buffer}):r.ready.then(function(){const d=new ArrayBuffer(u*l);return r.decodeGltfBuffer(new Uint8Array(d),u,l,h,t.mode,t.filter),d})})}else return null}}class Sn{constructor(n){this.name=g.EXT_MESH_GPU_INSTANCING,this.parser=n}createNodeMesh(n){const e=this.parser.json,s=e.nodes[n];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const t=e.meshes[s.mesh];for(const c of t.primitives)if(c.mode!==L.TRIANGLES&&c.mode!==L.TRIANGLE_STRIP&&c.mode!==L.TRIANGLE_FAN&&c.mode!==void 0)return null;const r=s.extensions[this.name].attributes,a=[],o={};for(const c in r)a.push(this.parser.getDependency("accessor",r[c]).then(u=>(o[c]=u,o[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(n)),Promise.all(a).then(c=>{const u=c.pop(),l=u.isGroup?u.children:[u],h=c[0].count,d=[];for(const p of l){const R=new B,m=new C,T=new me,A=new C(1,1,1),x=new we(p.geometry,p.material,h);for(let E=0;E<h;E++)o.TRANSLATION&&m.fromBufferAttribute(o.TRANSLATION,E),o.ROTATION&&T.fromBufferAttribute(o.ROTATION,E),o.SCALE&&A.fromBufferAttribute(o.SCALE,E),x.setMatrixAt(E,R.compose(m,T,A));for(const E in o)if(E==="_COLOR_0"){const b=o[E];x.instanceColor=new Ne(b.array,b.itemSize,b.normalized)}else E!=="TRANSLATION"&&E!=="ROTATION"&&E!=="SCALE"&&p.geometry.setAttribute(E,o[E]);ge.prototype.copy.call(x,p),this.parser.assignFinalMaterial(x),d.push(x)}return u.isGroup?(u.clear(),u.add(...d),u):d[0]}))}}const Ae="glTF",D=12,ce={JSON:1313821514,BIN:5130562};class yn{constructor(n){this.name=g.KHR_BINARY_GLTF,this.content=null,this.body=null;const e=new DataView(n,0,D),s=new TextDecoder;if(this.header={magic:s.decode(new Uint8Array(n.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==Ae)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const t=this.header.length-D,i=new DataView(n,D);let r=0;for(;r<t;){const a=i.getUint32(r,!0);r+=4;const o=i.getUint32(r,!0);if(r+=4,o===ce.JSON){const c=new Uint8Array(n,D+r,a);this.content=s.decode(c)}else if(o===ce.BIN){const c=D+r;this.body=n.slice(c,c+a)}r+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class wn{constructor(n,e){if(!e)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=g.KHR_DRACO_MESH_COMPRESSION,this.json=n,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(n,e){const s=this.json,t=this.dracoLoader,i=n.extensions[this.name].bufferView,r=n.extensions[this.name].attributes,a={},o={},c={};for(const u in r){const l=$[u]||u.toLowerCase();a[l]=r[u]}for(const u in n.attributes){const l=$[u]||u.toLowerCase();if(r[u]!==void 0){const h=s.accessors[n.attributes[u]],d=H[h.componentType];c[l]=d.name,o[l]=h.normalized===!0}}return e.getDependency("bufferView",i).then(function(u){return new Promise(function(l,h){t.decodeDracoFile(u,function(d){for(const p in d.attributes){const R=d.attributes[p],m=o[p];m!==void 0&&(R.normalized=m)}l(d)},a,c,w,h)})})}}class Nn{constructor(){this.name=g.KHR_TEXTURE_TRANSFORM}extendTexture(n,e){return(e.texCoord===void 0||e.texCoord===n.channel)&&e.offset===void 0&&e.rotation===void 0&&e.scale===void 0||(n=n.clone(),e.texCoord!==void 0&&(n.channel=e.texCoord),e.offset!==void 0&&n.offset.fromArray(e.offset),e.rotation!==void 0&&(n.rotation=e.rotation),e.scale!==void 0&&n.repeat.fromArray(e.scale),n.needsUpdate=!0),n}}class In{constructor(){this.name=g.KHR_MESH_QUANTIZATION}}class _e extends on{constructor(n,e,s,t){super(n,e,s,t)}copySampleValue_(n){const e=this.resultBuffer,s=this.sampleValues,t=this.valueSize,i=n*t*3+t;for(let r=0;r!==t;r++)e[r]=s[i+r];return e}interpolate_(n,e,s,t){const i=this.resultBuffer,r=this.sampleValues,a=this.valueSize,o=a*2,c=a*3,u=t-e,l=(s-e)/u,h=l*l,d=h*l,p=n*c,R=p-c,m=-2*d+3*h,T=d-h,A=1-m,x=T-h+l;for(let E=0;E!==a;E++){const b=r[R+E+a],N=r[R+E+o]*u,M=r[p+E+a],k=r[p+E]*u;i[E]=A*b+x*N+m*M+T*k}return i}}const On=new me;class Cn extends _e{interpolate_(n,e,s,t){const i=super.interpolate_(n,e,s,t);return On.fromArray(i).normalize().toArray(i),i}}const L={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},H={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ue={9728:Re,9729:J,9984:He,9985:Pe,9986:Fe,9987:Te},le={33071:De,33648:ke,10497:Z},q={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},$={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},I={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Fn={CUBICSPLINE:void 0,LINEAR:xe,STEP:tn},W={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function Pn(f){return f.DefaultMaterial===void 0&&(f.DefaultMaterial=new Ee({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:rn})),f.DefaultMaterial}function O(f,n,e){for(const s in e.extensions)f[s]===void 0&&(n.userData.gltfExtensions=n.userData.gltfExtensions||{},n.userData.gltfExtensions[s]=e.extensions[s])}function S(f,n){n.extras!==void 0&&(typeof n.extras=="object"?Object.assign(f.userData,n.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+n.extras))}function Hn(f,n,e){let s=!1,t=!1,i=!1;for(let c=0,u=n.length;c<u;c++){const l=n[c];if(l.POSITION!==void 0&&(s=!0),l.NORMAL!==void 0&&(t=!0),l.COLOR_0!==void 0&&(i=!0),s&&t&&i)break}if(!s&&!t&&!i)return Promise.resolve(f);const r=[],a=[],o=[];for(let c=0,u=n.length;c<u;c++){const l=n[c];if(s){const h=l.POSITION!==void 0?e.getDependency("accessor",l.POSITION):f.attributes.position;r.push(h)}if(t){const h=l.NORMAL!==void 0?e.getDependency("accessor",l.NORMAL):f.attributes.normal;a.push(h)}if(i){const h=l.COLOR_0!==void 0?e.getDependency("accessor",l.COLOR_0):f.attributes.color;o.push(h)}}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o)]).then(function(c){const u=c[0],l=c[1],h=c[2];return s&&(f.morphAttributes.position=u),t&&(f.morphAttributes.normal=l),i&&(f.morphAttributes.color=h),f.morphTargetsRelative=!0,f})}function kn(f,n){if(f.updateMorphTargets(),n.weights!==void 0)for(let e=0,s=n.weights.length;e<s;e++)f.morphTargetInfluences[e]=n.weights[e];if(n.extras&&Array.isArray(n.extras.targetNames)){const e=n.extras.targetNames;if(f.morphTargetInfluences.length===e.length){f.morphTargetDictionary={};for(let s=0,t=e.length;s<t;s++)f.morphTargetDictionary[e[s]]=s}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function Dn(f){let n;const e=f.extensions&&f.extensions[g.KHR_DRACO_MESH_COMPRESSION];if(e?n="draco:"+e.bufferView+":"+e.indices+":"+Y(e.attributes):n=f.indices+":"+Y(f.attributes)+":"+f.mode,f.targets!==void 0)for(let s=0,t=f.targets.length;s<t;s++)n+=":"+Y(f.targets[s]);return n}function Y(f){let n="";const e=Object.keys(f).sort();for(let s=0,t=e.length;s<t;s++)n+=e[s]+":"+f[e[s]]+";";return n}function ee(f){switch(f){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function Gn(f){return f.search(/\.jpe?g($|\?)/i)>0||f.search(/^data\:image\/jpeg/)===0?"image/jpeg":f.search(/\.webp($|\?)/i)>0||f.search(/^data\:image\/webp/)===0?"image/webp":f.search(/\.ktx2($|\?)/i)>0||f.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const vn=new B;class Un{constructor(n={},e={}){this.json=n,this.extensions={},this.plugins={},this.options=e,this.cache=new un,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,t=-1,i=!1,r=-1;if(typeof navigator<"u"&&typeof navigator.userAgent<"u"){const a=navigator.userAgent;s=/^((?!chrome|android).)*safari/i.test(a)===!0;const o=a.match(/Version\/(\d+)/);t=s&&o?parseInt(o[1],10):-1,i=a.indexOf("Firefox")>-1,r=i?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||s&&t<17||i&&r<98?this.textureLoader=new Ie(this.options.manager):this.textureLoader=new Oe(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new de(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(n){this.extensions=n}setPlugins(n){this.plugins=n}parse(n,e){const s=this,t=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(r){return r._markDefs&&r._markDefs()}),Promise.all(this._invokeAll(function(r){return r.beforeRoot&&r.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(r){const a={scene:r[0][t.scene||0],scenes:r[0],animations:r[1],cameras:r[2],asset:t.asset,parser:s,userData:{}};return O(i,a,t),S(a,t),Promise.all(s._invokeAll(function(o){return o.afterRoot&&o.afterRoot(a)})).then(function(){for(const o of a.scenes)o.updateMatrixWorld();n(a)})}).catch(e)}_markDefs(){const n=this.json.nodes||[],e=this.json.skins||[],s=this.json.meshes||[];for(let t=0,i=e.length;t<i;t++){const r=e[t].joints;for(let a=0,o=r.length;a<o;a++)n[r[a]].isBone=!0}for(let t=0,i=n.length;t<i;t++){const r=n[t];r.mesh!==void 0&&(this._addNodeRef(this.meshCache,r.mesh),r.skin!==void 0&&(s[r.mesh].isSkinnedMesh=!0)),r.camera!==void 0&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(n,e){e!==void 0&&(n.refs[e]===void 0&&(n.refs[e]=n.uses[e]=0),n.refs[e]++)}_getNodeRef(n,e,s){if(n.refs[e]<=1)return s;const t=s.clone(),i=(r,a)=>{const o=this.associations.get(r);o!=null&&this.associations.set(a,o);for(const[c,u]of r.children.entries())i(u,a.children[c])};return i(s,t),t.name+="_instance_"+n.uses[e]++,t}_invokeOne(n){const e=Object.values(this.plugins);e.push(this);for(let s=0;s<e.length;s++){const t=n(e[s]);if(t)return t}return null}_invokeAll(n){const e=Object.values(this.plugins);e.unshift(this);const s=[];for(let t=0;t<e.length;t++){const i=n(e[t]);i&&s.push(i)}return s}getDependency(n,e){const s=n+":"+e;let t=this.cache.get(s);if(!t){switch(n){case"scene":t=this.loadScene(e);break;case"node":t=this._invokeOne(function(i){return i.loadNode&&i.loadNode(e)});break;case"mesh":t=this._invokeOne(function(i){return i.loadMesh&&i.loadMesh(e)});break;case"accessor":t=this.loadAccessor(e);break;case"bufferView":t=this._invokeOne(function(i){return i.loadBufferView&&i.loadBufferView(e)});break;case"buffer":t=this.loadBuffer(e);break;case"material":t=this._invokeOne(function(i){return i.loadMaterial&&i.loadMaterial(e)});break;case"texture":t=this._invokeOne(function(i){return i.loadTexture&&i.loadTexture(e)});break;case"skin":t=this.loadSkin(e);break;case"animation":t=this._invokeOne(function(i){return i.loadAnimation&&i.loadAnimation(e)});break;case"camera":t=this.loadCamera(e);break;default:if(t=this._invokeOne(function(i){return i!=this&&i.getDependency&&i.getDependency(n,e)}),!t)throw new Error("Unknown type: "+n);break}this.cache.add(s,t)}return t}getDependencies(n){let e=this.cache.get(n);if(!e){const s=this,t=this.json[n+(n==="mesh"?"es":"s")]||[];e=Promise.all(t.map(function(i,r){return s.getDependency(n,r)})),this.cache.add(n,e)}return e}loadBuffer(n){const e=this.json.buffers[n],s=this.fileLoader;if(e.type&&e.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+e.type+" buffer type is not supported.");if(e.uri===void 0&&n===0)return Promise.resolve(this.extensions[g.KHR_BINARY_GLTF].body);const t=this.options;return new Promise(function(i,r){s.load(v.resolveURL(e.uri,t.path),i,void 0,function(){r(new Error('THREE.GLTFLoader: Failed to load buffer "'+e.uri+'".'))})})}loadBufferView(n){const e=this.json.bufferViews[n];return this.getDependency("buffer",e.buffer).then(function(s){const t=e.byteLength||0,i=e.byteOffset||0;return s.slice(i,i+t)})}loadAccessor(n){const e=this,s=this.json,t=this.json.accessors[n];if(t.bufferView===void 0&&t.sparse===void 0){const r=q[t.type],a=H[t.componentType],o=t.normalized===!0,c=new a(t.count*r);return Promise.resolve(new V(c,r,o))}const i=[];return t.bufferView!==void 0?i.push(this.getDependency("bufferView",t.bufferView)):i.push(null),t.sparse!==void 0&&(i.push(this.getDependency("bufferView",t.sparse.indices.bufferView)),i.push(this.getDependency("bufferView",t.sparse.values.bufferView))),Promise.all(i).then(function(r){const a=r[0],o=q[t.type],c=H[t.componentType],u=c.BYTES_PER_ELEMENT,l=u*o,h=t.byteOffset||0,d=t.bufferView!==void 0?s.bufferViews[t.bufferView].byteStride:void 0,p=t.normalized===!0;let R,m;if(d&&d!==l){const T=Math.floor(h/d),A="InterleavedBuffer:"+t.bufferView+":"+t.componentType+":"+T+":"+t.count;let x=e.cache.get(A);x||(R=new c(a,T*d,t.count*d/u),x=new Ce(R,d/u),e.cache.add(A,x)),m=new sn(x,o,h%d/u,p)}else a===null?R=new c(t.count*o):R=new c(a,h,t.count*o),m=new V(R,o,p);if(t.sparse!==void 0){const T=q.SCALAR,A=H[t.sparse.indices.componentType],x=t.sparse.indices.byteOffset||0,E=t.sparse.values.byteOffset||0,b=new A(r[1],x,t.sparse.count*T),N=new c(r[2],E,t.sparse.count*o);a!==null&&(m=new V(m.array.slice(),m.itemSize,m.normalized)),m.normalized=!1;for(let M=0,k=b.length;M<k;M++){const P=b[M];if(m.setX(P,N[M*o]),o>=2&&m.setY(P,N[M*o+1]),o>=3&&m.setZ(P,N[M*o+2]),o>=4&&m.setW(P,N[M*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}m.normalized=p}return m})}loadTexture(n){const e=this.json,s=this.options,i=e.textures[n].source,r=e.images[i];let a=this.textureLoader;if(r.uri){const o=s.manager.getHandler(r.uri);o!==null&&(a=o)}return this.loadTextureImage(n,i,a)}loadTextureImage(n,e,s){const t=this,i=this.json,r=i.textures[n],a=i.images[e],o=(a.uri||a.bufferView)+":"+r.sampler;if(this.textureCache[o])return this.textureCache[o];const c=this.loadImageSource(e,s).then(function(u){u.flipY=!1,u.name=r.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const h=(i.samplers||{})[r.sampler]||{};return u.magFilter=ue[h.magFilter]||J,u.minFilter=ue[h.minFilter]||Te,u.wrapS=le[h.wrapS]||Z,u.wrapT=le[h.wrapT]||Z,u.generateMipmaps=!u.isCompressedTexture&&u.minFilter!==Re&&u.minFilter!==J,t.associations.set(u,{textures:n}),u}).catch(function(){return null});return this.textureCache[o]=c,c}loadImageSource(n,e){const s=this,t=this.json,i=this.options;if(this.sourceCache[n]!==void 0)return this.sourceCache[n].then(l=>l.clone());const r=t.images[n],a=self.URL||self.webkitURL;let o=r.uri||"",c=!1;if(r.bufferView!==void 0)o=s.getDependency("bufferView",r.bufferView).then(function(l){c=!0;const h=new Blob([l],{type:r.mimeType});return o=a.createObjectURL(h),o});else if(r.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+n+" is missing URI and bufferView");const u=Promise.resolve(o).then(function(l){return new Promise(function(h,d){let p=h;e.isImageBitmapLoader===!0&&(p=function(R){const m=new ne(R);m.needsUpdate=!0,h(m)}),e.load(v.resolveURL(l,i.path),p,void 0,d)})}).then(function(l){return c===!0&&a.revokeObjectURL(o),S(l,r),l.userData.mimeType=r.mimeType||Gn(r.uri),l}).catch(function(l){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),l});return this.sourceCache[n]=u,u}assignTexture(n,e,s,t){const i=this;return this.getDependency("texture",s.index).then(function(r){if(!r)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(r=r.clone(),r.channel=s.texCoord),i.extensions[g.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[g.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const o=i.associations.get(r);r=i.extensions[g.KHR_TEXTURE_TRANSFORM].extendTexture(r,a),i.associations.set(r,o)}}return t!==void 0&&(r.colorSpace=t),n[e]=r,r})}assignFinalMaterial(n){const e=n.geometry;let s=n.material;const t=e.attributes.tangent===void 0,i=e.attributes.color!==void 0,r=e.attributes.normal===void 0;if(n.isPoints){const a="PointsMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new Ge,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,o.sizeAttenuation=!1,this.cache.add(a,o)),s=o}else if(n.isLine){const a="LineBasicMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new ve,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,this.cache.add(a,o)),s=o}if(t||i||r){let a="ClonedMaterial:"+s.uuid+":";t&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),r&&(a+="flat-shading:");let o=this.cache.get(a);o||(o=s.clone(),i&&(o.vertexColors=!0),r&&(o.flatShading=!0),t&&(o.normalScale&&(o.normalScale.y*=-1),o.clearcoatNormalScale&&(o.clearcoatNormalScale.y*=-1)),this.cache.add(a,o),this.associations.set(o,this.associations.get(s))),s=o}n.material=s}getMaterialType(){return Ee}loadMaterial(n){const e=this,s=this.json,t=this.extensions,i=s.materials[n];let r;const a={},o=i.extensions||{},c=[];if(o[g.KHR_MATERIALS_UNLIT]){const l=t[g.KHR_MATERIALS_UNLIT];r=l.getMaterialType(),c.push(l.extendParams(a,i,e))}else{const l=i.pbrMetallicRoughness||{};if(a.color=new F(1,1,1),a.opacity=1,Array.isArray(l.baseColorFactor)){const h=l.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],w),a.opacity=h[3]}l.baseColorTexture!==void 0&&c.push(e.assignTexture(a,"map",l.baseColorTexture,U)),a.metalness=l.metallicFactor!==void 0?l.metallicFactor:1,a.roughness=l.roughnessFactor!==void 0?l.roughnessFactor:1,l.metallicRoughnessTexture!==void 0&&(c.push(e.assignTexture(a,"metalnessMap",l.metallicRoughnessTexture)),c.push(e.assignTexture(a,"roughnessMap",l.metallicRoughnessTexture))),r=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(n)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(n,a)})))}i.doubleSided===!0&&(a.side=Ue);const u=i.alphaMode||W.OPAQUE;if(u===W.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===W.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new pe(1,1),i.normalTexture.scale!==void 0)){const l=i.normalTexture.scale;a.normalScale.set(l,l)}if(i.occlusionTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&r!==G){const l=i.emissiveFactor;a.emissive=new F().setRGB(l[0],l[1],l[2],w)}return i.emissiveTexture!==void 0&&r!==G&&c.push(e.assignTexture(a,"emissiveMap",i.emissiveTexture,U)),Promise.all(c).then(function(){const l=new r(a);return i.name&&(l.name=i.name),S(l,i),e.associations.set(l,{materials:n}),i.extensions&&O(t,l,i),l})}createUniqueName(n){const e=Be.sanitizeNodeName(n||"");return e in this.nodeNamesUsed?e+"_"+ ++this.nodeNamesUsed[e]:(this.nodeNamesUsed[e]=0,e)}loadGeometries(n){const e=this,s=this.extensions,t=this.primitiveCache;function i(a){return s[g.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,e).then(function(o){return fe(o,a,e)})}const r=[];for(let a=0,o=n.length;a<o;a++){const c=n[a],u=Dn(c),l=t[u];if(l)r.push(l.promise);else{let h;c.extensions&&c.extensions[g.KHR_DRACO_MESH_COMPRESSION]?h=i(c):h=fe(new Ke,c,e),t[u]={primitive:c,promise:h},r.push(h)}}return Promise.all(r)}loadMesh(n){const e=this,s=this.json,t=this.extensions,i=s.meshes[n],r=i.primitives,a=[];for(let o=0,c=r.length;o<c;o++){const u=r[o].material===void 0?Pn(this.cache):this.getDependency("material",r[o].material);a.push(u)}return a.push(e.loadGeometries(r)),Promise.all(a).then(function(o){const c=o.slice(0,o.length-1),u=o[o.length-1],l=[];for(let d=0,p=u.length;d<p;d++){const R=u[d],m=r[d];let T;const A=c[d];if(m.mode===L.TRIANGLES||m.mode===L.TRIANGLE_STRIP||m.mode===L.TRIANGLE_FAN||m.mode===void 0)T=i.isSkinnedMesh===!0?new je(R,A):new Ve(R,A),T.isSkinnedMesh===!0&&T.normalizeSkinWeights(),m.mode===L.TRIANGLE_STRIP?T.geometry=oe(T.geometry,he):m.mode===L.TRIANGLE_FAN&&(T.geometry=oe(T.geometry,Q));else if(m.mode===L.LINES)T=new Xe(R,A);else if(m.mode===L.LINE_STRIP)T=new ze(R,A);else if(m.mode===L.LINE_LOOP)T=new qe(R,A);else if(m.mode===L.POINTS)T=new We(R,A);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+m.mode);Object.keys(T.geometry.morphAttributes).length>0&&kn(T,i),T.name=e.createUniqueName(i.name||"mesh_"+n),S(T,i),m.extensions&&O(t,T,m),e.assignFinalMaterial(T),l.push(T)}for(let d=0,p=l.length;d<p;d++)e.associations.set(l[d],{meshes:n,primitives:d});if(l.length===1)return i.extensions&&O(t,l[0],i),l[0];const h=new z;i.extensions&&O(t,h,i),e.associations.set(h,{meshes:n});for(let d=0,p=l.length;d<p;d++)h.add(l[d]);return h})}loadCamera(n){let e;const s=this.json.cameras[n],t=s[s.type];if(!t){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?e=new Ye(Qe.radToDeg(t.yfov),t.aspectRatio||1,t.znear||1,t.zfar||2e6):s.type==="orthographic"&&(e=new Je(-t.xmag,t.xmag,t.ymag,-t.ymag,t.znear,t.zfar)),s.name&&(e.name=this.createUniqueName(s.name)),S(e,s),Promise.resolve(e)}loadSkin(n){const e=this.json.skins[n],s=[];for(let t=0,i=e.joints.length;t<i;t++)s.push(this._loadNodeShallow(e.joints[t]));return e.inverseBindMatrices!==void 0?s.push(this.getDependency("accessor",e.inverseBindMatrices)):s.push(null),Promise.all(s).then(function(t){const i=t.pop(),r=t,a=[],o=[];for(let c=0,u=r.length;c<u;c++){const l=r[c];if(l){a.push(l);const h=new B;i!==null&&h.fromArray(i.array,c*16),o.push(h)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',e.joints[c])}return new Ze(a,o)})}loadAnimation(n){const e=this.json,s=this,t=e.animations[n],i=t.name?t.name:"animation_"+n,r=[],a=[],o=[],c=[],u=[];for(let l=0,h=t.channels.length;l<h;l++){const d=t.channels[l],p=t.samplers[d.sampler],R=d.target,m=R.node,T=t.parameters!==void 0?t.parameters[p.input]:p.input,A=t.parameters!==void 0?t.parameters[p.output]:p.output;R.node!==void 0&&(r.push(this.getDependency("node",m)),a.push(this.getDependency("accessor",T)),o.push(this.getDependency("accessor",A)),c.push(p),u.push(R))}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o),Promise.all(c),Promise.all(u)]).then(function(l){const h=l[0],d=l[1],p=l[2],R=l[3],m=l[4],T=[];for(let x=0,E=h.length;x<E;x++){const b=h[x],N=d[x],M=p[x],k=R[x],P=m[x];if(b===void 0)continue;b.updateMatrix&&b.updateMatrix();const K=s._createAnimationTracks(b,N,M,k,P);if(K)for(let j=0;j<K.length;j++)T.push(K[j])}const A=new $e(i,void 0,T);return S(A,t),A})}createNodeMesh(n){const e=this.json,s=this,t=e.nodes[n];return t.mesh===void 0?null:s.getDependency("mesh",t.mesh).then(function(i){const r=s._getNodeRef(s.meshCache,t.mesh,i);return t.weights!==void 0&&r.traverse(function(a){if(a.isMesh)for(let o=0,c=t.weights.length;o<c;o++)a.morphTargetInfluences[o]=t.weights[o]}),r})}loadNode(n){const e=this.json,s=this,t=e.nodes[n],i=s._loadNodeShallow(n),r=[],a=t.children||[];for(let c=0,u=a.length;c<u;c++)r.push(s.getDependency("node",a[c]));const o=t.skin===void 0?Promise.resolve(null):s.getDependency("skin",t.skin);return Promise.all([i,Promise.all(r),o]).then(function(c){const u=c[0],l=c[1],h=c[2];h!==null&&u.traverse(function(d){d.isSkinnedMesh&&d.bind(h,vn)});for(let d=0,p=l.length;d<p;d++)u.add(l[d]);if(u.userData.pivot!==void 0&&l.length>0){const d=u.userData.pivot,p=l[0];u.pivot=new C().fromArray(d),u.position.x-=d[0],u.position.y-=d[1],u.position.z-=d[2],p.position.set(0,0,0),delete u.userData.pivot}return u})}_loadNodeShallow(n){const e=this.json,s=this.extensions,t=this;if(this.nodeCache[n]!==void 0)return this.nodeCache[n];const i=e.nodes[n],r=i.name?t.createUniqueName(i.name):"",a=[],o=t._invokeOne(function(c){return c.createNodeMesh&&c.createNodeMesh(n)});return o&&a.push(o),i.camera!==void 0&&a.push(t.getDependency("camera",i.camera).then(function(c){return t._getNodeRef(t.cameraCache,i.camera,c)})),t._invokeAll(function(c){return c.createNodeAttachment&&c.createNodeAttachment(n)}).forEach(function(c){a.push(c)}),this.nodeCache[n]=Promise.all(a).then(function(c){let u;if(i.isBone===!0?u=new en:c.length>1?u=new z:c.length===1?u=c[0]:u=new ge,u!==c[0])for(let l=0,h=c.length;l<h;l++)u.add(c[l]);if(i.name&&(u.userData.name=i.name,u.name=r),S(u,i),i.extensions&&O(s,u,i),i.matrix!==void 0){const l=new B;l.fromArray(i.matrix),u.applyMatrix4(l)}else i.translation!==void 0&&u.position.fromArray(i.translation),i.rotation!==void 0&&u.quaternion.fromArray(i.rotation),i.scale!==void 0&&u.scale.fromArray(i.scale);if(!t.associations.has(u))t.associations.set(u,{});else if(i.mesh!==void 0&&t.meshCache.refs[i.mesh]>1){const l=t.associations.get(u);t.associations.set(u,{...l})}return t.associations.get(u).nodes=n,u}),this.nodeCache[n]}loadScene(n){const e=this.extensions,s=this.json.scenes[n],t=this,i=new z;s.name&&(i.name=t.createUniqueName(s.name)),S(i,s),s.extensions&&O(e,i,s);const r=s.nodes||[],a=[];for(let o=0,c=r.length;o<c;o++)a.push(t.getDependency("node",r[o]));return Promise.all(a).then(function(o){for(let u=0,l=o.length;u<l;u++){const h=o[u];h.parent!==null?i.add(nn(h)):i.add(h)}const c=u=>{const l=new Map;for(const[h,d]of t.associations)(h instanceof X||h instanceof ne)&&l.set(h,d);return u.traverse(h=>{const d=t.associations.get(h);d!=null&&l.set(h,d)}),l};return t.associations=c(i),i})}_createAnimationTracks(n,e,s,t,i){const r=[],a=n.name?n.name:n.uuid,o=[];function c(d){d.morphTargetInfluences&&o.push(d.name?d.name:d.uuid)}I[i.path]===I.weights?(c(n),n.isGroup&&n.children.forEach(c)):o.push(a);let u;switch(I[i.path]){case I.weights:u=se;break;case I.rotation:u=ie;break;case I.translation:case I.scale:u=te;break;default:switch(s.itemSize){case 1:u=se;break;case 2:case 3:default:u=te;break}break}const l=t.interpolation!==void 0?Fn[t.interpolation]:xe,h=this._getArrayFromAccessor(s);for(let d=0,p=o.length;d<p;d++){const R=new u(o[d]+"."+I[i.path],e.array,h,l);t.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(R),r.push(R)}return r}_getArrayFromAccessor(n){let e=n.array;if(n.normalized){const s=ee(e.constructor),t=new Float32Array(e.length);for(let i=0,r=e.length;i<r;i++)t[i]=e[i]*s;e=t}return e}_createCubicSplineTrackInterpolant(n){n.createInterpolant=function(s){const t=this instanceof ie?Cn:_e;return new t(this.times,this.values,this.getValueSize()/3,s)},n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function Bn(f,n,e){const s=n.attributes,t=new an;if(s.POSITION!==void 0){const a=e.json.accessors[s.POSITION],o=a.min,c=a.max;if(o!==void 0&&c!==void 0){if(t.set(new C(o[0],o[1],o[2]),new C(c[0],c[1],c[2])),a.normalized){const u=ee(H[a.componentType]);t.min.multiplyScalar(u),t.max.multiplyScalar(u)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const i=n.targets;if(i!==void 0){const a=new C,o=new C;for(let c=0,u=i.length;c<u;c++){const l=i[c];if(l.POSITION!==void 0){const h=e.json.accessors[l.POSITION],d=h.min,p=h.max;if(d!==void 0&&p!==void 0){if(o.setX(Math.max(Math.abs(d[0]),Math.abs(p[0]))),o.setY(Math.max(Math.abs(d[1]),Math.abs(p[1]))),o.setZ(Math.max(Math.abs(d[2]),Math.abs(p[2]))),h.normalized){const R=ee(H[h.componentType]);o.multiplyScalar(R)}a.max(o)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}t.expandByVector(a)}f.boundingBox=t;const r=new cn;t.getCenter(r.center),r.radius=t.min.distanceTo(t.max)/2,f.boundingSphere=r}function fe(f,n,e){const s=n.attributes,t=[];function i(r,a){return e.getDependency("accessor",r).then(function(o){f.setAttribute(a,o)})}for(const r in s){const a=$[r]||r.toLowerCase();a in f.attributes||t.push(i(s[r],a))}if(n.indices!==void 0&&!f.index){const r=e.getDependency("accessor",n.indices).then(function(a){f.setIndex(a)});t.push(r)}return re.workingColorSpace!==w&&"COLOR_0"in s&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${re.workingColorSpace}" not supported.`),S(f,n),Bn(f,n,e),Promise.all(t).then(function(){return n.targets!==void 0?Hn(f,n.targets,e):f})}export{jn as GLTFLoader};
|
package/dist-embed-sighting-editor/{HeadlightSystem-Cy4jSEsq.js → HeadlightSystem-neTrWCCo.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b8 as A,aa as g,V as P,b9 as h,am as C,an as E,aY as L,aD as x,ap as R,aq as D}from"./rr0-sighting-editor.mjs";class i{constructor(e){this.scene=e}static REAL_BEAMS=4;static LAMPS=2;static DISTANCE_M=500;static AIR_LENGTH_M=90;static CLEAR_AIR_SCATTER_PER_M=2e-4;static SHADOW_MAP_PX=1024;beams=new Map;static airGeometry;has(e){return this.beams.has(e)}get size(){return this.beams.size}lamps(e){return this.beams.get(e)?.lamps??[]}airMeshes(e){return this.beams.get(e)?.air??[]}add(e){if(this.beams.has(e))return!0;if(this.beams.size>=i.REAL_BEAMS)return!1;const t=[],r=[];for(let n=0;n<i.LAMPS;n++){const a=new A(16777215,0,i.DISTANCE_M,Math.PI/8,.5,2);a.castShadow=e==="observer",a.shadow.mapSize.set(i.SHADOW_MAP_PX,i.SHADOW_MAP_PX),a.shadow.camera.near=.4,a.shadow.camera.far=110,a.shadow.bias=-4e-4,a.shadow.normalBias=.04,a.shadow.radius=2,this.scene.add(a),this.scene.add(a.target),t.push(a);const o=new g(i.airCone(),i.airMaterial());o.visible=!1,o.frustumCulled=!1,o.renderOrder=8,o.castShadow=!1,o.receiveShadow=!1,o.name="headlight air",this.scene.add(o),r.push(o)}return this.beams.set(e,{lamps:t,air:r}),!0}remove(e){const t=this.beams.get(e);if(t){for(const r of t.lamps)r.removeFromParent(),r.target.removeFromParent(),r.dispose();for(const r of t.air)r.removeFromParent(),r.material.dispose();this.beams.delete(e)}}clear(e){for(const t of[...this.beams.keys()])e&&t==="observer"||this.remove(t)}dispose(){this.clear(!1),i.airGeometry?.dispose(),i.airGeometry=void 0}aim(e,t,r,n,a,o,u){const c=this.beams.get(e),w=Math.max(u,i.CLEAR_AIR_SCATTER_PER_M);if(!c)return;const l=h.BEAMS[t],v=new P(-n.z,0,n.x),b=e==="observer"&&l!==void 0;c.lamps.forEach((s,d)=>{if(!l){s.intensity=0,c.air[d].visible=!1,s.shadow.autoUpdate=!1;return}const f=d===0?-1:1,m=l.pitchDeg*Math.PI/180,p=l.candela*h.DISPLAY_GAIN*o/c.lamps.length;s.color.set(l.color),s.intensity=p,s.angle=l.halfAngleDeg*Math.PI/180,s.penumbra=l.penumbra,b?(s.shadow.autoUpdate||(s.shadow.needsUpdate=!0),s.shadow.autoUpdate=!0):s.shadow.autoUpdate=!1,s.position.copy(r).addScaledVector(v,f*a);const M=n.clone().addScaledVector(v,-f*Math.tan(h.TOE_IN_DEG*Math.PI/180)).normalize();s.target.position.set(s.position.x+M.x*Math.cos(m)*50,s.position.y-Math.sin(m)*50,s.position.z+M.z*Math.cos(m)*50),s.target.updateMatrixWorld(),this.aimAir(c.air[d],s,l.color,p,w)})}aimAir(e,t,r,n,a){if(e.visible=a*n>1e-4,!e.visible)return;const o=i.AIR_LENGTH_M,u=o*Math.tan(t.angle);e.position.copy(t.position),e.scale.set(u,u,o),e.lookAt(t.target.position),e.updateMatrixWorld();const c=e.material.uniforms;c.uColor.value.set(r),c.uCandela.value=n,c.uScatter.value=a,c.uLength.value=o,c.uRadius.value=u}static airCone(){if(i.airGeometry)return i.airGeometry;const e=24,t=new Float32Array((e+1)*3);for(let a=0;a<e;a++){const o=a/e*Math.PI*2;t.set([Math.cos(o),Math.sin(o),1],(a+1)*3)}const r=[];for(let a=0;a<e;a++)r.push(0,1+a,1+(a+1)%e);const n=new C;return n.setAttribute("position",new E(t,3)),n.setIndex(r),i.airGeometry=n,n}static airMaterial(){return new L({transparent:!0,depthWrite:!1,depthTest:!0,blending:D,side:R,uniforms:{uColor:{value:new x(1,1,1)},uCandela:{value:0},uScatter:{value:0},uLength:{value:90},uRadius:{value:20}},vertexShader:`
|
|
2
2
|
varying vec3 vLocal;
|
|
3
3
|
varying vec3 vNormalView;
|
|
4
4
|
varying vec3 vViewDir;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aI as n,aJ as c}from"./rr0-sighting-editor.mjs";import{N as p}from"./NearestApproach-BfoIDPh8.js";const l=-6,u=150;class o{about="temporal";async assess(e){const t=o.daylight(e),i=e.decor.map((s,r)=>({object:s,index:r})).filter(({object:s})=>s.kind==="entity"),a=p.of(e),d=a!==void 0&&a.m<=u;return{verdict:i.length>0?"ce3":d?"ce1":t===void 0?void 0:t?"dd":"nl",criteria:[{id:"entities",basis:i.length>0?"stated":void 0,paths:i.map(({index:s})=>`decor.${s}`)},{id:"traces",paths:[],unsupported:!0},{id:"proximity",basis:a?.basis,paths:a?.paths??[]},{id:"radar",paths:[],unsupported:!0},{id:"daylight",basis:t===void 0?void 0:"derived",paths:t===void 0?[]:["time","place"]}]}}static daylight(e){const t=e.event.place?.[0],i=e.event.time;if(!t||!i)return;const a=n(i,t.lng,e.event.utcOffsetHours);if(a)return c("Sun",a,{lat:t.lat,lng:t.lng,elevationM:0}).altitudeDeg>l}}export{o as HynekAssessor};
|