@rr0/ufoathome 0.201.0 → 0.202.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +3 -0
  2. package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +3 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +3 -0
  4. package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +3 -0
  5. package/dist-embed-interview/rr0-interview.mjs +10 -6
  6. package/dist-embed-scene/{AirshipEditor-BnRmKeVs.js → AirshipEditor-guE_ib3z.js} +1 -1
  7. package/dist-embed-scene/{AirshipFlight-C9DSPGwk.js → AirshipFlight-DzW0313e.js} +1 -1
  8. package/{dist-embed-sighting/AuroraSimulation-C9hvCV0W.js → dist-embed-scene/AuroraSimulation-Dh4kZW1x.js} +7 -2
  9. package/dist-embed-scene/{BalloonEditor-BehJs6H-.js → BalloonEditor-BIsCy_y4.js} +2 -2
  10. package/dist-embed-scene/{BalloonFlight-BYn4diw1.js → BalloonFlight-gunghgAq.js} +1 -1
  11. package/dist-embed-scene/{BirdEditor-dOp1sGsz.js → BirdEditor-CuLv4Ij5.js} +1 -1
  12. package/dist-embed-scene/{BirdFlock-CfJeXvWu.js → BirdFlock-L3dYU2K_.js} +1 -1
  13. package/dist-embed-scene/{DroneEditor-CBoR4fJ_.js → DroneEditor-BQWPhTyf.js} +1 -1
  14. package/dist-embed-scene/{DroneFlight-DSE1OXqh.js → DroneFlight-ERYah68l.js} +1 -1
  15. package/dist-embed-scene/{DroneParameters-D3EOg4oe.js → DroneParameters-CoWQympS.js} +1 -1
  16. package/dist-embed-scene/{LanternEditor-CbcA7K8y.js → LanternEditor-BpCyb79i.js} +1 -1
  17. package/dist-embed-scene/{ModuleSession-XnOI5Mcr.js → ModuleSession-bj7QHWjO.js} +2 -2
  18. package/dist-embed-scene/ModuleThree-DRsA8rtL.js +1 -0
  19. package/dist-embed-scene/SearchlightSystem-Ddws2hQY.js +1 -0
  20. package/dist-embed-scene/{SkyLantern-Dp_B40X0.js → SkyLantern-C3BSxHtq.js} +1 -1
  21. package/dist-embed-scene/rr0-scene.mjs +106 -81
  22. package/{dist-embed-scene/AuroraSimulation-BZpjImM0.js → dist-embed-sighting/AuroraSimulation-C7LAHgWM.js} +7 -2
  23. package/dist-embed-sighting/{CaseReportExport-DVVsc8gA.js → CaseReportExport-BtGCWD7H.js} +1 -1
  24. package/dist-embed-sighting/{InterviewElement-BduwyUn5.js → InterviewElement-B_ULRy5z.js} +9 -5
  25. package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +3 -0
  26. package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +3 -0
  27. package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +3 -0
  28. package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +3 -0
  29. package/dist-embed-sighting/{ModuleSession-ChJsGuTn.js → ModuleSession-DztK084a.js} +2 -2
  30. package/dist-embed-sighting/{ModuleThree-whEZoXYF.js → ModuleThree-BLNSm2eY.js} +1 -1
  31. package/dist-embed-sighting/SearchlightSystem-PEMBDW1s.js +1 -0
  32. package/dist-embed-sighting/rr0-sighting.mjs +112 -87
  33. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-CWpyBqG3.js → AdsbLolArchiveProvider-Bz1OjSjY.js} +1 -1
  34. package/dist-embed-sighting-editor/{AirshipEditor-BvnVNcF4.js → AirshipEditor-BlJXyxlr.js} +1 -1
  35. package/dist-embed-sighting-editor/{AirshipFlight-CB1Quf68.js → AirshipFlight-Cx40Y8JT.js} +1 -1
  36. package/dist-embed-sighting-editor/{Aurora-BRXvgyRM.js → Aurora-Ldk66p1A.js} +1 -1
  37. package/dist-embed-sighting-editor/{AuroraEditor-JQ3kRqrq.js → AuroraEditor-CGSomAFk.js} +1 -1
  38. package/dist-embed-sighting-editor/{AuroraSimulation-i64MFW2z.js → AuroraSimulation-vKcv2Hue.js} +7 -2
  39. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BaKKAdY3.js → BallesterGuaspAssessor-CJyRqwvh.js} +1 -1
  40. package/dist-embed-sighting-editor/{BalloonEditor-C2oHClW7.js → BalloonEditor-CgO4LaWn.js} +1 -1
  41. package/dist-embed-sighting-editor/{BalloonFlight-B9A6MoCj.js → BalloonFlight-hLr_4TFU.js} +1 -1
  42. package/dist-embed-sighting-editor/{BeamEditor-CW7mTQjS.js → BeamEditor-B8qreA3j.js} +1 -1
  43. package/dist-embed-sighting-editor/{BeamSystem-CSfJjLCb.js → BeamSystem-D0hrju5J.js} +1 -1
  44. package/dist-embed-sighting-editor/{BirdEditor-BdxhCoW9.js → BirdEditor-BNzrfSqX.js} +1 -1
  45. package/dist-embed-sighting-editor/{BirdFlock-DCbrukNp.js → BirdFlock-iSovVEZd.js} +1 -1
  46. package/dist-embed-sighting-editor/{BodyEditor-DE8ZQrqe.js → BodyEditor-Bd_pKafG.js} +2 -2
  47. package/dist-embed-sighting-editor/{CaseElement-C46wM-nU.js → CaseElement-D80gHg4r.js} +3 -3
  48. package/dist-embed-sighting-editor/{CaseReportExport-UVrInf6H.js → CaseReportExport-Bv6FWPs2.js} +2 -2
  49. package/dist-embed-sighting-editor/{ContrailSystem-CDSSxouG.js → ContrailSystem-D3tXAg2r.js} +1 -1
  50. package/dist-embed-sighting-editor/{ControlPasses-CsOVa-jq.js → ControlPasses-CaVHMhEY.js} +1 -1
  51. package/dist-embed-sighting-editor/{CoverageAssessor-DWY_gJJX.js → CoverageAssessor-CTfHqAd_.js} +1 -1
  52. package/dist-embed-sighting-editor/{DroneEditor-DgeuaHdb.js → DroneEditor-BFsArPKi.js} +1 -1
  53. package/dist-embed-sighting-editor/{DroneFlight-CFztr-9j.js → DroneFlight-B96pVrY1.js} +1 -1
  54. package/dist-embed-sighting-editor/{DroneParameters-CHmDmRoC.js → DroneParameters-DW-enQUo.js} +1 -1
  55. package/dist-embed-sighting-editor/{Flightradar24Provider-e6_3o9Jf.js → Flightradar24Provider-CBGkjw03.js} +1 -1
  56. package/dist-embed-sighting-editor/GLTFLoader-CrRPu-Pt.js +1 -0
  57. package/dist-embed-sighting-editor/{GenerativeKitMessages-CmqG-T2c.js → GenerativeKitMessages-DmeZ_YZO.js} +1 -1
  58. package/dist-embed-sighting-editor/{GeoExportTexts-Wjc5YKlM.js → GeoExportTexts-Cp95Dg-h.js} +1 -1
  59. package/dist-embed-sighting-editor/{GeoJsonExport-BSPGzTbG.js → GeoJsonExport-CdadOwd2.js} +1 -1
  60. package/dist-embed-sighting-editor/{GeographicFigures-D_TfLkj9.js → GeographicFigures-Bo9rsT_L.js} +1 -1
  61. package/dist-embed-sighting-editor/{HeadlightSystem-DljWmzj5.js → HeadlightSystem-BmPfcHt1.js} +1 -1
  62. package/dist-embed-sighting-editor/{HynekAssessor-BCDwoOI9.js → HynekAssessor-nBidt6QV.js} +1 -1
  63. package/dist-embed-sighting-editor/InterviewEditorElement-CQWfYlGL.js +294 -0
  64. package/dist-embed-sighting-editor/{InterviewElement-DDa53uMq.js → InterviewElement-Ala811KB.js} +6 -2
  65. package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +3 -0
  66. package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +3 -0
  67. package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +3 -0
  68. package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +3 -0
  69. package/dist-embed-sighting-editor/{KmlExport-B46AfaoJ.js → KmlExport-DIxM5Hpx.js} +1 -1
  70. package/dist-embed-sighting-editor/{LanternEditor-CkbeitJh.js → LanternEditor-CjQVFowY.js} +1 -1
  71. package/dist-embed-sighting-editor/{LaserBeam-Ber-PT8j.js → LaserBeam-BVc8Mvhr.js} +1 -1
  72. package/dist-embed-sighting-editor/{LaunchEditor-BsvHahqK.js → LaunchEditor-Cz8Mzo4a.js} +1 -1
  73. package/dist-embed-sighting-editor/{LaunchPlume-BmPMeGMN.js → LaunchPlume-CvBhTPgN.js} +1 -1
  74. package/dist-embed-sighting-editor/{LaunchSimulation-g-ETWhEH.js → LaunchSimulation-CkZIG-3P.js} +1 -1
  75. package/dist-embed-sighting-editor/{ModelSource-DOUnBBhu.js → ModelSource-B153oeTu.js} +1 -1
  76. package/dist-embed-sighting-editor/{ModelThumbnails-TwG1snwZ.js → ModelThumbnails-BUL_OLFv.js} +1 -1
  77. package/dist-embed-sighting-editor/{ModelViewer-Y_B6eM4z.js → ModelViewer-BzBLcY9s.js} +1 -1
  78. package/dist-embed-sighting-editor/{ModuleConformance-CO1S9pa3.js → ModuleConformance-CpMYkYgb.js} +2 -2
  79. package/dist-embed-sighting-editor/{ModuleSession-VLS0tjAb.js → ModuleSession-b_pmjUfP.js} +3 -3
  80. package/dist-embed-sighting-editor/ModuleThree-B_FZVqsf.js +1 -0
  81. package/dist-embed-sighting-editor/{ModulesPanelElement--YQ0QtcW.js → ModulesPanelElement-D0gn9Z-y.js} +3 -3
  82. package/dist-embed-sighting-editor/{NearestApproach-C_8Uvp6i.js → NearestApproach-Bxo_N7a9.js} +1 -1
  83. package/dist-embed-sighting-editor/PictureRegistration-D8fDZm4v.js +1 -0
  84. package/dist-embed-sighting-editor/{PoherAssessor-DtDcuhWK.js → PoherAssessor-CEVA26zd.js} +1 -1
  85. package/dist-embed-sighting-editor/{QuestionnaireFeed-CvLtuLIH.js → QuestionnaireFeed-B0j8W4JM.js} +1 -1
  86. package/dist-embed-sighting-editor/QuestionnaireForm-lzn9MPr2.js +1 -0
  87. package/dist-embed-sighting-editor/{QuestionnaireImport-BYj5QoJS.js → QuestionnaireImport-BmcxlQBq.js} +1 -1
  88. package/dist-embed-sighting-editor/RailwaySystem-Ceb0_MVz.js +41 -0
  89. package/dist-embed-sighting-editor/{ReentryEditor-CW8H7KaA.js → ReentryEditor-BWCK2g_s.js} +1 -1
  90. package/dist-embed-sighting-editor/{ReentrySimulation-DVl__RjO.js → ReentrySimulation-B09JXMu5.js} +1 -1
  91. package/dist-embed-sighting-editor/ReferenceSystem-B15kw0uH.js +1 -0
  92. package/dist-embed-sighting-editor/{RoadMarkings-DJraHdS6.js → RoadMarkings-Dl6zVQIx.js} +1 -1
  93. package/dist-embed-sighting-editor/ScenarioReadings-DyMshXS4.js +1 -0
  94. package/dist-embed-sighting-editor/{ScenarioSweep-Ddtuo_Af.js → ScenarioSweep-ByqOTfs2.js} +1 -1
  95. package/dist-embed-sighting-editor/{SceneNames_en-p5YNYZhA.js → SceneNames_en-c5zNw0Hi.js} +1 -1
  96. package/dist-embed-sighting-editor/{SceneNames_es-DlMqYLL9.js → SceneNames_es-CDjoBwy_.js} +1 -1
  97. package/dist-embed-sighting-editor/{SceneNames_fr-lFA7hY3x.js → SceneNames_fr-CoZNmFu3.js} +1 -1
  98. package/dist-embed-sighting-editor/{SceneNames_it-CDwvX1Nw.js → SceneNames_it-CVEahBpq.js} +1 -1
  99. package/dist-embed-sighting-editor/{SearchlightEditor-BSI8hB1V.js → SearchlightEditor-BpwPOhJ6.js} +1 -1
  100. package/dist-embed-sighting-editor/SearchlightSystem-D7sdsRYn.js +1 -0
  101. package/dist-embed-sighting-editor/{SightingElement-T0x4j9Zt.js → SightingElement-Bp-t_EAF.js} +3 -3
  102. package/dist-embed-sighting-editor/{SkyLantern-Dl4yl-lc.js → SkyLantern-D6bru_e_.js} +1 -1
  103. package/dist-embed-sighting-editor/{TraceSystem-Dbu_bgfE.js → TraceSystem-Bv4kLpie.js} +2 -2
  104. package/dist-embed-sighting-editor/{UfoMessages_en-BAuHAGgq.js → UfoMessages_en-DdCKc-Ez.js} +1 -1
  105. package/dist-embed-sighting-editor/{VideoButton-C8eRmv7A.js → VideoButton-CzJg9lBG.js} +1 -1
  106. package/dist-embed-sighting-editor/{WaterSystem-DpJCe_2Q.js → WaterSystem-Bbk_RJKg.js} +2 -2
  107. package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +7 -0
  108. package/dist-embed-sighting-editor/{interviewImport-zzDGCbXd.js → interviewImport-D4P6e28u.js} +1 -1
  109. package/dist-embed-sighting-editor/{interviewJson-DngUPqK8.js → interviewJson-BJF9C-Rb.js} +1 -1
  110. package/dist-embed-sighting-editor/interviewSchema-r5bW7skq.js +1 -0
  111. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +424 -397
  112. package/dist-embed-sighting-editor/{surroundingsSources-lvh4Rw5C.js → surroundingsSources-CqL7lcmF.js} +1 -1
  113. package/dist-embed-sighting-editor/{trafficRuntime-Drx7CE9H.js → trafficRuntime-Bu3my6S4.js} +2 -2
  114. package/dist-embed-ufoathome/{AdsbLolArchiveProvider-CqedGYi5.js → AdsbLolArchiveProvider-v1sSwhN1.js} +1 -1
  115. package/dist-embed-ufoathome/{Aurora-CpZx9hQ3.js → Aurora-Dc4u2vEw.js} +1 -1
  116. package/dist-embed-ufoathome/{AuroraEditor-D2v8sWVE.js → AuroraEditor-CeLzRDPj.js} +1 -1
  117. package/dist-embed-ufoathome/{AuroraSimulation-DdSP66LD.js → AuroraSimulation-BT1CdWX5.js} +7 -2
  118. package/dist-embed-ufoathome/{BallesterGuaspAssessor-C4IktJ1l.js → BallesterGuaspAssessor-CPW-Omah.js} +1 -1
  119. package/dist-embed-ufoathome/{BeamEditor-CuW3LVO-.js → BeamEditor-BS73mBZU.js} +1 -1
  120. package/dist-embed-ufoathome/{BeamSystem-BPEYuCF4.js → BeamSystem-C5EpRhij.js} +1 -1
  121. package/dist-embed-ufoathome/{BodyEditor-COMX-T65.js → BodyEditor-BV8WwzAj.js} +1 -1
  122. package/dist-embed-ufoathome/{CaseEditorElement-C5BHP8jT.js → CaseEditorElement-HR8RFluQ.js} +64 -62
  123. package/dist-embed-ufoathome/{CaseElement-CIZvyRVi.js → CaseElement-vCbCfGOv.js} +3 -3
  124. package/dist-embed-ufoathome/{CaseReportExport-BFbswUIB.js → CaseReportExport-XLbFCkPg.js} +3 -3
  125. package/dist-embed-ufoathome/{ColumnResize-Dh6Xyspd.js → ColumnResize-CEXrq3KB.js} +6 -6
  126. package/dist-embed-ufoathome/{ControlPasses-CnL1GmT-.js → ControlPasses-CKOU_3lG.js} +1 -1
  127. package/dist-embed-ufoathome/{CoverageAssessor-CiqUEJkN.js → CoverageAssessor-BYMf3Qhv.js} +1 -1
  128. package/dist-embed-ufoathome/{Flightradar24Provider-_tNmWf11.js → Flightradar24Provider-_QPbhh5s.js} +1 -1
  129. package/dist-embed-ufoathome/{GLTFLoader-BLk8prLt.js → GLTFLoader-DQeHB-Bk.js} +1 -1
  130. package/dist-embed-ufoathome/{GeoJsonExport-DkPKk-7q.js → GeoJsonExport-Pq_pPvjK.js} +1 -1
  131. package/dist-embed-ufoathome/{GeographicFigures-l-PfHdSR.js → GeographicFigures-KII55iXE.js} +1 -1
  132. package/dist-embed-ufoathome/{HynekAssessor-BhnvqsYz.js → HynekAssessor-wCDhgIB8.js} +1 -1
  133. package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +1 -0
  134. package/dist-embed-ufoathome/InterviewEditorElement-BSwkegEp.js +294 -0
  135. package/dist-embed-ufoathome/{InterviewElement-CuRmQ0d3.js → InterviewElement-CfkDtybc.js} +6 -2
  136. package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +3 -0
  137. package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +3 -0
  138. package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +3 -0
  139. package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +3 -0
  140. package/dist-embed-ufoathome/{KmlExport-BUl3gOrw.js → KmlExport-BMNwwys8.js} +1 -1
  141. package/dist-embed-ufoathome/{LaserBeam-C7glTvQN.js → LaserBeam-B-tlAzNB.js} +1 -1
  142. package/dist-embed-ufoathome/{LaunchEditor-DvudtAzp.js → LaunchEditor-Cy5D-gwU.js} +1 -1
  143. package/dist-embed-ufoathome/{LaunchPlume-CrDBzsQe.js → LaunchPlume-D-vSb8tJ.js} +1 -1
  144. package/dist-embed-ufoathome/{LaunchSimulation-DyOA4lPb.js → LaunchSimulation-CZ8Oba00.js} +1 -1
  145. package/dist-embed-ufoathome/{ModelSource-CoT4mxTx.js → ModelSource-HSiigkeO.js} +1 -1
  146. package/dist-embed-ufoathome/{ModelThumbnails-t59SZ3Vn.js → ModelThumbnails-DWvRMmj_.js} +1 -1
  147. package/dist-embed-ufoathome/{ModelViewer-DEdruEtl.js → ModelViewer-CM7qTW8F.js} +1 -1
  148. package/dist-embed-ufoathome/{ModulesPanelElement-N-ccpGxl.js → ModulesPanelElement-DsOa2zH0.js} +2 -2
  149. package/dist-embed-ufoathome/{NearestApproach-Do15yfeg.js → NearestApproach-PAsV5RlG.js} +1 -1
  150. package/dist-embed-ufoathome/{PoherAssessor-Cs8-ZBge.js → PoherAssessor-CniYlhUl.js} +1 -1
  151. package/dist-embed-ufoathome/QuestionnaireFeed-CpZqkxlt.js +1 -0
  152. package/dist-embed-ufoathome/QuestionnaireForm-LkllpNx-.js +1 -0
  153. package/dist-embed-ufoathome/{QuestionnaireImport-Cx1dQiha.js → QuestionnaireImport-CNROmkT2.js} +1 -1
  154. package/dist-embed-ufoathome/{ReentryEditor-CJUFkVFO.js → ReentryEditor-Qax1sT82.js} +1 -1
  155. package/dist-embed-ufoathome/{ReentrySimulation-B5QcdOTq.js → ReentrySimulation-CTeCaxZl.js} +1 -1
  156. package/dist-embed-ufoathome/{ReferenceSystem-DyzOUClN.js → ReferenceSystem-CM27OCUo.js} +1 -1
  157. package/dist-embed-ufoathome/ScenarioReadings-Is3HX0n0.js +1 -0
  158. package/dist-embed-ufoathome/ScenarioSweep-BbtX26Fi.js +1 -0
  159. package/dist-embed-ufoathome/{SearchlightEditor-CPDNpfNC.js → SearchlightEditor-PuLz84pp.js} +1 -1
  160. package/dist-embed-ufoathome/SearchlightSystem-B-tHvY1M.js +1 -0
  161. package/dist-embed-ufoathome/{ShareDialogElement-CBeU9ChH.js → ShareDialogElement-EzLob2Tz.js} +105 -80
  162. package/dist-embed-ufoathome/{SightingElement-BveOM4nF.js → SightingElement--qpGoyxL.js} +2 -2
  163. package/dist-embed-ufoathome/{TraceSystem-CoHX04R3.js → TraceSystem-8XQX03MS.js} +1 -1
  164. package/dist-embed-ufoathome/{VideoButton-DNQmWtfv.js → VideoButton-WNtEngz-.js} +1 -1
  165. package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +7 -0
  166. package/dist-embed-ufoathome/interviewSchema-r5bW7skq.js +1 -0
  167. package/dist-embed-ufoathome/rr0-ufoathome.mjs +4 -4
  168. package/dist-embed-ufoathome/{surroundingsSources-C823p3dG.js → surroundingsSources-UHKGesPa.js} +1 -1
  169. package/dist-embed-ufoathome/{trafficRuntime-DtXb9B2f.js → trafficRuntime-CgY_7-NH.js} +1 -1
  170. package/package.json +1 -1
  171. package/dist-embed-interview/InterviewMessages_en-BRmuWrAg.js +0 -1
  172. package/dist-embed-interview/InterviewMessages_es-BTotimwY.js +0 -1
  173. package/dist-embed-interview/InterviewMessages_fr-DBCdGB0r.js +0 -1
  174. package/dist-embed-interview/InterviewMessages_it-B5EyMD-k.js +0 -1
  175. package/dist-embed-scene/ModuleThree-BTQgimAj.js +0 -1
  176. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +0 -1
  177. package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +0 -1
  178. package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +0 -1
  179. package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +0 -1
  180. package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +0 -1
  181. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +0 -1
  182. package/dist-embed-sighting-editor/GLTFLoader-Df-r7_lf.js +0 -1
  183. package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +0 -277
  184. package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +0 -1
  185. package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +0 -1
  186. package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +0 -1
  187. package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +0 -1
  188. package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +0 -1
  189. package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +0 -1
  190. package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +0 -1
  191. package/dist-embed-sighting-editor/RailwaySystem-eT-ZKfZl.js +0 -41
  192. package/dist-embed-sighting-editor/ReferenceSystem-DxVYO7g9.js +0 -1
  193. package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +0 -1
  194. package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +0 -1
  195. package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +0 -7
  196. package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +0 -1
  197. package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +0 -277
  198. package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +0 -1
  199. package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +0 -1
  200. package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +0 -1
  201. package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +0 -1
  202. package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +0 -1
  203. package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +0 -1
  204. package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +0 -1
  205. package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +0 -1
  206. package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +0 -1
  207. package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +0 -7
  208. package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +0 -1
