@rr0/ufoathome 0.139.0 → 0.141.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-scene/AdsbLolArchiveProvider-CO4IRthj.js +1 -0
- package/dist-embed-scene/GLTFLoader-wJ0bjCoG.js +1 -0
- package/dist-embed-scene/ReferenceSystem-BdF5Ptvm.js +1 -0
- package/dist-embed-scene/SceneNames_es-v7tJmsVK.js +1 -0
- package/dist-embed-scene/SceneNames_fr-CgU7Ms5_.js +1 -0
- package/dist-embed-scene/SceneNames_it-DljjUVi8.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +571 -287
- package/dist-embed-scene/sightingSchema-t3YCF0eV.js +1 -0
- package/dist-embed-sighting/AdsbLolArchiveProvider-SLZYD2p1.js +1 -0
- package/dist-embed-sighting/GLTFLoader-BGUT3v5v.js +1 -0
- package/dist-embed-sighting/ReferenceSystem-CEn7MuVP.js +1 -0
- package/dist-embed-sighting/{SceneNames_es-wkWHMHet.js → SceneNames_es-CPCIUfgZ.js} +1 -1
- package/dist-embed-sighting/SceneNames_fr-DixomaFq.js +1 -0
- package/dist-embed-sighting/SceneNames_it-BTNeU7-M.js +1 -0
- package/dist-embed-sighting/SightingMessages_es-BL3yAPR5.js +1 -0
- package/dist-embed-sighting/SightingMessages_fr-DYXapaAN.js +1 -0
- package/dist-embed-sighting/SightingMessages_it-3b421_Dl.js +1 -0
- package/dist-embed-sighting/rr0-sighting.mjs +580 -296
- package/dist-embed-sighting/sightingSchema-t3YCF0eV.js +1 -0
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-CtHllfL6.js +1 -0
- package/dist-embed-sighting-editor/{BeamEditor-CCsp2xr2.js → BeamEditor-Bko8HBqB.js} +1 -1
- package/dist-embed-sighting-editor/BeamSystem-DibQnDQt.js +1 -0
- package/dist-embed-sighting-editor/{BodyEditor-DtBz9fVX.js → BodyEditor-3Pv5hYe4.js} +1 -1
- package/dist-embed-sighting-editor/ContrailSystem-CnMn7-P3.js +1 -0
- package/dist-embed-sighting-editor/{CoverageAssessor-DbLjQSsv.js → CoverageAssessor-ZPfl-pIr.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-BwKeFCRw.js +1 -0
- package/dist-embed-sighting-editor/GhostSearchView-wZJh23C7.js +1 -0
- package/dist-embed-sighting-editor/HeadlightSystem-CoBP2hn0.js +34 -0
- package/dist-embed-sighting-editor/{HynekAssessor-C6Lge7G-.js → HynekAssessor-kTvEbabz.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-CJxgekiU.js → InterviewEditorElement-DBuxtdMB.js} +2 -2
- package/dist-embed-sighting-editor/{LaserBeam-B6u7y0-E.js → LaserBeam-BuHV0CAP.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-B-i5uD19.js +18 -0
- package/dist-embed-sighting-editor/ModelSource-DvO3GvYu.js +1 -0
- package/dist-embed-sighting-editor/ModelThumbnails-T8FwtOCM.js +1 -0
- package/dist-embed-sighting-editor/ModelViewer-s4OyekVX.js +1 -0
- package/dist-embed-sighting-editor/PanoramaxPictures-CELY3Ecc.js +1 -0
- package/dist-embed-sighting-editor/PictureRegistration-ZngZKmqH.js +1 -0
- package/dist-embed-sighting-editor/RailwaySystem-BgkkxR-M.js +41 -0
- package/dist-embed-sighting-editor/ReferenceSystem-8Nl1IFkX.js +1 -0
- package/dist-embed-sighting-editor/{RoadMarkings-xnEtzMn8.js → RoadMarkings-BME7pFh2.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_es-umTyyCxN.js → SceneNames_es-CYEwepgA.js} +1 -1
- package/dist-embed-sighting-editor/SceneNames_fr-DcmXYPbm.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_it-Doviz6zH.js +1 -0
- package/dist-embed-sighting-editor/{SightingEditorMessages_es-UiUywEk4.js → SightingEditorMessages_es-DtYML4wO.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-D5pajHZd.js → SightingEditorMessages_fr-Bt-2qm0Z.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-9SduHYDB.js → SightingEditorMessages_it-DK9cF3wW.js} +1 -1
- package/dist-embed-sighting-editor/{SightingFileEditor-CJX1-U4q.js → SightingFileEditor-DDAzzasL.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-CArVw3Pm.js → TraceSystem-BGF0P9zl.js} +2 -2
- package/dist-embed-sighting-editor/WaterSystem-BKoFKdK_.js +1 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +662 -351
- package/dist-embed-sighting-editor/sightingSchema-t3YCF0eV.js +1 -0
- package/dist-embed-sighting-editor/{trafficRuntime-BAGbGiVc.js → trafficRuntime-BoN9h4Uo.js} +2 -2
- package/package.json +1 -1
- package/dist-embed-scene/AdsbLolArchiveProvider-HY3iCExA.js +0 -1
- package/dist-embed-scene/GLTFLoader-WAZoNABx.js +0 -1
- package/dist-embed-scene/SceneNames_es-BS2ioieu.js +0 -1
- package/dist-embed-scene/SceneNames_fr-B-fRwUUu.js +0 -1
- package/dist-embed-scene/SceneNames_it-B-QEwmuM.js +0 -1
- package/dist-embed-scene/sightingSchema-Dn9Nacua.js +0 -1
- package/dist-embed-sighting/AdsbLolArchiveProvider-Bhh3sXD9.js +0 -1
- package/dist-embed-sighting/GLTFLoader-Zsr9YBrz.js +0 -1
- package/dist-embed-sighting/SceneNames_fr-DbbzZ1bB.js +0 -1
- package/dist-embed-sighting/SceneNames_it-BsxnweGu.js +0 -1
- package/dist-embed-sighting/SightingMessages_es-B-iNzmf3.js +0 -1
- package/dist-embed-sighting/SightingMessages_fr-Dq30mEEs.js +0 -1
- package/dist-embed-sighting/SightingMessages_it-CSJFk0JC.js +0 -1
- package/dist-embed-sighting/sightingSchema-Dn9Nacua.js +0 -1
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-De-_PiBH.js +0 -1
- package/dist-embed-sighting-editor/BeamSystem-B3qYVuHd.js +0 -1
- package/dist-embed-sighting-editor/ContrailSystem-D9rPfOBE.js +0 -1
- package/dist-embed-sighting-editor/GLTFLoader-Clgrcwp4.js +0 -1
- package/dist-embed-sighting-editor/HeadlightSystem-wFRogS2e.js +0 -34
- package/dist-embed-sighting-editor/LaunchEditor-CPa-pltK.js +0 -18
- package/dist-embed-sighting-editor/ModelSource-D9Q4lorr.js +0 -1
- package/dist-embed-sighting-editor/ModelThumbnails-DO6uXzoW.js +0 -1
- package/dist-embed-sighting-editor/ModelViewer-Ct9JM_Rx.js +0 -1
- package/dist-embed-sighting-editor/RailwaySystem-CNhqPQHR.js +0 -41
- package/dist-embed-sighting-editor/SceneNames_fr-BNgnxIHx.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_it-5UYhmJHo.js +0 -1
- package/dist-embed-sighting-editor/WaterSystem-B-MThsCt.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-Dn9Nacua.js +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{L as h,q as c,U as g,v as f,o as d,n as u,p,u as v}from"./rr0-sighting-editor.mjs";import{launchEditorMessages_en as m}from"./LaunchEditorMessages_en-DH8gI1vo.js";class s{static plumeValue(e){return t=>h.plumeOf(t)[e]}static plume(e,t){return{type:"number",key:`plume.${e}`,effective:s.plumeValue(e),...t}}static burn(e,t){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t.label,hint:t.hint,group:{en:"Engine",fr:"Moteur",es:"Motor",it:"Motore"},effective:i=>t.ends(i.track??[])?.t}}static nextPlace(e){const t=e[e.length-1]??{t:0,lat:0,lng:0,altitudeKm:0},i=e[e.length-2]??t,a=(n,l=0)=>e.length>1?t[n]-i[n]:l;return{t:t.t+(e.length>1?a("t"):1e4),lat:t.lat+a("lat"),lng:t.lng+a("lng"),altitudeKm:Math.max(0,t.altitudeKm+a("altitudeKm"))}}static SET={kind:"launch",title:{en:"Launch",fr:"Lancement",es:"Lanzamiento",it:"Lancio"},parameters:[{type:"said",key:"title",label:{en:"Name",fr:"Nom",es:"Nombre",it:"Nome"},group:{en:"Vehicle",fr:"Lanceur",es:"Lanzador",it:"Lanciatore"}},{type:"text",key:"vehicle.mission",label:{en:"Mission",fr:"Mission",es:"Misión",it:"Missione"},placeholder:"Starlink Group 10-49",group:{en:"Vehicle",fr:"Lanceur",es:"Lanzador",it:"Lanciatore"}},{type:"number",key:"vehicle.engine.thrustKN",min:1,max:1e5,step:1,unit:"kN",label:{en:"Thrust (vacuum)",fr:"Poussée (dans le vide)",es:"Empuje (en el vacío)",it:"Spinta (nel vuoto)"},hint:{en:"Merlin Vacuum 934, RL10 110, a solid booster several thousand. With the specific impulse, it sets how much exhaust leaves each second.",fr:"Merlin Vacuum 934, RL10 110, un booster à poudre plusieurs milliers. Avec l'impulsion spécifique, elle fixe le débit d'échappement.",es:"Merlin Vacuum 934, RL10 110, un propulsor sólido varios miles. Con el impulso específico, fija el caudal de escape.",it:"Merlin Vacuum 934, RL10 110, un booster solido diverse migliaia. Con l'impulso specifico, fissa la portata dello scarico."},group:{en:"Engine",fr:"Moteur",es:"Motor",it:"Motore"}},{type:"number",key:"vehicle.engine.specificImpulseS",min:100,max:500,step:1,unit:"s",label:{en:"Specific impulse (vacuum)",fr:"Impulsion spécifique (dans le vide)",es:"Impulso específico (en el vacío)",it:"Impulso specifico (nel vuoto)"},hint:{en:"Times 9.81 m/s² it is the exhaust velocity, which sets how fast the exhaust spreads round the stage: 348 s is 3.4 km/s.",fr:"Multipliée par 9,81 m/s², c'est la vitesse d'éjection, qui fixe la vitesse à laquelle l'échappement s'étale autour de l'étage : 348 s font 3,4 km/s.",es:"Multiplicado por 9,81 m/s² es la velocidad de escape, que fija la rapidez con que el escape se extiende alrededor de la etapa: 348 s son 3,4 km/s.",it:"Moltiplicato per 9,81 m/s² è la velocità di scarico, che fissa quanto in fretta lo scarico si allarga attorno allo stadio: 348 s sono 3,4 km/s."},group:{en:"Engine",fr:"Moteur",es:"Motor",it:"Motore"}},{type:"choice",key:"vehicle.engine.propellant",label:{en:"Propellant",fr:"Ergols",es:"Propelentes",it:"Propellenti"},hint:{en:"What the exhaust is made of decides how much of it turns into particles that scatter light.",fr:"Ce dont l'échappement est fait décide quelle part devient des particules qui diffusent la lumière.",es:"De qué está hecho el escape decide qué parte se vuelve partículas que difunden la luz.",it:"Di cosa è fatto lo scarico decide quanta parte diventa particelle che diffondono la luce."},choices:[{value:"rp1-lox",label:{en:"Kerosene and oxygen",fr:"Kérosène et oxygène",es:"Queroseno y oxígeno",it:"Cherosene e ossigeno"}},{value:"methane-lox",label:{en:"Methane and oxygen",fr:"Méthane et oxygène",es:"Metano y oxígeno",it:"Metano e ossigeno"}},{value:"hydrogen-lox",label:{en:"Hydrogen and oxygen",fr:"Hydrogène et oxygène",es:"Hidrógeno y oxígeno",it:"Idrogeno e ossigeno"}},{value:"hypergolic",label:{en:"Hypergolic",fr:"Hypergolique",es:"Hipergólico",it:"Ipergolico"}},{value:"solid",label:{en:"Solid",fr:"Poudre",es:"Sólido",it:"Solido"}}],group:{en:"Engine",fr:"Moteur",es:"Motor",it:"Motore"}},s.burn("burnFromT",{label:{en:"Engine start",fr:"Allumage du moteur",es:"Encendido del motor",it:"Accensione del motore"},hint:{en:"When the engine started, in seconds of the recording; it may be before it. Empty: the first point of the path.",fr:"Quand le moteur s'est allumé, en secondes de l'enregistrement ; avant lui si besoin. Vide : le premier point du chemin.",es:"Cuándo se encendió el motor, en segundos de la grabación; puede ser antes. Vacío: el primer punto de la trayectoria.",it:"Quando si è acceso il motore, in secondi della registrazione; può essere prima. Vuoto: il primo punto del percorso."},ends:e=>e[0]}),s.burn("burnUntilT",{label:{en:"Engine cut-off",fr:"Extinction du moteur",es:"Apagado del motor",it:"Spegnimento del motore"},hint:{en:"When the engine stopped, in seconds of the recording. Empty: the last point of the path. Nothing is let go after it.",fr:"Quand le moteur s'est éteint, en secondes de l'enregistrement. Vide : le dernier point du chemin. Rien n'est lâché après.",es:"Cuándo se apagó el motor, en segundos de la grabación. Vacío: el último punto de la trayectoria. Nada se suelta después.",it:"Quando si è spento il motore, in secondi della registrazione. Vuoto: l'ultimo punto del percorso. Dopo non si rilascia nulla."},ends:e=>e[e.length-1]}),s.plume("exhaustKgPerS",{min:.1,max:1e5,step:.1,unit:"kg/s",label:{en:"Exhaust flow",fr:"Débit d'échappement",es:"Caudal de escape",it:"Portata di scarico"},hint:{en:"How much exhaust leaves the engine each second: how bright the plume is. Thrust over exhaust velocity when the engine is stated.",fr:"La masse d'échappement qui sort du moteur chaque seconde : la luminosité du panache. La poussée sur la vitesse d'éjection quand le moteur est donné.",es:"La masa de escape que sale del motor cada segundo: el brillo de la estela. El empuje sobre la velocidad de escape cuando se da el motor.",it:"La massa di scarico che esce dal motore ogni secondo: la luminosità della scia. La spinta sulla velocità di scarico quando il motore è dato."},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("condensedShare",{min:0,max:1,step:.01,label:{en:"Share that scatters",fr:"Part qui diffuse",es:"Parte que difunde",it:"Parte che diffonde"},hint:{en:"The share of the exhaust that ends up as particles that scatter the Sun's light. Nobody has measured it for a launch: the one number to fit against a photograph.",fr:"La part de l'échappement qui devient des particules diffusant la lumière du Soleil. Personne ne l'a mesurée pour un lancement : le seul nombre à caler sur une photographie.",es:"La parte del escape que acaba como partículas que difunden la luz del Sol. Nadie la ha medido para un lanzamiento: el único número que ajustar con una fotografía.",it:"La parte dello scarico che diventa particelle che diffondono la luce del Sole. Nessuno l'ha misurata per un lancio: l'unico numero da tarare su una fotografia."},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("particleRadiusUm",{min:.05,max:5,step:.05,unit:"µm",label:{en:"Particle radius",fr:"Rayon des particules",es:"Radio de las partículas",it:"Raggio delle particelle"},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("lifetimeS",{min:10,max:3600,step:10,unit:"s",label:{en:"Trail lifetime",fr:"Durée de la traînée",es:"Duración de la estela",it:"Durata della scia"},hint:{en:"How long the narrow trail lasts before the particles have gone.",fr:"Combien de temps la traînée étroite dure avant que les particules aient disparu.",es:"Cuánto dura la estela estrecha antes de que las partículas hayan desaparecido.",it:"Quanto dura la scia stretta prima che le particelle siano sparite."},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("expansionKmPerS",{min:0,max:5,step:.01,unit:"km/s",label:{en:"Trail spreading",fr:"Étalement de la traînée",es:"Expansión de la estela",it:"Espansione della scia"},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("initialRadiusKm",{min:0,max:50,step:.1,unit:"km",label:{en:"Radius at release",fr:"Rayon au lâcher",es:"Radio al soltar",it:"Raggio al rilascio"},group:{en:"Plume",fr:"Panache",es:"Estela",it:"Scia"}}),s.plume("collarShare",{min:0,max:1,step:.01,label:{en:"Share in the collar",fr:"Part dans la collerette",es:"Parte en el collar",it:"Parte nel collare"},hint:{en:"The collar is the exhaust just let go, which spreads fast into a wide short-lived shell round the stage; the rest stays behind as the narrow trail.",fr:"La collerette est l'échappement qui vient d'être lâché, qui s'étale vite en une coque large et brève autour de l'étage ; le reste demeure derrière en traînée étroite.",es:"El collar es el escape recién soltado, que se extiende rápido en una envoltura ancha y breve alrededor de la etapa; el resto queda detrás como estela estrecha.",it:"Il collare è lo scarico appena rilasciato, che si allarga in fretta in un guscio largo e breve attorno allo stadio; il resto resta dietro come scia stretta."},group:{en:"Collar",fr:"Collerette",es:"Collar",it:"Collare"}}),s.plume("collarExpansionKmPerS",{min:0,max:10,step:.05,unit:"km/s",label:{en:"Collar spreading",fr:"Étalement de la collerette",es:"Expansión del collar",it:"Espansione del collare"},hint:{en:"How fast the collar widens: three quarters of the exhaust velocity when the engine is stated.",fr:"La vitesse à laquelle la collerette s'élargit : les trois quarts de la vitesse d'éjection quand le moteur est donné.",es:"La rapidez con que el collar se ensancha: tres cuartos de la velocidad de escape cuando se da el motor.",it:"Quanto in fretta il collare si allarga: tre quarti della velocità di scarico quando il motore è dato."},group:{en:"Collar",fr:"Collerette",es:"Collar",it:"Collare"}}),s.plume("collarLifetimeS",{min:1,max:300,step:1,unit:"s",label:{en:"Collar lifetime",fr:"Durée de la collerette",es:"Duración del collar",it:"Durata del collare"},group:{en:"Collar",fr:"Collerette",es:"Collar",it:"Collare"}})]};static PLACE={kind:"launch-place",title:{en:"Place of the path",fr:"Point du chemin",es:"Punto de la trayectoria",it:"Punto del percorso"},parameters:[{type:"number",key:"t",min:-3600,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:{en:"Time",fr:"Instant",es:"Instante",it:"Istante"},hint:{en:"Seconds of the recording; negative before it began: a stage seen minutes after its launch was already high when the recording started.",fr:"Secondes de l'enregistrement ; négatives avant son début : un étage vu des minutes après son lancement était déjà haut quand l'enregistrement a commencé.",es:"Segundos de la grabación; negativos antes de que empezara: una etapa vista minutos después de su lanzamiento ya estaba alta cuando empezó la grabación.",it:"Secondi della registrazione; negativi prima del suo inizio: uno stadio visto minuti dopo il lancio era già alto quando la registrazione è iniziata."}},{type:"number",key:"lat",min:-90,max:90,step:1e-4,unit:"°",required:!0,label:{en:"Latitude",fr:"Latitude",es:"Latitud",it:"Latitudine"}},{type:"number",key:"lng",min:-180,max:180,step:1e-4,unit:"°",required:!0,label:{en:"Longitude",fr:"Longitude",es:"Longitud",it:"Longitudine"}},{type:"number",key:"altitudeKm",min:0,max:2e3,step:.1,unit:"km",required:!0,label:{en:"Altitude",fr:"Altitude",es:"Altitud",it:"Altitudine"}}]};static jetContext(e,t){return{launch:e,index:t}}static jetValue(e){return(t,i)=>{const{launch:a,index:n}=i??{};return a?e(h.releaseOf(a,t,n)):void 0}}static JET_GROUP={en:"Jet",fr:"Jet",es:"Chorro",it:"Getto"};static JET={kind:"launch-jet",title:{en:"Jet",fr:"Jet",es:"Chorro",it:"Getto"},parameters:[{type:"choice",key:"kind",required:!0,label:{en:"What",fr:"Quoi",es:"Qué",it:"Cosa"},choices:[{value:"burn",label:{en:"Engine burn",fr:"Allumage du moteur",es:"Encendido del motor",it:"Accensione del motore"}},{value:"vent",label:{en:"Propellant vented",fr:"Ergols vidangés",es:"Propelentes purgados",it:"Propellenti scaricati"}}],group:s.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:{en:"From",fr:"Début",es:"Desde",it:"Da"},hint:{en:"Seconds of the recording; negative before it began.",fr:"Secondes de l'enregistrement ; négatives avant son début.",es:"Segundos de la grabación; negativos antes de que empezara.",it:"Secondi della registrazione; negativi prima del suo inizio."},group:s.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:{en:"Until",fr:"Fin",es:"Hasta",it:"Fino a"},group:s.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:{en:"Direction from aft",fr:"Direction depuis l'arrière",es:"Dirección desde atrás",it:"Direzione da dietro"},hint:{en:"0 straight back along the stage's motion (an engine pushing it on), 90 sideways, 180 straight ahead (an engine braking it).",fr:"0 droit vers l'arrière du mouvement de l'étage (un moteur qui le pousse), 90 sur le côté, 180 droit devant (un moteur qui le freine).",es:"0 hacia atrás del movimiento de la etapa (un motor que la empuja), 90 de lado, 180 hacia delante (un motor que la frena).",it:"0 dritto all'indietro rispetto al moto dello stadio (un motore che lo spinge), 90 di lato, 180 dritto in avanti (un motore che lo frena)."},group:s.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:{en:"Side",fr:"Côté",es:"Lado",it:"Lato"},hint:{en:"Round the line of motion, which side it leaves on at the start: 0 away from the Earth, 90 to the right of the motion.",fr:"Autour de la ligne du mouvement, le côté par lequel il part au début : 0 à l'opposé de la Terre, 90 à droite du mouvement.",es:"Alrededor de la línea del movimiento, el lado por el que sale al principio: 0 opuesto a la Tierra, 90 a la derecha del movimiento.",it:"Attorno alla linea del moto, il lato da cui esce all'inizio: 0 opposto alla Terra, 90 a destra del moto."},group:s.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:{en:"Spin period",fr:"Période de rotation",es:"Período de giro",it:"Periodo di rotazione"},hint:{en:"How long the stage takes to turn once round its line of motion; the jet turns with it and vented propellant draws a spiral. Negative turns the other way. Empty: it does not turn.",fr:"Le temps que met l'étage à faire un tour autour de sa ligne de mouvement ; le jet tourne avec lui et les ergols vidangés dessinent une spirale. Négative : dans l'autre sens. Vide : il ne tourne pas.",es:"Lo que tarda la etapa en dar una vuelta alrededor de su línea de movimiento; el chorro gira con ella y los propelentes purgados dibujan una espiral. Negativo: en el otro sentido. Vacío: no gira.",it:"Il tempo che lo stadio impiega a fare un giro attorno alla sua linea di moto; il getto gira con lui e i propellenti scaricati disegnano una spirale. Negativo: nell'altro verso. Vuoto: non gira."},group:s.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:s.jetValue(e=>e.speedKmPerS),label:{en:"Speed",fr:"Vitesse",es:"Velocidad",it:"Velocità"},hint:{en:"How fast it leaves the stage. A burn: the engine's exhaust velocity.",fr:"La vitesse à laquelle il quitte l'étage. Un allumage : la vitesse d'éjection du moteur.",es:"La velocidad con que sale de la etapa. Un encendido: la velocidad de escape del motor.",it:"La velocità con cui lascia lo stadio. Un'accensione: la velocità di scarico del motore."},group:s.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:s.jetValue(e=>e.massKgPerS),label:{en:"Flow",fr:"Débit",es:"Caudal",it:"Portata"},group:s.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:s.jetValue(e=>e.condensedShare),label:{en:"Share that scatters",fr:"Part qui diffuse",es:"Parte que difunde",it:"Parte che diffonde"},group:s.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:s.jetValue(e=>e.particleRadiusUm),label:{en:"Particle radius",fr:"Rayon des particules",es:"Radio de las partículas",it:"Raggio delle particelle"},group:s.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:s.jetValue(e=>e.populations[0].expansionKmPerS),label:{en:"Spreading",fr:"Étalement",es:"Expansión",it:"Espansione"},hint:{en:"How fast each puff of it widens: a narrow jet keeps the arms of a spiral apart.",fr:"La vitesse à laquelle chaque bouffée s'élargit : un jet étroit garde les bras d'une spirale séparés.",es:"La rapidez con que se ensancha cada bocanada: un chorro estrecho mantiene separados los brazos de una espiral.",it:"Quanto in fretta si allarga ogni sbuffo: un getto stretto tiene separati i bracci di una spirale."},group:s.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:s.jetValue(e=>e.initialRadiusKm),label:{en:"Radius at release",fr:"Rayon au lâcher",es:"Radio al soltar",it:"Raggio al rilascio"},group:s.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:s.jetValue(e=>e.populations[0].lifetimeS),label:{en:"Lifetime",fr:"Durée",es:"Duración",it:"Durata"},group:s.JET_GROUP}]};static publish(){c.publish(s.SET)}}class r{constructor(e,t,i){this.container=e,this.host=t,this.language=i,c.of("launch")||s.publish(),this.render(),this.setLanguage(i)}messages=m;languageToken=0;currentId;form;list;places;placeForm;placeIndex=0;jets;jetForm;jetIndex=0;language;shown=[];async setLanguage(e){const t=++this.languageToken;this.language=e;const i=g.includes(e)?e:"en",a=i==="en"?m:await f(i);t===this.languageToken&&(this.messages=a,this.render(),this.sync())}sync(){const e=this.launches;this.shown=[...e],e.some(a=>a.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(a=>({id:a.id,label:this.labelOf(a)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlaces(t),this.syncJets(t);const i=c.of("launch");this.form??=new d(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){this.syncAddState();const e=this.launches;e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])||this.sync()}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.currentId=e,this.placeIndex=0,this.sync()}render(){const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
|
-
<p class="launch-intro">${e.intro}</p>
|
|
3
|
-
<div id="launch-list"></div>
|
|
4
|
-
<div id="launch-fields" class="launch-fields">
|
|
5
|
-
<fieldset id="launch-path" class="launch-path">
|
|
6
|
-
<legend>${e.path}</legend>
|
|
7
|
-
<div id="launch-places"></div>
|
|
8
|
-
<div id="launch-place-parameters" class="launch-parameters"></div>
|
|
9
|
-
</fieldset>
|
|
10
|
-
<fieldset id="launch-jets" class="launch-path">
|
|
11
|
-
<legend>${e.jets}</legend>
|
|
12
|
-
<div id="launch-jet-list"></div>
|
|
13
|
-
<div id="launch-jet-parameters" class="launch-parameters"></div>
|
|
14
|
-
</fieldset>
|
|
15
|
-
<div id="launch-parameters" class="launch-parameters"></div>
|
|
16
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
17
|
-
</div>
|
|
18
|
-
</div>`;const t=this.element("launch-list");this.list=new u({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:a=>`launch-add-${a}`},onSelect:a=>{this.currentId=a,this.placeIndex=0,this.sync()},onAdd:a=>this.addLaunch(a??r.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(r.VEHICLES.map(a=>({value:a.id,label:a.vehicle.name??a.id})));const i=this.element("launch-places");this.places=new u({header:i,body:this.element("launch-place-parameters"),ids:{list:"launch-place",remove:"launch-place-delete",add:"launch-place-add"},navigation:{scope:this.container,onStep:a=>this.selectPlace(this.placeIndex+a)},onSelect:a=>this.selectPlace(Number(a)),onAdd:()=>this.addPlace(),onRemove:()=>this.removePlace()}),this.places.setLabels({list:e.place,remove:e.deletePlace,add:e.addPlace,previous:e.previousPlace,next:e.nextPlace}),this.placeForm=void 0,this.jets=new u({header:this.element("launch-jet-list"),body:this.element("launch-jet-parameters"),ids:{list:"launch-jet",remove:"launch-jet-delete",add:"launch-jet-add",kinds:"launch-jet-add-kind",kind:a=>`launch-jet-add-${a}`},onSelect:a=>{this.jetIndex=Number(a),this.syncJets(this.current,!0)},onAdd:a=>this.addJet(a==="vent"?"vent":"burn"),onRemove:()=>this.removeJet()}),this.jets.setLabels({list:e.jet,remove:e.deleteJet,add:e.addJet,empty:e.noJet}),this.jets.setKinds([{value:"burn",label:e.jetBurn},{value:"vent",label:e.jetVent}]),this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}syncPlaces(e,t=!1){const i=e.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,i.length-1)),this.places?.setItems(i.map((a,n)=>({id:String(n),label:this.seconds(a.t)})),String(this.placeIndex)),this.places?.setStepState(this.placeIndex>0,this.placeIndex<i.length-1),this.places?.setRemoveEnabled(i.length>r.MIN_PLACES),this.placeForm?this.placeForm.sync(t):(this.placeForm=new d(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(s.PLACE,new p(()=>this.current?.track[this.placeIndex],a=>this.editPlace(a)),()=>{}))}syncJets(e,t=!1){const i=e.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,i.length-1));const a=this.messages;this.jets?.setItems(i.map((n,l)=>({id:String(l),label:`${n.kind==="vent"?a.jetVent:a.jetBurn} ${this.seconds(n.fromT)}`})),i.length?String(this.jetIndex):void 0),this.jetForm?this.jetForm.sync(t):(this.jetForm=new d(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(s.JET,new p(()=>this.current?.jets?.[this.jetIndex],n=>this.editJet(n),()=>this.current?s.jetContext(this.current,this.jetIndex):void 0),()=>{}))}editJet(e){const t=this.current;if(!t?.jets)return;const i={...t.jets[this.jetIndex]};e(i),t.jets=t.jets.map((n,l)=>l===this.jetIndex?i:n);const a=this.messages;this.jets?.rename(String(this.jetIndex),`${i.kind==="vent"?a.jetVent:a.jetBurn} ${this.seconds(i.fromT)}`),this.written()}addJet(e){const t=this.current;if(!t)return;const i=t.track,a=Math.round((i[0].t+i[i.length-1].t)/2),n=e==="vent"?{kind:e,fromT:a,untilT:a+3e4,angleDeg:90}:{kind:e,fromT:a,untilT:a+3e4};!t.jets?.length&&t.burnFromT===void 0&&t.burnUntilT===void 0&&(t.burnFromT=i[0].t,t.burnUntilT=i[i.length-1].t),t.jets=[...t.jets??[],n],this.jetIndex=t.jets.length-1,this.syncJets(t,!0),this.form?.sync(!0),this.host.changed()}removeJet(){const e=this.current;if(!e?.jets?.length)return;const t=e.jets.filter((i,a)=>a!==this.jetIndex);t.length?e.jets=t:delete e.jets,this.syncJets(e,!0),this.host.changed()}static MIN_PLACES=2;seconds(e){return`${Math.round(e/100)/10} s`}selectPlace(e){const t=this.current?.track??[];e<0||e>=t.length||(this.placeIndex=e,this.syncPlaces(this.current,!0))}editPlace(e){const t=this.current;if(!t)return;const i={...t.track[this.placeIndex]};e(i);const a=t.track.map((n,l)=>l===this.placeIndex?i:n).sort((n,l)=>n.t-l.t);this.replaceTrack(t,a),this.placeIndex=a.indexOf(i),this.syncPlaces(this.current),this.written()}addPlace(){const e=this.current;if(!e)return;const t=e.track,i=s.nextPlace(t),a=[...e.track,i].sort((n,l)=>n.t-l.t);this.replaceTrack(e,a),this.placeIndex=a.indexOf(i),this.syncPlaces(this.current),this.host.changed()}removePlace(){const e=this.current;!e||e.track.length<=r.MIN_PLACES||(this.replaceTrack(e,e.track.filter((t,i)=>i!==this.placeIndex)),this.syncPlaces(this.current),this.host.changed())}replaceTrack(e,t){e.track=t}startOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,a=n=>({lat:t.lat+n*Math.cos(i)/111.32,lng:t.lng+n*Math.sin(i)/(111.32*Math.max(.05,Math.cos(t.lat*Math.PI/180)))});return[{t:0,...a(300),altitudeKm:80},{t:6e4,...a(450),altitudeKm:160}]}static VEHICLES=[{id:"falcon-9",vehicle:{name:"Falcon 9"}}];addLaunch(e){const t=this.startOfNew();if(!t)return;const i=r.VEHICLES.find(o=>o.id===e)??r.VEHICLES[0];let a=this.launches.length+1;for(;this.launches.some(o=>o.id===`launch-${a}`);)a++;const n={id:`launch-${a}`,vehicle:{...i.vehicle},track:t},l=this.host.sighting();l.skyEvents={...l.skyEvents,launches:[...this.launches,n]},this.currentId=n.id,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;if(!e)return;this.currentId=void 0;const t=this.host.sighting();t.skyEvents=v.written({...t.skyEvents,launches:this.launches.filter(i=>i!==e)}),this.host.changed(),this.sync()}labelOf(e){const t=this.host.said().read(e.title)??e.vehicle?.mission??e.vehicle?.name;return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().skyEvents?.launches??[]}element(e){return this.container.querySelector(`#${e}`)}}export{r as LaunchEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as d,Z as c,$ as l,a0 as f,a1 as m,a2 as u,a3 as w,a4 as g,a5 as y,a6 as M,a7 as S,a8 as v,a9 as O}from"./rr0-sighting-editor.mjs";class h{static key(e){return"url"in e?`url:${e.url}|${e.headingOffsetDeg??0}`:"shape"in e?`shape:${e.shape}`:`decor:${e.decorKind}`}static async build(e){const a=new d;if("url"in e){const s=await c(e.url);s.rotation.y=-(e.headingOffsetDeg??0)*Math.PI/180,a.add(s)}else"shape"in e?a.add(h.shapeOf(e.shape)):a.add(l.build({id:"preview",kind:e.decorKind,eastM:0,northM:0},!1));return a}static shapeOf(e){if(e==="figure")return l.build({id:"preview",kind:"entity",eastM:0,northM:0},!1);const a=new f(m.unitGeometry(e),new u({color:13158608,roughness:.5,metalness:0}));return e==="ellipsoid"&&a.scale.set(1,.55,1),a}static dispose(e){e.traverse(a=>{const s=a;if(s.isMesh){s.geometry?.dispose();for(const t of[s.material].flat())t.dispose()}})}static stage(e,a){const s=new w().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new g),r=new d;e.position.sub(t.center),r.add(e);const n=new y;n.add(r),n.add(new M(16777215,6715272,1.6));const o=new S(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new v(30,a,t.radius*.05,t.radius*20),p=t.radius/Math.sin(i.fov*Math.PI/360)*1.05;return i.position.copy(new O(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as c}from"./rr0-sighting-editor.mjs";import{M as i}from"./ModelSource-D9Q4lorr.js";class l{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=i.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await i.build(r);try{const{width:e,height:n}=this.SIZE_PX,a=i.stage(t,e/n);if(!a)return;const s=this.renderer??=new c({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return s.setSize(e,n,!1),s.setClearColor(0,0),s.render(a.scene,a.camera),s.domElement.toDataURL("image/png")}finally{i.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{l as ModelThumbnails};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as h}from"./rr0-sighting-editor.mjs";import{M as c}from"./ModelSource-D9Q4lorr.js";class a{constructor(t,e){this.container=t,this.source=e,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,e){a.current?.stop();const s=new a(t,e);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:e,height:s}=this.container.getBoundingClientRect(),i=e>0&&s>0?e/s:4/3;if(this.stage=c.stage(t,i),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),e=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*e);const s=a.renderer,{width:i,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(i*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(i,n,!1),this.canvas.width=Math.round(i*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=i/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const e=this.dragging;if(!e||!this.stage)return;const s=t.clientX-e.x,i=t.clientY-e.y;!e.moved&&Math.hypot(s,i)<a.CLICK_TOLERANCE_PX||(e.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-i*a.DRAG_RAD_PER_PX)),e.x=t.clientX,e.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import{Y as F,a2 as P,af as H,ag as w,aj as K,al as N,a0 as U,am as k}from"./rr0-sighting-editor.mjs";class b{static HOLLOW_M=1;static COVERED_M=3;static WINDOW_M=30;static SAMPLE_M=4;static MAX_GRADE={rail:.025,highSpeed:.035,subway:.04,light_rail:.06,tram:.08,funicular:1/0};static heights(t,n,e){const s=t.map(a=>a.level===0),o=t.map((a,l)=>s[l]?b.targets(a,n,e):[]),c=t.map((a,l)=>s[l]?b.samples(a,o[l]):[]),r=new Map;t.forEach((a,l)=>{if(s[l])for(const M of b.ends(a)){const h=b.key(M),d=r.get(h);d?d.push(l):r.set(h,[l])}});const p=a=>{const l=r.get(b.key(a));if(l)return b.median(l.flatMap(M=>c[M]),a)};return t.map((a,l)=>{if(s[l]){const M=[...new Set([l,...b.ends(a).flatMap(g=>r.get(b.key(g))??[])])].flatMap(g=>c[g]),h=a.centre.map((g,D)=>b.median(M,g)??o[l][D]),[d,L]=b.ends(a);return h[0]=p(d)??h[0],h[h.length-1]=p(L)??h[h.length-1],b.graded(h,a.along,a.highSpeed?b.MAX_GRADE.highSpeed:b.MAX_GRADE[a.kind])}return b.carried(a,n,e,p)})}static targets(t,n,e){return t.centre.map(s=>{const o=n(s.x,s.z);if(e===void 0||s.altitudeM===void 0)return o;const c=s.altitudeM+e;return c-o>b.HOLLOW_M||o-c>b.COVERED_M?c:o})}static samples(t,n){const e=[];let s=0;return t.centre.forEach((o,c)=>{t.along[c]+1e-6<s&&c<t.centre.length-1||(e.push({x:o.x,z:o.z,y:n[c]}),s=t.along[c]+b.SAMPLE_M)}),e}static median(t,n){const e=[];for(const o of t)Math.hypot(o.x-n.x,o.z-n.z)<=b.WINDOW_M&&e.push(o.y);if(e.length===0)return;e.sort((o,c)=>o-c);const s=e.length>>1;return e.length%2===1?e[s]:(e[s-1]+e[s])/2}static graded(t,n,e){if(!Number.isFinite(e)||t.length<3)return t;const s=[...t],o=s.length-1,c=n[o];if(Math.abs(s[o]-s[0])>e*c)return n.map(r=>s[0]+(s[o]-s[0])*r/c);for(let r=1;r<o;r++){const p=e*(n[r]-n[r-1]);s[r]=Math.min(s[r-1]+p,Math.max(s[r-1]-p,s[r]))}for(let r=o-1;r>0;r--){const p=e*(n[r+1]-n[r]);s[r]=Math.min(s[r+1]+p,Math.max(s[r+1]-p,s[r]))}return s}static carried(t,n,e,s){const[o,c]=b.ends(t),r=t.along[t.along.length-1],p=s(o),a=s(c);if(e!==void 0&&t.centre.every(h=>h.altitudeM!==void 0)){const h=t.centre.map(g=>g.altitudeM+e),d=p!==void 0?p-h[0]:0,L=a!==void 0?a-h[h.length-1]:0;return h.map((g,D)=>g+d+(L-d)*t.along[D]/r)}const l=p??n(o.x,o.z),M=a??n(c.x,c.z);return t.along.map(h=>l+(M-l)*h/r)}static ends(t){return[t.centre[0],t.centre[t.centre.length-1]]}static key(t){return`${Math.round(t.x*2)},${Math.round(t.z*2)}`}}class B{positions=[];indices=[];along=[];get vertexCount(){return this.positions.length/3}strip(t,n,e){const s=this.vertexCount;for(let o=0;o<t.length;o++)this.positions.push(t[o].x,t[o].y,t[o].z,n[o].x,n[o].y,n[o].z),e&&this.along.push(e[o],e[o]);for(let o=0;o<t.length-1;o++){const c=s+o*2;this.indices.push(c,c+2,c+1,c+1,c+2,c+3)}}beam(t,n,e,s=!0){const o=n.x-t.x,c=n.y-t.y,r=n.z-t.z,p=Math.hypot(o,c,r);if(p<1e-6)return;const a={x:o/p,y:c/p,z:r/p},l=Math.abs(a.y)>.9?{x:1,y:0,z:0}:{x:0,y:1,z:0},M=a.y*l.z-a.z*l.y,h=a.z*l.x-a.x*l.z,d=a.x*l.y-a.y*l.x,L=Math.hypot(M,h,d),g={x:M/L*e/2,y:h/L*e/2,z:d/L*e/2},D={x:a.y*g.z-a.z*g.y,y:a.z*g.x-a.x*g.z,z:a.x*g.y-a.y*g.x},E=(u,A,f)=>({x:u.x+g.x*A+D.x*f,y:u.y+g.y*A+D.y*f,z:u.z+g.z*A+D.z*f}),O=[[1,1],[-1,1],[-1,-1],[1,-1]];for(let u=0;u<4;u++){const[A,f]=O[u],[v,x]=O[(u+1)%4];this.quad(E(t,A,f),E(t,v,x),E(n,v,x),E(n,A,f))}s&&(this.quad(...[...O].reverse().map(([u,A])=>E(t,u,A))),this.quad(...O.map(([u,A])=>E(n,u,A))))}quad(t,n,e,s){const o=this.vertexCount;this.positions.push(t.x,t.y,t.z,n.x,n.y,n.z,e.x,e.y,e.z,s.x,s.y,s.z),this.indices.push(o,o+1,o+2,o,o+2,o+3)}}class i{static STEP_M=6;static BALLAST_HEIGHT_M=.5;static BALLAST_SLOPE=1.5;static BALLAST_SHOULDER_M=.45;static DECK_DEPTH_M=.8;static BANK_SLOPE=1.5;static SLEEPER_LENGTH_M=2.4;static SLEEPER_WIDTH_M=.29;static SLEEPER_SPACING_M=.6;static RAIL_HEAD_M=.072;static RAIL_HEIGHT_M=.18;static TRAM_RAIL_HEIGHT_M=.03;static LIFT_M=.06;static CATENARY={rail:{contactM:5.5,systemM:1.4,spanM:54,staggerM:.2},highSpeed:{contactM:5.08,systemM:1.4,spanM:63,staggerM:.2},service:{contactM:5.5,systemM:1.2,spanM:45,staggerM:.2},tram:{contactM:6,systemM:0,spanM:30,staggerM:.2}};static MESSENGER_SAG_M=.55;static MAST_SIDE_M=.26;static MAST_OFFSET_M=3.1;static MAST_ABOVE_M=.6;static CONTACT_DIAMETER_M=.012;static MESSENGER_DIAMETER_M=.011;static ARM_SIDE_M=.06;static TRACK_SPACING_M={rail:3.7,highSpeed:4.5,tram:3.1,subway:3.4,light_rail:3.4,funicular:3.2};static BALLAST_ALBEDO=[.17,.16,.15];static BANK_ALBEDO=[.085,.09,.05];static DECK_ALBEDO=[.26,.255,.24];static CONCRETE_ALBEDO=[.36,.35,.33];static WOOD_ALBEDO=[.07,.055,.045];static RUST_ALBEDO=[.085,.068,.058];static STEEL_ALBEDO=[.3,.31,.32];static COPPER_ALBEDO=[.09,.085,.07];static LINE_REACH_M=20;group=new F;stepM=i.STEP_M;drawn=0;laid=[];ballastMaterial=i.pebbled(i.lambert(i.BALLAST_ALBEDO,!0));earthMaterial=i.lambert(i.BANK_ALBEDO,!0);deckMaterial=i.lambert(i.DECK_ALBEDO,!1);concreteSleepers=i.sleeperMaterial(i.CONCRETE_ALBEDO);woodSleepers=i.sleeperMaterial(i.WOOD_ALBEDO);rustMaterial=i.lambert(i.RUST_ALBEDO,!0);headMaterial=new P({color:new H(.62,.62,.62),metalness:1,roughness:.28,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});steelMaterial=i.lambert(i.STEEL_ALBEDO,!1);wireMaterial=i.lambert(i.COPPER_ALBEDO,!1);constructor(){this.group.name="railways"}get count(){return this.drawn}setGroundSpacing(t){this.stepM=Number.isFinite(t)&&t>0?Math.min(i.STEP_M,Math.max(1.5,t/2)):i.STEP_M}set(t,n,e,s,o=1/0){this.clear();const r=t.map(d=>({line:d,path:d.points.map(L=>({...w(L.lat,L.lng,n,e),altitudeM:L.altitudeM}))})).filter(({line:d,path:L})=>d.level>=0&&i.within(L,o)),p=i.altitudeOffset(r,s),a=r.flatMap(({line:d,path:L})=>{const g=this.layoutOf(d,L);return g?[{line:d,layout:g}]:[]}),l=b.heights(a.map(({layout:d})=>d),s,p),M={ballast:new B,earth:new B,deck:new B,concrete:new B,wood:new B,rust:new B,head:new B,steel:new B,wire:new B};a.forEach(({line:d,layout:L},g)=>{this.lay(d,{...L,y:l[g]},s,M),this.laid.push({line:d,centre:L.centre}),this.drawn++});const h=[[M.ballast,this.ballastMaterial,"ballast",!1],[M.earth,this.earthMaterial,"embankments",!1],[M.deck,this.deckMaterial,"decks",!0],[M.concrete,this.concreteSleepers,"sleepers",!1],[M.wood,this.woodSleepers,"sleepers wood",!1],[M.rust,this.rustMaterial,"rails",!1],[M.head,this.headMaterial,"rail heads",!1],[M.steel,this.steelMaterial,"catenary masts",!0],[M.wire,this.wireMaterial,"catenary wires",!1]];for(const[d,L,g,D]of h){const E=i.meshOf(d,L);E&&(E.name=`railways ${g}`,E.castShadow=D,E.receiveShadow=!0,this.group.add(E))}}clear(){for(const t of[...this.group.children])this.group.remove(t),t.geometry?.dispose();this.drawn=0,this.laid=[]}lineAt(t,n){let e;for(const{line:s,centre:o}of this.laid)for(let c=0;c<o.length-1;c++){const r=o[c],p=o[c+1],a=p.x-r.x,l=p.z-r.z,M=a*a+l*l,h=M===0?0:Math.max(0,Math.min(1,((t-r.x)*a+(n-r.z)*l)/M)),d=Math.hypot(t-(r.x+a*h),n-(r.z+l*h));d<=i.LINE_REACH_M&&(!e||d<e.distance)&&(e={line:s,distance:d})}return e?.line}contactHeightM(t){if(!(t.electrification!=="overhead"||t.kind==="subway"||t.kind==="funicular"))return i.catenaryOf(t).contactM}static catenaryOf(t){return t.kind==="tram"?i.CATENARY.tram:t.highSpeed?i.CATENARY.highSpeed:t.service?i.CATENARY.service:i.CATENARY.rail}dispose(){this.clear();for(const t of[this.ballastMaterial,this.earthMaterial,this.deckMaterial,this.concreteSleepers,this.woodSleepers,this.rustMaterial,this.headMaterial,this.steelMaterial,this.wireMaterial])t.dispose()}static within(t,n){if(!Number.isFinite(n))return!0;const e=n*1.1+100;return t.some((s,o)=>Math.hypot(s.x,s.z)<=e||o>0&&Math.hypot((s.x+t[o-1].x)/2,(s.z+t[o-1].z)/2)<=e)}static altitudeOffset(t,n){const e=[];for(const{line:s,path:o}of t)if(s.level===0)for(const c of o)c.altitudeM!==void 0&&e.push(n(c.x,c.z)-c.altitudeM);if(!(e.length<5))return e.sort((s,o)=>s-o),e[Math.floor(e.length/2)]}layoutOf(t,n){const e=[];for(let c=0;c<n.length-1;c++){const r=n[c],p=n[c+1],a=Math.max(1,Math.ceil(Math.hypot(p.x-r.x,p.z-r.z)/this.stepM));for(let l=0;l<a;l++){const M=l/a,h=r.altitudeM!==void 0&&p.altitudeM!==void 0?r.altitudeM+(p.altitudeM-r.altitudeM)*M:void 0;e.push({x:r.x+(p.x-r.x)*M,z:r.z+(p.z-r.z)*M,altitudeM:h})}}if(e.push(n[n.length-1]),e.length<2)return;const s=[0];for(let c=1;c<e.length;c++)s.push(s[c-1]+Math.hypot(e[c].x-e[c-1].x,e[c].z-e[c-1].z));if(s[s.length-1]<.5)return;const o=e.map((c,r)=>{const p=e[Math.max(0,r-1)],a=e[Math.min(e.length-1,r+1)],l=a.x-p.x,M=a.z-p.z,h=Math.hypot(l,M);return h<1e-6?{x:1,z:0}:{x:l/h,z:M/h}});return{kind:t.kind,...t.highSpeed?{highSpeed:!0}:{},level:t.level,centre:e,along:s,dir:o}}lay(t,n,e,s){const o=t.highSpeed?i.TRACK_SPACING_M.highSpeed:i.TRACK_SPACING_M[t.kind],c=Math.min(8,Math.max(1,t.tracks)),r=Array.from({length:c},(E,O)=>(O-(c-1)/2)*o),p=t.kind==="tram",a=p?0:i.BALLAST_HEIGHT_M,l=i.LIFT_M,M=(E,O,u)=>({x:n.centre[E].x-n.dir[E].z*O,y:n.y[E]+u,z:n.centre[E].z+n.dir[E].x*O}),h=n.centre.map((E,O)=>O);if(!p){const E=i.SLEEPER_LENGTH_M/2+i.BALLAST_SHOULDER_M+(r[r.length-1]??0),O=h.map(A=>M(A,E,a+l)),u=h.map(A=>M(A,-E,a+l));if(s.ballast.strip(O,u),t.level===0){const A=E+a*i.BALLAST_SLOPE;for(const f of[1,-1]){const v=[],x=[];let m=!1;for(const z of h){const S=M(z,f*A,l),C=e(S.x,S.z)+l,T=S.y-C;T<0&&(S.y=Math.min(C,n.y[z]+a-.05+l)),v.push(S);const I=M(z,f*(A+Math.max(0,T)*i.BANK_SLOPE),l);I.y=Math.min(e(I.x,I.z)+l,S.y),S.y-I.y>.02&&(m=!0),x.push(I)}const _=f>0?O:u;f>0?s.ballast.strip(v,_):s.ballast.strip(_,v),m&&(f>0?s.earth.strip(x,v):s.earth.strip(v,x))}}else{const A=-i.DECK_DEPTH_M,f=E+.15,v=h.map(z=>M(z,f,a+l+.1)),x=h.map(z=>M(z,-f,a+l+.1)),m=h.map(z=>M(z,f,A)),_=h.map(z=>M(z,-f,A));s.deck.strip(m,v),s.deck.strip(x,_),s.deck.strip(_,m),s.deck.strip(v,h.map(z=>M(z,E,a+l+.1))),s.deck.strip(h.map(z=>M(z,-E,a+l+.1)),x)}}const d=t.service?s.wood:s.concrete,L=t.gaugeMm/2e3+i.RAIL_HEAD_M/2,g=p?i.TRAM_RAIL_HEIGHT_M:i.RAIL_HEIGHT_M,D=a+l;for(const E of r){if(!p){const O=i.SLEEPER_LENGTH_M/2;d.strip(h.map(u=>M(u,E+O,D+.004)),h.map(u=>M(u,E-O,D+.004)),n.along)}for(const O of[1,-1]){const u=E+O*L,A=i.RAIL_HEAD_M/2,f=h.map(x=>M(x,u+A,D+g)),v=h.map(x=>M(x,u-A,D+g));s.head.strip(f,v),s.rust.strip(h.map(x=>M(x,u+A,D)),f),s.rust.strip(v,h.map(x=>M(x,u-A,D)))}}t.electrification==="overhead"&&t.kind!=="subway"&&t.kind!=="funicular"&&this.catenary(t,n,r,D+g,M,e,s)}catenary(t,n,e,s,o,c,r){const p=i.catenaryOf(t),a=n.along[n.along.length-1],l=Math.max(1,Math.round(a/p.spanM)),M=a/l,h=Array.from({length:l},(f,v)=>(v+.5)*M),d=s+p.contactM,L=d+p.systemM,g=(p.systemM>0?L:d)+i.MAST_ABOVE_M,D=e[e.length-1],E=e.length>2,O=e.length===1?[1]:[1,-1],u=(f,v,x)=>{let m=0,_=n.along.length-2;for(;m<_;){const T=m+_+1>>1;n.along[T]<=f?m=T:_=T-1}const z=Math.min(1,Math.max(0,(f-n.along[m])/Math.max(1e-6,n.along[m+1]-n.along[m]))),S=o(m,v,x),C=o(m+1,v,x);return{x:S.x+(C.x-S.x)*z,y:S.y+(C.y-S.y)*z,z:S.z+(C.z-S.z)*z}};for(const f of h){const v=u(f,0,d);if(!(t.level===0&&c(v.x,v.z)>v.y)){for(const x of O){const m=x*(D+i.MAST_OFFSET_M),_=u(f,m,0);t.level===0&&(_.y=Math.min(_.y,c(_.x,_.z)));const z=u(f,m,g);if(r.steel.beam(_,z,i.MAST_SIDE_M),E)continue;const C=(O.length===1?e[0]:x*D)-x*.6,T=p.systemM>0?L:d+.3;r.steel.beam(u(f,m,T),u(f,C,T),i.ARM_SIDE_M),r.steel.beam(u(f,m,d-.4),u(f,C,T),i.ARM_SIDE_M)}if(E){const x=D+i.MAST_OFFSET_M;r.steel.beam(u(f,x,g-.2),u(f,-x,g-.2),i.MAST_SIDE_M*.8)}}}const A=[0,...h,a];for(const[f,v]of e.entries()){const x=m=>m===0||m===A.length-1?0:((m+f)%2===0?1:-1)*p.staggerM;for(let m=0;m<A.length-1;m++){const _=A[m],z=A[m+1];if(z-_<.1||(r.wire.beam(u(_,v+x(m),d),u(z,v+x(m+1),d),i.CONTACT_DIAMETER_M,!1),p.systemM<=0))continue;const S=4,C=T=>{const I=m===0?.5+T/2:m===A.length-2?T/2:T;return L-i.MESSENGER_SAG_M*4*I*(1-I)};for(let T=0;T<S;T++){const I=T/S,G=(T+1)/S;r.wire.beam(u(_+(z-_)*I,v,C(I)),u(_+(z-_)*G,v,C(G)),i.MESSENGER_DIAMETER_M,!1)}}}}static meshOf(t,n){if(t.indices.length===0)return;const e=new K;return e.setAttribute("position",new N(new Float32Array(t.positions),3)),t.along.length>0&&e.setAttribute("aAlong",new N(new Float32Array(t.along),1)),e.setIndex(new N(new Uint32Array(t.indices),1)),e.computeVertexNormals(),new U(e,n)}static lambert(t,n){return new k({color:new H(...t),...n?{polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2}:{}})}static pebbled(t){return t.onBeforeCompile=n=>{n.vertexShader=n.vertexShader.replace("#include <common>",`#include <common>
|
|
2
|
-
varying vec3 vBallast;`).replace("#include <begin_vertex>",`#include <begin_vertex>
|
|
3
|
-
vBallast = position;`),n.fragmentShader=n.fragmentShader.replace("#include <common>",`#include <common>
|
|
4
|
-
varying vec3 vBallast;
|
|
5
|
-
float ballastHash(vec2 p) {
|
|
6
|
-
p = fract(p * vec2(127.1, 311.7));
|
|
7
|
-
p += dot(p, p + 34.5);
|
|
8
|
-
return fract(p.x * p.y);
|
|
9
|
-
}
|
|
10
|
-
float ballastNoise(vec2 p) {
|
|
11
|
-
vec2 i = floor(p);
|
|
12
|
-
vec2 f = fract(p);
|
|
13
|
-
f = f * f * (3.0 - 2.0 * f);
|
|
14
|
-
return mix(mix(ballastHash(i), ballastHash(i + vec2(1.0, 0.0)), f.x), mix(ballastHash(i + vec2(0.0, 1.0)), ballastHash(i + vec2(1.0, 1.0)), f.x), f.y);
|
|
15
|
-
}`).replace("#include <map_fragment>",`#include <map_fragment>
|
|
16
|
-
{
|
|
17
|
-
float eye = length(vViewPosition);
|
|
18
|
-
vec2 at = vBallast.xz + vec2(0.0, vBallast.y);
|
|
19
|
-
float stones = (ballastHash(floor(at * 22.0)) - 0.5) * 0.9 * (1.0 - smoothstep(4.0, 18.0, eye))
|
|
20
|
-
+ (ballastNoise(at * 6.0) - 0.5) * 0.5 * (1.0 - smoothstep(15.0, 60.0, eye))
|
|
21
|
-
+ (ballastNoise(at * 0.7) - 0.5) * 0.35 * (1.0 - smoothstep(80.0, 300.0, eye));
|
|
22
|
-
diffuseColor.rgb *= 1.0 + stones;
|
|
23
|
-
}`)},t.customProgramCacheKey=()=>"rr0-railway-ballast",t}static sleeperMaterial(t){const n=new k({color:new H(1,1,1),polygonOffset:!0,polygonOffsetFactor:-3,polygonOffsetUnits:-3}),e=new H(...t),s=new H(...i.BALLAST_ALBEDO);return n.onBeforeCompile=o=>{o.uniforms.uSleeper={value:e},o.uniforms.uCrib={value:s},o.uniforms.uSpacing={value:i.SLEEPER_SPACING_M},o.uniforms.uDuty={value:i.SLEEPER_WIDTH_M/i.SLEEPER_SPACING_M},o.vertexShader=o.vertexShader.replace("#include <common>",`#include <common>
|
|
24
|
-
attribute float aAlong;
|
|
25
|
-
varying float vAlong;`).replace("#include <begin_vertex>",`#include <begin_vertex>
|
|
26
|
-
vAlong = aAlong;`),o.fragmentShader=o.fragmentShader.replace("#include <common>",`#include <common>
|
|
27
|
-
varying float vAlong;
|
|
28
|
-
uniform vec3 uSleeper;
|
|
29
|
-
uniform vec3 uCrib;
|
|
30
|
-
uniform float uSpacing;
|
|
31
|
-
uniform float uDuty;
|
|
32
|
-
// How much of [0, x] periods is sleeper: the integral of a pulse of width uDuty at the start of each period.
|
|
33
|
-
float sleeperIntegral(float x) {
|
|
34
|
-
return floor(x) * uDuty + min(fract(x), uDuty);
|
|
35
|
-
}`).replace("#include <map_fragment>",`#include <map_fragment>
|
|
36
|
-
{
|
|
37
|
-
float u = vAlong / uSpacing;
|
|
38
|
-
float w = max(fwidth(u), 1e-4);
|
|
39
|
-
float cover = (sleeperIntegral(u + 0.5 * w) - sleeperIntegral(u - 0.5 * w)) / w;
|
|
40
|
-
diffuseColor.rgb *= mix(uCrib, uSleeper, clamp(cover, 0.0, 1.0));
|
|
41
|
-
}`)},n.customProgramCacheKey=()=>"rr0-railway-sleepers",n}}export{i as RailwaySystem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as a,D as r}from"./rr0-sighting-editor.mjs";const t={bodies:{sun:"Soleil",moon:"Lune",Venus:"Vénus",Saturn:"Saturne"},stars:{Betelgeuse:"Bételgeuse",Vega:"Véga",Altair:"Altaïr",Aldebaran:"Aldébaran",Regulus:"Régulus",Antares:"Antarès"},comets:{"halley-1910":"comète de Halley","brooks-1911":"comète Brooks","skjellerup-maristany-1927":"comète Skjellerup-Maristany","de-kock-paraskevopoulos-1941":"comète de Kock-Paraskevopoulos","southern-1947":"comète australe","eclipse-1948":"comète de l'éclipse","arend-roland-1957":"comète Arend-Roland","mrkos-1957":"comète Mrkos","seki-lines-1962":"comète Seki-Lines","ikeya-seki-1965":"comète Ikeya-Seki","bennett-1970":"comète Bennett","white-ortiz-bolelli-1970":"comète White-Ortiz-Bolelli","kohoutek-1973":"comète Kohoutek","west-1976":"comète West","iras-araki-alcock-1983":"comète IRAS-Araki-Alcock","halley-1986":"comète de Halley","hyakutake-1996":"comète Hyakutake","hale-bopp-1997":"comète Hale-Bopp","mcnaught-2007":"comète McNaught","lovejoy-2011":"comète Lovejoy","panstarrs-2013":"comète PANSTARRS","neowise-2020":"comète NEOWISE","tsuchinshan-atlas-2024":"comète Tsuchinshan-ATLAS"},novae:{"sn-1006":"supernova de 1006","sn-1054":"supernova de 1054","sn-1181":"supernova de 1181","sn-1572":"supernova de Tycho","sn-1604":"supernova de Kepler","t-crb-1866":"nova de la Couronne boréale 1866","t-aur-1891":"nova du Cocher 1891","gk-per-1901":"nova de Persée 1901","dn-gem-1912":"nova des Gémeaux 1912","v603-aql-1918":"nova de l'Aigle 1918","v476-cyg-1920":"nova du Cygne 1920","rr-pic-1925":"nova du Peintre 1925","dq-her-1934":"nova d'Hercule 1934","cp-lac-1936":"nova du Lézard 1936","cp-pup-1942":"nova de la Poupe 1942","t-crb-1946":"nova de la Couronne boréale 1946","v446-her-1960":"nova d'Hercule 1960","v533-her-1963":"nova d'Hercule 1963","hr-del-1967":"nova du Dauphin 1967","lv-vul-1968":"nova du Petit Renard 1968","fh-ser-1970":"nova du Serpent 1970","v1500-cyg-1975":"nova du Cygne 1975","v842-cen-1986":"nova du Centaure 1986","sn-1987a":"supernova 1987A","v1974-cyg-1992":"nova du Cygne 1992","v382-vel-1999":"nova des Voiles 1999","v1494-aql-1999":"nova de l'Aigle 1999","v4743-sgr-2002":"nova du Sagittaire 2002","rs-oph-2006":"nova d'Ophiuchus 2006","v1280-sco-2007":"nova du Scorpion 2007","v339-del-2013":"nova du Dauphin 2013","v1369-cen-2013":"nova du Centaure 2013","rs-oph-2021":"nova d'Ophiuchus 2021"},satelliteClasses:{echo:"les ballons Echo","iridium-flares":"les flashes d'Iridium",iss:"la Station spatiale internationale","starlink-trains":"les trains de Starlink"},showers:{quadrantids:"Quadrantides",lyrids:"Lyrides d'avril","eta-aquariids":"Êta Aquarides","alpha-capricornids":"Alpha Capricornides","southern-delta-aquariids":"Delta Aquarides du Sud",perseids:"Perséides","southern-taurids":"Taurides du Sud",draconids:"Draconides d'octobre",orionids:"Orionides","northern-taurids":"Taurides du Nord",leonids:"Léonides",geminids:"Géminides",ursids:"Ursides"},lightRigs:{airliner:"Avion de ligne",helicopter:"Hélicoptère","car-headlights":"Voiture, phares allumés","car-hazards":"Voiture, feux de détresse","emergency-beacons":"Gyrophares de véhicule d'urgence","traffic-signal":"Feu de circulation","pedestrian-signal":"Feu piéton",streetlamp:"Lampadaire"},instruments:{eye:"Œil nu","rectilinear-lens":"Appareil, modèle inconnu","roamer-1-120":"Roamer 1, film 120","instamatic-126":"Instamatic, film 126","slr-35mm-50":"Reflex 35 mm, objectif 50 mm","slr-35mm-zoom":"Reflex 35 mm, zoom 70-210 mm","phone-landscape":"Téléphone, tenu couché","phone-portrait":"Téléphone, tenu debout",...r.names(),...a.names()},decorKinds:{building:"Bâtiment",tree:"Arbre",shrub:"Buisson",bridge:"Pont",wire:"Ligne aérienne",crop:"Rang de culture",terrace:"Restanque (terrasse)",mound:"Tas de pierres",wall:"Muret de pierres sèches",streetlight:"Lampadaire",trafficlight:"Feu de circulation",crossing:"Passage piéton",roadsign:"Panneau de signalisation",vehicle:"Véhicule",observer:"Observateur",aircraft:"Aéronef",entity:"Être"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO","NNO"],towards:e=>/^[EO]/.test(e)?`à l'${e}`:`au ${e}`,starTooltip:"{name} — mag {mag}, {alt}° au-dessus de l'horizon",starTooltipBelow:"{name} — mag {mag}, {alt}° sous l'horizontale",decorTooltip:"{name} — {size}, à {distance}",satelliteTooltip:"{name} — satellite, mag {mag}, à {height} km d'altitude",plumeTooltip:{name:"Panache de fusée",detail:"{name} — {part}, à {distance}, à {height} km d'altitude",ascent:"échappement de la montée",burn:"échappement d'un allumage",vent:"ergols vidangés"},opticsTooltips:{halo22:"Halo de 22° — un anneau autour du Soleil, dû à la lumière déviée par des cristaux de glace hexagonaux dans les cirrus ; son bord interne est rouge, à 21,7°",halo46:"Halo de 46° — un anneau plus rare et plus faible : la lumière entre par une face latérale d'un cristal et sort par une face de bout",oddRadius:"Halo de {angle}° — un anneau à rayon impair, rare et faible, dû à des cristaux de glace à bouts pyramidaux",parhelion:"Parhélie — une tache brillante colorée à côté du Soleil, à sa hauteur, due à des plaquettes de glace tombant à plat ; rouge côté Soleil",parhelion120:"Parhélie à 120° — une faible tache blanche à 120° du Soleil, due à la lumière réfléchie à l'intérieur de plaquettes à plat",upperTangentArc:"Arc tangent supérieur — un arc brillant posé sur le haut du halo de 22°, dû à des colonnes couchées à l'horizontale",lowerTangentArc:"Arc tangent inférieur — un arc touchant le bas du halo de 22°, dû à des colonnes couchées à l'horizontale",circumzenithal:"Arc circumzénithal — une bande vivement colorée près du zénith, due à la lumière entrant par la face du dessus de plaquettes à plat (seulement Soleil sous 32°)",circumhorizontal:"Arc circumhorizontal — une bande colorée basse dans le ciel, due à la lumière entrant par la face latérale de plaquettes à plat (seulement Soleil au-dessus de 58°)",parhelicCircle:"Cercle parhélique — un cercle blanc faisant tout le tour du ciel à la hauteur du Soleil, dû aux reflets sur les faces verticales de plaquettes à plat",pillar:"Pilier de lumière — une colonne de lumière dressée au-dessus du Soleil, due aux reflets sur des plaquettes à plat légèrement inclinées",subsun:"Sous-soleil — une image du Soleil sous l'horizon, due aux reflets sur les faces plates de plaquettes"},trafficTooltip:{unnamed:"Aéronef {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"cap {value}°",position:"à {distance} km, {elevation}° au-dessus de l'horizon, {bearing}",heard:"Entendu à {level} dB(A), parti de l'avion il y a {delay} s, {lag}° derrière lui : {character}{pitch}",rumble:"un grondement grave, rien au-delà de {cutoff} Hz",muffled:"un bruit sourd, rien au-delà de {cutoff} Hz",broad:"un souffle large",pitchHigher:", son plus aigu de {percent} %",pitchLower:", son plus grave de {percent} %",inaudible:"Inaudible ici : {level} dB(A) contre {ambient} dB(A) de bruit ambiant",soundUnknown:"Son non calculable : l'avion n'était pas encore enregistré quand il est parti",contrailPersistent:"Laisse une traînée qui dure : l'air est sursaturé en glace ({rhi} % par rapport à la glace)",contrailShort:"Laisse une traînée brève : l'air est sec par rapport à la glace ({rhi} % par rapport à la glace)",military:"militaire",restricted:"identité masquée par son propriétaire",candidate:"Un candidat compatible, pas une identification"},railwayTooltip:{kinds:{rail:"Voie ferrée",light_rail:"Métro léger",tram:"Tramway",subway:"Métro",funicular:"Funiculaire"},highSpeed:"Ligne à grande vitesse",service:"Voie de service",singleTrack:"voie unique",tracks:"{count} voies",overhead:"caténaire, fil de contact à {height} m au-dessus du rail",overheadVoltage:"caténaire en {voltage}, fil de contact à {height} m au-dessus du rail",thirdRail:"troisième rail",thirdRailVoltage:"troisième rail en {voltage}",notElectrified:"non électrifiée",gauge:"écartement de {mm} mm",metreGauge:"voie métrique",distance:"à {distance}"},credits:"Crédits",notAVideo:"Ceci n'est pas une vidéo",isASimulation:"C'est une simulation en temps réel."};export{t as sceneNames_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{x as e,D as o}from"./rr0-sighting-editor.mjs";const l={bodies:{sun:"Sole",moon:"Luna",Venus:"Venere",Mars:"Marte",Jupiter:"Giove",Saturn:"Saturno"},stars:{Sirius:"Sirio",Canopus:"Canopo",Arcturus:"Arturo",Procyon:"Procione",Pollux:"Polluce",Castor:"Castore",Regulus:"Regolo"},comets:{"halley-1910":"cometa di Halley","brooks-1911":"cometa Brooks","skjellerup-maristany-1927":"cometa Skjellerup-Maristany","de-kock-paraskevopoulos-1941":"cometa de Kock-Paraskevopoulos","southern-1947":"cometa australe","eclipse-1948":"cometa dell'eclisse","arend-roland-1957":"cometa Arend-Roland","mrkos-1957":"cometa Mrkos","seki-lines-1962":"cometa Seki-Lines","ikeya-seki-1965":"cometa Ikeya-Seki","bennett-1970":"cometa Bennett","white-ortiz-bolelli-1970":"cometa White-Ortiz-Bolelli","kohoutek-1973":"cometa Kohoutek","west-1976":"cometa West","iras-araki-alcock-1983":"cometa IRAS-Araki-Alcock","halley-1986":"cometa di Halley","hyakutake-1996":"cometa Hyakutake","hale-bopp-1997":"cometa Hale-Bopp","mcnaught-2007":"cometa McNaught","lovejoy-2011":"cometa Lovejoy","panstarrs-2013":"cometa PANSTARRS","neowise-2020":"cometa NEOWISE","tsuchinshan-atlas-2024":"cometa Tsuchinshan-ATLAS"},novae:{"sn-1006":"supernova del 1006","sn-1054":"supernova del 1054","sn-1181":"supernova del 1181","sn-1572":"supernova di Tycho","sn-1604":"supernova di Keplero","t-crb-1866":"nova della Corona Boreale 1866","t-aur-1891":"nova dell'Auriga 1891","gk-per-1901":"nova di Perseo 1901","dn-gem-1912":"nova dei Gemelli 1912","v603-aql-1918":"nova dell'Aquila 1918","v476-cyg-1920":"nova del Cigno 1920","rr-pic-1925":"nova del Pittore 1925","dq-her-1934":"nova di Ercole 1934","cp-lac-1936":"nova della Lucertola 1936","cp-pup-1942":"nova della Poppa 1942","t-crb-1946":"nova della Corona Boreale 1946","v446-her-1960":"nova di Ercole 1960","v533-her-1963":"nova di Ercole 1963","hr-del-1967":"nova del Delfino 1967","lv-vul-1968":"nova della Volpetta 1968","fh-ser-1970":"nova del Serpente 1970","v1500-cyg-1975":"nova del Cigno 1975","v842-cen-1986":"nova del Centauro 1986","sn-1987a":"supernova 1987A","v1974-cyg-1992":"nova del Cigno 1992","v382-vel-1999":"nova delle Vele 1999","v1494-aql-1999":"nova dell'Aquila 1999","v4743-sgr-2002":"nova del Sagittario 2002","rs-oph-2006":"nova di Ofiuco 2006","v1280-sco-2007":"nova dello Scorpione 2007","v339-del-2013":"nova del Delfino 2013","v1369-cen-2013":"nova del Centauro 2013","rs-oph-2021":"nova di Ofiuco 2021"},satelliteClasses:{echo:"i palloni Echo","iridium-flares":"i lampi degli Iridium",iss:"la Stazione Spaziale Internazionale","starlink-trains":"i treni di Starlink"},showers:{quadrantids:"Quadrantidi",lyrids:"Liridi di aprile","eta-aquariids":"Eta Aquaridi","alpha-capricornids":"Alfa Capricornidi","southern-delta-aquariids":"Delta Aquaridi australi",perseids:"Perseidi","southern-taurids":"Tauridi australi",draconids:"Draconidi di ottobre",orionids:"Orionidi","northern-taurids":"Tauridi boreali",leonids:"Leonidi",geminids:"Geminidi",ursids:"Ursidi"},lightRigs:{airliner:"Aereo di linea",helicopter:"Elicottero","car-headlights":"Auto, fari accesi","car-hazards":"Auto, luci di emergenza","emergency-beacons":"Lampeggianti di veicolo di soccorso","traffic-signal":"Semaforo","pedestrian-signal":"Semaforo pedonale",streetlamp:"Lampione"},instruments:{eye:"Occhio nudo","rectilinear-lens":"Fotocamera, modello sconosciuto","roamer-1-120":"Roamer 1, pellicola 120","instamatic-126":"Instamatic, pellicola 126","slr-35mm-50":"Reflex 35 mm, obiettivo 50 mm","slr-35mm-zoom":"Reflex 35 mm, zoom 70-210 mm","phone-landscape":"Telefono, in orizzontale","phone-portrait":"Telefono, in verticale",...o.names(),...e.names()},decorKinds:{building:"Edificio",tree:"Albero",shrub:"Arbusto",bridge:"Ponte",wire:"Linea aerea",crop:"Filare di coltura",terrace:"Terrazzamento",mound:"Mucchio di pietre",wall:"Muretto a secco",streetlight:"Lampione",trafficlight:"Semaforo",crossing:"Attraversamento pedonale",roadsign:"Segnale stradale",vehicle:"Veicolo",observer:"Osservatore",aircraft:"Aeromobile",entity:"Essere"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO","NNO"],towards:a=>`verso ${a}`,starTooltip:"{name} — mag {mag}, {alt}° sopra l'orizzonte",starTooltipBelow:"{name} — mag {mag}, {alt}° sotto l'orizzontale",decorTooltip:"{name} — {size}, a {distance}",satelliteTooltip:"{name} — satellite, mag {mag}, a {height} km di quota",plumeTooltip:{name:"Scia di razzo",detail:"{name} — {part}, a {distance}, a {height} km di quota",ascent:"scarico dell'ascesa",burn:"scarico di un'accensione",vent:"propellenti scaricati"},opticsTooltips:{halo22:"Alone di 22° — un anello attorno al Sole, dovuto alla luce deviata da cristalli di ghiaccio esagonali nei cirri; il bordo interno è rosso, a 21,7°",halo46:"Alone di 46° — un anello più raro e debole: la luce entra da una faccia laterale del cristallo ed esce da una faccia di estremità",oddRadius:"Alone di {angle}° — un anello a raggio dispari, raro e debole, prodotto da cristalli di ghiaccio con estremità piramidali",parhelion:"Parelio — una macchia luminosa colorata accanto al Sole, alla sua altezza, da lastrine di ghiaccio che cadono piatte; rosso verso il Sole",parhelion120:"Parelio di 120° — una debole macchia bianca a 120° dal Sole, da luce riflessa dentro lastrine piatte",upperTangentArc:"Arco tangente superiore — un arco luminoso appoggiato sull'alone di 22°, da colonne coricate in orizzontale",lowerTangentArc:"Arco tangente inferiore — un arco che tocca la base dell'alone di 22°, da colonne coricate in orizzontale",circumzenithal:"Arco circumzenitale — una banda di colori vivi vicino allo zenit, da luce che entra dalla faccia superiore di lastrine piatte (solo con il Sole sotto i 32°)",circumhorizontal:"Arco circumorizzontale — una banda colorata bassa nel cielo, da luce che entra dalla faccia laterale di lastrine piatte (solo con il Sole sopra i 58°)",parhelicCircle:"Cerchio parelico — un cerchio bianco attorno a tutto il cielo all'altezza del Sole, da riflessi sulle facce verticali di lastrine piatte",pillar:"Colonna di luce — un fascio di luce sopra il Sole, da riflessi su lastrine piatte leggermente inclinate",subsun:"Sotto-sole — un'immagine del Sole sotto l'orizzonte, da riflessi sulle facce piatte delle lastrine"},trafficTooltip:{unnamed:"Aeromobile {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"prua {value}°",position:"a {distance} km, {elevation}° sopra l'orizzonte, {bearing}",heard:"Si sente a {level} dB(A), partito dall'aereo {delay} s fa, {lag}° dietro di esso: {character}{pitch}",rumble:"un rombo grave, nulla oltre {cutoff} Hz",muffled:"un rumore sordo, nulla oltre {cutoff} Hz",broad:"un fragore ampio",pitchHigher:", suono più acuto del {percent} %",pitchLower:", suono più grave del {percent} %",inaudible:"Non si sente qui: {level} dB(A) contro {ambient} dB(A) di rumore ambientale",soundUnknown:"Suono non calcolabile: l'aereo non era ancora registrato quando è partito",contrailPersistent:"Lascia una scia che dura: l'aria è sovrasatura rispetto al ghiaccio ({rhi} % rispetto al ghiaccio)",contrailShort:"Lascia una scia breve: l'aria è secca rispetto al ghiaccio ({rhi} % rispetto al ghiaccio)",military:"militare",restricted:"identità nascosta dal proprietario",candidate:"Un candidato compatibile, non un'identificazione"},railwayTooltip:{kinds:{rail:"Ferrovia",light_rail:"Metropolitana leggera",tram:"Tranvia",subway:"Metropolitana",funicular:"Funicolare"},highSpeed:"Linea ad alta velocità",service:"Binario di servizio",singleTrack:"binario unico",tracks:"{count} binari",overhead:"linea aerea, filo di contatto a {height} m sopra la rotaia",overheadVoltage:"linea aerea a {voltage}, filo di contatto a {height} m sopra la rotaia",thirdRail:"terza rotaia",thirdRailVoltage:"terza rotaia a {voltage}",notElectrified:"non elettrificata",gauge:"scartamento di {mm} mm",metreGauge:"scartamento metrico",distance:"a {distance}"},credits:"Crediti",notAVideo:"Questo non è un video",isASimulation:"È una simulazione in tempo reale."};export{l as sceneNames_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as O,ae as w,af as A,ag as R,a0 as M,ah as v,ai as D,aj as N,ak as L}from"./rr0-sighting-editor.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;group=new O;material=new w({color:new A(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});constructor(){this.group.name="water"}set(s,e,n,p,t,o){this.clear();for(const a of s){const f=a.rings.map(i=>r.clip(i.map(h=>R(h.lat,h.lng,e,n)),t)),l=f[0];if(!l||l.length<3)continue;const g=f.slice(1).filter(i=>i.length>=3),u=r.level(l,g,p,o);if(u===void 0)continue;const c=r.geometry(l,g,u+r.LIFT_M);if(!c)continue;const x=new M(c,this.material);x.name=`water ${a.id}`,x.renderOrder=r.RENDER_ORDER,x.receiveShadow=!0,this.group.add(x)}}get count(){return this.group.children.length}clear(){for(const s of[...this.group.children])s.geometry.dispose(),this.group.remove(s)}dispose(){this.clear(),this.material.dispose()}static level(s,e,n,p){const t=s.map(i=>i.x),o=s.map(i=>i.z),[a,f,l,g]=[Math.min(...t),Math.max(...t),Math.min(...o),Math.max(...o)],u=Math.max(p,(f-a)/r.MAX_SAMPLES,(g-l)/r.MAX_SAMPLES,.5),c=[];for(let i=l+u/2;i<g;i+=u)for(let h=a+u/2;h<f;h+=u){const z={x:h,z:i};if(!r.contains(s,z)||e.some(E=>r.contains(E,z)))continue;const d=n(h,i);Number.isFinite(d)&&c.push(d)}if(c.length===0)for(const i of s)c.push(n(i.x,i.z));const x=c.filter(Number.isFinite).sort((i,h)=>i-h);if(x.length!==0)return x[Math.floor((x.length-1)*r.LEVEL_QUANTILE)]}static clip(s,e){let n=s;const p=[{inside:t=>t.x>=-e,cross:(t,o)=>r.atX(t,o,-e)},{inside:t=>t.x<=e,cross:(t,o)=>r.atX(t,o,e)},{inside:t=>t.z>=-e,cross:(t,o)=>r.atZ(t,o,-e)},{inside:t=>t.z<=e,cross:(t,o)=>r.atZ(t,o,e)}];for(const t of p){const o=[];for(let a=0;a<n.length;a++){const f=n[a],l=n[(a+n.length-1)%n.length];t.inside(f)?(t.inside(l)||o.push(t.cross(l,f)),o.push(f)):t.inside(l)&&o.push(t.cross(l,f))}if(n=o,n.length===0)break}return n}static atX(s,e,n){return{x:n,z:s.z+(e.z-s.z)*(n-s.x)/(e.x-s.x)}}static atZ(s,e,n){return{x:s.x+(e.x-s.x)*(n-s.z)/(e.z-s.z),z:n}}static contains(s,e){let n=!1;for(let p=0,t=s.length-1;p<s.length;t=p++){const o=s[p],a=s[t];o.z>e.z!=a.z>e.z&&e.x<(a.x-o.x)*(e.z-o.z)/(a.z-o.z)+o.x&&(n=!n)}return n}static geometry(s,e,n){const p=c=>new v(c.x,c.z),t=s.map(p),o=e.map(c=>c.map(p)),a=D.triangulateShape(t,o);if(a.length===0)return;const f=[...t,...o.flat()],l=[];for(const[c,x,i]of a){const[h,z,d]=[f[c],f[x],f[i]],E=(z.y-h.y)*(d.x-h.x)-(z.x-h.x)*(d.y-h.y)>0;for(const m of E?[h,z,d]:[h,d,z])l.push(m.x,n,m.y)}const g=new N;g.setAttribute("position",new L(l,3));const u=new Float32Array(l.length);for(let c=1;c<u.length;c+=3)u[c]=1;return g.setAttribute("normal",new L(u,3)),g.computeBoundingSphere(),g}}export{r as WaterSystem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/sighting.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1, the only one so far."},o={type:"string",doc:'Which account this is, unique across every recording anywhere: the day it happened, then who saw it ("1964-04-24-ZamoraLonnie"), or where for an anonymous observer.'},r={type:"object",fields:{year:{type:"number"},month:{type:"number"},day:{type:"number"},hour:{type:"number"},minute:{type:"number"},second:{type:"number"},season:{type:"enum",doc:'The season, when the date is only known to be "in the spring of 2022" (EDTF `2022-21`): then `month` and `day` are undefined.',values:["spring","summer","autumn","winter"]},raw:{type:"string",doc:"The exact EDTF-ish text as typed in the editor UI (e.g."}}},a={type:"object",doc:"See SightingEvent.endTime.",fields:{year:{type:"number"},month:{type:"number"},day:{type:"number"},hour:{type:"number"},minute:{type:"number"},second:{type:"number"},season:{type:"enum",doc:'The season, when the date is only known to be "in the spring of 2022" (EDTF `2022-21`): then `month` and `day` are undefined.',values:["spring","summer","autumn","winter"]},raw:{type:"string",doc:"The exact EDTF-ish text as typed in the editor UI (e.g."}}},n={type:"number",doc:"See SightingEvent.durationSeconds."},s={type:"string",doc:"See SightingEvent.durationText."},i={type:"number",doc:"See SightingEvent.utcOffsetHours — the legal time zone `time`/`endTime` are expressed in."},d={type:"string",doc:"See SightingEvent.timeZone — the IANA rule `utcOffsetHours` was derived from, when it was."},h={type:"array",fields:{lat:{type:"number"},lng:{type:"number"},name:{type:"string",doc:'The place as it is named, fully qualified — "Valensole, Alpes-de-Haute-Provence, …, France".'}}},c={type:"object",doc:"See Sighting.observer.",fields:{id:{type:"string",doc:'Who this is, as a reference: last name then first names, run together ("ZamoraLonnie"), whether or not a page exists for them yet.'},title:{type:"string",doc:'What the observer is called when no name is given or wanted — "Witness 2" in one language, "Témoin 2" in another — or their name as they gave it.',loose:!0},lastName:{type:"string"},firstNames:{type:"array"}}},l={type:"object",doc:"Who saw it and how their account travelled — see Account, and Sighting.account.",fields:{observerAgeYears:{type:"number",doc:"The main observer's age in years AT THE TIME, not today — a 1974 account is read by whoever finds it decades later, and the number that means anything is the one from then."},observerBirth:{type:"object",doc:"The main observer's birth date, as precisely as it is known (a full date, a year, or one marked approximate): the other way of stating `observerAgeYears`, which the editor keeps in step with it against the observation date (see ObserverAge).",fields:{year:{type:"number"},month:{type:"number"},day:{type:"number"},hour:{type:"number"},minute:{type:"number"},second:{type:"number"},season:{type:"enum",doc:'The season, when the date is only known to be "in the spring of 2022" (EDTF `2022-21`): then `month` and `day` are undefined.',values:["spring","summer","autumn","winter"]},raw:{type:"string",doc:"The exact EDTF-ish text as typed in the editor UI (e.g."}}},observerPerception:{type:"object",doc:"How the main observer's own perception differs from a typical one — colour vision, alcohol, fatigue — as the values of the ObserverProviders' settings, by provider id."},observerOccupation:{type:"string",doc:'What the main observer did, as they are described: "boulanger", "pilote de ligne", "gendarme".',loose:!0},source:{type:"enum",doc:"How the account reached the person who wrote this recording.",values:["on-site","interview","telephone","questionnaire","letter","social-media","press"]},followedUp:{type:"boolean",doc:"Whether the observer was gone back to after the first account."},conditions:{type:"object",doc:"The conditions of this account and of the sighting as the observer lived it: what the error laws of the values they give read (see docs/witness-error-model.md and WitnessError).",fields:{delayDays:{type:"number",doc:"Days between the sighting and this account."},version:{type:"number",doc:"Which version of the observer's account this is: 1 for the first given."},word:{type:"enum",values:["object","light","craft","ufo","other"]},exposure:{type:"enum",values:["press","none","broadcast","other-witnesses","investigators"]},independent:{type:"boolean",doc:"Whether the observers gave their accounts without talking to each other first."},darkAdapted:{type:"boolean",doc:"Whether the observer's eyes were used to the dark."},correctedVision:{type:"boolean",doc:"Whether the observer wore the glasses or lenses they need."},glare:{type:"boolean",doc:"Whether a bright light dazzled the observer just before."},moonShownDeg:{type:"number",doc:"How wide the observer showed the full Moon, in degrees, the way they showed the object: their own angular-size factor is this over the Moon's real 0.52°, applied to every angular size they give (see WitnessError.MOON_DEG)."}}}}},p={type:"number",doc:"How much the observer's body sways the view at rest: 1 a person, 0 a tripod — see Sighting.sway."},u={type:"object",doc:"The vehicle the observer was in, when the decor does not draw it — see Sighting.vehicle.",fields:{kind:{type:"enum",values:["car","van","truck","motorcycle","generic"]},windowsOpen:{type:"boolean",doc:"Whether the windows were open: the road and the wind come in, the cabin no longer muffles the engine."},noise:{type:"number",doc:'How loud it was, against an ordinary one of its kind: 1 by default, 1.5 for "very noisy".'},headlights:{type:"enum",doc:'How its lights are set (see HeadlightMode), or "auto": the dipped beam from the dusk on and nothing by day, which is what a driver does.',values:["off","position","dipped","main","fog","auto"]},headlightKeyframes:{type:"array",doc:"Sorted by t.",fields:{t:{type:"number"},mode:{type:"enum",values:["off","position","dipped","main","fog","auto"]}}}}},y={type:"string",doc:"See SightingEvent.description — a plain string, or one per language.",loose:!0},m={type:"string",doc:"See SightingEvent.image — the picture a shared link to this recording shows."},g={type:"string",doc:"See SightingEvent.summary — what a shared link to this recording says of it.",loose:!0},b={type:"number",doc:"See SightingEvent.summaryTime — the second the picture of this recording's card is taken at."},f={type:"array",doc:"See SightingEvent.tags."},w={type:"object",fields:{keyframes:{type:"array",fields:{t:{type:"number"},shapes:{type:"array",fields:{sourceId:{type:"string"},shape:{type:"object",fields:{kind:{type:"enum",values:["oval","polygon"]},bounds:{type:"object",fields:{x:{type:"number"},y:{type:"number"},width:{type:"number"},height:{type:"number"}}},color:{type:"string",doc:"CSS color"},angle:{type:"number",doc:"Rotation in radians about the shape's centre, positive = clockwise on screen; 0 = no rotation"},transparency:{type:"number",doc:"0 = opaque, 1 = fully transparent"},haloScale:{type:"number",doc:"0 = no halo/glow, >1 = larger glow radius"},blur:{type:"number",doc:"How indistinct the observer said its edges were — 0 for a hard outline, 1 for a shape with no edge at all."},brightness:{type:"number",doc:"How dazzling the observer said it was — 0 for a light you can look at, 1 for one you cannot."},selected:{type:"boolean"},title:{type:"string",doc:"What the observer calls it, if anything.",loose:!0},angular:{type:"object",doc:"How big this looked to the observer, in degrees of arc (see AngularExtent) — the recording's OWN statement of size, and the one it is allowed to make.",fields:{widthDeg:{type:"number",doc:"How wide it looked, in degrees of arc."},heightDeg:{type:"number",doc:"How tall it looked, in degrees of arc."}}},aim:{type:"object",doc:"Where the phenomenon itself was in the observer's sky (the direction of the shape's centre, not the way the observer was facing) — degrees of azimuth from true north and of altitude above the horizon, the same conventions as ObserverPose.",fields:{azimuthDeg:{type:"number",doc:"Degrees clockwise from true north, the same convention as ObserverPose.headingDeg."},altitudeDeg:{type:"number",doc:"Degrees above (positive) or below the horizon."}}},points:{type:"array",doc:"Points relative to bounds origin (0,0 = bounds.x, bounds.y)",fields:{x:{type:"number"},y:{type:"number"}}}}}}}}},order:{type:"array",doc:"Back-to-front paint/hit-test order — see Timeline's own `order` field."},groups:{type:"array",doc:"Each inner array is one group's member sourceIds (always >= 2 members) — see Timeline's own `groups` field."},span:{type:"number",doc:"The length of the observation the keyframes were placed against, in ms, when it is longer than the last keyframe — a shape placed at 0 s then moved at 5 s of a 10 s observation has keyframes at 0 and 5000 only, and without this the recording would end (and be stretched over the whole observation) at 5 s."}}},v={type:"object",doc:"The observer's position/elevation/orientation over time — absent for older recordings, which fall back to the legacy static place[0] (see Sighting.ts's resolveObserverPoseAt).",fields:{keyframes:{type:"array",fields:{t:{type:"number"},pose:{type:"object",fields:{lat:{type:"number",doc:"Decimal degrees."},lng:{type:"number"},elevationM:{type:"number",doc:"Metres above the local ground under the observer, not above sea level: 0 for someone standing on it, the height of a window or a cliff top otherwise."},headingDeg:{type:"number",doc:"Degrees clockwise from true north."},pitchDeg:{type:"number",doc:"Degrees above (positive) or below (negative) the local horizontal — how far up/down the observer was looking, e.g."},rollDeg:{type:"number",doc:"How far the instrument itself was tilted about its own line of sight, degrees, positive clockwise as the observer saw it — a camera held askew, a head leaned over."},fovDeg:{type:"number",doc:"Vertical field of view in degrees, as a Three.js PerspectiveCamera would take it."},fNumber:{type:"number",doc:"How far the lens was stopped down — undefined for anything the recording did not state, which then falls back to the instrument's own setting (see Instrument.fNumber)."},focusDistanceM:{type:"number",doc:"How far away the lens was focused, metres — undefined meaning at infinity, which is where a camera pointed at the sky sits and the only setting under which everything celestial comes out sharp."},filter:{type:"string",doc:"What was held in front of the instrument — a FILTERS id, a solar filter for an eclipse."}}}}}}},k={type:"object",doc:"Weather over time — absent for older recordings, which fall back to the legacy static `weather` field below (see Sighting.ts's resolveWeatherAt).",fields:{keyframes:{type:"array",fields:{t:{type:"number"},weather:{type:"object",fields:{cloudLayers:{type:"array",doc:"Explicit layers override the historical cloud fields; [] means no clouds.",fields:{id:{type:"string",doc:"Stable across keyframes: reordering layers must not regenerate their cloud pattern."},instances:{type:"array",doc:"Optional explicit masses, independent of the generated coverage percentage.",fields:{id:{type:"string"},eastM:{type:"number",doc:"Position relative to the recording's initial observer, in metres east/north."},northM:{type:"number"},baseM:{type:"number"},thicknessM:{type:"number"},widthM:{type:"number"},depthM:{type:"number"},rotationDeg:{type:"number"},density:{type:"number"},darkness:{type:"number",doc:"Visual shading, 0 (white) to 1 (very dark); absent inherits the parent layer."},seed:{type:"number"}}},type:{type:"enum",values:["cumulus","stratus","stratocumulus","cirrus","unknown"]},baseM:{type:"number",doc:"Base in metres above the recording's reference ground, not above the moving observer."},thicknessM:{type:"number",doc:"Vertical extent in metres."},coverage:{type:"number",doc:"Horizontal coverage, 0–1."},sizeM:{type:"number",doc:"Characteristic horizontal cloud size in metres."},density:{type:"number",doc:"Relative optical density, 0–2; zero is transparent."},darkness:{type:"number",doc:"Visual shading, 0 (white) to 1 (very dark)."},iceCrystalAlignment:{type:"number",doc:"Degree of preferential crystal orientation, meaningful only for cirrus."},seed:{type:"number",doc:"Reproducible variation; defaults to a hash of the stable layer id."},windDirectionDeg:{type:"number",doc:"Optional wind overrides; bearing TOWARD which the cloud travels, clockwise from north."},windSpeed:{type:"number"}}},cloudCover:{type:"number",doc:"0 = clear sky, 1 = fully overcast."},cloudDarkness:{type:"number",doc:"0 = light/clear clouds, 1 = dark/stormy character."},cloudBaseM:{type:"number",doc:"Height of the cloud layer's BASE above the ground, in meters — 600 to 2000 m covers most real low cloud."},highCloudCover:{type:"number",doc:"How much of the sky the HIGH deck covered, 0 to 1 — cirrus and cirrostratus, above about six kilometres, where anything present is ice rather than water."},lowerCloudCover:{type:"number",doc:"How much of the sky the LOW and MIDDLE decks covered, 0 to 1 — the cloud that stands between a observer and anything higher up."},iceCrystalAlignment:{type:"number",doc:"How steadily the ice crystals were falling, 0 to 1 — the one thing about the sky that decides which halo forms stood, and the one thing no record of any sighting holds."},rareIceCrystals:{type:"number",doc:"The share of a cirrus deck's crystals that are the rare kinds, 0 to 1: columns capped with pyramids, which draw the odd-radius rings (9, 20, 35 degrees), and plates free to turn about a level axis, which draw Lowitz's arcs sloping from the sundogs."},relativeHumidity:{type:"number",doc:"Relative humidity near the ground, 0 to 1."},precipitationType:{type:"enum",values:["none","rain","snow","hail"]},precipitationIntensity:{type:"number",doc:'0-1; meaningless while precipitationType is "none".'},precipitationAmount:{type:"number",doc:"How much of that precipitation is actually falling yet, 0 to 1 — absent meaning all of it."},windDirectionDeg:{type:"number",doc:"Degrees clockwise from true north — same convention as ObserverPose.headingDeg, and the direction the wind blows *toward*, not the one it comes from: SceneRenderer drifts every precipitation particle and cloud field along exactly this bearing (`sin/-cos`, north = -Z), so 0 means snow drifting northward."},windSpeed:{type:"number",doc:"Real-world wind speed in m/s (0 = calm, ~30 = violent storm/hurricane-force) — drives both cloud advection, visual precipitation drift and wind audio volume directly."},storm:{type:"boolean",doc:"Whether a thunderstorm was reported — drives both a scene-fog lightning flash and a delayed thunderclap (see SceneRenderer's lightning-flash scheduling, named for the visual mechanism it implements internally, not for this field)."}}}}}}},S={type:"object",doc:`Legacy static weather condition, kept only as weatherTrack's own fallback for recordings made before it existed — absent means "unknown/not recorded", not "clear skies" (renderers default to DEFAULT_WEATHER, see Weather.ts).`,fields:{cloudLayers:{type:"array",doc:"Explicit layers override the historical cloud fields; [] means no clouds.",fields:{id:{type:"string",doc:"Stable across keyframes: reordering layers must not regenerate their cloud pattern."},instances:{type:"array",doc:"Optional explicit masses, independent of the generated coverage percentage.",fields:{id:{type:"string"},eastM:{type:"number",doc:"Position relative to the recording's initial observer, in metres east/north."},northM:{type:"number"},baseM:{type:"number"},thicknessM:{type:"number"},widthM:{type:"number"},depthM:{type:"number"},rotationDeg:{type:"number"},density:{type:"number"},darkness:{type:"number",doc:"Visual shading, 0 (white) to 1 (very dark); absent inherits the parent layer."},seed:{type:"number"}}},type:{type:"enum",values:["cumulus","stratus","stratocumulus","cirrus","unknown"]},baseM:{type:"number",doc:"Base in metres above the recording's reference ground, not above the moving observer."},thicknessM:{type:"number",doc:"Vertical extent in metres."},coverage:{type:"number",doc:"Horizontal coverage, 0–1."},sizeM:{type:"number",doc:"Characteristic horizontal cloud size in metres."},density:{type:"number",doc:"Relative optical density, 0–2; zero is transparent."},darkness:{type:"number",doc:"Visual shading, 0 (white) to 1 (very dark)."},iceCrystalAlignment:{type:"number",doc:"Degree of preferential crystal orientation, meaningful only for cirrus."},seed:{type:"number",doc:"Reproducible variation; defaults to a hash of the stable layer id."},windDirectionDeg:{type:"number",doc:"Optional wind overrides; bearing TOWARD which the cloud travels, clockwise from north."},windSpeed:{type:"number"}}},cloudCover:{type:"number",doc:"0 = clear sky, 1 = fully overcast."},cloudDarkness:{type:"number",doc:"0 = light/clear clouds, 1 = dark/stormy character."},cloudBaseM:{type:"number",doc:"Height of the cloud layer's BASE above the ground, in meters — 600 to 2000 m covers most real low cloud."},highCloudCover:{type:"number",doc:"How much of the sky the HIGH deck covered, 0 to 1 — cirrus and cirrostratus, above about six kilometres, where anything present is ice rather than water."},lowerCloudCover:{type:"number",doc:"How much of the sky the LOW and MIDDLE decks covered, 0 to 1 — the cloud that stands between a observer and anything higher up."},iceCrystalAlignment:{type:"number",doc:"How steadily the ice crystals were falling, 0 to 1 — the one thing about the sky that decides which halo forms stood, and the one thing no record of any sighting holds."},rareIceCrystals:{type:"number",doc:"The share of a cirrus deck's crystals that are the rare kinds, 0 to 1: columns capped with pyramids, which draw the odd-radius rings (9, 20, 35 degrees), and plates free to turn about a level axis, which draw Lowitz's arcs sloping from the sundogs."},relativeHumidity:{type:"number",doc:"Relative humidity near the ground, 0 to 1."},precipitationType:{type:"enum",values:["none","rain","snow","hail"]},precipitationIntensity:{type:"number",doc:'0-1; meaningless while precipitationType is "none".'},precipitationAmount:{type:"number",doc:"How much of that precipitation is actually falling yet, 0 to 1 — absent meaning all of it."},windDirectionDeg:{type:"number",doc:"Degrees clockwise from true north — same convention as ObserverPose.headingDeg, and the direction the wind blows *toward*, not the one it comes from: SceneRenderer drifts every precipitation particle and cloud field along exactly this bearing (`sin/-cos`, north = -Z), so 0 means snow drifting northward."},windSpeed:{type:"number",doc:"Real-world wind speed in m/s (0 = calm, ~30 = violent storm/hurricane-force) — drives both cloud advection, visual precipitation drift and wind audio volume directly."},storm:{type:"boolean",doc:"Whether a thunderstorm was reported — drives both a scene-fog lightning flash and a delayed thunderclap (see SceneRenderer's lightning-flash scheduling, named for the visual mechanism it implements internally, not for this field)."}}},M={type:"object",doc:"What the sighting sounded like over time — see SoundTrack.",fields:{keyframes:{type:"array",fields:{t:{type:"number"},sound:{type:"object",fields:{kind:{type:"enum",values:["none","hum","whistle","rumble","crackle"]},volume:{type:"number",doc:"How loud it was, 0 (inaudible) to 1 (as loud as the observer could describe) — deliberately relative rather than a dB SPL figure: nobody reports a sound level in decibels, and inventing one would claim a measurement where there is only an impression."},pitchHz:{type:"number",doc:`The sound's own frequency in Hz — the oscillator's pitch for the pitched kinds ("hum", "whistle"), and the noise filter's centre for the unpitched ones ("rumble", "crackle"), where it reads as how deep or how sharp the noise is.`},src:{type:"string",doc:"An actual audio recording of the sound, when one exists (a observer who filmed the event, a later recording of the same phenomenon) — replaces synthesis entirely while it is set, with `volume` still scaling it."}}}}}}},T=JSON.parse(`{"type":"array","doc":"See Sighting.decor.","fields":{"id":{"type":"string"},"kind":{"type":"enum","values":["terrace","wall","building","tree","crop","mound","streetlight","vehicle","observer","aircraft","trafficlight","crossing","roadsign","shrub","bridge","wire","entity"]},"title":{"type":"string","doc":"Optional display name, same role as Shape.title — falls back to a generic \\"{kind} {n}\\" label (see SightingEditorElement.decorLabel) when absent.","loose":true},"eastM":{"type":"number","doc":"Meters from the observer's own position — eastM positive = east, northM positive = north."},"northM":{"type":"number"},"headingDeg":{"type":"number","doc":"Degrees clockwise from true north, same convention as ObserverPose.headingDeg — which way a vehicle is facing, or a observer looking."},"lit":{"type":"boolean","doc":"Streetlight lamp / vehicle headlights switched on."},"litKeyframes":{"type":"array","doc":"Sorted by t.","fields":{"t":{"type":"number"},"lit":{"type":"boolean"}}},"headlights":{"type":"enum","doc":"For a vehicle: how its lights are set (see HeadlightMode).","values":["off","position","dipped","main","fog"]},"headlightKeyframes":{"type":"array","doc":"Sorted by t.","fields":{"t":{"type":"number"},"mode":{"type":"enum","values":["off","position","dipped","main","fog"]}}},"lights":{"type":"array","doc":"The object's individual lamps, each with its own place on the body and its own rhythm — see DecorLight, and LIGHT_RIGS for the ready-made sets.","fields":{"id":{"type":"string"},"offsetM":{"type":"object","doc":"Where it sits on the object, in meters relative to the object's own centre and heading: +x is its right, +y up, +z its front.","fields":{"x":{"type":"number"},"y":{"type":"number"},"z":{"type":"number"}}},"color":{"type":"string","doc":"CSS hex colour, as emitted — the regulated red/green/white of navigation lights, the amber of a hazard flasher."},"intensity":{"type":"number","doc":"Peak luminous intensity as a ratio to an ordinary navigation light's (1, about a hundred candela — see DecorSystem's LAMP_CANDELA); the airliner rig (LIGHT_RIGS) gives its beacon 1.5 and its wingtip strobes 20."},"pattern":{"type":"object","fields":{"kind":{"type":"enum","values":["steady","flash"]},"perMinute":{"type":"number"},"dutyCycle":{"type":"number"},"phase":{"type":"number"}}},"radiusM":{"type":"number","doc":"The radius of what shines, metres, where it is not a quarter of a metre: the lens of a traffic light is ten centimetres."},"beamDeg":{"type":"number","doc":"Where the lamp is seen from, when it is not from everywhere: the angle off the object's front (−z, where its heading points) at which it gives half its light, degrees."}}},"track":{"type":"array","doc":"Where the object is over time, when it moves — an aircraft crossing the sky, a car driving past.","fields":{"t":{"type":"number"},"eastM":{"type":"number"},"northM":{"type":"number"},"altitudeM":{"type":"number","doc":"Meters above the observer's own elevation."},"headingDeg":{"type":"number"},"gazeAzimuthDeg":{"type":"number","doc":"Where a figure looks, as a compass azimuth: its head turns to face it, as far as a neck turns (85 degrees either side of where its body points), if its model has a node named \\"head\\" (scripts/people/split_head.py)."}}},"sightingUrl":{"type":"string","doc":"For kind \\"observer\\" only: the URL of that observer's own sighting.json recording, if known — lets the 3D scene's own context menu offer \\"view this observer's account\\" (loading it the same way SightingEditorElement.importFromUrl already does)."},"windows":{"type":"object","doc":"Per-side window opacity, 0 (fully open — the pane is invisible, and DecorSystem.addRoom's own interior wall panel is skipped there too, same as no window at all) to 100 (fully closed — a solid-looking pane)."},"color":{"type":"string","doc":"What colour this object actually is, as a CSS colour — the same way a shape states its own (see Shape.color), because a recording is written and read by people and \\"#8f86a8\\" is a colour a person can type."},"observerSide":{"type":"enum","values":["front","behind","left","right","front-left","front-right","behind-left","behind-right"]},"observerFacing":{"type":"enum","doc":"Which window the observer looks through, when it is not the one at their own seat: a driver sits at \\"front-left\\" and looks through the windshield (\\"front\\").","values":["front","behind","left","right","front-left","front-right","behind-left","behind-right"]},"observerKeyframes":{"type":"array","doc":"Where the observer sits over time, when they do not stay where they are: a driver is in the car until the moment they get out of it.","fields":{"t":{"type":"number"},"side":{"type":"enum","doc":"The seat they are in from this instant; absent means they are outside the object.","values":["front","behind","left","right","front-left","front-right","behind-left","behind-right"]},"facing":{"type":"enum","doc":"The window they look through from this instant, when it is not the one at their seat.","values":["front","behind","left","right","front-left","front-right","behind-left","behind-right"]}}},"engine":{"type":"object","doc":"A vehicle heard running — see DecorEngine: its engine turning with its own \`track\`, heard less the further it is from the observer.","fields":{"kind":{"type":"enum","doc":"Which sound: a decor object's own \`kind\` says only \\"vehicle\\".","values":["car","van","truck","motorcycle","generic"]},"noise":{"type":"number","doc":"As ObserverVehicle.noise."}}},"aircraftSound":{"type":"enum","doc":"An aircraft heard while it flies — what sort of noise it makes (see AircraftHearing.noiseOfKind), or \\"silent\\" for one that makes none (a glider's cousin, a stand-in for something nobody heard).","values":["unknown","airliner-narrow","airliner-wide","regional-turboprop","regional-jet","business-jet","light-piston","turboprop-light","helicopter-light","helicopter-medium","helicopter-heavy","military-jet","glider","balloon","ultralight","unmanned","silent"]},"surveyedOn":{"type":"string","doc":"The day (YYYY-MM-DD) of the survey this object was taken from, where it comes from one (see \`origin\`): the latest of the days of everything it was drawn from (the laser flight, the aerial photograph, the map's edition)."},"facade":{"type":"object","doc":"Kind \\"building\\" only: the colour of its walls, and the windows and door drawn on them.","fields":{"color":{"type":"string","doc":"The colour of the wall, \\"#rrggbb\\": plaster, stone, brick."},"plain":{"type":"boolean","doc":"A plain wall, with no windows and no door."},"openings":{"type":"enum","doc":"How the walls are opened.","values":["tall","lancet"]},"storeyM":{"type":"number","doc":"The height of a storey, metres, where it is known (the floors a survey states, or those of an old building): absent is three."},"closedAtNight":{"type":"boolean","doc":"The windows of a place nobody is in at night (a shop, an office, a pool, a gymnasium): it has windows, but a fifth as many of them lit as a home has at the same hour (see DecorSystem.CLOSED_AT_NIGHT_SHARE)."}}},"roof":{"type":"object","doc":"Kind \\"building\\" only: the shape and colour of its roof.","fields":{"shape":{"type":"enum","doc":"\\"flat\\" is the box; \\"gable\\" rises to a ridge along the building's longer side; \\"hip\\" slopes down on all four; \\"dome\\" is a cupola over the ellipse the walls hold.","values":["flat","gable","hip","dome"]},"ridge":{"type":"enum","doc":"Which side of the building a gable's ridge runs along: \\"width\\" (the longer side, the default) or \\"depth\\".","values":["width","depth"]},"riseM":{"type":"number","doc":"How far the ridge stands above the eaves, metres."},"color":{"type":"string","doc":"The colour of the roof seen from above, \\"#rrggbb\\", where it was measured (see RoofShapes): the walls keep their own."}}},"bridge":{"type":"object","doc":"Kind \\"bridge\\" only: how it is built, where that is known — see BridgeStructure.","fields":{"spanM":{"type":"number","doc":"Metres of open span under the deck, centred on the object."},"deckThicknessM":{"type":"number","doc":"Thickness of the deck slab, metres."},"railing":{"type":"object","doc":"The railing along both edges: its height above the road, the spacing of its posts, and how many horizontal rails it has — two rails make two rows of rectangular openings.","fields":{"heightM":{"type":"number"},"postSpacingM":{"type":"number"},"rails":{"type":"number"}}}}},"wire":{"type":"object","doc":"Kind \\"wire\\" only: how many strands, where they hang, and which ends stand on a pole — see WireStructure.","fields":{"strands":{"type":"array","doc":"The strands: each one's height above the ground and, for a crossarm, how far it hangs to one side of the line (positive to the right of its heading).","fields":{"heightM":{"type":"number"},"acrossM":{"type":"number"}}},"poles":{"type":"enum","doc":"Which ends stand on a pole: both (default), the one the object's heading points away from (\`start\`) or towards (\`end\`), or none, for a line anchored on buildings at both ends.","values":["none","both","start","end"]},"diameterM":{"type":"number","doc":"How thick a strand is, metres."},"poleHeightM":{"type":"number","doc":"How tall a pole is, metres."}}},"lamp":{"type":"object","doc":"Kind \\"streetlight\\" only: the lamp it carries, where it is known (a town's inventory says it).","fields":{"colorTemperatureK":{"type":"number","doc":"The colour of its light, kelvins: 2 000 a sodium lamp's orange, 2 700 to 3 000 a warm white LED's, 4 000 a cold one."},"lumens":{"type":"number","doc":"Its luminous flux, lumens."},"mount":{"type":"enum","doc":"\\"wall\\": a bracket on a facade, with no column of its own.","values":["wall","column"]},"supposed":{"type":"boolean","doc":"True when nobody surveyed where it stands: it was put there because a map says the street is lit, at the spacing of a town's lamps (see OsmStreetLamps)."}}},"sign":{"type":"object","doc":"Kind \\"roadsign\\" only: what its face says.","fields":{"face":{"type":"enum","doc":"\\"stop\\" is the red octagon, \\"give-way\\" the triangle point down, \\"speed-limit\\" the disc ringed in red; \\"other\\" a sign whose face is not drawn.","values":["other","stop","give-way","speed-limit"]},"code":{"type":"string","doc":"The sign as the map codes it, where it does (\\"FR:B14[50]\\")."},"value":{"type":"number","doc":"The limit, km/h, for a \\"speed-limit\\"."}}},"floors":{"type":"number","doc":"Kind \\"building\\" only: number of upper stories above the ground floor, set when the building is created (default 2, see SightingEditorElement.addDecor) and editable afterward."},"occupiedFloor":{"type":"number","doc":"Kind \\"building\\" only, meaningful once observerSide is set: which floor the observer is on, 0 (ground floor) up to floors."},"occludesSourceIds":{"type":"array","doc":"Shape sourceIds (see Timeline.sourceIds/Shape) this decor object sits in front of, from the observer's own reported viewpoint — occluding that shape wherever their screen positions line up (see SceneRenderer.isScreenPointOccluded)."},"sizeM":{"type":"object","doc":"How big it really is, in meters, along its own axes — see DecorSize.","fields":{"widthM":{"type":"number"},"lengthM":{"type":"number"},"heightM":{"type":"number"}}},"modelParameters":{"type":"object","doc":"The settings of the model this object is drawn as, by the key the model publishes them under (see ModelParameters.parameters): a being's costume colour, say."},"model":{"type":"object","doc":"The real 3D model that stands in for the primitive, if one does — see DecorModelRef.","fields":{"id":{"type":"string","doc":"Catalogue entry, resolved by the live DecorModelProvider."},"url":{"type":"string","doc":"Direct glTF/GLB address, taking precedence over \`id\`."},"headingOffsetDeg":{"type":"number","doc":"Degrees to turn the loaded model about its own vertical axis so its nose points the way this scene's heading convention expects (0 faces -Z — see DecorSystem's build)."},"credit":{"type":"object","doc":"Who made it and under what licence.","fields":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string","doc":"Licence name as its author states it, e.g."},"sourceUrl":{"type":"string","doc":"Where it came from, so the claim can be checked."}}}}},"origin":{"type":"string","doc":"The survey this object was taken from, by the id of its provider (\\"ign-lidar-hd\\"), when the author did not place it by hand: the trees the editor plants from a canopy survey (see CanopyProvider)."}}}`),D={type:"array",doc:"The roads the account's own plan draws — see Sighting.roads and Road.ts.",fields:{id:{type:"string"},title:{type:"string",doc:"What the account calls it, where it calls it anything.",loose:!0},surface:{type:"enum",values:["paved","gravel","dirt"]},widthM:{type:"number",doc:"Carriageway width, metres."},path:{type:"array",doc:"The centre line, in metres east and north of the observer's place at t=0.",fields:{eastM:{type:"number"},northM:{type:"number"}}},source:{type:"string",doc:"Where this line comes from — the plan, the survey, the report it was read off.",loose:!0}}},j={type:"array",doc:"What an investigator drew over the place, imported from their file — see Sighting.traces and Trace.ts.",fields:{id:{type:"string"},title:{type:"string",doc:'What its author called it ("Ligne de visée depuis la ferme").',loose:!0},kind:{type:"enum",values:["polygon","point","line"]},points:{type:"array",doc:"One point for a marker, the vertices of a line, the vertices of an outline (not repeated at the end: it is closed by being a polygon).",fields:{lat:{type:"number"},lng:{type:"number"},altM:{type:"number",doc:"Metres, read as `InvestigatorTrace.altitude` says."}}},altitude:{type:"enum",doc:"How `altM` is read.",values:["ground","relative","absolute"]},color:{type:"string",doc:"CSS colour the author gave it, `#rrggbb`."},source:{type:"string",doc:"Whose it is and where it comes from — the person, the report, the file.",loose:!0}}},x={type:"object",doc:"Which meteorological record `weatherTrack` was looked up from, when it wasn't the observer who stated the conditions — see Sighting.weatherSource.",fields:{id:{type:"string",doc:"Stable dataset id, e.g."},name:{type:"string",doc:"Human-readable dataset name, e.g."},url:{type:"string",doc:"The exact request that produced these values, so the claim stays checkable years later."}}},W={type:"string",doc:"Which INSTRUMENTS entry this was observed through — see Sighting.instrumentId."},H={type:"number",doc:"How long the shutter stayed open, seconds — one value for the whole observation, see Sighting.exposureSeconds."},A={type:"number",doc:"The speed of the film or sensor this picture was taken on — see Sighting.iso."},R={type:"number",doc:`How bright the night sky is at the place, towns and all: the zenith of a moonless night in magnitudes per square arcsecond, a Sky Quality Meter's reading or the World Atlas's "SQM" figure (Falchi et al.`},z={type:"boolean",doc:"Whether the map of where the observer stood starts open — see Sighting.observerMap."},E={type:"array",doc:"The named moments of the account — see Milestone.",fields:{t:{type:"number",doc:"When, in milliseconds from the start of the recording — the same scale every track uses."},label:{type:"string",doc:'Short label, shown on the seek bar: the letter or number the account itself uses ("A", "B"), or a couple of words where it uses none.',loose:!0},note:{type:"string",doc:"What happened at that moment, in the account's own words where possible.",loose:!0}}},I={type:"array",doc:"Pictures of the place, laid over the reconstruction at the direction each was registered in — see SceneReference.",fields:{id:{type:"string",doc:"Stable id, what the editor's own list and a future trace on the picture name."},kind:{type:"enum",values:["photo","panorama"]},src:{type:"string",doc:"Where the picture is: an address, or the picture itself as a `data:` URL."},title:{type:"string",doc:'What to call it — "Vue depuis le muret, fin été 1968".',loose:!0},credit:{type:"string",doc:"Who made it and on what terms — shown wherever the picture is, because a credit that is not displayed is not a licence (see DataSource for the same rule on the data)."},creditUrl:{type:"string",doc:"Where that credit points: the source page, the licence."},t:{type:"number",doc:"The instant of the timeline it was taken at, milliseconds, for a picture made DURING the observation — by the observer, or by whoever was there."},from:{type:"object",doc:"Where it was taken from — the one point its registration holds for.",fields:{lat:{type:"number"},lng:{type:"number"}}},drawing:{type:"boolean",doc:"Whether somebody drew on it — a trajectory, an outline, an arrow — so that what the picture shows of the phenomenon is a statement made afterwards, not a thing the camera recorded."},opacity:{type:"number",doc:"How much of it shows, 0 to 1 — the starting point of the reader's own slider, since the comparison is made by sliding: all picture, all render, and the registration checked at every step between."},registration:{type:"object",fields:{headingDeg:{type:"number",doc:"Degrees clockwise from true north, the direction the picture's centre looks at."},pitchDeg:{type:"number",doc:"Degrees above the local horizontal, positive up."},rollDeg:{type:"number",doc:"Degrees the picture is tilted about its own axis, positive clockwise as it is looked at — see ObserverPose.rollDeg."},fovDeg:{type:"number",doc:"The picture's VERTICAL field, degrees — what the lens took in top to bottom, its horizontal field following from the image's own aspect ratio."}}},landmarks:{type:"array",doc:"The details it was lined up on — see PictureLandmark.",fields:{id:{type:"string"},label:{type:"string",doc:'What the detail is — "Arbre masquant", "barrière".',loose:!0},picture:{type:"object",doc:"Where it is on the picture, 0..1 from the top-left corner.",fields:{u:{type:"number"},v:{type:"number"}}},scene:{type:"object",doc:"Where it is from the observer, in the scene.",fields:{azimuthDeg:{type:"number"},altitudeDeg:{type:"number"}}}}}}},O={type:"array",doc:"Where the account can be read as it was given, each one a source — see RecordingSource.",fields:{type:{type:"enum",values:["book","article"]},title:{type:"string"},authors:{type:"array",doc:"The author(s) name(s): for a post, the account that posted it."},url:{type:"string",doc:"Where it can be read."},publication:{type:"object",doc:"Who published it and when (EDTF).",fields:{publisher:{type:"string"},time:{type:"string"}}},index:{type:"string",doc:"Chapter, page, etc."}}},C=JSON.parse(`{"type":"object","doc":"What the observer took it to be, in metres — see InterpretationJson.","fields":{"title":{"type":"string","doc":"What the claim is, in a few words — \\"Craft on its legs\\", \\"Weather balloon at 3 km\\".","loose":true},"bodies":{"type":"array","fields":{"id":{"type":"string"},"title":{"type":"string","loose":true},"explains":{"type":"array","doc":"The phenomena of the account (their \`sourceId\`s) this body claims to be — what its projected outline is measured against at each instant, and what is drawn as a ghost beside it."},"model":{"type":"object","doc":"What it is shaped like.","fields":{"id":{"type":"string","doc":"Catalogue entry, resolved by the live DecorModelProvider."},"url":{"type":"string","doc":"Direct glTF/GLB address, taking precedence over \`id\`."},"headingOffsetDeg":{"type":"number","doc":"Degrees to turn the loaded model about its own vertical axis so its nose points the way this scene's heading convention expects (0 faces -Z — see DecorSystem's build)."},"credit":{"type":"object","doc":"Who made it and under what licence.","fields":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string","doc":"Licence name as its author states it, e.g."},"sourceUrl":{"type":"string","doc":"Where it came from, so the claim can be checked."}}}}},"withObserver":{"type":"boolean","doc":"Whether the observer carries it: its keyframes, stated FROM THE OBSERVER, are offsets from their eye that go with the eye, instead of points of the world fixed where the eye was at each keyframe's instant."},"outlineNode":{"type":"string","doc":"The node of the model that IS what the observer drew — \\"hull\\" for a craft on legs the observer drew as an oval — and so what its outline is measured by (see BodyConfrontation)."},"track":{"type":"array","fields":{"t":{"type":"number"},"eastM":{"type":"number"},"northM":{"type":"number"},"azimuthDeg":{"type":"number"},"altitudeDeg":{"type":"number"},"distanceM":{"type":"number"},"onGround":{"type":"boolean","doc":"Standing on the ground."},"present":{"type":"boolean","doc":"Gone from here on — \`false\` — or back — \`true\`."},"altitudeAboveGroundM":{"type":"number","doc":"Metres between the ground under it and its lowest point."},"altitudeM":{"type":"number","doc":"Metres between its lowest point and the ground at the recording's own origin (where the observer stands at the start) — a height in the air that does NOT follow what is under the body."},"sizeM":{"type":"object","fields":{"widthM":{"type":"number"},"lengthM":{"type":"number"},"heightM":{"type":"number"}}},"attitude":{"type":"object","fields":{"headingDeg":{"type":"number"},"pitchDeg":{"type":"number"},"rollDeg":{"type":"number"}}},"appearance":{"type":"object","fields":{"color":{"type":"string","doc":"Its surface colour, CSS."},"albedo":{"type":"number","doc":"How much of the light falling on it it sends back, 0-1: aluminium ~0.7, a matt dark hull ~0.1."},"luminanceCdM2":{"type":"number","doc":"What it gives out of itself, candela per square metre — read through the scene's own photometry exactly as a flame's is (see BodyFlame), so that the same figure is a lamp at night and nothing at all against a noon sky."},"transparency":{"type":"number","doc":"How much of what is behind it shows through, 0 (opaque, the default) to 1 (gone): the same statement a drawn shape's transparency makes, for a body of the scene."},"haloScale":{"type":"number","doc":"How far the glare it throws round itself reaches, as a multiple of what its light gives (1, the default): 0 puts the glare out, 2 doubles its width."}}},"flame":{"type":"object","doc":"A flame coming out of it, from here on — see BodyFlame.","fields":{"node":{"type":"string"},"lengthM":{"type":"number","doc":"How far it reaches from the node, metres."},"widthM":{"type":"number","doc":"How wide it is at its widest, metres."},"color":{"type":"string","doc":"Its colour where it leaves the node, CSS."},"tipColor":{"type":"string","doc":"Its colour at its far end; the same as \`color\` when absent."},"luminanceCdM2":{"type":"number"},"raisesDust":{"type":"boolean","doc":"Whether it raises dust where it meets the ground — a flame reaching loose, dry soil does, the more the nearer it gets."}}},"motions":{"type":"object","doc":"How far along each of its model's own movements it is, by the movement's name in the model (a glTF animation): 0 at its start, 1 at its end, and on past 1 for one that repeats — a turn made three times is 3."},"lights":{"type":"object","doc":"The luminance of each of its model's own lights, cd/m², by the name of the light's material in the model: what lets one body carry lights that behave each their own way — a steady white at each end, a red one flashing between."}}},"sound":{"type":"object","doc":"What it sounds like: heard from where the observer stands, late by the time sound takes to come, shifted in pitch as it comes and goes, and masked by the noise of the place (see BodyHearing).","fields":{"kind":{"type":"enum","values":["unknown","airliner-narrow","airliner-wide","regional-turboprop","regional-jet","business-jet","light-piston","turboprop-light","helicopter-light","helicopter-medium","helicopter-heavy","military-jet","glider","balloon","ultralight","unmanned"]},"quieterDb":{"type":"number","doc":"Decibels less than the class's own sound power, across its spectrum."}}}}},"smoke":{"type":"array","doc":"Fires the interpretation lights on the ground, as their smoke — see SmokeSource.","fields":{"eastM":{"type":"number"},"northM":{"type":"number"},"fromT":{"type":"number"},"untilT":{"type":"number"},"halfLifeS":{"type":"number","doc":"How fast it dies down, seconds to half its thickness — brush flares and smoulders."}}},"flares":{"type":"array","doc":"Salvoes of decoy flares an aircraft dispensed, computed into bodies when shown — see FlareSalvoJson.","fields":{"id":{"type":"string"},"title":{"type":"string","loose":true},"aircraft":{"type":"object","doc":"The aircraft at one instant of the recording, flying straight and level from there on (and before).","fields":{"t":{"type":"number"},"eastM":{"type":"number"},"northM":{"type":"number"},"altitudeM":{"type":"number","doc":"Metres above the ground at the recording's origin — see BodyKeyframe.altitudeM."},"headingDeg":{"type":"number"},"speedMS":{"type":"number"},"originElevationM":{"type":"number","doc":"Its height above sea level at \`t\` would be this plus \`altitudeM\`: what sets how thick the air braking the flares is."},"model":{"type":"object","doc":"Drawn when given (a catalogue model or a primitive), dark and unlit as a fighter in an exercise often is.","fields":{"id":{"type":"string","doc":"Catalogue entry, resolved by the live DecorModelProvider."},"url":{"type":"string","doc":"Direct glTF/GLB address, taking precedence over \`id\`."},"headingOffsetDeg":{"type":"number","doc":"Degrees to turn the loaded model about its own vertical axis so its nose points the way this scene's heading convention expects (0 faces -Z — see DecorSystem's build)."},"credit":{"type":"object","doc":"Who made it and under what licence.","fields":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string","doc":"Licence name as its author states it, e.g."},"sourceUrl":{"type":"string","doc":"Where it came from, so the claim can be checked."}}}}},"sizeM":{"type":"object","fields":{"widthM":{"type":"number"},"lengthM":{"type":"number"},"heightM":{"type":"number"}}},"glow":{"type":"object","doc":"A light it gives off as it flies — its afterburner — which an observer may have taken for a phenomenon of its own.","fields":{"explains":{"type":"array","doc":"The phenomena of the account it claims to be — see BodyJson.explains."},"sizeM":{"type":"number","doc":"How wide it looks, m."},"luminousIntensityCd":{"type":"number"},"color":{"type":"string"},"fromT":{"type":"number","doc":"Ms of the recording."},"untilT":{"type":"number"},"onS":{"type":"number","doc":"Seconds lit, then seconds out, repeated from \`fromT\`; always lit when absent."},"offS":{"type":"number"}}},"sound":{"type":"object","doc":"What it sounds like (see BodySound): heard from the two minutes before the recording on, as its sound takes that long to come from afar.","fields":{"kind":{"type":"enum","values":["unknown","airliner-narrow","airliner-wide","regional-turboprop","regional-jet","business-jet","light-piston","turboprop-light","helicopter-light","helicopter-medium","helicopter-heavy","military-jet","glider","balloon","ultralight","unmanned"]},"quieterDb":{"type":"number","doc":"Decibels less than the class's own sound power, across its spectrum."}}}}},"releases":{"type":"array","doc":"When each flare leaves it, and which phenomena of the account it claims to be.","fields":{"t":{"type":"number","doc":"Ms of the recording."},"explains":{"type":"array","doc":"The phenomena of the account this flare claims to be — see BodyJson.explains."}}},"flare":{"type":"object","doc":"The flare dispensed: an MJU-7 when absent (see DecoyFlare.MJU_7).","fields":{"massKg":{"type":"number","doc":"Mass at ejection, kg."},"burnedKg":{"type":"number","doc":"Mass burned away by burnout, kg."},"dragAreaM2":{"type":"number","doc":"Drag coefficient times reference area, m²: how hard the air brakes it."},"ejectionMS":{"type":"number","doc":"The dispenser's kick, m/s, straight down out of the aircraft."},"burnS":{"type":"number","doc":"How long it burns, s."},"luminousIntensityCd":{"type":"number","doc":"Its luminous intensity at full burn, candela, in the visible: what the eye gets of it."},"flameSizeM":{"type":"number","doc":"How wide its burning plume looks, m: the size of the glowing sphere drawn."},"color":{"type":"string","doc":"The colour of its light, CSS."}}},"wind":{"type":"object","doc":"The wind at the flares' height: where it blows TOWARDS, degrees, and its speed.","fields":{"towardDeg":{"type":"number"},"speedMS":{"type":"number"}}}}},"variant":{"type":"object","doc":"When this interpretation is a VARIANT of the account: what the observer would have to have erred by for the account to be a misperception of a candidate, as the candidate search found it (see CandidateSearch, docs/witness-error-model.md).","fields":{"candidate":{"type":"string","doc":"Which candidate: a body of the sky (\\"Venus\\"), a satellite, a re-entry, an aircraft, or another interpretation."},"label":{"type":"string","doc":"What the candidate is called, as it was when the variant was kept."},"phenomenon":{"type":"string","doc":"The known phenomenon of Poher's matrix it is an instance of, when it is one."},"parameters":{"type":"object","doc":"The witness parameters applied: a clock offset in minutes, a rotation of the heading in degrees, factors on elevation and size.","fields":{"clockMinutes":{"type":"number"},"headingDeg":{"type":"number"},"elevationFactor":{"type":"number"},"sizeFactor":{"type":"number"},"durationFactor":{"type":"number"}}},"moved":{"type":"array","doc":"The values it moves: what the account says, what the variant reads, the bias and its status.","fields":{"field":{"type":"enum","values":["time","heading","elevation","size","duration","sweep"]},"stated":{"type":"number"},"variant":{"type":"number"},"parameter":{"type":"string"},"amount":{"type":"number"},"z":{"type":"number"},"status":{"type":"string"}}},"readings":{"type":"array","doc":"The structural readings it uses (see CandidateSearch's StructuralReading), each with what the studies say of it.","fields":{"reading":{"type":"string"},"status":{"type":"string"}}},"cost":{"type":"number","doc":"What it costs, in units of the laws' spread (σ), and the verdict it got."},"verdict":{"type":"enum","values":["consolidated","contested","incompatible"]},"modelId":{"type":"string","doc":"The error model it was computed with (see WitnessError.MODELS)."}}}}}`),L=JSON.parse(`{"type":"array","doc":"The variants of the account that were kept: each an interpretation saying what the observer would have erred by for it to be a misperception of a candidate (see InterpretationJson.variant).","fields":{"title":{"type":"string","doc":"What the claim is, in a few words — \\"Craft on its legs\\", \\"Weather balloon at 3 km\\".","loose":true},"bodies":{"type":"array","fields":{"id":{"type":"string"},"title":{"type":"string","loose":true},"explains":{"type":"array","doc":"The phenomena of the account (their \`sourceId\`s) this body claims to be — what its projected outline is measured against at each instant, and what is drawn as a ghost beside it."},"model":{"type":"object","doc":"What it is shaped like.","fields":{"id":{"type":"string","doc":"Catalogue entry, resolved by the live DecorModelProvider."},"url":{"type":"string","doc":"Direct glTF/GLB address, taking precedence over \`id\`."},"headingOffsetDeg":{"type":"number","doc":"Degrees to turn the loaded model about its own vertical axis so its nose points the way this scene's heading convention expects (0 faces -Z — see DecorSystem's build)."},"credit":{"type":"object","doc":"Who made it and under what licence.","fields":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string","doc":"Licence name as its author states it, e.g."},"sourceUrl":{"type":"string","doc":"Where it came from, so the claim can be checked."}}}}},"withObserver":{"type":"boolean","doc":"Whether the observer carries it: its keyframes, stated FROM THE OBSERVER, are offsets from their eye that go with the eye, instead of points of the world fixed where the eye was at each keyframe's instant."},"outlineNode":{"type":"string","doc":"The node of the model that IS what the observer drew — \\"hull\\" for a craft on legs the observer drew as an oval — and so what its outline is measured by (see BodyConfrontation)."},"track":{"type":"array","fields":{"t":{"type":"number"},"eastM":{"type":"number"},"northM":{"type":"number"},"azimuthDeg":{"type":"number"},"altitudeDeg":{"type":"number"},"distanceM":{"type":"number"},"onGround":{"type":"boolean","doc":"Standing on the ground."},"present":{"type":"boolean","doc":"Gone from here on — \`false\` — or back — \`true\`."},"altitudeAboveGroundM":{"type":"number","doc":"Metres between the ground under it and its lowest point."},"altitudeM":{"type":"number","doc":"Metres between its lowest point and the ground at the recording's own origin (where the observer stands at the start) — a height in the air that does NOT follow what is under the body."},"sizeM":{"type":"object","fields":{"widthM":{"type":"number"},"lengthM":{"type":"number"},"heightM":{"type":"number"}}},"attitude":{"type":"object","fields":{"headingDeg":{"type":"number"},"pitchDeg":{"type":"number"},"rollDeg":{"type":"number"}}},"appearance":{"type":"object","fields":{"color":{"type":"string","doc":"Its surface colour, CSS."},"albedo":{"type":"number","doc":"How much of the light falling on it it sends back, 0-1: aluminium ~0.7, a matt dark hull ~0.1."},"luminanceCdM2":{"type":"number","doc":"What it gives out of itself, candela per square metre — read through the scene's own photometry exactly as a flame's is (see BodyFlame), so that the same figure is a lamp at night and nothing at all against a noon sky."},"transparency":{"type":"number","doc":"How much of what is behind it shows through, 0 (opaque, the default) to 1 (gone): the same statement a drawn shape's transparency makes, for a body of the scene."},"haloScale":{"type":"number","doc":"How far the glare it throws round itself reaches, as a multiple of what its light gives (1, the default): 0 puts the glare out, 2 doubles its width."}}},"flame":{"type":"object","doc":"A flame coming out of it, from here on — see BodyFlame.","fields":{"node":{"type":"string"},"lengthM":{"type":"number","doc":"How far it reaches from the node, metres."},"widthM":{"type":"number","doc":"How wide it is at its widest, metres."},"color":{"type":"string","doc":"Its colour where it leaves the node, CSS."},"tipColor":{"type":"string","doc":"Its colour at its far end; the same as \`color\` when absent."},"luminanceCdM2":{"type":"number"},"raisesDust":{"type":"boolean","doc":"Whether it raises dust where it meets the ground — a flame reaching loose, dry soil does, the more the nearer it gets."}}},"motions":{"type":"object","doc":"How far along each of its model's own movements it is, by the movement's name in the model (a glTF animation): 0 at its start, 1 at its end, and on past 1 for one that repeats — a turn made three times is 3."},"lights":{"type":"object","doc":"The luminance of each of its model's own lights, cd/m², by the name of the light's material in the model: what lets one body carry lights that behave each their own way — a steady white at each end, a red one flashing between."}}},"sound":{"type":"object","doc":"What it sounds like: heard from where the observer stands, late by the time sound takes to come, shifted in pitch as it comes and goes, and masked by the noise of the place (see BodyHearing).","fields":{"kind":{"type":"enum","values":["unknown","airliner-narrow","airliner-wide","regional-turboprop","regional-jet","business-jet","light-piston","turboprop-light","helicopter-light","helicopter-medium","helicopter-heavy","military-jet","glider","balloon","ultralight","unmanned"]},"quieterDb":{"type":"number","doc":"Decibels less than the class's own sound power, across its spectrum."}}}}},"smoke":{"type":"array","doc":"Fires the interpretation lights on the ground, as their smoke — see SmokeSource.","fields":{"eastM":{"type":"number"},"northM":{"type":"number"},"fromT":{"type":"number"},"untilT":{"type":"number"},"halfLifeS":{"type":"number","doc":"How fast it dies down, seconds to half its thickness — brush flares and smoulders."}}},"flares":{"type":"array","doc":"Salvoes of decoy flares an aircraft dispensed, computed into bodies when shown — see FlareSalvoJson.","fields":{"id":{"type":"string"},"title":{"type":"string","loose":true},"aircraft":{"type":"object","doc":"The aircraft at one instant of the recording, flying straight and level from there on (and before).","fields":{"t":{"type":"number"},"eastM":{"type":"number"},"northM":{"type":"number"},"altitudeM":{"type":"number","doc":"Metres above the ground at the recording's origin — see BodyKeyframe.altitudeM."},"headingDeg":{"type":"number"},"speedMS":{"type":"number"},"originElevationM":{"type":"number","doc":"Its height above sea level at \`t\` would be this plus \`altitudeM\`: what sets how thick the air braking the flares is."},"model":{"type":"object","doc":"Drawn when given (a catalogue model or a primitive), dark and unlit as a fighter in an exercise often is.","fields":{"id":{"type":"string","doc":"Catalogue entry, resolved by the live DecorModelProvider."},"url":{"type":"string","doc":"Direct glTF/GLB address, taking precedence over \`id\`."},"headingOffsetDeg":{"type":"number","doc":"Degrees to turn the loaded model about its own vertical axis so its nose points the way this scene's heading convention expects (0 faces -Z — see DecorSystem's build)."},"credit":{"type":"object","doc":"Who made it and under what licence.","fields":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string","doc":"Licence name as its author states it, e.g."},"sourceUrl":{"type":"string","doc":"Where it came from, so the claim can be checked."}}}}},"sizeM":{"type":"object","fields":{"widthM":{"type":"number"},"lengthM":{"type":"number"},"heightM":{"type":"number"}}},"glow":{"type":"object","doc":"A light it gives off as it flies — its afterburner — which an observer may have taken for a phenomenon of its own.","fields":{"explains":{"type":"array","doc":"The phenomena of the account it claims to be — see BodyJson.explains."},"sizeM":{"type":"number","doc":"How wide it looks, m."},"luminousIntensityCd":{"type":"number"},"color":{"type":"string"},"fromT":{"type":"number","doc":"Ms of the recording."},"untilT":{"type":"number"},"onS":{"type":"number","doc":"Seconds lit, then seconds out, repeated from \`fromT\`; always lit when absent."},"offS":{"type":"number"}}},"sound":{"type":"object","doc":"What it sounds like (see BodySound): heard from the two minutes before the recording on, as its sound takes that long to come from afar.","fields":{"kind":{"type":"enum","values":["unknown","airliner-narrow","airliner-wide","regional-turboprop","regional-jet","business-jet","light-piston","turboprop-light","helicopter-light","helicopter-medium","helicopter-heavy","military-jet","glider","balloon","ultralight","unmanned"]},"quieterDb":{"type":"number","doc":"Decibels less than the class's own sound power, across its spectrum."}}}}},"releases":{"type":"array","doc":"When each flare leaves it, and which phenomena of the account it claims to be.","fields":{"t":{"type":"number","doc":"Ms of the recording."},"explains":{"type":"array","doc":"The phenomena of the account this flare claims to be — see BodyJson.explains."}}},"flare":{"type":"object","doc":"The flare dispensed: an MJU-7 when absent (see DecoyFlare.MJU_7).","fields":{"massKg":{"type":"number","doc":"Mass at ejection, kg."},"burnedKg":{"type":"number","doc":"Mass burned away by burnout, kg."},"dragAreaM2":{"type":"number","doc":"Drag coefficient times reference area, m²: how hard the air brakes it."},"ejectionMS":{"type":"number","doc":"The dispenser's kick, m/s, straight down out of the aircraft."},"burnS":{"type":"number","doc":"How long it burns, s."},"luminousIntensityCd":{"type":"number","doc":"Its luminous intensity at full burn, candela, in the visible: what the eye gets of it."},"flameSizeM":{"type":"number","doc":"How wide its burning plume looks, m: the size of the glowing sphere drawn."},"color":{"type":"string","doc":"The colour of its light, CSS."}}},"wind":{"type":"object","doc":"The wind at the flares' height: where it blows TOWARDS, degrees, and its speed.","fields":{"towardDeg":{"type":"number"},"speedMS":{"type":"number"}}}}},"variant":{"type":"object","doc":"When this interpretation is a VARIANT of the account: what the observer would have to have erred by for the account to be a misperception of a candidate, as the candidate search found it (see CandidateSearch, docs/witness-error-model.md).","fields":{"candidate":{"type":"string","doc":"Which candidate: a body of the sky (\\"Venus\\"), a satellite, a re-entry, an aircraft, or another interpretation."},"label":{"type":"string","doc":"What the candidate is called, as it was when the variant was kept."},"phenomenon":{"type":"string","doc":"The known phenomenon of Poher's matrix it is an instance of, when it is one."},"parameters":{"type":"object","doc":"The witness parameters applied: a clock offset in minutes, a rotation of the heading in degrees, factors on elevation and size.","fields":{"clockMinutes":{"type":"number"},"headingDeg":{"type":"number"},"elevationFactor":{"type":"number"},"sizeFactor":{"type":"number"},"durationFactor":{"type":"number"}}},"moved":{"type":"array","doc":"The values it moves: what the account says, what the variant reads, the bias and its status.","fields":{"field":{"type":"enum","values":["time","heading","elevation","size","duration","sweep"]},"stated":{"type":"number"},"variant":{"type":"number"},"parameter":{"type":"string"},"amount":{"type":"number"},"z":{"type":"number"},"status":{"type":"string"}}},"readings":{"type":"array","doc":"The structural readings it uses (see CandidateSearch's StructuralReading), each with what the studies say of it.","fields":{"reading":{"type":"string"},"status":{"type":"string"}}},"cost":{"type":"number","doc":"What it costs, in units of the laws' spread (σ), and the verdict it got."},"verdict":{"type":"enum","values":["consolidated","contested","incompatible"]},"modelId":{"type":"string","doc":"The error model it was computed with (see WitnessError.MODELS)."}}}}}`),Y={type:"object",doc:"What happened in the sky while it runs, as facts (a laser shot, a launch, a re-entry) — see SkyEventsJson.",fields:{beams:{type:"array",doc:"Beams of light sent through the air from the ground: a laser, a searchlight — see BeamJson.",fields:{id:{type:"string"},title:{type:"string",loose:!0},explains:{type:"array",doc:"The phenomena of the account (their `sourceId`s) this beam claims to be — see BodyJson.explains."},path:{type:"array",doc:"Where the light goes, in order: where it leaves the emitter, then where it is turned (a mirror) if it is, and where it ends (what it hits, or where it has gone far enough for nothing more of it to matter).",fields:{lat:{type:"number"},lng:{type:"number"},altitudeM:{type:"number",doc:"Altitude above the sea, metres."}}},wavelengthNm:{type:"number",doc:"The wavelength of the light, nm: 532 for the green of a frequency-doubled Nd:YAG laser, 520 for a green diode, 638 for a red one."},powerW:{type:"number",doc:"The optical power it carries, watts: its mean power for a pulsed laser, whose pulses an eye cannot tell apart."},divergenceMrad:{type:"number",doc:"How fast it widens, milliradians, full angle."},apertureM:{type:"number",doc:"How wide it leaves the emitter, metres."},fromT:{type:"number",doc:"When it is on, ms of the recording: from its start and until its end when absent."},untilT:{type:"number"}}},launches:{type:"array",doc:"Rocket launches, whose exhaust shows lit by a Sun the ground no longer sees — see LaunchJson.",fields:{id:{type:"string"},title:{type:"string",loose:!0},explains:{type:"array",doc:"The phenomena of the account (their `sourceId`s) this launch claims to be — see BodyJson.explains."},vehicle:{type:"object",doc:"What flew, as its operator names it.",fields:{name:{type:"string",doc:'"Falcon 9".'},mission:{type:"string",doc:'"Starlink Group 10-49".'},engine:{type:"object",doc:"The engine whose exhaust it is.",fields:{thrustKN:{type:"number",doc:"Thrust in vacuum, kN: a Merlin Vacuum's 934, an RL10's 110, a solid booster's thousands."},specificImpulseS:{type:"number",doc:"Specific impulse in vacuum, seconds: 348 for a Merlin Vacuum, 465 for an RL10, 285 for a solid."},propellant:{type:"enum",values:["rp1-lox","methane-lox","hydrogen-lox","hypergolic","solid"]}}}}},track:{type:"array",doc:"Where the stage stood at instants of the recording, ms.",fields:{t:{type:"number"},lat:{type:"number"},lng:{type:"number"},altitudeKm:{type:"number",doc:"Height above the ellipsoid, km."}}},burnFromT:{type:"number",doc:"When the engine started and stopped, ms of the recording."},burnUntilT:{type:"number"},plume:{type:"object",fields:{exhaustKgPerS:{type:"number",doc:"Mass of exhaust leaving the engine, kg per second."},condensedShare:{type:"number",doc:"The share of that exhaust that ends up as particles that scatter light, 0 to 1."},particleRadiusUm:{type:"number",doc:"Radius of those particles, micrometres."},expansionKmPerS:{type:"number",doc:"How fast a puff's radius grows, km per second, from `initialRadiusKm`."},initialRadiusKm:{type:"number"},lifetimeS:{type:"number",doc:"How long a puff lasts before the particles have gone, seconds."},collarShare:{type:"number",doc:"The share of the particles that is the collar: exhaust just let go, which leaves the nozzle at its exhaust velocity (3.4 km/s for a Merlin Vacuum) and, with almost no air to stop it, spreads into a wide, short-lived shell round the stage, where the rest stays behind as the narrow trail."},collarExpansionKmPerS:{type:"number",doc:"How fast the collar's radius grows, km per second, and how long it lasts, seconds."},collarLifetimeS:{type:"number"}}},jets:{type:"array",doc:"What else the stage lets go, each while some seconds of the recording.",fields:{id:{type:"string"},kind:{type:"enum",doc:`"burn": the engine burns, and what leaves it is its exhaust, with the vehicle's plume (its flow, its velocity, its collar and trail).`,values:["burn","vent"]},fromT:{type:"number",doc:"When it starts and stops, ms of the recording."},untilT:{type:"number"},angleDeg:{type:"number",doc:"Which way it leaves the stage, degrees from straight back along the stage's motion: 0 behind it (an engine pushing it on), 90 sideways, 180 ahead of it (an engine braking it)."},azimuthDeg:{type:"number",doc:"Round the stage's line of motion, which side it leaves on at the start, degrees from the side facing away from the Earth, towards the right of the motion."},spinPeriodS:{type:"number",doc:"How long the stage takes to turn once round its line of motion, seconds; the jet turns with it."},speedKmPerS:{type:"number",doc:"How fast it leaves the stage, km/s."},massKgPerS:{type:"number",doc:"Mass let go each second, kg."},condensedShare:{type:"number",doc:"What of it ends up as particles, their size, how fast a puff spreads and how long it lasts: as for the plume."},particleRadiusUm:{type:"number"},expansionKmPerS:{type:"number"},initialRadiusKm:{type:"number"},lifetimeS:{type:"number"}}}}},reentries:{type:"array",doc:"Re-entries: placed on the Earth, not round the observer — see ReentryJson.",fields:{id:{type:"string"},title:{type:"string",loose:!0},explains:{type:"array",doc:"The phenomena of the account (their `sourceId`s) this re-entry claims to be — see BodyJson.explains."},object:{type:"object",doc:"The object that came down, when it is known — the catalogue says which piece it was.",fields:{name:{type:"string",doc:'Its catalogue name — "SL-12 R/B".'},cosparId:{type:"string",doc:'International designator — "1968-013C".'},norad:{type:"number",doc:"US Space Surveillance Network catalogue number — 3136."}}},track:{type:"array",doc:"Where the leading point of the break-up was, at instants of the recording.",fields:{t:{type:"number"},lat:{type:"number"},lng:{type:"number"},altitudeKm:{type:"number",doc:"Height above the ellipsoid, km."}}},fragments:{type:"array",doc:"The pieces seen, each following the same path some seconds behind the leading point.",fields:{id:{type:"string"},lagS:{type:"number",doc:"Seconds behind the leading point, along the same path."},fromT:{type:"number",doc:"When it is first seen, ms of the recording — when it broke off, or when it began to glow."},untilT:{type:"number",doc:"When it goes out, ms — burned up, or slowed below glowing."},absoluteMagnitude:{type:"number",doc:"Its brightness as a magnitude at 100 km — the meteor astronomers' absolute magnitude, which a fireball report gives — from which the brightness at the observer's actual distance follows."},color:{type:"string",doc:"Its colour, as a CSS hex colour."},trainS:{type:"number",doc:"How long a stretch of its own past path still glows behind it, seconds: the tail observers describe."}}}}}}},F={type:"object",doc:"Where the data its scene would otherwise ask third parties for is kept, beside this file — see FrozenData.",fields:{live:{type:"boolean",doc:"Every group asked of its source at every play, and nothing taken at save: off (absent) by default."},relief:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},imagery:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},roads:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},water:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},railways:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},upperAir:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},map:{type:"object",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},weather:{type:"object",doc:"Where the weather is kept, when it is not inside the recording (its `weatherTrack` and `weatherSource`): an annex holding them, read as the recording is loaded (see RecordingSections).",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},place:{type:"object",doc:"The place's name and coordinates (`place`), read from the recording's file rather than looked up by a geocoder when present: inside the recording, or in the annex `src` names.",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},lightPollution:{type:"object",doc:"The night sky's figure (`lightPollution`), read from the recording's file rather than looked up in the atlas when present: inside the recording, or in the annex `src` names.",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}},decor:{type:"object",doc:"The scenery (`decor`), read from the recording's file rather than taken again from a survey of the place as the observer moves, when present: inside the recording, or in the annex `src` names.",fields:{src:{type:"string",doc:"The annex holding it, relative to the recording's own file (as a model's `url` is), or a `data:` URL for an annex kept inside the recording itself."},live:{type:"boolean",doc:"Asked of its source at every play, and never taken at save: what an author chooses by picking a source rather than the file."},takenOn:{type:"string",doc:"The day it was taken from its source, YYYY-MM-DD: what the data is a picture of (a road network, a survey) is that day's."},attribution:{type:"string",doc:"Whom it was taken from, as their licence asks it to be said."},refresh:{type:"boolean",doc:"Asked of its source again, once: the scene does not read the annex, and the editor takes it again at the next save and drops this."}}}}},B={$schema:e,version:t,id:o,time:r,endTime:a,durationSeconds:n,durationText:s,utcOffsetHours:i,timeZone:d,place:h,observer:c,account:l,sway:p,vehicle:u,description:y,image:m,summary:g,summaryTime:b,tags:f,timeline:w,observerTrack:v,weatherTrack:k,weather:S,soundTrack:M,decor:T,roads:D,traces:j,weatherSource:x,instrument:W,exposureSeconds:H,iso:A,lightPollution:R,observerMap:z,milestones:E,references:I,sources:O,interpretation:C,variants:L,skyEvents:Y,frozen:F};export{e as $schema,l as account,T as decor,B as default,y as description,n as durationSeconds,s as durationText,a as endTime,H as exposureSeconds,F as frozen,o as id,m as image,W as instrument,C as interpretation,A as iso,R as lightPollution,E as milestones,c as observer,z as observerMap,v as observerTrack,h as place,I as references,D as roads,Y as skyEvents,M as soundTrack,O as sources,g as summary,b as summaryTime,p as sway,f as tags,r as time,d as timeZone,w as timeline,j as traces,i as utcOffsetHours,L as variants,u as vehicle,t as version,S as weather,x as weatherSource,k as weatherTrack};
|