@@ -0,0 +1,3 @@
1
+ const e={title:"Title",time:"When",by:"Interviewer",medium:"Medium",witness:"Witness",witnessNone:"—",summary:"Description",transcript:"Transcript",transcriptHint:"Address of the anonymised transcript file (optional)",summaryTab:"Summary",fileTab:"File",importFile:"Load a file",importFileHint:"JSON, text, WebVTT, SRT; a filled questionnaire (JSON, CSV, text) when the medium is Questionnaire: each field becomes a question and its answer",inputFileFromFile:"from your disk",inputFileFromUrl:"from an address",inputFileModeHint:"Click to give it the other way: a file of yours, or an address",inputFileLoad:"Load",saveButton:"Save",loading:"Loading the transcript…",invalid:"This text is not valid JSON yet: the interview keeps the last transcript it understood.",notATranscript:"That file is not an interview transcript (it has no segments).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Fill in the {title}: each answer is kept as the witness's words, and a question left empty stays unanswered.",source:"The questionnaire as {publisher} publishes it",other:"Other questions",required:"Asked of every witness",precise:"precise",imprecise:"imprecise",preciseHint:"Say it in your own words instead: a rough date or time, or one you are not sure of",impreciseHint:"Pick an exact date or time instead",impreciseDate:"e.g. early July 1965, a Saturday, I'm not sure of the day",impreciseTime:"e.g. around 9 pm, shortly after sunset",confidentialSealed:"Confidential: sealed for {name}, who alone can read it; it is in no file in clear.",confidentialSealedBefore:"An answer sealed for {name} has been given already: it cannot be shown again, and writing another replaces it.",confidentialNowhere:"Confidential: this case names no recipient to seal it for, so it is kept in no file.",addFile:"Add:",removeFile:"Take {name} out of the answer",sectionAnswered:"{n}/{total} answered"},feed:"Set in the observation",feedHint:"What the answers say of when, how long, the colour and where it was in the sky is set in the witness's observation, each value citing its answer",send:"Send to {name}",sendHint:"The case, with your answers and the files you gave, goes to {email}: attached by your device's sharing where it can, else saved and a message prepared for you to attach it to.",sendPrepare:"Prepare a message",sendPrepareHint:"The case, with your answers and the files you gave, is shared by your device or saved, and a message prepared for you to address and attach it to.",sendSubject:"Testimony: {title}",sendBody:`Hello,
2
+
3
+ Here is my testimony, filled in with UFO@home: the file {file} holds the {title}, my answers and the files I gave.`,sendSealed:"My confidential answers are sealed in it for {name}, who alone can read them.",sendAttach:"{file} has just been saved: please attach it to this message before sending it.",sent:"Shared by your device.",sendPrepared:"{file} is saved and a message prepared in your mail: attach the file to it before sending it.",sendFailed:"The message could not be prepared: {error}",fed:"{n} values set in the observation, each citing its answer.",fedNothing:"Nothing in the answers the observation can be given yet (date, time, duration, colour, direction, height).",unknownQuestionnaire:"The questionnaire {id} is not one this version knows: its questions are shown as the interview has them.",notAQuestionnaire:"That file holds no field of a questionnaire (a question and its answer).",loadFailed:"That transcript could not be read.",editorLabel:"Interview transcript as JSON",byHint:"RR0 people ids, separated by commas",exchangesTab:"Exchanges",exchangesEmpty:"Nothing was said yet.",redacted:"Passage removed",colon:": ",proofreadAll:"Proofread by everyone.",proofreadPending:"Not proofread yet by: {names}",play:"Play",pause:"Pause",recordings:"Recordings ({n})",recordingsTitle:"Recordings",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Offset",recordingRemove:"Remove",recordingAdd:"Add a recording",recordingAddFirst:"Give the file of the recording above first",close:"Close",noRecording:"No recording: add the audio or video file of the interview to listen to it.",redactSelection:"Take out the selection",redactedWords:"passage taken out · {n} word(s)",sealOpen:"Open with {name}",sealOpened:"Confidential, read with {name}: kept in this page only, never written.",sealFailed:"This key does not open this answer: it was sealed for another.",redactAll:"Take all out",redactRestore:"Restore",restoreAll:"Restore all",editTurn:"Edit",deleteTurn:"Delete this turn",saveTurn:"Save",cancelTurn:"Cancel",turnEditHint:"⟦ … ⟧ marks a passage taken out",selectionOnePassage:"The selection has to stay within one passage not taken out.",reviewedBy:"{name} has proofread",linkMoment:"Link to a moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Remove this link",noMoments:"The observation has no named moment yet.",redactReasonLabel:"Reason",redactReasonHint:"Said of every passage taken out next: the reader of the published interview sees it in the passage's place",redactReasons:["private life","identifying detail","off topic","recognition error"],redactReason:"taken out at proofreading",roles:{interviewer:"Interviewer",interviewee:"Interviewee",witness:"Witness",unattributed:"Voice to attribute"},transcribe:"Transcribe the recording",transcribeWith:"with",transcribeHint:"Turns the interview's recording into turns of speech, with their times. Whose each voice is stays to say, turn by turn (Who speaks), then to have proofread.",transcribeLocal:"Nothing leaves your computer. The first time, the model (about {mb} MB) is downloaded, then kept by the browser.",transcribeSends:"The recording will be sent to {name} to be transcribed.",transcribeReplaces:"The current transcript will be replaced.",transcribeNoRecording:"There is no recording of the interview yet: the button opens the window where you add it.",transcribeKey:"Key",transcribeKeyGet:"get a key",transcribeKeyHint:"Kept in memory until the page is reloaded, never stored",transcribeReading:"Reading the recording…",transcribeLoading:"Downloading the model: {loaded} of {total} MB",transcribeLoadingSoFar:"Downloading the model: {loaded} MB",transcribeSending:"Sending the recording to {name}…",transcribeWaiting:"{name} is transcribing the recording…",transcribeProgress:"Transcribing: {done} of {total}",transcribeStop:"Stop",transcribeDone:"Transcribed by {engine}. Say whose each voice is (Who speaks), then have it proofread.",transcribeStopped:"Transcription stopped: nothing was changed.",transcribeErrors:{noKey:"Type your key for this service first.",key:"The service refused the key.",rateLimited:"The service asks to wait (its quota is reached): try again later.",tooLarge:"The recording is too large to be read in the page: give its audio alone.",unsupported:"This browser cannot run the transcription.",failed:"The transcription failed: {detail}"},voiceNamed:"Voice {name}",whoSpeaks:"Who speaks…"};export{e as interviewMessages_en};
@@ -0,0 +1,3 @@
1
+ const e={title:"Título",time:"Fecha",by:"Entrevistador",medium:"Medio",witness:"Testigo",witnessNone:"—",summary:"Descripción",transcript:"Transcripción",transcriptHint:"Dirección del archivo de transcripción anonimizada (opcional)",summaryTab:"Resumen",fileTab:"Archivo",importFile:"Cargar un archivo",importFileHint:"JSON, texto, WebVTT, SRT; un cuestionario rellenado (JSON, CSV, texto) si el medio es Cuestionario: cada campo pasa a ser una pregunta y su respuesta",inputFileFromFile:"desde su disco",inputFileFromUrl:"desde una dirección",inputFileModeHint:"Pulsar para darlo de la otra forma: un archivo suyo o una dirección",inputFileLoad:"Cargar",saveButton:"Guardar",loading:"Cargando la transcripción…",invalid:"Este texto aún no es JSON válido: la entrevista conserva la última transcripción que entendió.",notATranscript:"Ese archivo no es una transcripción de entrevista (no tiene turnos de palabra).",questionnaireTab:"Cuestionario",questionnaire:{intro:"Rellene el {title}: cada respuesta se guarda con las palabras del testigo, y una pregunta dejada vacía queda sin respuesta.",source:"El cuestionario tal como lo publica {publisher}",other:"Otras preguntas",required:"Se pregunta a todo testigo",precise:"precisa",imprecise:"imprecisa",preciseHint:"Decirla mejor con sus palabras: una fecha o una hora aproximada, o de la que no está seguro",impreciseHint:"Elegir mejor una fecha o una hora exacta",impreciseDate:"p. ej. a principios de julio de 1965, un sábado, no estoy seguro del día",impreciseTime:"p. ej. hacia las 21 h, poco después de la puesta del sol",confidentialSealed:"Confidencial: sellada para {name}, el único que puede leerla; no figura en claro en ningún archivo.",confidentialSealedBefore:"Ya se dio una respuesta sellada para {name}: no puede volver a mostrarse, y escribir otra la sustituye.",confidentialNowhere:"Confidencial: este caso no nombra ningún destinatario para quien sellarla, así que no se guarda en ningún archivo.",addFile:"Añadir:",removeFile:"Quitar {name} de la respuesta",sectionAnswered:"{n}/{total} respondidas"},feed:"Pasar a la observación",feedHint:"Lo que las respuestas dicen del momento, la duración, el color y la posición en el cielo se pasa a la observación del testigo, cada valor citando su respuesta",send:"Enviar a {name}",sendHint:"El caso, con sus respuestas y los archivos que dio, va a {email}: adjunto mediante la función de compartir de su dispositivo cuando puede, si no guardado y un mensaje preparado para que lo adjunte.",sendPrepare:"Preparar un mensaje",sendPrepareHint:"El caso, con sus respuestas y los archivos que dio, se comparte desde su dispositivo o se guarda, y se prepara un mensaje para que lo dirija y lo adjunte.",sendSubject:"Testimonio: {title}",sendBody:`Hola:
2
+
3
+ Este es mi testimonio, rellenado con UFO@home: el archivo {file} contiene el {title}, mis respuestas y los archivos que adjunté.`,sendSealed:"Mis respuestas confidenciales están selladas en él para {name}, el único que puede leerlas.",sendAttach:"{file} acaba de guardarse: adjúntelo a este mensaje antes de enviarlo.",sent:"Compartido desde su dispositivo.",sendPrepared:"{file} está guardado y hay un mensaje preparado en su correo: adjunte el archivo antes de enviarlo.",sendFailed:"No se pudo preparar el mensaje: {error}",fed:"{n} valores pasados a la observación, cada uno citando su respuesta.",fedNothing:"Nada en las respuestas puede pasarse aún a la observación (fecha, hora, duración, color, dirección, altura).",unknownQuestionnaire:"El cuestionario {id} no es uno que esta versión conozca: sus preguntas se muestran tal como las tiene la entrevista.",notAQuestionnaire:"Ese archivo no contiene ningún campo de cuestionario (una pregunta y su respuesta).",loadFailed:"No se pudo leer esa transcripción.",editorLabel:"Transcripción de la entrevista en JSON",byHint:"Identificadores de personas de RR0, separados por comas",exchangesTab:"Intercambios",exchangesEmpty:"Todavía no se ha dicho nada.",redacted:"Pasaje eliminado",colon:": ",proofreadAll:"Revisado por todos.",proofreadPending:"Aún no revisado por: {names}",play:"Reproducir",pause:"Pausa",recordings:"Grabaciones ({n})",recordingsTitle:"Grabaciones",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Vídeo",recordingFile:"Archivo",recordingOffset:"Desfase",recordingRemove:"Quitar",recordingAdd:"Añadir una grabación",recordingAddFirst:"Indique primero el archivo de la grabación de arriba",close:"Cerrar",noRecording:"Sin grabación: añada el archivo de audio o vídeo de la entrevista para poder escucharla.",redactSelection:"Retirar la selección",redactedWords:"pasaje retirado · {n} palabra(s)",sealOpen:"Abrir con {name}",sealOpened:"Confidencial, leída con {name}: se guarda solo en esta página, nunca se escribe.",sealFailed:"Esta clave no abre esta respuesta: se selló para otra.",redactAll:"Retirar todo",redactRestore:"Restablecer",restoreAll:"Restablecer todo",editTurn:"Modificar",deleteTurn:"Eliminar este turno de palabra",saveTurn:"Guardar",cancelTurn:"Cancelar",turnEditHint:"⟦ … ⟧ marca un pasaje retirado",selectionOnePassage:"La selección debe caber en un solo pasaje no retirado.",reviewedBy:"{name} ha revisado",linkMoment:"Vincular a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Quitar este vínculo",noMoments:"La observación aún no tiene momentos con nombre.",redactReasonLabel:"Motivo",redactReasonHint:"Se dice de cada pasaje retirado a continuación: el lector de la entrevista publicada lo ve en lugar del pasaje",redactReasons:["vida privada","dato que identifica","fuera de tema","error de reconocimiento"],redactReason:"retirado en la revisión",roles:{interviewer:"Entrevistador",interviewee:"Entrevistado",witness:"Testigo",unattributed:"Voz por atribuir"},transcribe:"Transcribir la grabación",transcribeWith:"con",transcribeHint:"Convierte la grabación de la entrevista en turnos de palabra, con sus tiempos. De quién es cada voz queda por decir, turno por turno (Quién habla), y luego por hacer revisar.",transcribeLocal:"Nada sale de su ordenador. La primera vez, el modelo (unos {mb} MB) se descarga y el navegador lo conserva.",transcribeSends:"La grabación se enviará a {name} para ser transcrita.",transcribeReplaces:"La transcripción actual será reemplazada.",transcribeNoRecording:"La entrevista aún no tiene grabación: el botón abre la ventana donde añadirla.",transcribeKey:"Clave",transcribeKeyGet:"obtener una clave",transcribeKeyHint:"Se guarda en memoria hasta que se recarga la página, nunca se almacena",transcribeReading:"Leyendo la grabación…",transcribeLoading:"Descargando el modelo: {loaded} de {total} MB",transcribeLoadingSoFar:"Descargando el modelo: {loaded} MB",transcribeSending:"Enviando la grabación a {name}…",transcribeWaiting:"{name} transcribe la grabación…",transcribeProgress:"Transcribiendo: {done} de {total}",transcribeStop:"Detener",transcribeDone:"Transcrito por {engine}. Indique de quién es cada voz (Quién habla) y luego hágalo revisar.",transcribeStopped:"Transcripción detenida: no se ha cambiado nada.",transcribeErrors:{noKey:"Escriba primero su clave para este servicio.",key:"El servicio rechazó la clave.",rateLimited:"El servicio pide esperar (cuota alcanzada): inténtelo más tarde.",tooLarge:"La grabación es demasiado grande para leerse en la página: proporcione solo su audio.",unsupported:"Este navegador no puede ejecutar la transcripción.",failed:"La transcripción ha fallado: {detail}"},voiceNamed:"Voz {name}",whoSpeaks:"Quién habla…"};export{e as interviewMessages_es};
@@ -0,0 +1,3 @@
1
+ const e={title:"Titre",time:"Date",by:"Enquêteur",medium:"Moyen",witness:"Témoin",witnessNone:"—",summary:"Description",transcript:"Transcription",transcriptHint:"Adresse du fichier de transcription anonymisée (facultative)",summaryTab:"Résumé",fileTab:"Fichier",importFile:"Charger un fichier",importFileHint:"JSON, texte, WebVTT, SRT ; un questionnaire rempli (JSON, CSV, texte) si le moyen est Questionnaire : chaque champ devient une question et sa réponse",inputFileFromFile:"depuis votre disque",inputFileFromUrl:"depuis une adresse",inputFileModeHint:"Cliquer pour le donner autrement : un fichier à vous, ou une adresse",inputFileLoad:"Charger",saveButton:"Sauver",loading:"Chargement de la transcription…",invalid:"Ce texte n'est pas encore du JSON valide : l'interview garde la dernière transcription qu'elle a comprise.",notATranscript:"Ce fichier n'est pas une transcription d'interview (il n'a pas de tours de parole).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Remplissez le {title} : chaque réponse est gardée dans les mots du témoin, et une question laissée vide reste sans réponse.",source:"Le questionnaire tel que le publie {publisher}",other:"Autres questions",required:"Demandé à tout témoin",precise:"précise",imprecise:"imprécise",preciseHint:"La dire plutôt dans vos mots : une date ou une heure approximative, ou dont vous n'êtes pas sûr",impreciseHint:"Choisir plutôt une date ou une heure exacte",impreciseDate:"ex. début juillet 1965, un samedi, je ne suis pas sûr du jour",impreciseTime:"ex. vers 21 h, peu après le coucher du soleil",confidentialSealed:"Confidentielle : scellée pour {name}, qui seul peut la lire ; elle ne figure en clair dans aucun fichier.",confidentialSealedBefore:"Une réponse scellée pour {name} a déjà été donnée : elle ne peut plus être affichée, et en écrire une autre la remplace.",confidentialNowhere:"Confidentielle : ce dossier ne nomme aucun destinataire pour qui la sceller, elle n'est donc gardée dans aucun fichier.",addFile:"Ajouter :",removeFile:"Retirer {name} de la réponse",sectionAnswered:"{n}/{total} répondues"},feed:"Reporter dans l'observation",feedHint:"Ce que les réponses disent du moment, de la durée, de la couleur et de la position dans le ciel est reporté dans l'observation du témoin, chaque valeur citant sa réponse",send:"Envoyer à {name}",sendHint:"Le dossier, avec vos réponses et les fichiers que vous avez donnés, part à {email} : joint par le partage de votre appareil quand il le peut, sinon enregistré et un message préparé pour que vous l'y joigniez.",sendPrepare:"Préparer un message",sendPrepareHint:"Le dossier, avec vos réponses et les fichiers que vous avez donnés, est partagé par votre appareil ou enregistré, et un message préparé pour que vous l'adressiez et l'y joigniez.",sendSubject:"Témoignage : {title}",sendBody:`Bonjour,
2
+
3
+ Voici mon témoignage, rempli avec UFO@home : le fichier {file} contient le {title}, mes réponses et les fichiers que j'ai joints.`,sendSealed:"Mes réponses confidentielles y sont scellées pour {name}, qui seul peut les lire.",sendAttach:"{file} vient d'être enregistré : joignez-le à ce message avant de l'envoyer.",sent:"Partagé par votre appareil.",sendPrepared:"{file} est enregistré et un message est préparé dans votre messagerie : joignez-y ce fichier avant de l'envoyer.",sendFailed:"Le message n'a pas pu être préparé : {error}",fed:"{n} valeurs reportées dans l'observation, chacune citant sa réponse.",fedNothing:"Rien dans les réponses ne peut encore être reporté dans l'observation (date, heure, durée, couleur, direction, hauteur).",unknownQuestionnaire:"Le questionnaire {id} n'est pas connu de cette version : ses questions sont montrées telles que l'interview les a.",notAQuestionnaire:"Ce fichier ne contient aucun champ de questionnaire (une question et sa réponse).",loadFailed:"Cette transcription n'a pas pu être lue.",editorLabel:"Transcription de l'interview en JSON",byHint:"Identifiants de personnes RR0, séparés par des virgules",exchangesTab:"Échanges",exchangesEmpty:"Rien n'a encore été dit.",redacted:"Passage retiré",colon:" : ",proofreadAll:"Relu par tous les participants.",proofreadPending:"Pas encore relu par : {names}",play:"Lecture",pause:"Pause",recordings:"Enregistrements ({n})",recordingsTitle:"Enregistrements",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Vidéo",recordingFile:"Fichier",recordingOffset:"Décalage",recordingRemove:"Retirer",recordingAdd:"Ajouter un enregistrement",recordingAddFirst:"Donnez d'abord le fichier de l'enregistrement ci-dessus",close:"Fermer",noRecording:"Aucun enregistrement : ajoutez le fichier audio ou vidéo de l'entretien pour pouvoir l'écouter.",redactSelection:"Retirer la sélection",redactedWords:"passage retiré · {n} mot(s)",sealOpen:"Ouvrir avec {name}",sealOpened:"Confidentielle, lue avec {name} : gardée dans cette page seulement, jamais écrite.",sealFailed:"Cette clé n'ouvre pas cette réponse : elle a été scellée pour une autre.",redactAll:"Retirer tout",redactRestore:"Rétablir",restoreAll:"Rétablir tout",editTurn:"Modifier",deleteTurn:"Supprimer ce tour de parole",saveTurn:"Enregistrer",cancelTurn:"Annuler",turnEditHint:"⟦ … ⟧ marque un passage retiré",selectionOnePassage:"La sélection doit tenir dans un seul passage non retiré.",reviewedBy:"{name} a relu",linkMoment:"Relier à un moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Retirer ce lien",noMoments:"L'observation n'a pas encore de moment nommé.",redactReasonLabel:"Raison",redactReasonHint:"Dite de chaque passage retiré ensuite : le lecteur de l'interview publiée la voit à la place du passage",redactReasons:["vie privée","détail qui identifie","hors sujet","erreur de reconnaissance"],redactReason:"retiré à la relecture",roles:{interviewer:"Intervieweur",interviewee:"Interviewé",witness:"Témoin",unattributed:"Voix à attribuer"},transcribe:"Transcrire l'enregistrement",transcribeWith:"avec",transcribeHint:"Fait de l'enregistrement de l'entretien des tours de parole, avec leurs instants. À qui est chaque voix reste à dire, tour par tour (Qui parle), puis à faire relire.",transcribeLocal:"Rien ne quitte votre ordinateur. La première fois, le modèle (environ {mb} Mo) est téléchargé, puis gardé par le navigateur.",transcribeSends:"L'enregistrement sera envoyé à {name} pour être transcrit.",transcribeReplaces:"La transcription actuelle sera remplacée.",transcribeNoRecording:"L'interview n'a pas encore d'enregistrement : le bouton ouvre la fenêtre où l'ajouter.",transcribeKey:"Clé",transcribeKeyGet:"obtenir une clé",transcribeKeyHint:"Gardée en mémoire jusqu'au rechargement de la page, jamais enregistrée",transcribeReading:"Lecture de l'enregistrement…",transcribeLoading:"Téléchargement du modèle : {loaded} sur {total} Mo",transcribeLoadingSoFar:"Téléchargement du modèle : {loaded} Mo",transcribeSending:"Envoi de l'enregistrement à {name}…",transcribeWaiting:"{name} transcrit l'enregistrement…",transcribeProgress:"Transcription : {done} sur {total}",transcribeStop:"Arrêter",transcribeDone:"Transcrit par {engine}. Dites à qui est chaque voix (Qui parle), puis faites relire.",transcribeStopped:"Transcription arrêtée : rien n'a été changé.",transcribeErrors:{noKey:"Saisissez d'abord votre clé pour ce service.",key:"Le service a refusé la clé.",rateLimited:"Le service demande d'attendre (quota atteint) : réessayez plus tard.",tooLarge:"L'enregistrement est trop gros pour être lu dans la page : donnez-en l'audio seul.",unsupported:"Ce navigateur ne peut pas faire tourner la transcription.",failed:"La transcription a échoué : {detail}"},voiceNamed:"Voix {name}",whoSpeaks:"Qui parle…"};export{e as interviewMessages_fr};
@@ -0,0 +1,3 @@
1
+ const e={title:"Titolo",time:"Data",by:"Intervistatore",medium:"Mezzo",witness:"Testimone",witnessNone:"—",summary:"Descrizione",transcript:"Trascrizione",transcriptHint:"Indirizzo del file di trascrizione anonimizzata (facoltativo)",summaryTab:"Riepilogo",fileTab:"File",importFile:"Carica un file",importFileHint:"JSON, testo, WebVTT, SRT; un questionario compilato (JSON, CSV, testo) se il mezzo è Questionario: ogni campo diventa una domanda e la sua risposta",inputFileFromFile:"dal proprio disco",inputFileFromUrl:"da un indirizzo",inputFileModeHint:"Fare clic per darlo nell'altro modo: un proprio file o un indirizzo",inputFileLoad:"Carica",saveButton:"Salva",loading:"Caricamento della trascrizione…",invalid:"Questo testo non è ancora JSON valido: l'intervista conserva l'ultima trascrizione che ha capito.",notATranscript:"Quel file non è una trascrizione di intervista (non ha turni di parola).",questionnaireTab:"Questionario",questionnaire:{intro:"Compili il {title}: ogni risposta è conservata con le parole del testimone, e una domanda lasciata vuota resta senza risposta.",source:"Il questionario come lo pubblica {publisher}",other:"Altre domande",required:"Chiesto a ogni testimone",precise:"precisa",imprecise:"imprecisa",preciseHint:"Dirla piuttosto con parole sue: una data o un'ora approssimativa, o di cui non è sicuro",impreciseHint:"Scegliere piuttosto una data o un'ora esatta",impreciseDate:"es. inizio luglio 1965, un sabato, non sono sicuro del giorno",impreciseTime:"es. verso le 21, poco dopo il tramonto",confidentialSealed:"Riservata: sigillata per {name}, l'unico che può leggerla; non compare in chiaro in nessun file.",confidentialSealedBefore:"Una risposta sigillata per {name} è già stata data: non può più essere mostrata, e scriverne un'altra la sostituisce.",confidentialNowhere:"Riservata: questo caso non nomina alcun destinatario per cui sigillarla, quindi non è conservata in nessun file.",addFile:"Aggiungere:",removeFile:"Togliere {name} dalla risposta",sectionAnswered:"{n}/{total} con risposta"},feed:"Riporta nell'osservazione",feedHint:"Ciò che le risposte dicono del momento, della durata, del colore e della posizione nel cielo è riportato nell'osservazione del testimone, ogni valore citando la sua risposta",send:"Inviare a {name}",sendHint:"Il caso, con le sue risposte e i file forniti, va a {email}: allegato tramite la condivisione del dispositivo quando possibile, altrimenti salvato e un messaggio preparato perché lo alleghi.",sendPrepare:"Preparare un messaggio",sendPrepareHint:"Il caso, con le sue risposte e i file forniti, è condiviso dal dispositivo o salvato, e un messaggio è preparato perché lo indirizzi e lo alleghi.",sendSubject:"Testimonianza: {title}",sendBody:`Buongiorno,
2
+
3
+ ecco la mia testimonianza, compilata con UFO@home: il file {file} contiene il {title}, le mie risposte e i file che ho allegato.`,sendSealed:"Le mie risposte riservate vi sono sigillate per {name}, l'unico che può leggerle.",sendAttach:"{file} è appena stato salvato: lo alleghi a questo messaggio prima di inviarlo.",sent:"Condiviso dal dispositivo.",sendPrepared:"{file} è salvato e un messaggio è pronto nella sua posta: alleghi il file prima di inviarlo.",sendFailed:"Non è stato possibile preparare il messaggio: {error}",fed:"{n} valori riportati nell'osservazione, ciascuno citando la sua risposta.",fedNothing:"Nulla nelle risposte può ancora essere riportato nell'osservazione (data, ora, durata, colore, direzione, altezza).",unknownQuestionnaire:"Il questionario {id} non è noto a questa versione: le sue domande sono mostrate come le ha l'intervista.",notAQuestionnaire:"Quel file non contiene alcun campo di questionario (una domanda e la sua risposta).",loadFailed:"Impossibile leggere quella trascrizione.",editorLabel:"Trascrizione dell'intervista in JSON",byHint:"Identificatori di persone RR0, separati da virgole",exchangesTab:"Scambi",exchangesEmpty:"Non è stato ancora detto nulla.",redacted:"Passaggio rimosso",colon:": ",proofreadAll:"Rivisto da tutti.",proofreadPending:"Non ancora rivisto da: {names}",play:"Riproduci",pause:"Pausa",recordings:"Registrazioni ({n})",recordingsTitle:"Registrazioni",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Scarto",recordingRemove:"Rimuovi",recordingAdd:"Aggiungi una registrazione",recordingAddFirst:"Indichi prima il file della registrazione qui sopra",close:"Chiudi",noRecording:"Nessuna registrazione: aggiungi il file audio o video dell'intervista per poterla ascoltare.",redactSelection:"Rimuovi la selezione",redactedWords:"passaggio rimosso · {n} parola/e",sealOpen:"Aprire con {name}",sealOpened:"Riservata, letta con {name}: conservata solo in questa pagina, mai scritta.",sealFailed:"Questa chiave non apre questa risposta: è stata sigillata per un'altra.",redactAll:"Rimuovi tutto",redactRestore:"Ripristina",restoreAll:"Ripristina tutto",editTurn:"Modifica",deleteTurn:"Elimina questo turno",saveTurn:"Salva",cancelTurn:"Annulla",turnEditHint:"⟦ … ⟧ indica un passaggio rimosso",selectionOnePassage:"La selezione deve restare in un solo passaggio non rimosso.",reviewedBy:"{name} ha riletto",linkMoment:"Collega a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Rimuovi questo collegamento",noMoments:"L'osservazione non ha ancora momenti con nome.",redactReasonLabel:"Motivo",redactReasonHint:"Detto di ogni passaggio rimosso in seguito: il lettore dell'intervista pubblicata lo vede al posto del passaggio",redactReasons:["vita privata","dettaglio che identifica","fuori tema","errore di riconoscimento"],redactReason:"rimosso in rilettura",roles:{interviewer:"Intervistatore",interviewee:"Intervistato",witness:"Testimone",unattributed:"Voce da attribuire"},transcribe:"Trascrivi la registrazione",transcribeWith:"con",transcribeHint:"Trasforma la registrazione dell'intervista in turni di parola, con i loro tempi. Di chi sia ogni voce resta da dire, turno per turno (Chi parla), e poi da far rileggere.",transcribeLocal:"Nulla lascia il tuo computer. La prima volta il modello (circa {mb} MB) viene scaricato e poi conservato dal browser.",transcribeSends:"La registrazione sarà inviata a {name} per essere trascritta.",transcribeReplaces:"La trascrizione attuale sarà sostituita.",transcribeNoRecording:"L'intervista non ha ancora una registrazione: il pulsante apre la finestra dove aggiungerla.",transcribeKey:"Chiave",transcribeKeyGet:"ottieni una chiave",transcribeKeyHint:"Tenuta in memoria fino al ricaricamento della pagina, mai salvata",transcribeReading:"Lettura della registrazione…",transcribeLoading:"Download del modello: {loaded} di {total} MB",transcribeLoadingSoFar:"Download del modello: {loaded} MB",transcribeSending:"Invio della registrazione a {name}…",transcribeWaiting:"{name} trascrive la registrazione…",transcribeProgress:"Trascrizione: {done} di {total}",transcribeStop:"Interrompi",transcribeDone:"Trascritto da {engine}. Indica di chi è ogni voce (Chi parla), poi fai rileggere.",transcribeStopped:"Trascrizione interrotta: non è stato cambiato nulla.",transcribeErrors:{noKey:"Inserisci prima la tua chiave per questo servizio.",key:"Il servizio ha rifiutato la chiave.",rateLimited:"Il servizio chiede di attendere (quota raggiunta): riprova più tardi.",tooLarge:"La registrazione è troppo grande per essere letta nella pagina: fornisci solo il suo audio.",unsupported:"Questo browser non può eseguire la trascrizione.",failed:"La trascrizione non è riuscita: {detail}"},voiceNamed:"Voce {name}",whoSpeaks:"Chi parla…"};export{e as interviewMessages_it};
@@ -1,11 +1,11 @@
1
- class C extends Error{}class ne{constructor(t){this.name=t}validate(t){return!0}}class vn extends ne{min;max;constructor(t,e,n){super(t),this.min=e,this.max=n}validate(t){if(typeof t!="number")throw new C(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new C(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class N{name;min;max;duration;subUnit;validator;constructor(t,e,n,r,o=new vn(t,e,n)){this.name=t,this.min=e,this.max=n,this.subUnit=r,this.duration=r?(r.max-r.min+1)*r.duration:1,this.validator=o}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class ye{millisecond;second;minute;hour;day;month;year}class Un extends ye{}class An extends Un{millisecond=new N("millisecond",0,999,void 0);second=new N("second",0,59,this.millisecond);minute=new N("minute",0,59,this.second);hour=new N("hour",0,23,this.minute);day=new N("day",1,31,this.hour);month=new N("month",1,12,this.day);year=new N("year",0,9999,this.month)}const l=new An;class kn extends vn{constructor(t=1,e=12){super("month",t,e)}}class gt extends N{static Month28=new gt(28);static Month29=new gt(29);static ThirtyDays=new gt(30);static ThirtyOneDays=new gt(31);constructor(t,e=new kn(1,t)){super("month",1,t,l.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new C("Unsupported month",t,e)}}}class H{static instance=new H;render(t){return t.value.toString()}}class I{unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new ne(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=H.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class d{static#t=new Map;static register(t,e){d.#t.set(t,e)}static get(t){const e=d.#t.get(t);if(!e)throw new C(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class bt extends I{constructor(t=new Date().getFullYear(),e=l.year){super(t,e)}static fromString(t,e=d.get(bt)){return new bt(e.parse(t))}}class W extends H{static default=new W("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class Gt extends I{constructor(t=new Date().getMonth()+1,e=l.month){super(t,e)}static fromString(t,e=d.get(Gt)){return new Gt(e.parse(t))}toString(t=W.default){return super.toString(t)}}class xt extends I{constructor(t=new Date().getDate(),e=l.day){super(t,e)}static fromString(t,e=d.get(xt)){const n=e.parse(t);return new xt(n)}toString(t=W.default){return super.toString(t)}}class Nt extends I{constructor(t=new Date().getHours(),e=l.hour){super(t,e)}static fromString(t,e=d.get(Nt)){return new Nt(e.parse(t))}toString(t=W.default){return super.toString(t)}}class Et extends I{constructor(t=new Date().getMinutes(),e=l.minute){super(t,e)}static fromString(t,e=d.get(Et)){return new Et(e.parse(t))}toString(t=W.default){return super.toString(t)}}class Tt extends I{constructor(t=new Date().getSeconds(),e=l.second){super(t,e)}static fromString(t,e=d.get(Tt)){return new Tt(e.parse(t),l.second)}toString(t=W.default){return super.toString(t)}}class ct extends I{static renderer=new W("0",3);constructor(t,e=l.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=ct.renderer){return super.toString(t)}}class zn{render(t){return t.toString()}}class Cn extends zn{render(t){const e=t.value,n=Math.abs(e),r=Math.floor(n/60),o=n%60;if(r===0&&o===0)return"Z";{const a=e<0?"-":"+",u=r.toString().padStart(2,"0"),p=o>0?":"+o.toString().padEnd(2,"0"):"";return a+u+p}}}class ut{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=d.get(ut),n=void 0){const r=e.parse(t,n);return new ut(r)}toString(t=new Cn){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class V{static timeshift(t,e){return t+(V.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:n,day:r}=t,o=t.hour??12;if(![e,n,r].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const a=V.rule(e);if(!a)return!1;const u=V.rank(n,r,o);return u>=V.rank(a.start.month,a.start.day,2)&&u<V.rank(a.end.month,a.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:V.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:V.sunday(t,3,2)},end:{month:11,day:V.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:V.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:V.sunday(t,4,-1)},end:e}}static sunday(t,e,n){const r=new Date(Date.UTC(2e3,e-1,1));r.setUTCFullYear(t);const o=1+(7-r.getUTCDay())%7;if(n>0)return o+7*(n-1);const a=[31,V.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=o;for(;u+7<=a;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,n){return(t*100+e)*100+n}}const Bn={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},qn={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},Hn={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},Yn={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},Xn={name:"PT",timeshift:s=>V.timeshift(-480,s),title:"Pacific Time (US)"},Wn={name:"MT",timeshift:s=>V.timeshift(-420,s),title:"Mountain Time (US)"},Jn={name:"CT",timeshift:s=>V.timeshift(-360,s),title:"Central Time (US)"},Kn={name:"ET",timeshift:s=>V.timeshift(-300,s),title:"Eastern Time (US)"},On={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},Zn={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Qn={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Dn={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},Pn={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},Ln={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},_n={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},tr={name:"Z",timeshift:"Z",title:"UTC"},er={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},nr={name:"BST",timeshift:"+01",title:"British Summer Time"},rr={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},sr={name:"CET",timeshift:"+01",title:"Central European Time"},or={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},ir={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},ar={name:"BJT",timeshift:"+08",title:"Beijing Time"},ur={name:"CST",timeshift:"-06",title:"Central Standard Time"},cr={name:"JST",timeshift:"+09",title:"Japan Standard Time"},mr={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},dr={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},pr={name:"LST",timeshift:"?",title:"Local Sideral Time"},$e=[Ln,mr,Pn,ar,nr,ur,Zn,sr,rr,Jn,On,Dn,Qn,Kn,er,ir,cr,pr,Hn,or,Yn,Wn,dr,qn,Bn,Xn,_n,tr];class re{static instance=new re;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const n=[];t.hour&&n.push(this.renderComponent(t,"hour")),t.minute&&n.push(this.renderComponent(t,"minute")),t.second&&n.push(this.renderSecond(t));const r=e.join("-"),o=t.timeshift?t.timeshift.toString():"",a=n.join(":")+o;return r+(a.length>0?"T"+a:"")}}class mt extends C{constructor(t="method is abstract"){super(t)}}class be{units;constructor(t){this.units=t}newYear(t){throw new mt}newMonth(t){throw new mt}newDay(t){throw new mt}newHour(t){throw new mt}newMinute(t){throw new mt}newSecond(t){throw new mt}}class hr extends ye{millisecond=new N("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new N("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new N("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new N("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new N("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Dt=new hr;class se{static instance=new se;render(t){const e=q.toSpec(t);let n="P";const r=e.years;r&&(n+=r.toString()+"Y");const o=e.months;o&&(n+=o.toString(H.instance)+"MM");const a=e.days;a&&(n+=a.toString(H.instance)+"D");const u=e.hours;u&&(n+=u.toString(H.instance)+"H");const p=e.minutes;p&&(n+=p.toString(H.instance)+"M");const c=e.seconds;return c&&(n+=c.toString(H.instance)+"S"),n}}class q extends I{constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*l.year.duration:0)+(t.months?t.months*l.month.duration:0)+(t.days?t.days*l.day.duration:0)+(t.hours?t.hours*l.hour.duration:0)+(t.minutes?t.minutes*l.minute.duration:0)+(t.seconds?t.seconds*l.second.duration:0)},new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=fr){let n=typeof t=="number"?t:t.value;const r=n>0?1:-1;n=Math.abs(n);const o={},a=n/l.year.duration,u=Math.floor(a);u>0&&(o.years=e.newYear(r*u),n-=u*l.year.duration);const p=n/l.month.duration,c=Math.floor(p);c>0&&(o.months=e.newMonth(r*c),n-=c*l.month.duration);const f=n/l.day.duration,m=Math.floor(f);m>0&&(o.days=e.newDay(r*m),n-=m*l.day.duration);const b=n/l.hour.duration,g=Math.floor(b);g>0&&(o.hours=e.newHour(r*g),n-=g*l.hour.duration);const G=n/l.minute.duration,S=Math.floor(G);S>0&&(o.minutes=e.newMinute(r*S),n-=S*l.minute.duration);const F=n/l.second.duration,M=Math.floor(r*F);return M>0&&(o.seconds=e.newSecond(M)),o}static fromString(t,e=d.get(q)){return new q(e.parse(t))}static between(t,e){const n=e.getTime(),r=t.getTime();return new q(n-r)}toSpec(){return q.toSpec(this)}toString(t=se.instance){return t.render(this)}}class $n extends be{constructor(t){super(t)}newYear(t){return new bt(t,this.units.year)}newMonth(t){return new Gt(t,this.units.month)}newDay(t){return new xt(t,this.units.day)}newHour(t){return new Nt(t,this.units.hour)}newMinute(t){return new Et(t,this.units.minute)}newSecond(t){return new Tt(t,this.units.second)}newMillisecond(t){return new ct(t,this.units.millisecond)}newTimeshift(t){return new ut(typeof t=="number"?t:t.value)}}const lr=new $n(l),fr=new $n(Dt);class R{#t;#e;#n;#r;#s;#o;#i;#a;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:R.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof I?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof I?t:this.factory.newMonth(t)}get day(){return this.#n}set day(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newDay(t):!t||t.start||t instanceof I?t:this.factory.newDay(t)}get hour(){return this.#r}set hour(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newHour(t):!t||t.start||t instanceof I?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof I?t:this.factory.newMinute(t)}get second(){return this.#o}set second(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e?this.factory.newSecond(t):!t||t.start||t instanceof I?t:this.factory.newSecond(t)}get millisecond(){return this.#i}set millisecond(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof I)?this.factory.newMillisecond(t):t}get timeshift(){return this.#a}set timeshift(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e||t&&!(t instanceof ut)?this.factory.newTimeshift(t):t}get factory(){return lr}static fromString(t,e=d.get(R)){const{year:n,month:r,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:f}=e.parse(t);return new R({year:n,month:r,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:f})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new R({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return R.fromString(n)}#u(t){if(this.constructor.name!==t.constructor.name)throw new ne(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new q(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new R(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=re.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const n=this.month?.toSpec();n&&(t.month=n);const r=this.day?.toSpec();r&&(t.day=r);const o=this.hour?.toSpec();o&&(t.hour=o);const a=this.minute?.toSpec();a&&(t.minute=a);const u=this.second?.toSpec();u&&(t.second=u);const p=this.millisecond?.toSpec();p&&(t.millisecond=p);const c=this.timeshift?.toSpec();return c&&(t.timeshift=c),t}toJSON(){return this.toSpec()}}class Ge{static instance=new Ge;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class $t{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof q))throw new C("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof q))throw new C("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=d.get($t)){const{start:n,end:r}=e.parse(t);return new $t(n,r)}toString(t=Ge.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class Pt extends H{static instance=new Pt(W.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class X extends I{#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=Pt.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class Rn extends An{year=new N("year",-9999,9999,this.month);yearExtended=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const _t=new Rn;class nt extends X{constructor(t,e=_t.year){super(t,e)}static fromString(t,e=_t.year,n=d.get(nt)){const r=n.parse(t),o=r.value.start;if(t.startsWith("Y")&&(e=_t.yearExtended),o!==void 0){const a=new nt(Object.assign({...r},{value:Math.max(o,e.min)})),u=new nt(Object.assign({...r},{value:Math.min(r.value.end,e.max)}));return{start:a,end:u}}else return new nt(r,e)}}class Fn extends ne{monthValidator=new kn;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class rt extends X{constructor(t,e=new N(l.month.name,1,24,l.day,new Fn)){super(t,e)}static fromString(t,e=d.get(rt)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let o=l.month;const a=new rt(Object.assign({...n},{value:Math.max(r,o.min)})),u=new rt(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new rt(n)}toString(t){return super.toString(t).padStart(2,"0")}}class st extends X{constructor(t,e=l.day){super(t,e)}static fromString(t,e=d.get(st)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let o=l.day;const a=new st(Object.assign({...n},{value:Math.max(r,o.min)})),u=new st(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new st(n)}toString(t){return super.toString(t).padStart(2,"0")}}class ot extends X{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=d.get(ot)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let o=l.hour;const a=new ot(Object.assign({...n},{value:Math.max(r,o.min)})),u=new ot(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new ot(n)}}class it extends X{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=d.get(it)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.minute,a=new it(Object.assign({...n},{value:Math.max(r,o.min)})),u=new it(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new it(n)}toString(t=Pt.instance){return super.toString(t)}}class at extends X{constructor(t,e=l.second){super(t,e)}static fromString(t,e=d.get(at)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.second,a=new at(Object.assign({...n},{value:Math.max(r,o.min)})),u=new at(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new at(n)}}class ht extends ut{static fromString(t,e=d.get(ht),n=void 0){return new ht(e.parse(t,n))}}class Vn extends be{constructor(t){super(t)}newYear(t){return new nt(t,this.units.year)}newMonth(t){return new rt(t,this.units.month)}newDay(t){return new st(t,this.units.day)}newHour(t){return new ot(t,this.units.hour)}newMinute(t){return new it(t,this.units.minute)}newSecond(t){return new at(t,this.units.second)}newMillisecond(t){return new ct(t,this.units.millisecond)}newTimeshift(t){return new ht(typeof t=="number"?t:t.value)}}const gr=new Vn(_t),wr=new Vn(Dt);class U extends R{constructor(t){super(t)}get factory(){return gr}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new U({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=d.get(U)){const n=e.parse(t);return new U(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return U.fromString(n)}clone(){return new U(this.toSpec())}}const $=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class oe extends se{static instance=new oe;render(t){return super.render(t)}}class k extends X{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:k.getValue(t,$.year)+k.getValue(t,$.month)+k.getValue(t,$.day)+k.getValue(t,$.hour)+k.getValue(t,$.minute)+k.getValue(t,$.second),uncertain:k.getBoolean(t,$.uncertain),approximate:k.getBoolean(t,"approximate")},Dt.millisecond)}static getBoolean(t,e){return t[e]||t[$.year+"s"]?.[e]||t[$.month+"s"]?.[e]||t[$.day+"s"]?.[e]||t[$.hour+"s"]?.[e]||t[$.minute+"s"]?.[e]||t[$.second+"s"]?.[e]||!1}static getValue(t,e){let n=0,r=t[e+"s"];if(r instanceof X?r=r.value:typeof t=="number"&&(r=t),r){const o=l[e];n=r*o.duration}return n}static toSpec(t,e=wr){return{...q.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=d.get(k)){const n=e.parse(t);return new k(n)}static between(t,e){const n=e.getTime(),r=t.getTime();return new k(n-r)}toString(t=oe.instance){return super.toString(t)}toSpec(){return k.toSpec(this)}}class Rt extends $t{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=U.fromString(t)),t&&!(t instanceof U)&&!(t instanceof k))throw new C("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=U.fromString(t)),t&&!(t instanceof U)&&!(t instanceof k))throw new C("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=d.get(Rt)){const{start:n,end:r}=e.parse(t);return new Rt(n,r)}}class vt extends X{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class Sr extends Rn{year=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Se=new Sr;class K extends vt{constructor(t,e=Se.year){super(t,e)}static fromString(t,e=Se.year,n=d.get(K)){const r=n.parse(t),o=r.value.start;if(o!==void 0){const a=new K(Object.assign({...r},{value:Math.max(o,e.min)})),u=new K(Object.assign({...r},{value:Math.min(r.value.end,e.max)})),p={start:a,end:u},c=r.value.estimate;return c&&(p.estimate=c),p}else return new K(r)}}class yr extends Fn{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class O extends vt{constructor(t,e=new N(l.month.name,1,41,l.day,new yr)){super(t,e)}static fromString(t,e=d.get(O)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.month,a=new O(Object.assign({...n},{value:Math.max(r,o.min)})),u=new O(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new O(n)}toString(t){return super.toString(t).padStart(2,"0")}}class Z extends vt{constructor(t,e=l.day){super(t,e)}static fromString(t,e=d.get(Z)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.day,a=new Z(Object.assign({...n},{value:Math.max(r,o.min)})),u=new Z(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new Z(n)}toString(t){return super.toString(t).padStart(2,"0")}}class Q extends vt{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=d.get(Q)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.hour,a=new Q(Object.assign({...n},{value:Math.max(r,o.min)})),u=new Q(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new Q(n)}}class D extends vt{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=d.get(D)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const o=l.minute,a=new D(Object.assign({...n},{value:Math.max(r,o.min)})),u=new D(Object.assign({...n},{value:Math.min(n.value.end,o.max)}));return{start:a,end:u}}else return new D(n)}}class P extends vt{constructor(t,e=l.second){super(t,e)}static fromString(t,e=l.second,n=d.get(P)){const r=n.parse(t),o=r.value.start;if(o!==void 0){const a=new P(Object.assign({...r},{value:Math.max(o,e.min)})),u=new P(Object.assign({...r},{value:Math.min(r.value.end,e.max)}));return{start:a,end:u}}else return new P(r,e)}}class In extends ht{}class br extends Pt{qualifier(){return""}}class tt extends re{static instance=new tt;static valueRenderer=new br(W.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const n=t[e],r=tt.names.slice(tt.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),o=tt.qualifier(n.uncertainComponent,n.approximateComponent),a=tt.qualifier(n.uncertainGroup&&!n.uncertainComponent&&!r.some(u=>u.uncertain),n.approximateGroup&&!n.approximateComponent&&!r.some(u=>u.approximate));return o+n.toString(tt.valueRenderer)+a}}class jn extends be{constructor(t){super(t)}newYear(t){return new K(t,this.units.year)}newMonth(t){return new O(t,this.units.month)}newDay(t){return new Z(t,this.units.day)}newHour(t){return new Q(t,this.units.hour)}newMinute(t){return new D(t,this.units.minute)}newSecond(t){return new P(t,this.units.second)}newMillisecond(t){return new ct(t,this.units.millisecond)}newTimeshift(t){return new In(typeof t=="number"?t:t.value)}}const Gr=new jn(Se),xr=new jn(Dt);class z extends U{constructor(t){super(t)}toString(t=tt.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return Gr}static fromDate(t){return new z({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=d.get(z)){const n=e.parse(t);return new z(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return z.fromString(n)}clone(){return new z(this.toSpec())}}class L{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new C(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new mt(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class wt extends oe{static instance=new wt;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=wt.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let n=e+"P";for(const[r,o]of wt.designators){const a=t.components[r];a&&(n+=wt.qualifier(a.uncertainComponent,a.approximateComponent)+a.value+o)}return n}}class A extends k{#t;constructor(t){if(super(typeof t=="number"?t:{value:A.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},Dt.millisecond),typeof t!="number"){const e={};for(const n of A.componentNames)t[n]instanceof X&&(e[n]=t[n]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return A.getValue(t,$.year)+A.getValue(t,$.month)+A.getValue(t,$.day)+A.getValue(t,$.hour)+A.getValue(t,$.minute)+A.getValue(t,$.second)}static toSpec(t,e=xr){const n=k.toSpec(t,e);if(t instanceof A&&t.hasQualifiedComponent)for(const r of A.componentNames)delete n[r],t.components[r]&&(n[r]=t.components[r]);return n}static fromString(t,e=d.get(A)){const n=e.parse(t);return new A(n)}static between(t,e){const n=e.getTime(),r=t.getTime();return new A(n-r)}toSpec(){return A.toSpec(this)}toString(t=wt.instance){return super.toString(t)}}class Ft extends Rt{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new C("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new C("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=d.get(Ft)){const{start:n,end:r}=e.parse(t);return new Ft(n,r)}}class te extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const n of this)if(n.toString()===e)return!0;return!1}static fromString(t,e=d.get(te)){const{exclusive:n,values:r}=e.parse(t);return new te(r,n)}}class _ extends L{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return _.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new C(`${this.name} cannot be negative`);return super.parse(t)}}class i{static groupName(...t){return t.reduce((e,n)=>e?e+n.charAt(0).toUpperCase()+n.substring(1):n,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return i.optional(i.group(t,...e))}static optionalNonCapturingGroup(...t){return i.optional(i.nonCapturingGroup(...t))}static numberGroup(t,e,n,r="\\d"){return i.group(t,`${n||""}[${r}]${e}`)}}const Re="yearValue";class Vt extends _{static format(t=""){return i.numberGroup(i.groupName(t,Re),"{4}",void 0)}constructor(){super(Re,Vt.format())}}const Fe="monthValue";class It extends _{static format(t=""){return i.numberGroup(i.groupName(t,Fe),"{1,2}",void 0)}constructor(){super(Fe,It.format())}}const Ve="dayValue";class St extends _{static format(t=""){return i.numberGroup(i.groupName(t,Ve),"{1,2}",void 0)}constructor(){super(Ve,St.format())}}const Ie="hourValue";class yt extends _{static format(t=""){return i.numberGroup(i.groupName(t,Ie),"{1,2}",void 0)}constructor(){super(Ie,yt.format())}}const je="minuteValue";class jt extends _{static format(t=""){return i.numberGroup(i.groupName(t,je),"{1,2}",void 0)}constructor(){super(je,jt.format())}}const Ue="secondValue";class Ut extends _{static format(t=""){return i.numberGroup(i.groupName(t,Ue),"{1,2}",void 0)}constructor(){super(Ue,Ut.format())}}const ze="timeshiftValue",Ce="shiftHour",Be="shiftMinute";class Mt extends L{static format(t=""){return $e.map(e=>e.name).join("|")+"|"+i.nonCapturingGroup(i.group(t+Ce,i.numberGroup(i.groupName(t,ze),"{2}","[+-]")),i.optionalNonCapturingGroup(":?",i.numberGroup(i.groupName(t,Be),"{2}",void 0)))}constructor(){super(ze,Mt.format())}parse(t,e){let n=0;const r=$e.find(o=>o.name===t);if(r){if(typeof r.timeshift=="function")try{return r.timeshift(e??{})}catch(o){throw new C(`The time zone ${t} depends on the date: ${o.message}`)}t=r.timeshift}if(t!=="Z"){const o=this.regexGroups(t),a=o[Ce];a&&(n+=parseInt(a,10)*60);const u=o[Be];u&&(n+=parseInt(u,10))}return n}}const qe="year",He="month",Ye="day",Xe="hour",We="minute",Je="second",Ke="millisecond",Oe="timeshift";class dt extends L{static format(t=""){return i.group(i.groupName(t,qe),Vt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,He),It.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,Ye),St.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,Xe),yt.format(t)),":?",i.group(i.groupName(t,We),jt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,Je),Ut.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,Ke),"\\d+"))),"\\s*",i.optionalGroup(i.groupName(t,Oe),Mt.format(t)))))}constructor(){super("date",dt.format())}parse(t){const e=this.regexGroups(t),n=e[qe],r=e[He],o=e[Ye],a=e[Xe],u=e[We],p=e[Je],c=e[Ke],f=e[Oe],m=n?new bt(Vt.read(n)):void 0,b=r?It.read(r):void 0;return{year:m,month:b?new Gt(b,gt.create(b.value,m?.value)):void 0,day:o?new xt(St.read(o)):void 0,hour:a?new Nt(yt.read(a)):void 0,minute:u?new Et(jt.read(u)):void 0,second:p?new Tt(Ut.read(p)):void 0,millisecond:c?ct.parseFraction(c):void 0,timeshift:f?ut.fromString(f,new Mt,{year:m?.value,month:b?.value,day:o?St.read(o).value:void 0,hour:a?yt.read(a).value:void 0}):void 0}}}const Ze="years",ae="months",Nr="days",Qe="hours",De="minutes",Pe="seconds";class xe extends L{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Ze),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ae),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Nr),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Qe),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,De),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Pe),"+",void 0,"\\d"),"S")}constructor(){super("duration",xe.format())}parseGroups(t){return{years:t[Ze],months:t[ae],days:t[ae],hours:t[Qe],minutes:t[De],seconds:t[Pe]}}}const ue="start",ce="end";class Ne extends L{static format=i.group(ue,dt.format(ue))+"/"+i.group(ce,dt.format(ce));constructor(){super("interval",Ne.format)}parse(t){const e=this.regexGroups(t),n=e[ue],r=e[ce];return{start:n?R.fromString(n,new dt):void 0,end:r?R.fromString(r,new dt):void 0}}}d.register(R,()=>new dt);d.register(xt,()=>new St);d.register(q,()=>new xe);d.register(Nt,()=>new yt);d.register($t,()=>new Ne);d.register(Et,()=>new jt);d.register(Gt,()=>new It);d.register(Tt,()=>new Ut);d.register(ut,()=>new Mt);d.register(bt,()=>new Vt);class E extends _{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=E.uncertainGroup+E.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return i.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(i.groupName(E.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(E.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(E.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,n){return i.numberGroup(t,e,n,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],n;return e.charAt(0)==="-"?(n=-1,e=e.substring(1)):n=1,{valueStr:e,sign:n}}parseGroups(t){const{valueStr:e,sign:n}=this.getValueAndSign(t);let r=0,o;for(o=0;o<e.length;o++){const c=e[o];if(c==="X")break;r=r*10+parseInt(c,10)}if(o<e.length){let c=1;for(let b=0;b<e.length-o;b++)c*=10;const f=n*r*c,m=f+c-1;r={start:f,end:m}}else r*=n;const a=t[i.groupName(E.uncertainAndApproximateGroup,this.name)],u=t[i.groupName(E.approximateGroup,this.name)]||a,p=t[i.groupName(E.uncertainGroup,this.name)]||a;return{value:r,approximate:u?!!u:!1,uncertain:p?!!p:!1}}}const Le="yearValue";class zt extends E{constructor(){super(Le,zt.format())}static format(t=""){return"Y?"+E.numberFormat(i.groupName(t,Le),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const _e="monthValue";class Ct extends E{static format(t=""){return E.numberFormat(i.groupName(t,_e),"{1,2}",void 0)}constructor(){super(_e,Ct.format())}}const tn="dayValue";class Bt extends E{static format(t=""){return E.numberFormat(i.groupName(t,tn),"{1,2}",void 0)}constructor(){super(tn,Bt.format())}}const en="hourValue";class qt extends E{static format(t=""){return E.numberFormat(i.groupName(t,en),"{1,2}",void 0)}constructor(){super(en,qt.format())}}const nn="minuteValue";class Ht extends E{static format(t=""){return E.numberFormat(i.groupName(t,nn),"{1,2}",void 0)}constructor(){super(nn,Ht.format())}}const rn="secondValue";class Yt extends E{static format(t=""){return E.numberFormat(i.groupName(t,rn),"{1,2}",void 0)}constructor(){super(rn,Yt.format())}}class Xt extends Mt{}class T extends L{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=T.format()){super("date",t)}static format(t=""){return i.group(i.groupName(t,T.yearGroup),zt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,T.monthGroup),Ct.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,T.dayGroup),Bt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,T.hourGroup),qt.format(t)),":",i.group(i.groupName(t,T.minuteGroup),Ht.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,T.secondGroup),Yt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,T.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,T.timeshiftGroup),Xt.format(t)))))}parseGroups(t){const e=t[T.millisecondGroup],n=e?ct.parseFraction(e):void 0,r=t[T.secondGroup],o=r?at.fromString(r,new Yt):void 0,a=t[T.minuteGroup];let u;a&&(u=it.fromString(a,new Ht),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[T.hourGroup];let c;p&&(c=ot.fromString(p,new qt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[T.dayGroup];let m;f&&(m=st.fromString(f,new Bt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const b=t[T.monthGroup];let g;b&&(g=rt.fromString(b,new Ct),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const G=t[T.yearGroup];let S;G&&(S=nt.fromString(G,void 0,new zt),S.uncertain=S.uncertain||g?.uncertain||!1,S.approximate=S.approximate||g?.approximate||!1);const F=t[T.timeshiftGroup],M=F?ht.fromString(F,new Xt,{year:S?.value,month:g?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:g,day:m,hour:c,minute:u,second:o,millisecond:n,timeshift:M}}}const sn="years",on="months",an="days",un="hours",cn="minutes",mn="seconds";class pt extends E{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,sn),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,on),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,an),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,un),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,cn),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,mn),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",pt.format())}parseGroups(t){return{years:t[sn],months:t[on],days:t[an],hours:t[un],minutes:t[cn],seconds:t[mn],uncertain:!!t[E.uncertainGroup],approximate:!!t[E.approximateGroup]}}}const Er="dates",me="start",de="end",dn="durations",pe="durationMin",he="durationMax";class Ee extends L{static format=i.group(Er,i.optionalGroup(me,i.group("openStart","\\.\\.")+"|"+T.format(me))+"/"+i.optionalGroup(de,i.group("openEnd","\\.\\.")+"|"+T.format(de)))+"|"+i.group(dn,i.group(pe,pt.format(pe))+"/"+i.group(he,pt.format(he)));constructor(t="interval",e=Ee.format){super(t,e)}parseGroups(t){let e,n;if(t[dn]){const o=t[pe];e=k.fromString(o,new pt);const a=t[he];n=k.fromString(a,new pt)}else{const o=t[me];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=U.fromString(o,new T)}const a=t[de];switch(a){case void 0:n=null;break;case"..":n=void 0;break;default:n=U.fromString(a,new T)}}return{start:e,end:n}}}d.register(U,()=>new T);d.register(st,()=>new Bt);d.register(k,()=>new pt);d.register(ot,()=>new qt);d.register(Rt,()=>new Ee);d.register(it,()=>new Ht);d.register(rt,()=>new Ct);d.register(at,()=>new Yt);d.register(ht,()=>new Xt);d.register(nt,()=>new zt);class y extends E{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=y.uncertainGroup+y.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,n){return this.qualifierFormat(i.groupName(y.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(y.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(y.uncertainAndApproximateGroup,t),"%")+E.numberFormat(t,e,n)}parseGroups(t){const e=super.parseGroups(t),n=t[i.groupName(y.uncertainAndApproximateGroup,this.name)];return(t[i.groupName(y.uncertainGroup,this.name)]||n)&&(e.uncertainComponent=!0),(t[i.groupName(y.approximateGroup,this.name)]||n)&&(e.approximateComponent=!0),e}}const kt="yearValue",pn="exp",hn="signif";class Wt extends y{constructor(){super(kt,Wt.format())}static format(t=""){return"Y?"+i.nonCapturingGroup(i.group(i.groupName(t,pn),"[-]?\\d+E\\d+")+"|"+y.numberFormat(i.groupName(t,kt),"+","[-]?")+i.optionalGroup(i.groupName(t,hn),"S\\d+"))}parseGroups(t){const e=t[pn];if(e){const a=e.indexOf("E"),u=parseInt(e.substring(a+1),10),c=parseInt(e.substring(0,a),10)*Math.pow(10,u);t[kt]=c.toString()}const n=t[hn],r=t[kt];if(n){const a=parseInt(n.substring(1),10),{valueStr:u,sign:p}=this.getValueAndSign(t);let c="";for(let f=0;f<u.length;f++)c+=f<a?u.charAt(f):"X";t[kt]=(p<0?"-":"")+c}const o=super.parseGroups(t);return n&&(o.value.estimate=parseInt(r,10)),o}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const ln="monthValue";class Jt extends y{static format(t=""){return y.numberFormat(i.groupName(t,ln),"{1,2}",void 0)}constructor(){super(ln,Jt.format())}}const fn="dayValue";class Kt extends y{static format(t=""){return y.numberFormat(i.groupName(t,fn),"{1,2}",void 0)}constructor(){super(fn,Kt.format())}}const gn="hourValue";class Ot extends y{static format(t=""){return y.numberFormat(i.groupName(t,gn),"{1,2}",void 0)}constructor(){super(gn,Ot.format())}}const wn="secondValue";class Zt extends y{static format(t=""){return y.numberFormat(i.groupName(t,wn),"{1,2}",void 0)}constructor(){super(wn,Zt.format())}}const Sn="minuteValue";class Qt extends y{static format(t=""){return y.numberFormat(i.groupName(t,Sn),"{1,2}",void 0)}constructor(){super(Sn,Qt.format())}}class Tr extends Xt{}class x extends L{static yearGroup=T.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",x.format())}static format(t=""){return i.group(i.groupName(t,x.yearGroup),Wt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,x.monthGroup),Jt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,x.dayGroup),Kt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,x.hourGroup),Ot.format(t)),":",i.group(i.groupName(t,x.minuteGroup),Qt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,x.secondGroup),Zt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,x.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,x.timeshiftGroup),Tr.format(t)))))}parseGroups(t){const e=t[x.millisecondGroup],n=e?ct.parseFraction(e):void 0,r=t[x.secondGroup];let o;r&&(o=P.fromString(r,void 0,new Zt),o.uncertain=o?.uncertain||!1,o.approximate=o?.approximate||!1);const a=t[x.minuteGroup];let u;a&&(u=D.fromString(a,new Qt),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[x.hourGroup];let c;p&&(c=Q.fromString(p,new Ot),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[x.dayGroup];let m;f&&(m=Z.fromString(f,new Kt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const b=t[x.monthGroup];let g;b&&(g=O.fromString(b,new Jt),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const G=t[x.yearGroup];let S;G&&(S=K.fromString(G,void 0,new Wt),S.uncertain=S.uncertain||g?.uncertain||!1,S.approximate=S.approximate||g?.approximate||!1);const F=t[x.timeshiftGroup],M=F?In.fromString(F,new Xt,{year:S?.value,month:g?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:g,day:m,hour:c,minute:u,second:o,millisecond:n,timeshift:M}}}const yn="durationValue";class Te extends y{static format(t=""){return"^"+y.numberFormat(i.groupName(t,yn),"+",void 0)}constructor(){super(yn,Te.format())}}class Mr extends ye{millisecond=new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new N("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new N("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new N("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new N("year",0,Number.MAX_SAFE_INTEGER,this.month)}const lt=new Mr;class h extends y{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new Te;static componentFormat(t,e,n,r,o=""){const a=i.group(i.groupName(t,h.quantityGroup(e)),y.numberFormat(i.groupName(t,n),"+",void 0,"\\d"));return i.group(i.groupName(t,e),a,r,o)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",h.format())}static format(t=""){const e=i.groupName(t,h.durationGroup);return this.qualifierFormat(i.groupName(y.uncertainGroup,e),"?")+this.qualifierFormat(i.groupName(y.approximateGroup,e),"~")+this.qualifierFormat(i.groupName(y.uncertainAndApproximateGroup,e),"%")+"P"+i.optional(h.componentFormat(t,h.yearsGroup,x.yearGroup,"Y"))+i.optionalNonCapturingGroup(h.componentFormat(t,h.monthsGroup,x.monthGroup,"MM")+"|"+h.componentFormat(t,h.isoMonthsGroup,"isoMonth","M",h.isoMonthsLookahead))+i.optional(h.componentFormat(t,h.daysGroup,x.dayGroup,"D"))+"T?"+i.optional(h.componentFormat(t,h.hoursGroup,x.hourGroup,"H"))+i.optional(h.componentFormat(t,h.minutesGroup,x.minuteGroup,"M"))+i.optional(h.componentFormat(t,h.secondsGroup,x.secondGroup,"S"))+i.optionalGroup(i.groupName(t,h.suffixGroup),"[?~%]")}static parseComponent(t,e,n){const r=h.componentParser.parse(t);return new e(r,n)}parseGroups(t){const e=t[h.quantityGroup(h.secondsGroup)];let n;e&&(n=h.parseComponent(e,P,lt.second),n.uncertain=!!t[i.groupName(y.uncertainGroup,h.secondsGroup)]||!1,n.approximate=!!t[i.groupName(y.approximateGroup,h.secondsGroup)]||!1);const r=t[h.quantityGroup(h.minutesGroup)];let o;r&&(o=h.parseComponent(r,D,lt.minute),o.uncertain=o.uncertain||n?.uncertain||!1,o.approximate=o.approximate||n?.approximate||!1);const a=t[h.quantityGroup(h.hoursGroup)];let u;a&&(u=h.parseComponent(a,Q,lt.hour),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[h.quantityGroup(h.daysGroup)];let c;p&&(c=h.parseComponent(p,Z,lt.day),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[h.quantityGroup(h.monthsGroup)]||t[h.quantityGroup(h.isoMonthsGroup)];let m;f&&(m=h.parseComponent(f,O,lt.month),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const b=t[h.quantityGroup(h.yearsGroup)];let g;b&&(g=h.parseComponent(b,K,lt.year),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const G=t[h.suffixGroup],S=!!t[i.groupName(y.uncertainAndApproximateGroup,h.durationGroup)]||G==="%",F=S||!!t[i.groupName(y.uncertainGroup,h.durationGroup)]||G==="?",M=S||!!t[i.groupName(y.approximateGroup,h.durationGroup)]||G==="~";return{years:g,months:m,days:c,hours:u,minutes:o,seconds:n,uncertain:F,approximate:M}}}const vr="dates",le="start",fe="end",bn="durations",ge="durationMin",we="durationMax";class ie extends L{static format=i.group(vr,i.optionalGroup(le,i.group("openStart","\\.\\.")+"|"+x.format(le))+"/"+i.optionalGroup(fe,i.group("openEnd","\\.\\.")+"|"+x.format(fe)))+"|"+i.group(bn,i.group(ge,h.format(ge))+"/"+i.group(we,h.format(we)));constructor(t="interval",e=ie.format){super(t,e)}parseGroups(t){let e,n;if(t[bn]){const o=t[ge];e=A.fromString(o,new h);const a=t[we];n=A.fromString(a,new h)}else{const o=t[le];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=z.fromString(o,new x)}const a=t[fe];switch(a){case void 0:n=null;break;case"..":n=void 0;break;default:n=z.fromString(a,new x)}}return{start:e,end:n}}}class Ar{parse(t){t=t.trim();const e=t.startsWith("["),r=t.substring(1,t.length-1).split(","),o=[];for(const a of r){let u;a.includes("..")?u=Ft.fromString(a.replace("..","/"),new ie):u=z.fromString(a,new x),o.push(u)}return{values:o,exclusive:e}}}d.register(z,()=>new x);d.register(Z,()=>new Kt);d.register(A,()=>new h);d.register(Q,()=>new Ot);d.register(Ft,()=>new ie);d.register(D,()=>new Qt);d.register(O,()=>new Jt);d.register(P,()=>new Zt);d.register(te,()=>new Ar);d.register(K,()=>new Wt);class Y{constructor(t){this.preferences=t}read(t){var e,n;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const o of this.preferences){const a=(e=t[o])!==null&&e!==void 0?e:t[Y.base(o)];if(a)return a}const r=new Set(this.preferences.map(o=>Y.base(o)));for(const[o,a]of Object.entries(t))if(a&&r.has(Y.base(o)))return a;return(n=Object.values(t).find(o=>o))!==null&&n!==void 0?n:void 0}write(t,e,n){var r,o;const a=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return a;const u={...t},p=(o=(r=Object.keys(u).find(c=>c===n))!==null&&r!==void 0?r:Object.keys(u).find(c=>Y.base(c)===Y.base(n)))!==null&&o!==void 0?o:n;return a===void 0?delete u[p]:u[p]=a,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}Y.any=new Y([]);var Gn;(function(s){s.abductee="abductee",s.actor="actor",s.artist="artist",s.anthropologist="anthropologist",s.archeologist="archeologist",s.astronaut="astronaut",s.astronomer="astronomer",s.astrologist="astrologist",s.astrophysicist="astrophysicist",s.banker="banker",s.barman="barman",s.biologist="biologist",s.biochemist="biochemist",s.biophysicist="biophysicist",s.bishop="bishop",s.businessman="businessman",s.botanist="botanist",s.cameraman="cameraman",s.chemist="chemist",s.contactee="contactee",s.cryptozoologist="cryptozoologist",s.dentist="dentist",s.director="director",s.diplomat="diplomat",s.diver="diver",s.electronics="electronics",s.engineer="engineer",s.ethnologist="ethnologist",s.exobiologist="exobiologist",s.farmer="farmer",s.firefighter="firefighter",s.flightAttendant="flightAttendant",s.geologist="geologist",s.geophysicist="geophysicist",s.geographer="geographer",s.historian="historian",s.houseWife="houseWife",s.hypnotherapist="hypnotherapist",s.illusionist="illusionist",s.journalist="journalist",s.judge="judge",s.lawyer="lawyer",s.leader="leader",s.librarian="librarian",s.logger="logger",s.mathematician="mathematician",s.mechanic="mechanic",s.meteorologist="meteorologist",s.military="military",s.musician="musician",s.neurologist="neurologist",s.neuroscientist="neuroscientist",s.neuropsychiatrist="neuropsychiatrist",s.nurse="nurse",s.oceanographer="oceanographer",s.painter="painter",s.parapsychologist="parapsychologist",s.philosopher="philosopher",s.photographer="photographer",s.physician="physician",s.physicist="physicist",s.pilot="pilot",s.politician="politician",s.policeman="policeman",s.priest="priest",s.producer="producer",s.prospector="prospector",s.psychologist="psychologist",s.psychiatrist="psychiatrist",s.radioastronomer="radioastronomer",s.radioamateur="radioamateur",s.salesman="salesman",s.sailor="sailor",s.sociologist="sociologist",s.softwareEngineer="softwareEngineer",s.stuntman="stuntman",s.taxiDriver="taxiDriver",s.teacher="teacher",s.telegrapher="telegrapher",s.truckDriver="truckDriver",s.ufologist="ufologist",s.ufoWitness="ufoWitness",s.ufoWitness2="ufoWitness2",s.worker="worker",s.writer="writer"})(Gn||(Gn={}));var xn;(function(s){s.neutral="neutral",s.male="male",s.female="female"})(xn||(xn={}));const kr="modulepreload",$r=function(s,t){return new URL(s,t).href},Nn={},Lt=function(t,e,n){let r=Promise.resolve();if(e&&e.length>0){let a=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const u=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),c=p?.nonce||p?.getAttribute("nonce");r=a(e.map(f=>{if(f=$r(f,n),f in Nn)return;Nn[f]=!0;const m=f.endsWith(".css"),b=m?'[rel="stylesheet"]':"";if(!!n)for(let S=u.length-1;S>=0;S--){const F=u[S];if(F.href===f&&(!m||F.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${b}`))return;const G=document.createElement("link");if(G.rel=m?"stylesheet":kr,m||(G.as="script"),G.crossOrigin="",G.href=f,c&&G.setAttribute("nonce",c),document.head.appendChild(G),m)return new Promise((S,F)=>{G.addEventListener("load",S),G.addEventListener("error",()=>F(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return r.then(a=>{for(const u of a||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};class Rr extends Error{constructor(t,e){super(t),this.cause=e}}class Me extends Rr{constructor(t=Me.defaultMessage,e){super(t,e)}}Me.defaultMessage="Assertion failed";var En;(function(s){s.country="country",s.region="region",s.department="department",s.city="city",s.company="company"})(En||(En={}));var Tn;(function(s){s.at="at",s.au="au",s.ar="ar",s.be="be",s.br="br",s.ca="ca",s.ch="ch",s.cn="cn",s.cl="cl",s.co="co",s.cy="cy",s.de="de",s.dk="dk",s.do="do",s.dz="dz",s.gr="gr",s.ec="ec",s.eg="eg",s.es="es",s.fi="fi",s.fr="fr",s.ga="ga",s.ge="ge",s.hu="hu",s.in="in",s.ie="ie",s.ir="ir",s.il="il",s.it="it",s.jp="jp",s.kr="kr",s.ma="ma",s.mx="mx",s.my="my",s.mz="mz",s.nl="nl",s.no="no",s.nz="nz",s.pa="pa",s.pe="pe",s.ph="ph",s.pl="pl",s.pt="pt",s.ro="ro",s.ru="ru",s.sc="sc",s.tr="tr",s.ua="ua",s.uk="uk",s.us="us",s.sa="sa",s.se="se",s.su="su",s.tn="tn",s.tw="tw",s.ve="ve",s.za="za"})(Tn||(Tn={}));class Fr extends Error{constructor(t,e,n){super(typeof e=="number"&&Number.isInteger(e)&&e>=1?`This ${t} file is in version ${e} of its format; this UFO@home reads version ${n}. Read it with the UFO@home that reads its version.`:`This ${t} file states ${JSON.stringify(e)} as its format version, which is not a version.`),this.format=t,this.found=e,this.supported=n,this.name="FormatVersionError"}said(t){return t.replace("{found}",typeof this.found=="number"?String(this.found):JSON.stringify(this.found)).replace("{supported}",String(this.supported))}}class et{static CURRENT={sighting:4,case:1,interview:1};static SCHEMA_BASE="https://ufoathome.org/schema";static schemaUrl(t,e=et.CURRENT[t]){return`${et.SCHEMA_BASE}/${e}/${t}.schema.json`}static of(t){if(typeof t!="object"||t===null)return 1;const e=t.version;return e===void 0?1:typeof e=="object"&&e!==null&&"value"in e?e.value:e}static recording(t){return et.check(t,"sighting")}static check(t,e){const n=et.of(t),r=et.CURRENT[e];if(typeof n!="number"||!Number.isInteger(n)||n!==r)throw new Fr(e,n,r);return t}}class J{static NAMES=["weather","place","lightPollution","decor"];static KEYS={weather:["weatherTrack","weatherSource"],place:["place"],lightPollution:["lightPollution"],decor:["decor"]};static annexName(t,e){return`${t}.${e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}.json`}static taken(t,e){const n={};if(t==="decor")return Array.isArray(e.decor)&&(n.decor=e.decor.filter(J.surveyed)),n;for(const r of J.KEYS[t])e[r]!==void 0&&(n[r]=e[r]);return n}static strip(t,e){if(t==="decor"){const n=Array.isArray(e.decor)?e.decor.filter(r=>!J.surveyed(r)):[];n.length>0?e.decor=n:delete e.decor;return}for(const n of J.KEYS[t])delete e[n]}static put(t,e,n){if(t==="decor"){if(!Array.isArray(n.decor))return;const r=Array.isArray(e.decor)?e.decor.filter(o=>!J.surveyed(o)):[];e.decor=[...r,...n.decor];return}for(const r of J.KEYS[t])n[r]!==void 0&&(e[r]=n[r])}static surveyed(t){return typeof t=="object"&&t!==null&&typeof t.origin=="string"}static fromFile(t,e){return t?.[e]!==void 0&&t[e].live!==!0}}class j{static files=new Map;static hold(t){for(const[e,n]of t)j.files.set(j.key(e),n)}static releaseCopies(){for(const[t,e]of j.files)e.local||j.files.delete(t)}static clear(){j.files.clear()}static localBase(){return new URL(`local/${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}/`,location.href).href}static read(t){const e=j.files.get(j.key(t));return e===void 0?void 0:structuredClone(e.json)}static changed(...t){return t.some(e=>e!==void 0&&j.files.get(j.key(e))?.changed===!0)}static local(t){return t!==void 0&&j.files.get(j.key(t))?.local===!0}static key(t){const e=new URL(t,location.href);return e.hash="",e.href}}class ft extends Error{constructor(t,e,n){super(`${t}: ${e}${n===void 0?"":` (HTTP ${n})`}`),this.kind=t,this.url=e,this.status=n,this.name="SightingFetchError"}}class ee{static async recording(t){const e=j.read(t);if(e!==void 0)return e;const n=await ee.json(t);for(const r of J.NAMES){const o=n?.snapshots?.[r];if(!(!o?.src||o.live))try{const a=et.recording(await ee.json(new URL(o.src,new URL(t,location.href)).href));J.put(r,n,a)}catch{}}return n}static async json(t){const e=new URL(t,location.href),n=j.read(e.href);if(n!==void 0)return n;if(location.protocol==="https:"&&e.protocol==="http:")throw new ft("mixed-content",t);let r;try{r=await fetch(t)}catch{throw await this.diagnose(t,e)}if(!r.ok)throw new ft("status",t,r.status);try{return await r.json()}catch{throw new ft("malformed",t)}}static async diagnose(t,e){if(e.origin===location.origin)return new ft("unreachable",t);try{return await fetch(t,{mode:"no-cors"}),new ft("cors",t)}catch{return new ft("unreachable",t)}}}function Vr(s,t){for(const e of s){const n=e.toLowerCase().split("-")[0];if(t.includes(n))return n}return"en"}class Ir{static preferencesFor(t){const e=navigator.languages??[],n=this.declaredFor(t);return n?[n,...e]:e}static declaredFor(t){for(let e=t;e;){const n=e.closest("[lang]")?.getAttribute("lang")?.trim();if(n)return n;const r=e.getRootNode();e=r instanceof ShadowRoot?r.host:void 0}}}const jr=["en","fr","es","it"];class ve{static catalog(t){const e=new Map;return{load(n){const r=ve.languageOf(n);let o=e.get(r);return o||(o=t[r](),e.set(r,o),o.catch(()=>e.delete(r))),o}}}static none(){return new Proxy({},{get:()=>""})}static blank(){const t=new Proxy(()=>t,{get:(e,n)=>n===Symbol.toPrimitive?()=>"":n===Symbol.iterator?function*(){}:n==="toString"||n==="valueOf"?()=>"":n==="then"?void 0:t,apply:()=>t,has:()=>!1,ownKeys:()=>[],getOwnPropertyDescriptor:()=>{}});return t}static languageOf(t){const e=t.toLowerCase().split("-")[0];return jr.includes(e)?e:"en"}}const Ur=["en","fr","es","it"],zr={en:()=>Lt(()=>import("./InterviewMessages_en-BRmuWrAg.js"),[],import.meta.url).then(s=>s.interviewMessages_en),fr:()=>Lt(()=>import("./InterviewMessages_fr-DBCdGB0r.js"),[],import.meta.url).then(s=>s.interviewMessages_fr),es:()=>Lt(()=>import("./InterviewMessages_es-BTotimwY.js"),[],import.meta.url).then(s=>s.interviewMessages_es),it:()=>Lt(()=>import("./InterviewMessages_it-B5EyMD-k.js"),[],import.meta.url).then(s=>s.interviewMessages_it)},Cr=ve.catalog(zr),Br="interviewseek";class v{static UNATTRIBUTED="unattributed";static read(t){return et.check(t,"interview")}static isProofread(t){const e=Object.keys(t.speakers);return e.length>0&&e.every(n=>{const r=t.proofreading?.[n]?.status;return r==="approved"||r==="covered"})}static said(t){return t.parts?t.parts.map(e=>"redacted"in e?"…":v.plain(e.text)).join(" "):t.redacted?void 0:v.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
2
- `).replace(/<\/?[a-z][^>]*>/gi,"").replace(/&#x([0-9a-f]+);/gi,(e,n)=>String.fromCodePoint(parseInt(n,16))).replace(/&#(\d+);/g,(e,n)=>String.fromCodePoint(Number(n))).replace(/&(\w+);/g,(e,n)=>v.ENTITIES[n.toLowerCase()]??e):t}static sightingsOf(t){return[t.interviewOf].flat().filter(e=>typeof e=="string")}static passagesAbout(t,e){const n=v.sightingsOf(t),r=[];return t.segments.forEach((o,a)=>{for(const u of o.refs??[]){if(u.sighting===void 0?!n.includes(e):u.sighting!==e)continue;const p=v.said(o);r.push({index:a,speaker:o.speaker,at:u.at,...p!==void 0?{text:p}:{},...u.range?{range:u.range}:{}})}}),r.sort((o,a)=>o.at-a.at||o.index-a.index)}static clock(t,e=!1){const n=Math.round(t*10),r=Math.floor(n/10),o=p=>String(p).padStart(2,"0"),a=Math.floor(r/3600),u=`${a>0||e?o(Math.floor(r/60)%60):Math.floor(r/60)}:${o(r%60)}`;return`${a>0?`${a}:`:""}${u}${e||n%10!==0?`.${n%10}`:""}`}static speakerName(t,e){const n=t.speakers[e];if(!n)return e;const r=typeof n.title=="string"?n.title:n.title?Object.values(n.title)[0]:void 0;return r||n.by&&v.agentName(n.by)||n.role}static agentName(t){if("people"in t){const[e,...n]=t.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...n,e].join(" ")}return"org"in t?t.org:t.title??""}static stamp(t){const e=Math.round(t*1e3),n=(r,o=2)=>String(r).padStart(o,"0");return`${n(Math.floor(e/36e5))}:${n(Math.floor(e/6e4)%60)}:${n(Math.floor(e/1e3)%60)}.${n(e%1e3,3)}`}static toVtt(t){const e=o=>o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n=t.segments.filter(o=>o.start!==void 0);return`WEBVTT
1
+ class C extends Error{}class re{constructor(t){this.name=t}validate(t){return!0}}class An extends re{min;max;constructor(t,e,n){super(t),this.min=e,this.max=n}validate(t){if(typeof t!="number")throw new C(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new C(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class N{name;min;max;duration;subUnit;validator;constructor(t,e,n,r,s=new An(t,e,n)){this.name=t,this.min=e,this.max=n,this.subUnit=r,this.duration=r?(r.max-r.min+1)*r.duration:1,this.validator=s}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class be{millisecond;second;minute;hour;day;month;year}class zn extends be{}class kn extends zn{millisecond=new N("millisecond",0,999,void 0);second=new N("second",0,59,this.millisecond);minute=new N("minute",0,59,this.second);hour=new N("hour",0,23,this.minute);day=new N("day",1,31,this.hour);month=new N("month",1,12,this.day);year=new N("year",0,9999,this.month)}const l=new kn;class $n extends An{constructor(t=1,e=12){super("month",t,e)}}class wt extends N{static Month28=new wt(28);static Month29=new wt(29);static ThirtyDays=new wt(30);static ThirtyOneDays=new wt(31);constructor(t,e=new $n(1,t)){super("month",1,t,l.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new C("Unsupported month",t,e)}}}class Y{static instance=new Y;render(t){return t.value.toString()}}class I{unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new re(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=Y.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class d{static#t=new Map;static register(t,e){d.#t.set(t,e)}static get(t){const e=d.#t.get(t);if(!e)throw new C(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class Gt extends I{constructor(t=new Date().getFullYear(),e=l.year){super(t,e)}static fromString(t,e=d.get(Gt)){return new Gt(e.parse(t))}}class O extends Y{static default=new O("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class xt extends I{constructor(t=new Date().getMonth()+1,e=l.month){super(t,e)}static fromString(t,e=d.get(xt)){return new xt(e.parse(t))}toString(t=O.default){return super.toString(t)}}class Nt extends I{constructor(t=new Date().getDate(),e=l.day){super(t,e)}static fromString(t,e=d.get(Nt)){const n=e.parse(t);return new Nt(n)}toString(t=O.default){return super.toString(t)}}class Et extends I{constructor(t=new Date().getHours(),e=l.hour){super(t,e)}static fromString(t,e=d.get(Et)){return new Et(e.parse(t))}toString(t=O.default){return super.toString(t)}}class Tt extends I{constructor(t=new Date().getMinutes(),e=l.minute){super(t,e)}static fromString(t,e=d.get(Tt)){return new Tt(e.parse(t))}toString(t=O.default){return super.toString(t)}}class Mt extends I{constructor(t=new Date().getSeconds(),e=l.second){super(t,e)}static fromString(t,e=d.get(Mt)){return new Mt(e.parse(t),l.second)}toString(t=O.default){return super.toString(t)}}class mt extends I{static renderer=new O("0",3);constructor(t,e=l.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=mt.renderer){return super.toString(t)}}class Cn{render(t){return t.toString()}}class Bn extends Cn{render(t){const e=t.value,n=Math.abs(e),r=Math.floor(n/60),s=n%60;if(r===0&&s===0)return"Z";{const a=e<0?"-":"+",u=r.toString().padStart(2,"0"),p=s>0?":"+s.toString().padEnd(2,"0"):"";return a+u+p}}}class ct{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=d.get(ct),n=void 0){const r=e.parse(t,n);return new ct(r)}toString(t=new Bn){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class V{static timeshift(t,e){return t+(V.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:n,day:r}=t,s=t.hour??12;if(![e,n,r].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const a=V.rule(e);if(!a)return!1;const u=V.rank(n,r,s);return u>=V.rank(a.start.month,a.start.day,2)&&u<V.rank(a.end.month,a.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:V.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:V.sunday(t,3,2)},end:{month:11,day:V.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:V.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:V.sunday(t,4,-1)},end:e}}static sunday(t,e,n){const r=new Date(Date.UTC(2e3,e-1,1));r.setUTCFullYear(t);const s=1+(7-r.getUTCDay())%7;if(n>0)return s+7*(n-1);const a=[31,V.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=s;for(;u+7<=a;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,n){return(t*100+e)*100+n}}const qn={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},Hn={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},Yn={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},Xn={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},Wn={name:"PT",timeshift:o=>V.timeshift(-480,o),title:"Pacific Time (US)"},On={name:"MT",timeshift:o=>V.timeshift(-420,o),title:"Mountain Time (US)"},Jn={name:"CT",timeshift:o=>V.timeshift(-360,o),title:"Central Time (US)"},Kn={name:"ET",timeshift:o=>V.timeshift(-300,o),title:"Eastern Time (US)"},Zn={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},Qn={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Dn={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Pn={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},Ln={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},_n={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},tr={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},er={name:"Z",timeshift:"Z",title:"UTC"},nr={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},rr={name:"BST",timeshift:"+01",title:"British Summer Time"},sr={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},or={name:"CET",timeshift:"+01",title:"Central European Time"},ir={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},ar={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},ur={name:"BJT",timeshift:"+08",title:"Beijing Time"},cr={name:"CST",timeshift:"-06",title:"Central Standard Time"},mr={name:"JST",timeshift:"+09",title:"Japan Standard Time"},dr={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},pr={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},hr={name:"LST",timeshift:"?",title:"Local Sideral Time"},Re=[_n,dr,Ln,ur,rr,cr,Qn,or,sr,Jn,Zn,Pn,Dn,Kn,nr,ar,mr,hr,Yn,ir,Xn,On,pr,Hn,qn,Wn,tr,er];class se{static instance=new se;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const n=[];t.hour&&n.push(this.renderComponent(t,"hour")),t.minute&&n.push(this.renderComponent(t,"minute")),t.second&&n.push(this.renderSecond(t));const r=e.join("-"),s=t.timeshift?t.timeshift.toString():"",a=n.join(":")+s;return r+(a.length>0?"T"+a:"")}}class dt extends C{constructor(t="method is abstract"){super(t)}}class Ge{units;constructor(t){this.units=t}newYear(t){throw new dt}newMonth(t){throw new dt}newDay(t){throw new dt}newHour(t){throw new dt}newMinute(t){throw new dt}newSecond(t){throw new dt}}class lr extends be{millisecond=new N("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new N("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new N("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new N("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new N("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Pt=new lr;class oe{static instance=new oe;render(t){const e=H.toSpec(t);let n="P";const r=e.years;r&&(n+=r.toString()+"Y");const s=e.months;s&&(n+=s.toString(Y.instance)+"MM");const a=e.days;a&&(n+=a.toString(Y.instance)+"D");const u=e.hours;u&&(n+=u.toString(Y.instance)+"H");const p=e.minutes;p&&(n+=p.toString(Y.instance)+"M");const c=e.seconds;return c&&(n+=c.toString(Y.instance)+"S"),n}}class H extends I{constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*l.year.duration:0)+(t.months?t.months*l.month.duration:0)+(t.days?t.days*l.day.duration:0)+(t.hours?t.hours*l.hour.duration:0)+(t.minutes?t.minutes*l.minute.duration:0)+(t.seconds?t.seconds*l.second.duration:0)},new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=gr){let n=typeof t=="number"?t:t.value;const r=n>0?1:-1;n=Math.abs(n);const s={},a=n/l.year.duration,u=Math.floor(a);u>0&&(s.years=e.newYear(r*u),n-=u*l.year.duration);const p=n/l.month.duration,c=Math.floor(p);c>0&&(s.months=e.newMonth(r*c),n-=c*l.month.duration);const f=n/l.day.duration,m=Math.floor(f);m>0&&(s.days=e.newDay(r*m),n-=m*l.day.duration);const G=n/l.hour.duration,g=Math.floor(G);g>0&&(s.hours=e.newHour(r*g),n-=g*l.hour.duration);const S=n/l.minute.duration,y=Math.floor(S);y>0&&(s.minutes=e.newMinute(r*y),n-=y*l.minute.duration);const F=n/l.second.duration,M=Math.floor(r*F);return M>0&&(s.seconds=e.newSecond(M)),s}static fromString(t,e=d.get(H)){return new H(e.parse(t))}static between(t,e){const n=e.getTime(),r=t.getTime();return new H(n-r)}toSpec(){return H.toSpec(this)}toString(t=oe.instance){return t.render(this)}}class Rn extends Ge{constructor(t){super(t)}newYear(t){return new Gt(t,this.units.year)}newMonth(t){return new xt(t,this.units.month)}newDay(t){return new Nt(t,this.units.day)}newHour(t){return new Et(t,this.units.hour)}newMinute(t){return new Tt(t,this.units.minute)}newSecond(t){return new Mt(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new ct(typeof t=="number"?t:t.value)}}const fr=new Rn(l),gr=new Rn(Pt);class R{#t;#e;#n;#r;#s;#o;#i;#a;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:R.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof I?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof I?t:this.factory.newMonth(t)}get day(){return this.#n}set day(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newDay(t):!t||t.start||t instanceof I?t:this.factory.newDay(t)}get hour(){return this.#r}set hour(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newHour(t):!t||t.start||t instanceof I?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof I?t:this.factory.newMinute(t)}get second(){return this.#o}set second(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e?this.factory.newSecond(t):!t||t.start||t instanceof I?t:this.factory.newSecond(t)}get millisecond(){return this.#i}set millisecond(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof I)?this.factory.newMillisecond(t):t}get timeshift(){return this.#a}set timeshift(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e||t&&!(t instanceof ct)?this.factory.newTimeshift(t):t}get factory(){return fr}static fromString(t,e=d.get(R)){const{year:n,month:r,day:s,hour:a,minute:u,second:p,millisecond:c,timeshift:f}=e.parse(t);return new R({year:n,month:r,day:s,hour:a,minute:u,second:p,millisecond:c,timeshift:f})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new R({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return R.fromString(n)}#u(t){if(this.constructor.name!==t.constructor.name)throw new re(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new H(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new R(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=se.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const n=this.month?.toSpec();n&&(t.month=n);const r=this.day?.toSpec();r&&(t.day=r);const s=this.hour?.toSpec();s&&(t.hour=s);const a=this.minute?.toSpec();a&&(t.minute=a);const u=this.second?.toSpec();u&&(t.second=u);const p=this.millisecond?.toSpec();p&&(t.millisecond=p);const c=this.timeshift?.toSpec();return c&&(t.timeshift=c),t}toJSON(){return this.toSpec()}}class xe{static instance=new xe;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class Rt{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof H))throw new C("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof H))throw new C("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=d.get(Rt)){const{start:n,end:r}=e.parse(t);return new Rt(n,r)}toString(t=xe.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class Lt extends Y{static instance=new Lt(O.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class W extends I{#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=Lt.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class Fn extends kn{year=new N("year",-9999,9999,this.month);yearExtended=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const te=new Fn;class rt extends W{constructor(t,e=te.year){super(t,e)}static fromString(t,e=te.year,n=d.get(rt)){const r=n.parse(t),s=r.value.start;if(t.startsWith("Y")&&(e=te.yearExtended),s!==void 0){const a=new rt(Object.assign({...r},{value:Math.max(s,e.min)})),u=new rt(Object.assign({...r},{value:Math.min(r.value.end,e.max)}));return{start:a,end:u}}else return new rt(r,e)}}class Vn extends re{monthValidator=new $n;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class st extends W{constructor(t,e=new N(l.month.name,1,24,l.day,new Vn)){super(t,e)}static fromString(t,e=d.get(st)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let s=l.month;const a=new st(Object.assign({...n},{value:Math.max(r,s.min)})),u=new st(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new st(n)}toString(t){return super.toString(t).padStart(2,"0")}}class ot extends W{constructor(t,e=l.day){super(t,e)}static fromString(t,e=d.get(ot)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let s=l.day;const a=new ot(Object.assign({...n},{value:Math.max(r,s.min)})),u=new ot(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new ot(n)}toString(t){return super.toString(t).padStart(2,"0")}}class it extends W{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=d.get(it)){const n=e.parse(t),r=n.value.start;if(r!==void 0){let s=l.hour;const a=new it(Object.assign({...n},{value:Math.max(r,s.min)})),u=new it(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new it(n)}}class at extends W{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=d.get(at)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.minute,a=new at(Object.assign({...n},{value:Math.max(r,s.min)})),u=new at(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new at(n)}toString(t=Lt.instance){return super.toString(t)}}class ut extends W{constructor(t,e=l.second){super(t,e)}static fromString(t,e=d.get(ut)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.second,a=new ut(Object.assign({...n},{value:Math.max(r,s.min)})),u=new ut(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new ut(n)}}class lt extends ct{static fromString(t,e=d.get(lt),n=void 0){return new lt(e.parse(t,n))}}class In extends Ge{constructor(t){super(t)}newYear(t){return new rt(t,this.units.year)}newMonth(t){return new st(t,this.units.month)}newDay(t){return new ot(t,this.units.day)}newHour(t){return new it(t,this.units.hour)}newMinute(t){return new at(t,this.units.minute)}newSecond(t){return new ut(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new lt(typeof t=="number"?t:t.value)}}const wr=new In(te),Sr=new In(Pt);class U extends R{constructor(t){super(t)}get factory(){return wr}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new U({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=d.get(U)){const n=e.parse(t);return new U(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return U.fromString(n)}clone(){return new U(this.toSpec())}}const $=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class ie extends oe{static instance=new ie;render(t){return super.render(t)}}class k extends W{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:k.getValue(t,$.year)+k.getValue(t,$.month)+k.getValue(t,$.day)+k.getValue(t,$.hour)+k.getValue(t,$.minute)+k.getValue(t,$.second),uncertain:k.getBoolean(t,$.uncertain),approximate:k.getBoolean(t,"approximate")},Pt.millisecond)}static getBoolean(t,e){return t[e]||t[$.year+"s"]?.[e]||t[$.month+"s"]?.[e]||t[$.day+"s"]?.[e]||t[$.hour+"s"]?.[e]||t[$.minute+"s"]?.[e]||t[$.second+"s"]?.[e]||!1}static getValue(t,e){let n=0,r=t[e+"s"];if(r instanceof W?r=r.value:typeof t=="number"&&(r=t),r){const s=l[e];n=r*s.duration}return n}static toSpec(t,e=Sr){return{...H.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=d.get(k)){const n=e.parse(t);return new k(n)}static between(t,e){const n=e.getTime(),r=t.getTime();return new k(n-r)}toString(t=ie.instance){return super.toString(t)}toSpec(){return k.toSpec(this)}}class Ft extends Rt{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=U.fromString(t)),t&&!(t instanceof U)&&!(t instanceof k))throw new C("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=U.fromString(t)),t&&!(t instanceof U)&&!(t instanceof k))throw new C("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=d.get(Ft)){const{start:n,end:r}=e.parse(t);return new Ft(n,r)}}class At extends W{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class yr extends Fn{year=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const ye=new yr;class K extends At{constructor(t,e=ye.year){super(t,e)}static fromString(t,e=ye.year,n=d.get(K)){const r=n.parse(t),s=r.value.start;if(s!==void 0){const a=new K(Object.assign({...r},{value:Math.max(s,e.min)})),u=new K(Object.assign({...r},{value:Math.min(r.value.end,e.max)})),p={start:a,end:u},c=r.value.estimate;return c&&(p.estimate=c),p}else return new K(r)}}class br extends Vn{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class Z extends At{constructor(t,e=new N(l.month.name,1,41,l.day,new br)){super(t,e)}static fromString(t,e=d.get(Z)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.month,a=new Z(Object.assign({...n},{value:Math.max(r,s.min)})),u=new Z(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new Z(n)}toString(t){return super.toString(t).padStart(2,"0")}}class Q extends At{constructor(t,e=l.day){super(t,e)}static fromString(t,e=d.get(Q)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.day,a=new Q(Object.assign({...n},{value:Math.max(r,s.min)})),u=new Q(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new Q(n)}toString(t){return super.toString(t).padStart(2,"0")}}class D extends At{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=d.get(D)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.hour,a=new D(Object.assign({...n},{value:Math.max(r,s.min)})),u=new D(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new D(n)}}class P extends At{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=d.get(P)){const n=e.parse(t),r=n.value.start;if(r!==void 0){const s=l.minute,a=new P(Object.assign({...n},{value:Math.max(r,s.min)})),u=new P(Object.assign({...n},{value:Math.min(n.value.end,s.max)}));return{start:a,end:u}}else return new P(n)}}class L extends At{constructor(t,e=l.second){super(t,e)}static fromString(t,e=l.second,n=d.get(L)){const r=n.parse(t),s=r.value.start;if(s!==void 0){const a=new L(Object.assign({...r},{value:Math.max(s,e.min)})),u=new L(Object.assign({...r},{value:Math.min(r.value.end,e.max)}));return{start:a,end:u}}else return new L(r,e)}}class jn extends lt{}class Gr extends Lt{qualifier(){return""}}class et extends se{static instance=new et;static valueRenderer=new Gr(O.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const n=t[e],r=et.names.slice(et.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),s=et.qualifier(n.uncertainComponent,n.approximateComponent),a=et.qualifier(n.uncertainGroup&&!n.uncertainComponent&&!r.some(u=>u.uncertain),n.approximateGroup&&!n.approximateComponent&&!r.some(u=>u.approximate));return s+n.toString(et.valueRenderer)+a}}class Un extends Ge{constructor(t){super(t)}newYear(t){return new K(t,this.units.year)}newMonth(t){return new Z(t,this.units.month)}newDay(t){return new Q(t,this.units.day)}newHour(t){return new D(t,this.units.hour)}newMinute(t){return new P(t,this.units.minute)}newSecond(t){return new L(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new jn(typeof t=="number"?t:t.value)}}const xr=new Un(ye),Nr=new Un(Pt);class z extends U{constructor(t){super(t)}toString(t=et.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return xr}static fromDate(t){return new z({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=d.get(z)){const n=e.parse(t);return new z(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return z.fromString(n)}clone(){return new z(this.toSpec())}}class _{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new C(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new dt(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class St extends ie{static instance=new St;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=St.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let n=e+"P";for(const[r,s]of St.designators){const a=t.components[r];a&&(n+=St.qualifier(a.uncertainComponent,a.approximateComponent)+a.value+s)}return n}}class A extends k{#t;constructor(t){if(super(typeof t=="number"?t:{value:A.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},Pt.millisecond),typeof t!="number"){const e={};for(const n of A.componentNames)t[n]instanceof W&&(e[n]=t[n]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return A.getValue(t,$.year)+A.getValue(t,$.month)+A.getValue(t,$.day)+A.getValue(t,$.hour)+A.getValue(t,$.minute)+A.getValue(t,$.second)}static toSpec(t,e=Nr){const n=k.toSpec(t,e);if(t instanceof A&&t.hasQualifiedComponent)for(const r of A.componentNames)delete n[r],t.components[r]&&(n[r]=t.components[r]);return n}static fromString(t,e=d.get(A)){const n=e.parse(t);return new A(n)}static between(t,e){const n=e.getTime(),r=t.getTime();return new A(n-r)}toSpec(){return A.toSpec(this)}toString(t=St.instance){return super.toString(t)}}class Vt extends Ft{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new C("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new C("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=d.get(Vt)){const{start:n,end:r}=e.parse(t);return new Vt(n,r)}}class ee extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const n of this)if(n.toString()===e)return!0;return!1}static fromString(t,e=d.get(ee)){const{exclusive:n,values:r}=e.parse(t);return new ee(r,n)}}class tt extends _{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return tt.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new C(`${this.name} cannot be negative`);return super.parse(t)}}class i{static groupName(...t){return t.reduce((e,n)=>e?e+n.charAt(0).toUpperCase()+n.substring(1):n,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return i.optional(i.group(t,...e))}static optionalNonCapturingGroup(...t){return i.optional(i.nonCapturingGroup(...t))}static numberGroup(t,e,n,r="\\d"){return i.group(t,`${n||""}[${r}]${e}`)}}const Fe="yearValue";class It extends tt{static format(t=""){return i.numberGroup(i.groupName(t,Fe),"{4}",void 0)}constructor(){super(Fe,It.format())}}const Ve="monthValue";class jt extends tt{static format(t=""){return i.numberGroup(i.groupName(t,Ve),"{1,2}",void 0)}constructor(){super(Ve,jt.format())}}const Ie="dayValue";class yt extends tt{static format(t=""){return i.numberGroup(i.groupName(t,Ie),"{1,2}",void 0)}constructor(){super(Ie,yt.format())}}const je="hourValue";class bt extends tt{static format(t=""){return i.numberGroup(i.groupName(t,je),"{1,2}",void 0)}constructor(){super(je,bt.format())}}const Ue="minuteValue";class Ut extends tt{static format(t=""){return i.numberGroup(i.groupName(t,Ue),"{1,2}",void 0)}constructor(){super(Ue,Ut.format())}}const ze="secondValue";class zt extends tt{static format(t=""){return i.numberGroup(i.groupName(t,ze),"{1,2}",void 0)}constructor(){super(ze,zt.format())}}const Ce="timeshiftValue",Be="shiftHour",qe="shiftMinute";class vt extends _{static format(t=""){return Re.map(e=>e.name).join("|")+"|"+i.nonCapturingGroup(i.group(t+Be,i.numberGroup(i.groupName(t,Ce),"{2}","[+-]")),i.optionalNonCapturingGroup(":?",i.numberGroup(i.groupName(t,qe),"{2}",void 0)))}constructor(){super(Ce,vt.format())}parse(t,e){let n=0;const r=Re.find(s=>s.name===t);if(r){if(typeof r.timeshift=="function")try{return r.timeshift(e??{})}catch(s){throw new C(`The time zone ${t} depends on the date: ${s.message}`)}t=r.timeshift}if(t!=="Z"){const s=this.regexGroups(t),a=s[Be];a&&(n+=parseInt(a,10)*60);const u=s[qe];u&&(n+=parseInt(u,10))}return n}}const He="year",Ye="month",Xe="day",We="hour",Oe="minute",Je="second",Ke="millisecond",Ze="timeshift";class pt extends _{static format(t=""){return i.group(i.groupName(t,He),It.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,Ye),jt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,Xe),yt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,We),bt.format(t)),":?",i.group(i.groupName(t,Oe),Ut.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,Je),zt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,Ke),"\\d+"))),"\\s*",i.optionalGroup(i.groupName(t,Ze),vt.format(t)))))}constructor(){super("date",pt.format())}parse(t){const e=this.regexGroups(t),n=e[He],r=e[Ye],s=e[Xe],a=e[We],u=e[Oe],p=e[Je],c=e[Ke],f=e[Ze],m=n?new Gt(It.read(n)):void 0,G=r?jt.read(r):void 0;return{year:m,month:G?new xt(G,wt.create(G.value,m?.value)):void 0,day:s?new Nt(yt.read(s)):void 0,hour:a?new Et(bt.read(a)):void 0,minute:u?new Tt(Ut.read(u)):void 0,second:p?new Mt(zt.read(p)):void 0,millisecond:c?mt.parseFraction(c):void 0,timeshift:f?ct.fromString(f,new vt,{year:m?.value,month:G?.value,day:s?yt.read(s).value:void 0,hour:a?bt.read(a).value:void 0}):void 0}}}const Qe="years",ue="months",Er="days",De="hours",Pe="minutes",Le="seconds";class Ne extends _{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Qe),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ue),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Er),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,De),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Pe),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Le),"+",void 0,"\\d"),"S")}constructor(){super("duration",Ne.format())}parseGroups(t){return{years:t[Qe],months:t[ue],days:t[ue],hours:t[De],minutes:t[Pe],seconds:t[Le]}}}const ce="start",me="end";class Ee extends _{static format=i.group(ce,pt.format(ce))+"/"+i.group(me,pt.format(me));constructor(){super("interval",Ee.format)}parse(t){const e=this.regexGroups(t),n=e[ce],r=e[me];return{start:n?R.fromString(n,new pt):void 0,end:r?R.fromString(r,new pt):void 0}}}d.register(R,()=>new pt);d.register(Nt,()=>new yt);d.register(H,()=>new Ne);d.register(Et,()=>new bt);d.register(Rt,()=>new Ee);d.register(Tt,()=>new Ut);d.register(xt,()=>new jt);d.register(Mt,()=>new zt);d.register(ct,()=>new vt);d.register(Gt,()=>new It);class E extends tt{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=E.uncertainGroup+E.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return i.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(i.groupName(E.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(E.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(E.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,n){return i.numberGroup(t,e,n,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],n;return e.charAt(0)==="-"?(n=-1,e=e.substring(1)):n=1,{valueStr:e,sign:n}}parseGroups(t){const{valueStr:e,sign:n}=this.getValueAndSign(t);let r=0,s;for(s=0;s<e.length;s++){const c=e[s];if(c==="X")break;r=r*10+parseInt(c,10)}if(s<e.length){let c=1;for(let G=0;G<e.length-s;G++)c*=10;const f=n*r*c,m=f+c-1;r={start:f,end:m}}else r*=n;const a=t[i.groupName(E.uncertainAndApproximateGroup,this.name)],u=t[i.groupName(E.approximateGroup,this.name)]||a,p=t[i.groupName(E.uncertainGroup,this.name)]||a;return{value:r,approximate:u?!!u:!1,uncertain:p?!!p:!1}}}const _e="yearValue";class Ct extends E{constructor(){super(_e,Ct.format())}static format(t=""){return"Y?"+E.numberFormat(i.groupName(t,_e),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const tn="monthValue";class Bt extends E{static format(t=""){return E.numberFormat(i.groupName(t,tn),"{1,2}",void 0)}constructor(){super(tn,Bt.format())}}const en="dayValue";class qt extends E{static format(t=""){return E.numberFormat(i.groupName(t,en),"{1,2}",void 0)}constructor(){super(en,qt.format())}}const nn="hourValue";class Ht extends E{static format(t=""){return E.numberFormat(i.groupName(t,nn),"{1,2}",void 0)}constructor(){super(nn,Ht.format())}}const rn="minuteValue";class Yt extends E{static format(t=""){return E.numberFormat(i.groupName(t,rn),"{1,2}",void 0)}constructor(){super(rn,Yt.format())}}const sn="secondValue";class Xt extends E{static format(t=""){return E.numberFormat(i.groupName(t,sn),"{1,2}",void 0)}constructor(){super(sn,Xt.format())}}class Wt extends vt{}class T extends _{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=T.format()){super("date",t)}static format(t=""){return i.group(i.groupName(t,T.yearGroup),Ct.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,T.monthGroup),Bt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,T.dayGroup),qt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,T.hourGroup),Ht.format(t)),":",i.group(i.groupName(t,T.minuteGroup),Yt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,T.secondGroup),Xt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,T.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,T.timeshiftGroup),Wt.format(t)))))}parseGroups(t){const e=t[T.millisecondGroup],n=e?mt.parseFraction(e):void 0,r=t[T.secondGroup],s=r?ut.fromString(r,new Xt):void 0,a=t[T.minuteGroup];let u;a&&(u=at.fromString(a,new Yt),u.uncertain=u.uncertain||s?.uncertain||!1,u.approximate=u.approximate||s?.approximate||!1);const p=t[T.hourGroup];let c;p&&(c=it.fromString(p,new Ht),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[T.dayGroup];let m;f&&(m=ot.fromString(f,new qt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const G=t[T.monthGroup];let g;G&&(g=st.fromString(G,new Bt),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const S=t[T.yearGroup];let y;S&&(y=rt.fromString(S,void 0,new Ct),y.uncertain=y.uncertain||g?.uncertain||!1,y.approximate=y.approximate||g?.approximate||!1);const F=t[T.timeshiftGroup],M=F?lt.fromString(F,new Wt,{year:y?.value,month:g?.value,day:m?.value,hour:c?.value}):void 0;return{year:y,month:g,day:m,hour:c,minute:u,second:s,millisecond:n,timeshift:M}}}const on="years",an="months",un="days",cn="hours",mn="minutes",dn="seconds";class ht extends E{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,on),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,an),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,un),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,cn),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,mn),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,dn),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",ht.format())}parseGroups(t){return{years:t[on],months:t[an],days:t[un],hours:t[cn],minutes:t[mn],seconds:t[dn],uncertain:!!t[E.uncertainGroup],approximate:!!t[E.approximateGroup]}}}const Tr="dates",de="start",pe="end",pn="durations",he="durationMin",le="durationMax";class Te extends _{static format=i.group(Tr,i.optionalGroup(de,i.group("openStart","\\.\\.")+"|"+T.format(de))+"/"+i.optionalGroup(pe,i.group("openEnd","\\.\\.")+"|"+T.format(pe)))+"|"+i.group(pn,i.group(he,ht.format(he))+"/"+i.group(le,ht.format(le)));constructor(t="interval",e=Te.format){super(t,e)}parseGroups(t){let e,n;if(t[pn]){const s=t[he];e=k.fromString(s,new ht);const a=t[le];n=k.fromString(a,new ht)}else{const s=t[de];switch(s){case void 0:e=null;break;case"..":e=void 0;break;default:e=U.fromString(s,new T)}const a=t[pe];switch(a){case void 0:n=null;break;case"..":n=void 0;break;default:n=U.fromString(a,new T)}}return{start:e,end:n}}}d.register(U,()=>new T);d.register(ot,()=>new qt);d.register(k,()=>new ht);d.register(it,()=>new Ht);d.register(Ft,()=>new Te);d.register(at,()=>new Yt);d.register(st,()=>new Bt);d.register(ut,()=>new Xt);d.register(lt,()=>new Wt);d.register(rt,()=>new Ct);class b extends E{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=b.uncertainGroup+b.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,n){return this.qualifierFormat(i.groupName(b.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(b.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(b.uncertainAndApproximateGroup,t),"%")+E.numberFormat(t,e,n)}parseGroups(t){const e=super.parseGroups(t),n=t[i.groupName(b.uncertainAndApproximateGroup,this.name)];return(t[i.groupName(b.uncertainGroup,this.name)]||n)&&(e.uncertainComponent=!0),(t[i.groupName(b.approximateGroup,this.name)]||n)&&(e.approximateComponent=!0),e}}const $t="yearValue",hn="exp",ln="signif";class Ot extends b{constructor(){super($t,Ot.format())}static format(t=""){return"Y?"+i.nonCapturingGroup(i.group(i.groupName(t,hn),"[-]?\\d+E\\d+")+"|"+b.numberFormat(i.groupName(t,$t),"+","[-]?")+i.optionalGroup(i.groupName(t,ln),"S\\d+"))}parseGroups(t){const e=t[hn];if(e){const a=e.indexOf("E"),u=parseInt(e.substring(a+1),10),c=parseInt(e.substring(0,a),10)*Math.pow(10,u);t[$t]=c.toString()}const n=t[ln],r=t[$t];if(n){const a=parseInt(n.substring(1),10),{valueStr:u,sign:p}=this.getValueAndSign(t);let c="";for(let f=0;f<u.length;f++)c+=f<a?u.charAt(f):"X";t[$t]=(p<0?"-":"")+c}const s=super.parseGroups(t);return n&&(s.value.estimate=parseInt(r,10)),s}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const fn="monthValue";class Jt extends b{static format(t=""){return b.numberFormat(i.groupName(t,fn),"{1,2}",void 0)}constructor(){super(fn,Jt.format())}}const gn="dayValue";class Kt extends b{static format(t=""){return b.numberFormat(i.groupName(t,gn),"{1,2}",void 0)}constructor(){super(gn,Kt.format())}}const wn="hourValue";class Zt extends b{static format(t=""){return b.numberFormat(i.groupName(t,wn),"{1,2}",void 0)}constructor(){super(wn,Zt.format())}}const Sn="secondValue";class Qt extends b{static format(t=""){return b.numberFormat(i.groupName(t,Sn),"{1,2}",void 0)}constructor(){super(Sn,Qt.format())}}const yn="minuteValue";class Dt extends b{static format(t=""){return b.numberFormat(i.groupName(t,yn),"{1,2}",void 0)}constructor(){super(yn,Dt.format())}}class Mr extends Wt{}class x extends _{static yearGroup=T.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",x.format())}static format(t=""){return i.group(i.groupName(t,x.yearGroup),Ot.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,x.monthGroup),Jt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,x.dayGroup),Kt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,x.hourGroup),Zt.format(t)),":",i.group(i.groupName(t,x.minuteGroup),Dt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,x.secondGroup),Qt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,x.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,x.timeshiftGroup),Mr.format(t)))))}parseGroups(t){const e=t[x.millisecondGroup],n=e?mt.parseFraction(e):void 0,r=t[x.secondGroup];let s;r&&(s=L.fromString(r,void 0,new Qt),s.uncertain=s?.uncertain||!1,s.approximate=s?.approximate||!1);const a=t[x.minuteGroup];let u;a&&(u=P.fromString(a,new Dt),u.uncertain=u.uncertain||s?.uncertain||!1,u.approximate=u.approximate||s?.approximate||!1);const p=t[x.hourGroup];let c;p&&(c=D.fromString(p,new Zt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[x.dayGroup];let m;f&&(m=Q.fromString(f,new Kt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const G=t[x.monthGroup];let g;G&&(g=Z.fromString(G,new Jt),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const S=t[x.yearGroup];let y;S&&(y=K.fromString(S,void 0,new Ot),y.uncertain=y.uncertain||g?.uncertain||!1,y.approximate=y.approximate||g?.approximate||!1);const F=t[x.timeshiftGroup],M=F?jn.fromString(F,new Wt,{year:y?.value,month:g?.value,day:m?.value,hour:c?.value}):void 0;return{year:y,month:g,day:m,hour:c,minute:u,second:s,millisecond:n,timeshift:M}}}const bn="durationValue";class Me extends b{static format(t=""){return"^"+b.numberFormat(i.groupName(t,bn),"+",void 0)}constructor(){super(bn,Me.format())}}class vr extends be{millisecond=new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new N("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new N("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new N("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new N("year",0,Number.MAX_SAFE_INTEGER,this.month)}const ft=new vr;class h extends b{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new Me;static componentFormat(t,e,n,r,s=""){const a=i.group(i.groupName(t,h.quantityGroup(e)),b.numberFormat(i.groupName(t,n),"+",void 0,"\\d"));return i.group(i.groupName(t,e),a,r,s)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",h.format())}static format(t=""){const e=i.groupName(t,h.durationGroup);return this.qualifierFormat(i.groupName(b.uncertainGroup,e),"?")+this.qualifierFormat(i.groupName(b.approximateGroup,e),"~")+this.qualifierFormat(i.groupName(b.uncertainAndApproximateGroup,e),"%")+"P"+i.optional(h.componentFormat(t,h.yearsGroup,x.yearGroup,"Y"))+i.optionalNonCapturingGroup(h.componentFormat(t,h.monthsGroup,x.monthGroup,"MM")+"|"+h.componentFormat(t,h.isoMonthsGroup,"isoMonth","M",h.isoMonthsLookahead))+i.optional(h.componentFormat(t,h.daysGroup,x.dayGroup,"D"))+"T?"+i.optional(h.componentFormat(t,h.hoursGroup,x.hourGroup,"H"))+i.optional(h.componentFormat(t,h.minutesGroup,x.minuteGroup,"M"))+i.optional(h.componentFormat(t,h.secondsGroup,x.secondGroup,"S"))+i.optionalGroup(i.groupName(t,h.suffixGroup),"[?~%]")}static parseComponent(t,e,n){const r=h.componentParser.parse(t);return new e(r,n)}parseGroups(t){const e=t[h.quantityGroup(h.secondsGroup)];let n;e&&(n=h.parseComponent(e,L,ft.second),n.uncertain=!!t[i.groupName(b.uncertainGroup,h.secondsGroup)]||!1,n.approximate=!!t[i.groupName(b.approximateGroup,h.secondsGroup)]||!1);const r=t[h.quantityGroup(h.minutesGroup)];let s;r&&(s=h.parseComponent(r,P,ft.minute),s.uncertain=s.uncertain||n?.uncertain||!1,s.approximate=s.approximate||n?.approximate||!1);const a=t[h.quantityGroup(h.hoursGroup)];let u;a&&(u=h.parseComponent(a,D,ft.hour),u.uncertain=u.uncertain||s?.uncertain||!1,u.approximate=u.approximate||s?.approximate||!1);const p=t[h.quantityGroup(h.daysGroup)];let c;p&&(c=h.parseComponent(p,Q,ft.day),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const f=t[h.quantityGroup(h.monthsGroup)]||t[h.quantityGroup(h.isoMonthsGroup)];let m;f&&(m=h.parseComponent(f,Z,ft.month),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const G=t[h.quantityGroup(h.yearsGroup)];let g;G&&(g=h.parseComponent(G,K,ft.year),g.uncertain=g.uncertain||m?.uncertain||!1,g.approximate=g.approximate||m?.approximate||!1);const S=t[h.suffixGroup],y=!!t[i.groupName(b.uncertainAndApproximateGroup,h.durationGroup)]||S==="%",F=y||!!t[i.groupName(b.uncertainGroup,h.durationGroup)]||S==="?",M=y||!!t[i.groupName(b.approximateGroup,h.durationGroup)]||S==="~";return{years:g,months:m,days:c,hours:u,minutes:s,seconds:n,uncertain:F,approximate:M}}}const Ar="dates",fe="start",ge="end",Gn="durations",we="durationMin",Se="durationMax";class ae extends _{static format=i.group(Ar,i.optionalGroup(fe,i.group("openStart","\\.\\.")+"|"+x.format(fe))+"/"+i.optionalGroup(ge,i.group("openEnd","\\.\\.")+"|"+x.format(ge)))+"|"+i.group(Gn,i.group(we,h.format(we))+"/"+i.group(Se,h.format(Se)));constructor(t="interval",e=ae.format){super(t,e)}parseGroups(t){let e,n;if(t[Gn]){const s=t[we];e=A.fromString(s,new h);const a=t[Se];n=A.fromString(a,new h)}else{const s=t[fe];switch(s){case void 0:e=null;break;case"..":e=void 0;break;default:e=z.fromString(s,new x)}const a=t[ge];switch(a){case void 0:n=null;break;case"..":n=void 0;break;default:n=z.fromString(a,new x)}}return{start:e,end:n}}}class kr{parse(t){t=t.trim();const e=t.startsWith("["),r=t.substring(1,t.length-1).split(","),s=[];for(const a of r){let u;a.includes("..")?u=Vt.fromString(a.replace("..","/"),new ae):u=z.fromString(a,new x),s.push(u)}return{values:s,exclusive:e}}}d.register(z,()=>new x);d.register(Q,()=>new Kt);d.register(A,()=>new h);d.register(D,()=>new Zt);d.register(Vt,()=>new ae);d.register(P,()=>new Dt);d.register(Z,()=>new Jt);d.register(L,()=>new Qt);d.register(ee,()=>new kr);d.register(K,()=>new Ot);class X{constructor(t){this.preferences=t}read(t){var e,n;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const s of this.preferences){const a=(e=t[s])!==null&&e!==void 0?e:t[X.base(s)];if(a)return a}const r=new Set(this.preferences.map(s=>X.base(s)));for(const[s,a]of Object.entries(t))if(a&&r.has(X.base(s)))return a;return(n=Object.values(t).find(s=>s))!==null&&n!==void 0?n:void 0}write(t,e,n){var r,s;const a=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return a;const u={...t},p=(s=(r=Object.keys(u).find(c=>c===n))!==null&&r!==void 0?r:Object.keys(u).find(c=>X.base(c)===X.base(n)))!==null&&s!==void 0?s:n;return a===void 0?delete u[p]:u[p]=a,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}X.any=new X([]);var xn;(function(o){o.abductee="abductee",o.actor="actor",o.artist="artist",o.anthropologist="anthropologist",o.archeologist="archeologist",o.astronaut="astronaut",o.astronomer="astronomer",o.astrologist="astrologist",o.astrophysicist="astrophysicist",o.banker="banker",o.barman="barman",o.biologist="biologist",o.biochemist="biochemist",o.biophysicist="biophysicist",o.bishop="bishop",o.businessman="businessman",o.botanist="botanist",o.cameraman="cameraman",o.chemist="chemist",o.contactee="contactee",o.cryptozoologist="cryptozoologist",o.dentist="dentist",o.director="director",o.diplomat="diplomat",o.diver="diver",o.electronics="electronics",o.engineer="engineer",o.ethnologist="ethnologist",o.exobiologist="exobiologist",o.farmer="farmer",o.firefighter="firefighter",o.flightAttendant="flightAttendant",o.geologist="geologist",o.geophysicist="geophysicist",o.geographer="geographer",o.historian="historian",o.houseWife="houseWife",o.hypnotherapist="hypnotherapist",o.illusionist="illusionist",o.journalist="journalist",o.judge="judge",o.lawyer="lawyer",o.leader="leader",o.librarian="librarian",o.logger="logger",o.mathematician="mathematician",o.mechanic="mechanic",o.meteorologist="meteorologist",o.military="military",o.musician="musician",o.neurologist="neurologist",o.neuroscientist="neuroscientist",o.neuropsychiatrist="neuropsychiatrist",o.nurse="nurse",o.oceanographer="oceanographer",o.painter="painter",o.parapsychologist="parapsychologist",o.philosopher="philosopher",o.photographer="photographer",o.physician="physician",o.physicist="physicist",o.pilot="pilot",o.politician="politician",o.policeman="policeman",o.priest="priest",o.producer="producer",o.prospector="prospector",o.psychologist="psychologist",o.psychiatrist="psychiatrist",o.radioastronomer="radioastronomer",o.radioamateur="radioamateur",o.salesman="salesman",o.sailor="sailor",o.sociologist="sociologist",o.softwareEngineer="softwareEngineer",o.stuntman="stuntman",o.taxiDriver="taxiDriver",o.teacher="teacher",o.telegrapher="telegrapher",o.truckDriver="truckDriver",o.ufologist="ufologist",o.ufoWitness="ufoWitness",o.ufoWitness2="ufoWitness2",o.worker="worker",o.writer="writer"})(xn||(xn={}));var Nn;(function(o){o.neutral="neutral",o.male="male",o.female="female"})(Nn||(Nn={}));const $r="modulepreload",Rr=function(o,t){return new URL(o,t).href},En={},_t=function(t,e,n){let r=Promise.resolve();if(e&&e.length>0){let a=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(G=>({status:"fulfilled",value:G}),G=>({status:"rejected",reason:G}))))};const u=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),c=p?.nonce||p?.getAttribute("nonce");r=a(e.map(f=>{if(f=Rr(f,n),f in En)return;En[f]=!0;const m=f.endsWith(".css"),G=m?'[rel="stylesheet"]':"";if(!!n)for(let y=u.length-1;y>=0;y--){const F=u[y];if(F.href===f&&(!m||F.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${G}`))return;const S=document.createElement("link");if(S.rel=m?"stylesheet":$r,m||(S.as="script"),S.crossOrigin="",S.href=f,c&&S.setAttribute("nonce",c),document.head.appendChild(S),m)return new Promise((y,F)=>{S.addEventListener("load",y),S.addEventListener("error",()=>F(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return r.then(a=>{for(const u of a||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};class Fr extends Error{constructor(t,e){super(t),this.cause=e}}class ve extends Fr{constructor(t=ve.defaultMessage,e){super(t,e)}}ve.defaultMessage="Assertion failed";var Tn;(function(o){o.country="country",o.region="region",o.department="department",o.city="city",o.company="company"})(Tn||(Tn={}));var Mn;(function(o){o.at="at",o.au="au",o.ar="ar",o.be="be",o.br="br",o.ca="ca",o.ch="ch",o.cn="cn",o.cl="cl",o.co="co",o.cy="cy",o.de="de",o.dk="dk",o.do="do",o.dz="dz",o.gr="gr",o.ec="ec",o.eg="eg",o.es="es",o.fi="fi",o.fr="fr",o.ga="ga",o.ge="ge",o.hu="hu",o.in="in",o.ie="ie",o.ir="ir",o.il="il",o.it="it",o.jp="jp",o.kr="kr",o.ma="ma",o.mx="mx",o.my="my",o.mz="mz",o.nl="nl",o.no="no",o.nz="nz",o.pa="pa",o.pe="pe",o.ph="ph",o.pl="pl",o.pt="pt",o.ro="ro",o.ru="ru",o.sc="sc",o.tr="tr",o.ua="ua",o.uk="uk",o.us="us",o.sa="sa",o.se="se",o.su="su",o.tn="tn",o.tw="tw",o.ve="ve",o.za="za"})(Mn||(Mn={}));class Vr extends Error{constructor(t,e,n){super(typeof e=="number"&&Number.isInteger(e)&&e>=1?`This ${t} file is in version ${e} of its format; this UFO@home reads version ${n}. Read it with the UFO@home that reads its version.`:`This ${t} file states ${JSON.stringify(e)} as its format version, which is not a version.`),this.format=t,this.found=e,this.supported=n,this.name="FormatVersionError"}said(t){return t.replace("{found}",typeof this.found=="number"?String(this.found):JSON.stringify(this.found)).replace("{supported}",String(this.supported))}}class nt{static CURRENT={sighting:4,case:1,interview:1};static SCHEMA_BASE="https://ufoathome.org/schema";static schemaUrl(t,e=nt.CURRENT[t]){return`${nt.SCHEMA_BASE}/${e}/${t}.schema.json`}static of(t){if(typeof t!="object"||t===null)return 1;const e=t.version;return e===void 0?1:typeof e=="object"&&e!==null&&"value"in e?e.value:e}static recording(t){return nt.check(t,"sighting")}static check(t,e){const n=nt.of(t),r=nt.CURRENT[e];if(typeof n!="number"||!Number.isInteger(n)||n!==r)throw new Vr(e,n,r);return t}}class J{static NAMES=["weather","place","lightPollution","decor"];static KEYS={weather:["weatherTrack","weatherSource"],place:["place"],lightPollution:["lightPollution"],decor:["decor"]};static annexName(t,e){return`${t}.${e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}.json`}static taken(t,e){const n={};if(t==="decor")return Array.isArray(e.decor)&&(n.decor=e.decor.filter(J.surveyed)),n;for(const r of J.KEYS[t])e[r]!==void 0&&(n[r]=e[r]);return n}static strip(t,e){if(t==="decor"){const n=Array.isArray(e.decor)?e.decor.filter(r=>!J.surveyed(r)):[];n.length>0?e.decor=n:delete e.decor;return}for(const n of J.KEYS[t])delete e[n]}static put(t,e,n){if(t==="decor"){if(!Array.isArray(n.decor))return;const r=Array.isArray(e.decor)?e.decor.filter(s=>!J.surveyed(s)):[];e.decor=[...r,...n.decor];return}for(const r of J.KEYS[t])n[r]!==void 0&&(e[r]=n[r])}static surveyed(t){return typeof t=="object"&&t!==null&&typeof t.origin=="string"}static fromFile(t,e){return t?.[e]!==void 0&&t[e].live!==!0}}class j{static files=new Map;static hold(t){for(const[e,n]of t)j.files.set(j.key(e),n)}static releaseCopies(){for(const[t,e]of j.files)e.local||j.files.delete(t)}static clear(){j.files.clear()}static localBase(){return new URL(`local/${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}/`,location.href).href}static read(t){const e=j.files.get(j.key(t));return e===void 0?void 0:structuredClone(e.json)}static changed(...t){return t.some(e=>e!==void 0&&j.files.get(j.key(e))?.changed===!0)}static local(t){return t!==void 0&&j.files.get(j.key(t))?.local===!0}static key(t){const e=new URL(t,location.href);return e.hash="",e.href}}class gt extends Error{constructor(t,e,n){super(`${t}: ${e}${n===void 0?"":` (HTTP ${n})`}`),this.kind=t,this.url=e,this.status=n,this.name="SightingFetchError"}}class ne{static async recording(t){const e=j.read(t);if(e!==void 0)return e;const n=await ne.json(t);for(const r of J.NAMES){const s=n?.snapshots?.[r];if(!(!s?.src||s.live))try{const a=nt.recording(await ne.json(new URL(s.src,new URL(t,location.href)).href));J.put(r,n,a)}catch{}}return n}static async json(t){const e=new URL(t,location.href),n=j.read(e.href);if(n!==void 0)return n;if(location.protocol==="https:"&&e.protocol==="http:")throw new gt("mixed-content",t);let r;try{r=await fetch(t)}catch{throw await this.diagnose(t,e)}if(!r.ok)throw new gt("status",t,r.status);try{return await r.json()}catch{throw new gt("malformed",t)}}static async diagnose(t,e){if(e.origin===location.origin)return new gt("unreachable",t);try{return await fetch(t,{mode:"no-cors"}),new gt("cors",t)}catch{return new gt("unreachable",t)}}}function Ir(o,t){for(const e of o){const n=e.toLowerCase().split("-")[0];if(t.includes(n))return n}return"en"}class jr{static preferencesFor(t){const e=navigator.languages??[],n=this.declaredFor(t);return n?[n,...e]:e}static declaredFor(t){for(let e=t;e;){const n=e.closest("[lang]")?.getAttribute("lang")?.trim();if(n)return n;const r=e.getRootNode();e=r instanceof ShadowRoot?r.host:void 0}}}const Ur=["en","fr","es","it"];class Ae{static catalog(t){const e=new Map;return{load(n){const r=Ae.languageOf(n);let s=e.get(r);return s||(s=t[r](),e.set(r,s),s.catch(()=>e.delete(r))),s}}}static none(){return new Proxy({},{get:()=>""})}static blank(){const t=new Proxy(()=>t,{get:(e,n)=>n===Symbol.toPrimitive?()=>"":n===Symbol.iterator?function*(){}:n==="toString"||n==="valueOf"?()=>"":n==="then"?void 0:t,apply:()=>t,has:()=>!1,ownKeys:()=>[],getOwnPropertyDescriptor:()=>{}});return t}static languageOf(t){const e=t.toLowerCase().split("-")[0];return Ur.includes(e)?e:"en"}}const zr=["en","fr","es","it"],Cr={en:()=>_t(()=>import("./InterviewMessages_en-BrnxG2rl.js"),[],import.meta.url).then(o=>o.interviewMessages_en),fr:()=>_t(()=>import("./InterviewMessages_fr-DIA-1qu8.js"),[],import.meta.url).then(o=>o.interviewMessages_fr),es:()=>_t(()=>import("./InterviewMessages_es-Dxfjqrte.js"),[],import.meta.url).then(o=>o.interviewMessages_es),it:()=>_t(()=>import("./InterviewMessages_it-CYBEIKX-.js"),[],import.meta.url).then(o=>o.interviewMessages_it)},Br=Ae.catalog(Cr),qr="interviewseek";class v{static UNATTRIBUTED="unattributed";static read(t){return nt.check(t,"interview")}static isProofread(t){const e=Object.keys(t.speakers);return e.length>0&&e.every(n=>{const r=t.proofreading?.[n]?.status;return r==="approved"||r==="covered"})}static said(t){return t.parts?t.parts.map(e=>"redacted"in e?"…":v.plain(e.text)).join(" "):t.redacted?void 0:v.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
2
+ `).replace(/<\/?[a-z][^>]*>/gi,"").replace(/&#x([0-9a-f]+);/gi,(e,n)=>String.fromCodePoint(parseInt(n,16))).replace(/&#(\d+);/g,(e,n)=>String.fromCodePoint(Number(n))).replace(/&(\w+);/g,(e,n)=>v.ENTITIES[n.toLowerCase()]??e):t}static sightingsOf(t){return[t.interviewOf].flat().filter(e=>typeof e=="string")}static passagesAbout(t,e){const n=v.sightingsOf(t),r=[];return t.segments.forEach((s,a)=>{for(const u of s.refs??[]){if(u.sighting===void 0?!n.includes(e):u.sighting!==e)continue;const p=v.said(s);r.push({index:a,speaker:s.speaker,at:u.at,...p!==void 0?{text:p}:{},...u.range?{range:u.range}:{}})}}),r.sort((s,a)=>s.at-a.at||s.index-a.index)}static clock(t,e=!1){const n=Math.round(t*10),r=Math.floor(n/10),s=p=>String(p).padStart(2,"0"),a=Math.floor(r/3600),u=`${a>0||e?s(Math.floor(r/60)%60):Math.floor(r/60)}:${s(r%60)}`;return`${a>0?`${a}:`:""}${u}${e||n%10!==0?`.${n%10}`:""}`}static speakerName(t,e){const n=t.speakers[e];if(!n)return e;const r=typeof n.title=="string"?n.title:n.title?Object.values(n.title)[0]:void 0;return r||n.by&&v.agentName(n.by)||n.role}static agentName(t){if("people"in t){const[e,...n]=t.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...n,e].join(" ")}return"org"in t?t.org:t.title??""}static stamp(t){const e=Math.round(t*1e3),n=(r,s=2)=>String(r).padStart(s,"0");return`${n(Math.floor(e/36e5))}:${n(Math.floor(e/6e4)%60)}:${n(Math.floor(e/1e3)%60)}.${n(e%1e3,3)}`}static toVtt(t){const e=s=>s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n=t.segments.filter(s=>s.start!==void 0);return`WEBVTT
3
3
 
4
- ${n.map((o,a)=>{const u=n[a+1],p=o.end??u?.start??o.start+5,c=u&&u.start<p?Math.max(o.start,u.start):p;return`${v.stamp(o.start)} --> ${v.stamp(c)}
5
- <v ${e(v.speakerName(t,o.speaker))}>${e(v.said(o)??"[…]")}`}).join(`
4
+ ${n.map((s,a)=>{const u=n[a+1],p=s.end??u?.start??s.start+5,c=u&&u.start<p?Math.max(s.start,u.start):p;return`${v.stamp(s.start)} --> ${v.stamp(c)}
5
+ <v ${e(v.speakerName(t,s.speaker))}>${e(v.said(s)??"[…]")}`}).join(`
6
6
 
7
7
  `)}
8
- `}}class w{static svg(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="currentColor"/></svg>`}static outline(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" stroke-linecap="round"/></svg>`}static solid(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="currentColor" fill-rule="evenodd"/></svg>`}static BOOKMARK="M6 3.5h12a.5.5 0 0 1 .5.5v16.5L12 16.8l-6.5 3.7V4a.5.5 0 0 1 .5-.5z";static PICTURE="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z";static PICTURE_HILLS="M4.5 17.5l4.5-6 3 4 2.5-3 5 5z";static PIN="M12 21.5s-6.5-5.7-6.5-10.8a6.5 6.5 0 0 1 13 0c0 5.1-6.5 10.8-6.5 10.8z";static PIN_HOLE="M12 8.4a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8z";static MILESTONES_OFF=w.outline(w.BOOKMARK);static MILESTONES_ON=w.solid(w.BOOKMARK);static PICTURES_OFF=w.outline(`${w.PICTURE}${w.PICTURE_HILLS}`);static PICTURES_ON=w.solid(`${w.PICTURE}${w.PICTURE_HILLS}`);static TRACE_LINE="M3 19.5l2.2-2.2 1.4 1.4L4.4 20.9zM8 14.5l2.2-2.2 1.4 1.4-2.2 2.2zM13 9.5l2.2-2.2 1.4 1.4-2.2 2.2z";static TRACE_MARK="M18.5 2.5l3.5 3.5-3.5 3.5-3.5-3.5z";static TRACES_OFF=w.outline(`${w.TRACE_LINE}${w.TRACE_MARK}`);static TRACES_ON=w.solid(`${w.TRACE_LINE}${w.TRACE_MARK}`);static MAP_OFF=w.outline(`${w.PIN}${w.PIN_HOLE}`);static MAP_ON=w.solid(`${w.PIN}${w.PIN_HOLE}`);static SHARE=w.outline("M14 4l7 7-7 7v-4.2C8.6 13.8 5.4 15.6 3.5 19c.6-5.6 3.4-9.6 10.5-10.8V4z");static VIDEO=w.outline("M3.5 7h11a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zM15.5 10.5l5-3v9l-5-3z");static FOLDED=w.svg("M15.4 7.4 14 6l-6 6 6 6 1.4-1.4L10.8 12z");static UNFOLDED=w.svg("M8.6 16.6 10 18l6-6-6-6-1.4 1.4 4.6 4.6z");static PLAY=w.svg("M7.4 5v14l11-7z");static PAUSE=w.svg("M6 5h4v14H6zM14 5h4v14h-4z");static VOLUME=w.svg("M2 9.5v5h3.5l4.5 4.5V5L5.5 9.5H2zm12.5 2.5A4 4 0 0 0 12.5 8.5v7A4 4 0 0 0 14.5 12zM12.5 4.2v2.1a6.5 6.5 0 0 1 0 11.4v2.1a8.6 8.6 0 0 0 0-15.6z");static MUTED=w.svg("M2 9.5v5h3.5l4.5 4.5V5L5.5 9.5H2zM15 9.8l1.4-1.4 2.6 2.6 2.6-2.6 1.4 1.4-2.6 2.6 2.6 2.6-1.4 1.4-2.6-2.6-2.6 2.6-1.4-1.4 2.6-2.6z");static ENTER_FULLSCREEN=w.svg("M5 5h5v2H7v3H5V5zm9 0h5v5h-2V7h-3V5zM5 14h2v3h3v2H5v-5zm12 0h2v5h-5v-2h3v-3z");static EXIT_FULLSCREEN=w.svg("M8 5h2v5H5V8h3V5zm6 0h2v3h3v2h-5V5zM5 14h5v5H8v-3H5v-2zm9 0h5v2h-3v3h-2v-5z")}const Mn="rr0-interview",qr=`
8
+ `}}class q{static given=new Map;static add(t,e){const n=decodeURIComponent(e.replace(/[?#].*$/,"").replace(/^.*\//,"")).replace(/\.json$/i,"")||"interview",r=t.name.replace(/[\\/:*?"<>|#%]+/g,"_").trim()||"file";let s=`${n}-files/${r}`;for(let a=2;q.given.has(new URL(encodeURI(s),e).href);a++)s=`${n}-files/${r.replace(/(\.[^.]*)?$/,`-${a}$1`)}`;return q.given.set(new URL(encodeURI(s),e).href,{blob:t}),{src:s,name:t.name,...t.type?{type:t.type}:{}}}static shown(t,e){const n=q.url(t,e),r=q.given.get(n);return r?(r.shown??=URL.createObjectURL(r.blob),r.shown):n}static fileName(t){return t.name??(decodeURIComponent(t.src.replace(/[?#].*$/,"").replace(/\/+$/,"").replace(/^.*\//,""))||t.src)}static isImage(t){return(t.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(q.fileName(t))}static url(t,e){try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(t.src)?t.src:encodeURI(t.src),e??(typeof location>"u"?void 0:location.href)).href}catch{return t.src}}static blob(t){return q.given.get(t)?.blob}static clear(){for(const{shown:t}of q.given.values())t&&URL.revokeObjectURL(t);q.given.clear()}}class w{static svg(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="currentColor"/></svg>`}static outline(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linejoin="round" stroke-linecap="round"/></svg>`}static solid(t){return`<svg viewBox="0 0 24 24" width="1.5em" height="1.5em" aria-hidden="true" focusable="false"><path d="${t}" fill="currentColor" fill-rule="evenodd"/></svg>`}static BOOKMARK="M6 3.5h12a.5.5 0 0 1 .5.5v16.5L12 16.8l-6.5 3.7V4a.5.5 0 0 1 .5-.5z";static PICTURE="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z";static PICTURE_HILLS="M4.5 17.5l4.5-6 3 4 2.5-3 5 5z";static PIN="M12 21.5s-6.5-5.7-6.5-10.8a6.5 6.5 0 0 1 13 0c0 5.1-6.5 10.8-6.5 10.8z";static PIN_HOLE="M12 8.4a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8z";static MILESTONES_OFF=w.outline(w.BOOKMARK);static MILESTONES_ON=w.solid(w.BOOKMARK);static PICTURES_OFF=w.outline(`${w.PICTURE}${w.PICTURE_HILLS}`);static PICTURES_ON=w.solid(`${w.PICTURE}${w.PICTURE_HILLS}`);static TRACE_LINE="M3 19.5l2.2-2.2 1.4 1.4L4.4 20.9zM8 14.5l2.2-2.2 1.4 1.4-2.2 2.2zM13 9.5l2.2-2.2 1.4 1.4-2.2 2.2z";static TRACE_MARK="M18.5 2.5l3.5 3.5-3.5 3.5-3.5-3.5z";static TRACES_OFF=w.outline(`${w.TRACE_LINE}${w.TRACE_MARK}`);static TRACES_ON=w.solid(`${w.TRACE_LINE}${w.TRACE_MARK}`);static MAP_OFF=w.outline(`${w.PIN}${w.PIN_HOLE}`);static MAP_ON=w.solid(`${w.PIN}${w.PIN_HOLE}`);static SHARE=w.outline("M14 4l7 7-7 7v-4.2C8.6 13.8 5.4 15.6 3.5 19c.6-5.6 3.4-9.6 10.5-10.8V4z");static VIDEO=w.outline("M3.5 7h11a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zM15.5 10.5l5-3v9l-5-3z");static FOLDED=w.svg("M15.4 7.4 14 6l-6 6 6 6 1.4-1.4L10.8 12z");static UNFOLDED=w.svg("M8.6 16.6 10 18l6-6-6-6-1.4 1.4 4.6 4.6z");static PLAY=w.svg("M7.4 5v14l11-7z");static PAUSE=w.svg("M6 5h4v14H6zM14 5h4v14h-4z");static VOLUME=w.svg("M2 9.5v5h3.5l4.5 4.5V5L5.5 9.5H2zm12.5 2.5A4 4 0 0 0 12.5 8.5v7A4 4 0 0 0 14.5 12zM12.5 4.2v2.1a6.5 6.5 0 0 1 0 11.4v2.1a8.6 8.6 0 0 0 0-15.6z");static MUTED=w.svg("M2 9.5v5h3.5l4.5 4.5V5L5.5 9.5H2zM15 9.8l1.4-1.4 2.6 2.6 2.6-2.6 1.4 1.4-2.6 2.6 2.6 2.6-1.4 1.4-2.6-2.6-2.6 2.6-1.4-1.4 2.6-2.6z");static ENTER_FULLSCREEN=w.svg("M5 5h5v2H7v3H5V5zm9 0h5v5h-2V7h-3V5zM5 14h2v3h3v2H5v-5zm12 0h2v5h-5v-2h3v-3z");static EXIT_FULLSCREEN=w.svg("M8 5h2v5H5V8h3V5zm6 0h2v3h3v2h-5V5zM5 14h5v5H8v-3H5v-2zm9 0h5v2h-3v3h-2v-5z")}const vn="rr0-interview",Hr=`
9
9
  rr0-interview { display: block; --rr0-interview-line: color-mix(in srgb, currentColor 35%, transparent); }
10
10
  rr0-interview [hidden] { display: none !important; }
11
11
  rr0-interview .rr0-interview-status { font-size: .85em; opacity: .85; margin: 0 0 .5em; }
@@ -31,8 +31,12 @@ rr0-interview .bar { position: relative; display: inline-block; width: 3em; heig
31
31
  rr0-interview .bar::after { content: attr(data-tip); display: none; position: absolute; left: 0; top: 1.4em; z-index: 3; width: max-content; max-width: 22em; padding: .3em .5em;
32
32
  border-radius: 4px; background: #222; color: #fff; font-size: .85em; line-height: 1.3; white-space: normal; }
33
33
  rr0-interview .bar:hover::after, rr0-interview .bar:focus::after { display: block; }
34
+ /* The files a turn gives: a picture shown as one, at most a third of a screen high, opening whole. */
35
+ rr0-interview .turn .files { display: flex; flex-wrap: wrap; gap: .5em; margin: .3em 0; }
36
+ rr0-interview .turn .file { display: inline-flex; flex-direction: column; gap: .2em; max-width: min(100%, 24em); font-size: .85em; overflow-wrap: anywhere; color: inherit; }
37
+ rr0-interview .turn .file img { display: block; max-width: 100%; max-height: 33vh; object-fit: contain; border-radius: 4px; background: #fff; }
34
38
  rr0-interview .turn .refs { display: flex; flex-wrap: wrap; gap: .25em; }
35
39
  rr0-interview .turn .ref { font: inherit; font-size: .8em; cursor: pointer; border: 1px solid var(--rr0-interview-line); border-radius: 999px; background: transparent; color: inherit;
36
40
  padding: 0 .35em; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: .15em; }
37
41
  rr0-interview .turn .ref svg { width: 1.1em; height: 1.1em; }
38
- `;class Ae extends HTMLElement{messages;said=new Y(["en"]);localeToken=0;loadToken=0;json;loading;base;status=document.createElement("p");turns=document.createElement("div");blocks=new Map;lastRevealed;syncedIndex;constructor(){super(),this.status.className="rr0-interview-status",this.status.setAttribute("role","status"),this.turns.className="rr0-interview-turns"}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,n){t==="src"&&n!==e&&this.isConnected&&this.load()}connectedCallback(){Ae.styleRoot(this.getRootNode()),this.contains(this.turns)||this.replaceChildren(this.status,this.turns),this.loadLocale(),this.hasAttribute("src")&&this.json===void 0&&this.loading!==this.getAttribute("src")&&this.load()}get interview(){return this.json}set interview(t){this.loadToken++,this.json=t,this.draw()}set documentUrl(t){this.base=t}static styleRoot(t){const e=t instanceof ShadowRoot?t:document.head;if(e.querySelector("style[data-rr0-interview]"))return;const n=document.createElement("style");n.dataset.rr0Interview="",n.textContent=qr,e.append(n)}async load(){const t=this.getAttribute("src"),e=++this.loadToken;if(this.loading=t??void 0,!t)return;const n=new URL(t,location.href).href;let r;try{r=v.read(await ee.json(n))}catch{r=void 0}e===this.loadToken&&(this.base=n,this.json=r,this.draw())}async loadLocale(){const t=++this.localeToken,e=Ir.preferencesFor(this),n=Vr(e,Ur),r=await Cr.load(n);t===this.localeToken&&(this.said=new Y(e),this.messages=r,this.draw())}speakerName(t,e){const n=v.speakerName(t,e),r=t.speakers?.[e]?.role;return n===r&&r in this.messages.roles?this.messages.roles[r]:n}seek(t,e){const n=this.json,r=e?v.said(e):void 0,o={sighting:t.sighting??v.sightingsOf(n)[0],at:t.at,...r?{quote:r}:{}};this.dispatchEvent(new CustomEvent(Br,{bubbles:!0,composed:!0,detail:o}));const a=this.getAttribute("player");if(!a)return;const p=this.getRootNode().getElementById?.(a);typeof p?.seekTo=="function"&&(p.scrollIntoView?.({block:"center",behavior:"smooth"}),p.seekTo(o.at,o.sighting))}gap(t,e){const n=document.createElement(e),r=document.createElement("span");r.className="bar";const o=`${this.messages.redacted}${this.messages.colon}${this.said.read(t)??""}`;return r.dataset.tip=o,r.tabIndex=0,r.setAttribute("role","img"),r.setAttribute("aria-label",o),n.append(r),n}saidNodes(t){if(!/[<&]/.test(t))return[document.createTextNode(t)];const e=document.createElement("template");e.innerHTML=t;for(const n of e.content.querySelectorAll("*")){if(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED"].includes(n.tagName)){n.remove();continue}for(const r of[...n.attributes])if(/^on/i.test(r.name)||/^\s*javascript:/i.test(r.value))n.removeAttribute(r.name);else if(["href","src"].includes(r.name))try{r.value=new URL(r.value,this.base??location.href).href}catch{}}return[...e.content.childNodes]}draw(){if(!this.messages)return;const t=this.messages,e=this.json;this.blocks.clear();const n=Array.isArray(e?.segments)?e.segments:[];if(!e||n.length===0){this.status.hidden=!0;const m=document.createElement("p");m.textContent=t.exchangesEmpty,this.turns.replaceChildren(m);return}const r=e.speakers??{},o=Object.keys(r);if(e.proofreading){const m=o.filter(b=>!["approved","covered"].includes(e.proofreading?.[b]?.status??""));this.status.textContent=m.length===0?t.proofreadAll:t.proofreadPending.replace("{names}",m.map(b=>this.speakerName(e,b)).join(", ")),this.status.hidden=!1}else this.status.hidden=!0;const a=[];let u,p=!1,c,f;n.forEach((m,b)=>{const g=m.redacted?JSON.stringify(m.redacted.reason):void 0;if(g!==void 0&&c?.reason===g){this.blocks.set(b,c.block),m.speaker!==f&&(f=void 0);return}const G=document.createElement("div");G.className="turn",G.dataset.segment=String(b);const S=document.createElement("div");S.className="who";const F=document.createElement("span");if(F.textContent=m.redacted?"":this.speakerName(e,m.speaker),m.start!==void 0&&(G.dataset.time=v.clock(m.start,!0)),f!==m.speaker&&(u=document.createElement("div"),u.className="intervention",u.style.setProperty("--speaker-hue",String((Math.max(0,o.indexOf(m.speaker))*67+210)%360)),a.push(u),p=!1),m.redacted||(p&&G.classList.add("goes-on"),p=!0),u.append(G),f=m.speaker,S.append(F),m.redacted){G.classList.add("is-redacted");const M=this.gap(m.redacted.reason,"p");M.className="redacted",c={block:G,reason:g},G.append(S,M)}else{const M=document.createElement("p");if(M.className="said",m.parts){let At="";for(const B of m.parts){const ke="redacted"in B?"▮":v.plain(B.text);/[\p{L}\p{N}.,;:!?)»”…▮]$/u.test(At)&&/^[\p{L}\p{N}(«“▮]/u.test(ke)&&M.append(" "),"redacted"in B?M.append(this.gap(B.redacted.reason,"span")):M.append(...this.saidNodes(B.text)),At=ke}}else M.append(...this.saidNodes(m.text??""));c=void 0,G.append(S,M)}if(m.refs?.length){const M=document.createElement("div");M.className="refs";for(const At of m.refs){const B=document.createElement("button");B.type="button",B.className="ref",B.innerHTML=w.PLAY,B.append(v.clock(At.at,!0)),B.addEventListener("click",()=>this.seek(At,m)),M.append(B)}G.append(M)}this.blocks.set(b,G)}),this.turns.replaceChildren(...a)}revealAt(t,e){const n=this.json;if(!n)return;const r=v.sightingsOf(n)[0];let o;if(n.segments?.forEach((a,u)=>{for(const p of a.refs??[]){const c=p.sighting??r;e!==void 0&&c!==void 0&&c!==e||p.at>t+.001||(!o||p.at>o.at)&&(o={index:u,at:p.at})}}),!!o)return o.index!==this.lastRevealed&&(this.lastRevealed=o.index,this.revealSegment(o.index)),this.markSynced(o.index),o.index}momentsCited(t){const e=this.json;if(!e)return[];const n=v.sightingsOf(e)[0],r=[];for(const o of e.segments??[])for(const a of o.refs??[]){const u=a.sighting??n;t!==void 0&&u!==void 0&&u!==t||r.push({at:a.at,quote:v.said(o)??""})}return r.sort((o,a)=>o.at-a.at)}markSynced(t){t!==this.syncedIndex&&(this.syncedIndex!==void 0&&this.blocks.get(this.syncedIndex)?.classList.remove("synced"),this.syncedIndex=t,this.blocks.get(t)?.classList.add("synced"))}revealSegment(t){const e=this.blocks.get(t);e&&(e.scrollIntoView?.({block:"center"}),e.classList.add("flash"),window.setTimeout(()=>e.classList.remove("flash"),1600))}}function Hr(){customElements.get(Mn)||customElements.define(Mn,Ae)}Hr();
42
+ `;class ke extends HTMLElement{messages;said=new X(["en"]);localeToken=0;loadToken=0;json;loading;base;status=document.createElement("p");turns=document.createElement("div");blocks=new Map;lastRevealed;syncedIndex;constructor(){super(),this.status.className="rr0-interview-status",this.status.setAttribute("role","status"),this.turns.className="rr0-interview-turns"}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,n){t==="src"&&n!==e&&this.isConnected&&this.load()}connectedCallback(){ke.styleRoot(this.getRootNode()),this.contains(this.turns)||this.replaceChildren(this.status,this.turns),this.loadLocale(),this.hasAttribute("src")&&this.json===void 0&&this.loading!==this.getAttribute("src")&&this.load()}get interview(){return this.json}set interview(t){this.loadToken++,this.json=t,this.draw()}set documentUrl(t){this.base=t}static styleRoot(t){const e=t instanceof ShadowRoot?t:document.head;if(e.querySelector("style[data-rr0-interview]"))return;const n=document.createElement("style");n.dataset.rr0Interview="",n.textContent=Hr,e.append(n)}async load(){const t=this.getAttribute("src"),e=++this.loadToken;if(this.loading=t??void 0,!t)return;const n=new URL(t,location.href).href;let r;try{r=v.read(await ne.json(n))}catch{r=void 0}e===this.loadToken&&(this.base=n,this.json=r,this.draw())}async loadLocale(){const t=++this.localeToken,e=jr.preferencesFor(this),n=Ir(e,zr),r=await Br.load(n);t===this.localeToken&&(this.said=new X(e),this.messages=r,this.draw())}speakerName(t,e){const n=v.speakerName(t,e),r=t.speakers?.[e]?.role;return n===r&&r in this.messages.roles?this.messages.roles[r]:n}seek(t,e){const n=this.json,r=e?v.said(e):void 0,s={sighting:t.sighting??v.sightingsOf(n)[0],at:t.at,...r?{quote:r}:{}};this.dispatchEvent(new CustomEvent(qr,{bubbles:!0,composed:!0,detail:s}));const a=this.getAttribute("player");if(!a)return;const p=this.getRootNode().getElementById?.(a);typeof p?.seekTo=="function"&&(p.scrollIntoView?.({block:"center",behavior:"smooth"}),p.seekTo(s.at,s.sighting))}gap(t,e){const n=document.createElement(e),r=document.createElement("span");r.className="bar";const s=`${this.messages.redacted}${this.messages.colon}${this.said.read(t)??""}`;return r.dataset.tip=s,r.tabIndex=0,r.setAttribute("role","img"),r.setAttribute("aria-label",s),n.append(r),n}saidNodes(t){if(!/[<&]/.test(t))return[document.createTextNode(t)];const e=document.createElement("template");e.innerHTML=t;for(const n of e.content.querySelectorAll("*")){if(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED"].includes(n.tagName)){n.remove();continue}for(const r of[...n.attributes])if(/^on/i.test(r.name)||/^\s*javascript:/i.test(r.value))n.removeAttribute(r.name);else if(["href","src"].includes(r.name))try{r.value=new URL(r.value,this.base??location.href).href}catch{}}return[...e.content.childNodes]}draw(){if(!this.messages)return;const t=this.messages,e=this.json;this.blocks.clear();const n=Array.isArray(e?.segments)?e.segments:[];if(!e||n.length===0){this.status.hidden=!0;const m=document.createElement("p");m.textContent=t.exchangesEmpty,this.turns.replaceChildren(m);return}const r=e.speakers??{},s=Object.keys(r);if(e.proofreading){const m=s.filter(G=>!["approved","covered"].includes(e.proofreading?.[G]?.status??""));this.status.textContent=m.length===0?t.proofreadAll:t.proofreadPending.replace("{names}",m.map(G=>this.speakerName(e,G)).join(", ")),this.status.hidden=!1}else this.status.hidden=!0;const a=[];let u,p=!1,c,f;n.forEach((m,G)=>{const g=m.redacted?JSON.stringify(m.redacted.reason):void 0;if(g!==void 0&&c?.reason===g){this.blocks.set(G,c.block),m.speaker!==f&&(f=void 0);return}const S=document.createElement("div");S.className="turn",S.dataset.segment=String(G);const y=document.createElement("div");y.className="who";const F=document.createElement("span");if(F.textContent=m.redacted?"":this.speakerName(e,m.speaker),m.start!==void 0&&(S.dataset.time=v.clock(m.start,!0)),f!==m.speaker&&(u=document.createElement("div"),u.className="intervention",u.style.setProperty("--speaker-hue",String((Math.max(0,s.indexOf(m.speaker))*67+210)%360)),a.push(u),p=!1),m.redacted||(p&&S.classList.add("goes-on"),p=!0),u.append(S),f=m.speaker,y.append(F),m.redacted){S.classList.add("is-redacted");const M=this.gap(m.redacted.reason,"p");M.className="redacted",c={block:S,reason:g},S.append(y,M)}else{const M=document.createElement("p");if(M.className="said",m.parts){let kt="";for(const B of m.parts){const $e="redacted"in B?"▮":v.plain(B.text);/[\p{L}\p{N}.,;:!?)»”…▮]$/u.test(kt)&&/^[\p{L}\p{N}(«“▮]/u.test($e)&&M.append(" "),"redacted"in B?M.append(this.gap(B.redacted.reason,"span")):M.append(...this.saidNodes(B.text)),kt=$e}}else M.append(...this.saidNodes(m.text??""));c=void 0,S.append(y,M)}if(m.files?.length&&!m.redacted&&S.append(this.given(m.files)),m.refs?.length){const M=document.createElement("div");M.className="refs";for(const kt of m.refs){const B=document.createElement("button");B.type="button",B.className="ref",B.innerHTML=w.PLAY,B.append(v.clock(kt.at,!0)),B.addEventListener("click",()=>this.seek(kt,m)),M.append(B)}S.append(M)}this.blocks.set(G,S)}),this.turns.replaceChildren(...a)}given(t){const e=document.createElement("div");e.className="files";for(const n of t){const r=q.fileName(n),s=q.shown(n,this.base),a=document.createElement("a");if(a.className="file",a.href=s,a.target="_blank",a.rel="noopener noreferrer",q.isImage(n)){const u=document.createElement("img");u.src=s,u.alt=r,u.loading="lazy",a.title=r,a.append(u)}else{const u=document.createElement("span");u.textContent=r,a.append(u)}e.append(a)}return e}revealAt(t,e){const n=this.json;if(!n)return;const r=v.sightingsOf(n)[0];let s;if(n.segments?.forEach((a,u)=>{for(const p of a.refs??[]){const c=p.sighting??r;e!==void 0&&c!==void 0&&c!==e||p.at>t+.001||(!s||p.at>s.at)&&(s={index:u,at:p.at})}}),!!s)return s.index!==this.lastRevealed&&(this.lastRevealed=s.index,this.revealSegment(s.index)),this.markSynced(s.index),s.index}momentsCited(t){const e=this.json;if(!e)return[];const n=v.sightingsOf(e)[0],r=[];for(const s of e.segments??[])for(const a of s.refs??[]){const u=a.sighting??n;t!==void 0&&u!==void 0&&u!==t||r.push({at:a.at,quote:v.said(s)??""})}return r.sort((s,a)=>s.at-a.at)}markSynced(t){t!==this.syncedIndex&&(this.syncedIndex!==void 0&&this.blocks.get(this.syncedIndex)?.classList.remove("synced"),this.syncedIndex=t,this.blocks.get(t)?.classList.add("synced"))}revealSegment(t){const e=this.blocks.get(t);e&&(e.scrollIntoView?.({block:"center"}),e.classList.add("flash"),window.setTimeout(()=>e.classList.remove("flash"),1600))}}function Yr(){customElements.get(vn)||customElements.define(vn,ke)}Yr();
@@ -1,4 +1,4 @@
1
- import{e as b,_ as d,bJ as m,b6 as x,bE as I,bF as T}from"./rr0-scene.mjs";import{d as f,P as u,S as L,a as v,c as y,b as M,E as S}from"./ParameterForm-CRC9iA-m.js";import{D as g}from"./DroneParameters-D3EOg4oe.js";import{a as E,b as P}from"./DroneFlight-DSE1OXqh.js";import{AirshipFlight as w}from"./AirshipFlight-C9DSPGwk.js";import{T as k}from"./TimelineTracks-iym9uOfD.js";const R=b.catalog({en:()=>d(()=>import("./AirshipParameterTexts_en-DZxqhSI3.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_en),fr:()=>d(()=>import("./AirshipParameterTexts_fr-Cj-D0Xb_.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_fr),es:()=>d(()=>import("./AirshipParameterTexts_es-BDJUZOmr.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_es),it:()=>d(()=>import("./AirshipParameterTexts_it-BhC9cEbs.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_it)});class o{static AIRSHIP="airship";static FLIGHT="flight";static LOOK="look";static LIGHT_NAMES=[...new Set(m.ALL.flatMap(t=>Object.keys(t.lights)))];static viewOf(t){const{airship:i,sign:e,...r}=structuredClone(t),s={...r,airship:typeof i=="string"?i:i.id};return e===!1?s.signLit=!1:e===!0?s.signLit=!0:e&&(s.signLit=!0,e.color&&(s.signColor=e.color)),s}static fromView(t,i){const{airship:e,signLit:r,signColor:s,...n}=t,h=typeof i.airship=="object"?i.airship:void 0,l={...n,airship:h?{...h,id:e}:e},p=typeof i.sign=="object"?i.sign.luminanceCdM2:void 0;return r===!1?l.sign=!1:s!==void 0||p!==void 0?l.sign={...s?{color:s}:{},...p!==void 0?{luminanceCdM2:p}:{}}:r===!0&&(l.sign=!0),l}static typeOf(t){return w.typeOf(t)}static ownLight(t,i){return o.typeOf(t).lights[i]}static signLit(t){const i=f.read(t,"signLit");return typeof i=="boolean"?i:o.typeOf(t).sign?.lit===!0}static light(t){const i=g.textKey(t),e=n=>o.ownLight(n,t)!==void 0,r=n=>{const h=n.lights?.[t];return h===!1?!0:typeof h?.off=="boolean"?h.off:o.ownLight(n,t)?.off===!0},s=n=>e(n)&&!r(n);return[{type:"boolean",key:`lights.${t}.off`,group:i,label:"switchedOff",visibleWhen:e,effective:n=>n.lights?.[t]===!1||o.ownLight(n,t)?.off===!0},{type:"colour",key:`lights.${t}.color`,group:i,label:"colour",visibleWhen:s,effective:n=>o.ownLight(n,t)?.color},{type:"number",key:`lights.${t}.candela`,min:0,max:1e5,step:.1,unit:"cd",group:i,label:"intensity",hint:"eachLed",visibleWhen:s,effective:n=>o.ownLight(n,t)?.candela},{type:"number",key:`lights.${t}.hz`,min:0,max:50,step:.05,unit:"Hz",group:i,label:"flashesASecond",hint:"steadyAtNought",visibleWhen:s,effective:n=>o.ownLight(n,t)?.hz??0},{type:"number",key:`lights.${t}.flashS`,min:.001,max:60,step:.001,unit:"s",group:i,label:"eachFlashLasts",visibleWhen:n=>s(n)&&(f.read(n,`lights.${t}.hz`)??o.ownLight(n,t)?.hz??0)>0,effective:n=>{const h=o.ownLight(n,t),l=f.read(n,`lights.${t}.hz`)??h?.hz??0;return h?.flashS??(l>0?Math.round(500/l)/1e3:void 0)}}]}static SET={kind:"airships",title:"airships",parameters:[{type:"said",key:"title",label:"name",group:o.AIRSHIP},{type:"choice",key:"airship",required:!0,group:o.AIRSHIP,label:"type",choices:m.ALL.map(t=>({value:t.id,label:g.textKey(t.id)}))},{type:"set",key:"explains",group:o.AIRSHIP,label:"standsForTheShapes",options:(t,i)=>{const e=i?.shapes??[],r=(t.explains??[]).filter(s=>!e.some(n=>n.value===s));return[...e,...r.map(s=>({value:s,label:s}))]},empty:"noShape"},{type:"number",key:"seed",min:0,max:4294967295,step:1,group:o.AIRSHIP,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFrom"},{type:"number",key:"wind.fromDeg",min:0,max:360,step:1,unit:"°",group:o.FLIGHT,label:"windFrom",effective:()=>0,hint:"whatItNosesInto"},{type:"number",key:"wind.speedMS",min:0,max:60,step:.1,unit:"m/s",group:o.FLIGHT,label:"windSpeed",effective:()=>0},{type:"boolean",key:"silent",group:o.FLIGHT,label:"silent",hint:"notEvenItsEngines",visibleWhen:t=>o.typeOf(t).sound!==void 0},{type:"colour",key:"color",group:o.LOOK,label:"envelope",effective:t=>o.typeOf(t).color},{type:"colour",key:"finColor",group:o.LOOK,label:"fins",effective:t=>o.typeOf(t).finColor,visibleWhen:t=>o.typeOf(t).glowCdM2===void 0},{type:"boolean",key:"signLit",group:o.LOOK,label:"signLit",hint:"itsSignOfLamps",visibleWhen:t=>o.typeOf(t).sign!==void 0,effective:t=>o.typeOf(t).sign?.lit===!0},{type:"colour",key:"signColor",group:o.LOOK,label:"signColour",visibleWhen:t=>o.typeOf(t).sign!==void 0&&o.signLit(t),effective:t=>o.typeOf(t).sign?.color},{type:"boolean",key:"lit",group:o.LOOK,label:"litFromWithin",hint:"itsEnvelopeGlows",effective:()=>!0,visibleWhen:t=>o.typeOf(t).glowCdM2!==void 0},...o.LIGHT_NAMES.flatMap(t=>o.light(t))]};static WAYPOINT={...g.WAYPOINT,kind:"airships-waypoint"};static waypointAt(t,i){const e=E.pathOf(t);if(e.length===0)return{t:Math.round(i),eastM:0,northM:0,altitudeM:0};const r=new P(e,!1).at(i),s=n=>Math.round(n*10)/10;return{t:Math.round(i),eastM:s(r.eastM),northM:s(r.northM),altitudeM:s(r.upM)}}static publish(){u.publish(o.SET),u.publish(o.WAYPOINT)}}const H=b.catalog({en:()=>d(()=>import("./AirshipEditorMessages_en-CFafbbN8.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_en),fr:()=>d(()=>import("./AirshipEditorMessages_fr-Bhj6QKCL.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_fr),es:()=>d(()=>import("./AirshipEditorMessages_es-ht4kFQUD.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_es),it:()=>d(()=>import("./AirshipEditorMessages_it-Cfl9mFjn.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_it)});class c{constructor(t,i,e){this.container=t,this.host=i,L.attach(t,"airship-editor-part",c.STYLE),this.language=e,u.of("airships")||o.publish(),this.ready=this.setLanguage(e)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;pointForm;pointIndex=0;language;shown=[];viewed;static STYLE='.airship-editor-part { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-list, .airship-editor-part #airship-timeline { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-timeline { padding: 4px 0; } .airship-editor-part #airship-path > .icon-btn { align-self: flex-end; } .airship-editor-part .launch-editor, .airship-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .airship-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .airship-editor-part [hidden] { display: none !important; } .airship-editor-part select { min-width: 0; width: 100%; } .airship-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .airship-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .airship-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .airship-editor-part input, .airship-editor-part select { max-width: 100%; box-sizing: border-box; } .airship-editor-part input[type="text"] { width: 12em; } .airship-editor-part label { min-width: 0; max-width: 100%; } .airship-editor-part input.parameter-derived::placeholder { opacity: .65; } .airship-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';static PATH_COLOR="#3b82c4";static MIN_POINTS=1;async setLanguage(t){const i=++this.languageToken;this.language=t;const[e,r]=await Promise.all([H.load(t),R.load(t)]);i===this.languageToken&&(this.messages=e,this.parameterTexts=r,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.flights;this.shown=[...t],t.some(e=>e.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(e=>({id:e.id,label:this.labelOf(e)})),this.currentId),this.syncAddState();const i=this.current;this.element("airship-fields").hidden=i===void 0,i&&(this.syncTethered(),this.form??=new v(this.element("airship-parameters"),this.language,"airships.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(o.SET),new y(()=>this.view,e=>this.editView(r=>e(r)),()=>({shapes:this.host.shapes().map(e=>({value:e.id,label:e.label}))}),this.host.positionPlace?.()),()=>this.written()),this.syncPoint(!0))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.flights;if(t.length===this.shown.length&&t.every((i,e)=>i.id===this.shown[e].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}get current(){return this.flights.find(t=>t.id===this.currentId)}get view(){const t=this.current;if(t)return this.viewed?.of!==t&&(this.viewed={of:t,view:o.viewOf(t)}),this.viewed.view}syncAddState(){const t=this.frontOfObserver()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}syncTethered(){const t=this.current;this.element("airship-tethered").hidden=!t||!w.typeOf(t).tethered}resolved(t){return M.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.pointForm=void 0,this.container.innerHTML=`<div class="launch-editor">
1
+ import{e as b,_ as d,bI as m,b6 as x,bD as I,bE as T}from"./rr0-scene.mjs";import{d as f,P as u,S as L,a as v,c as y,b as M,E as S}from"./ParameterForm-CRC9iA-m.js";import{D as g}from"./DroneParameters-CoWQympS.js";import{a as E,b as P}from"./DroneFlight-ERYah68l.js";import{AirshipFlight as w}from"./AirshipFlight-DzW0313e.js";import{T as k}from"./TimelineTracks-iym9uOfD.js";const R=b.catalog({en:()=>d(()=>import("./AirshipParameterTexts_en-DZxqhSI3.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_en),fr:()=>d(()=>import("./AirshipParameterTexts_fr-Cj-D0Xb_.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_fr),es:()=>d(()=>import("./AirshipParameterTexts_es-BDJUZOmr.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_es),it:()=>d(()=>import("./AirshipParameterTexts_it-BhC9cEbs.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_it)});class o{static AIRSHIP="airship";static FLIGHT="flight";static LOOK="look";static LIGHT_NAMES=[...new Set(m.ALL.flatMap(t=>Object.keys(t.lights)))];static viewOf(t){const{airship:i,sign:e,...r}=structuredClone(t),s={...r,airship:typeof i=="string"?i:i.id};return e===!1?s.signLit=!1:e===!0?s.signLit=!0:e&&(s.signLit=!0,e.color&&(s.signColor=e.color)),s}static fromView(t,i){const{airship:e,signLit:r,signColor:s,...n}=t,h=typeof i.airship=="object"?i.airship:void 0,l={...n,airship:h?{...h,id:e}:e},p=typeof i.sign=="object"?i.sign.luminanceCdM2:void 0;return r===!1?l.sign=!1:s!==void 0||p!==void 0?l.sign={...s?{color:s}:{},...p!==void 0?{luminanceCdM2:p}:{}}:r===!0&&(l.sign=!0),l}static typeOf(t){return w.typeOf(t)}static ownLight(t,i){return o.typeOf(t).lights[i]}static signLit(t){const i=f.read(t,"signLit");return typeof i=="boolean"?i:o.typeOf(t).sign?.lit===!0}static light(t){const i=g.textKey(t),e=n=>o.ownLight(n,t)!==void 0,r=n=>{const h=n.lights?.[t];return h===!1?!0:typeof h?.off=="boolean"?h.off:o.ownLight(n,t)?.off===!0},s=n=>e(n)&&!r(n);return[{type:"boolean",key:`lights.${t}.off`,group:i,label:"switchedOff",visibleWhen:e,effective:n=>n.lights?.[t]===!1||o.ownLight(n,t)?.off===!0},{type:"colour",key:`lights.${t}.color`,group:i,label:"colour",visibleWhen:s,effective:n=>o.ownLight(n,t)?.color},{type:"number",key:`lights.${t}.candela`,min:0,max:1e5,step:.1,unit:"cd",group:i,label:"intensity",hint:"eachLed",visibleWhen:s,effective:n=>o.ownLight(n,t)?.candela},{type:"number",key:`lights.${t}.hz`,min:0,max:50,step:.05,unit:"Hz",group:i,label:"flashesASecond",hint:"steadyAtNought",visibleWhen:s,effective:n=>o.ownLight(n,t)?.hz??0},{type:"number",key:`lights.${t}.flashS`,min:.001,max:60,step:.001,unit:"s",group:i,label:"eachFlashLasts",visibleWhen:n=>s(n)&&(f.read(n,`lights.${t}.hz`)??o.ownLight(n,t)?.hz??0)>0,effective:n=>{const h=o.ownLight(n,t),l=f.read(n,`lights.${t}.hz`)??h?.hz??0;return h?.flashS??(l>0?Math.round(500/l)/1e3:void 0)}}]}static SET={kind:"airships",title:"airships",parameters:[{type:"said",key:"title",label:"name",group:o.AIRSHIP},{type:"choice",key:"airship",required:!0,group:o.AIRSHIP,label:"type",choices:m.ALL.map(t=>({value:t.id,label:g.textKey(t.id)}))},{type:"set",key:"explains",group:o.AIRSHIP,label:"standsForTheShapes",options:(t,i)=>{const e=i?.shapes??[],r=(t.explains??[]).filter(s=>!e.some(n=>n.value===s));return[...e,...r.map(s=>({value:s,label:s}))]},empty:"noShape"},{type:"number",key:"seed",min:0,max:4294967295,step:1,group:o.AIRSHIP,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFrom"},{type:"number",key:"wind.fromDeg",min:0,max:360,step:1,unit:"°",group:o.FLIGHT,label:"windFrom",effective:()=>0,hint:"whatItNosesInto"},{type:"number",key:"wind.speedMS",min:0,max:60,step:.1,unit:"m/s",group:o.FLIGHT,label:"windSpeed",effective:()=>0},{type:"boolean",key:"silent",group:o.FLIGHT,label:"silent",hint:"notEvenItsEngines",visibleWhen:t=>o.typeOf(t).sound!==void 0},{type:"colour",key:"color",group:o.LOOK,label:"envelope",effective:t=>o.typeOf(t).color},{type:"colour",key:"finColor",group:o.LOOK,label:"fins",effective:t=>o.typeOf(t).finColor,visibleWhen:t=>o.typeOf(t).glowCdM2===void 0},{type:"boolean",key:"signLit",group:o.LOOK,label:"signLit",hint:"itsSignOfLamps",visibleWhen:t=>o.typeOf(t).sign!==void 0,effective:t=>o.typeOf(t).sign?.lit===!0},{type:"colour",key:"signColor",group:o.LOOK,label:"signColour",visibleWhen:t=>o.typeOf(t).sign!==void 0&&o.signLit(t),effective:t=>o.typeOf(t).sign?.color},{type:"boolean",key:"lit",group:o.LOOK,label:"litFromWithin",hint:"itsEnvelopeGlows",effective:()=>!0,visibleWhen:t=>o.typeOf(t).glowCdM2!==void 0},...o.LIGHT_NAMES.flatMap(t=>o.light(t))]};static WAYPOINT={...g.WAYPOINT,kind:"airships-waypoint"};static waypointAt(t,i){const e=E.pathOf(t);if(e.length===0)return{t:Math.round(i),eastM:0,northM:0,altitudeM:0};const r=new P(e,!1).at(i),s=n=>Math.round(n*10)/10;return{t:Math.round(i),eastM:s(r.eastM),northM:s(r.northM),altitudeM:s(r.upM)}}static publish(){u.publish(o.SET),u.publish(o.WAYPOINT)}}const H=b.catalog({en:()=>d(()=>import("./AirshipEditorMessages_en-CFafbbN8.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_en),fr:()=>d(()=>import("./AirshipEditorMessages_fr-Bhj6QKCL.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_fr),es:()=>d(()=>import("./AirshipEditorMessages_es-ht4kFQUD.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_es),it:()=>d(()=>import("./AirshipEditorMessages_it-Cfl9mFjn.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_it)});class c{constructor(t,i,e){this.container=t,this.host=i,L.attach(t,"airship-editor-part",c.STYLE),this.language=e,u.of("airships")||o.publish(),this.ready=this.setLanguage(e)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;pointForm;pointIndex=0;language;shown=[];viewed;static STYLE='.airship-editor-part { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-list, .airship-editor-part #airship-timeline { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-timeline { padding: 4px 0; } .airship-editor-part #airship-path > .icon-btn { align-self: flex-end; } .airship-editor-part .launch-editor, .airship-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .airship-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .airship-editor-part [hidden] { display: none !important; } .airship-editor-part select { min-width: 0; width: 100%; } .airship-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .airship-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .airship-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .airship-editor-part input, .airship-editor-part select { max-width: 100%; box-sizing: border-box; } .airship-editor-part input[type="text"] { width: 12em; } .airship-editor-part label { min-width: 0; max-width: 100%; } .airship-editor-part input.parameter-derived::placeholder { opacity: .65; } .airship-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';static PATH_COLOR="#3b82c4";static MIN_POINTS=1;async setLanguage(t){const i=++this.languageToken;this.language=t;const[e,r]=await Promise.all([H.load(t),R.load(t)]);i===this.languageToken&&(this.messages=e,this.parameterTexts=r,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.flights;this.shown=[...t],t.some(e=>e.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(e=>({id:e.id,label:this.labelOf(e)})),this.currentId),this.syncAddState();const i=this.current;this.element("airship-fields").hidden=i===void 0,i&&(this.syncTethered(),this.form??=new v(this.element("airship-parameters"),this.language,"airships.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(o.SET),new y(()=>this.view,e=>this.editView(r=>e(r)),()=>({shapes:this.host.shapes().map(e=>({value:e.id,label:e.label}))}),this.host.positionPlace?.()),()=>this.written()),this.syncPoint(!0))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.flights;if(t.length===this.shown.length&&t.every((i,e)=>i.id===this.shown[e].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}get current(){return this.flights.find(t=>t.id===this.currentId)}get view(){const t=this.current;if(t)return this.viewed?.of!==t&&(this.viewed={of:t,view:o.viewOf(t)}),this.viewed.view}syncAddState(){const t=this.frontOfObserver()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}syncTethered(){const t=this.current;this.element("airship-tethered").hidden=!t||!w.typeOf(t).tethered}resolved(t){return M.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.pointForm=void 0,this.container.innerHTML=`<div class="launch-editor">
2
2
  <p class="launch-intro">${t.intro}</p>
3
3
  <div id="airship-list"></div>
4
4
  <div id="airship-fields" class="launch-fields">