ocearo-ui 2.1.1 → 2.1.3

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 (103) hide show
  1. package/404.html +1 -1
  2. package/README.fr.md +9 -7
  3. package/README.md +9 -7
  4. package/__next.__PAGE__.txt +3 -3
  5. package/__next._full.txt +3 -3
  6. package/__next._tree.txt +2 -2
  7. package/_next/static/chunks/0ath9h2eo-m4-.js +1 -0
  8. package/_next/static/chunks/0bxzs0khjn1uj.js +1 -0
  9. package/_next/static/chunks/0ejjon45nq_-h.js +9 -0
  10. package/_next/static/chunks/{0zvzu5fnwh4_a.js → 0glm63vhzbxk5.js} +2 -2
  11. package/_next/static/chunks/0n5v9mjln3x9c.js +121 -0
  12. package/_next/static/chunks/{1l-jew0-1-3eq.js → 0ngl63fz0a-bo.js} +2 -2
  13. package/_next/static/chunks/0nq1o9-m7bhjg.js +1 -0
  14. package/_next/static/chunks/0vhk5q54me91_.js +1 -0
  15. package/_next/static/chunks/0wi5jop1ihbm6.js +2 -0
  16. package/_next/static/chunks/1442uc2w4y1ve.js +503 -0
  17. package/_next/static/chunks/18vlmqe7txbmt.js +1 -0
  18. package/_next/static/chunks/{2gr1d26f-ymoh.js → 192c42s2wc7qe.js} +1 -1
  19. package/_next/static/chunks/1_twx50ejqan5.js +1 -0
  20. package/_next/static/chunks/1na56snuhu-pc.js +346 -0
  21. package/_next/static/chunks/{3qik_nv7zlj4e.js → 1quvj-861o57h.js} +1 -1
  22. package/_next/static/chunks/1vchkqgn-xw-o.js +1 -0
  23. package/_next/static/chunks/{0j11dppxb9l0b.js → 1zuex-na8y-w4.js} +1 -1
  24. package/_next/static/chunks/21408p9d6c0sg.js +1 -0
  25. package/_next/static/chunks/2393lwi8kee3m.js +48 -0
  26. package/_next/static/chunks/25v2cwta2fy-7.js +393 -0
  27. package/_next/static/chunks/28wfa6j-9g_qc.js +1 -0
  28. package/_next/static/chunks/2cecf_xnd_9em.js +1 -0
  29. package/_next/static/chunks/2die6btm3_mhq.js +1 -0
  30. package/_next/static/chunks/{18_i6mf6hb_c7.js → 2gsiwp60towtx.js} +1 -1
  31. package/_next/static/chunks/2ijx7rln4jshb.css +3 -0
  32. package/_next/static/chunks/2qch0at4eelx8.js +1 -0
  33. package/_next/static/chunks/2qylgmdj-32um.js +503 -0
  34. package/_next/static/chunks/2xntuu6mzh41s.js +1 -0
  35. package/_next/static/chunks/30p1dpgmonstj.js +1 -0
  36. package/_next/static/chunks/31p7nz0hfuym7.js +1 -0
  37. package/_next/static/chunks/{1e-w_-usen7fy.js → 34nhy77liurum.js} +2 -2
  38. package/_next/static/chunks/3h_m2s30sr9mt.js +430 -0
  39. package/_next/static/chunks/3j453-2u58qbv.js +1 -0
  40. package/_next/static/chunks/3k-r-4veivdjr.js +1 -0
  41. package/_next/static/chunks/3l25j666ze4c1.js +1 -0
  42. package/_next/static/chunks/3nv6p6vvu2zlg.js +1 -0
  43. package/_next/static/chunks/3yz0mxxv4vrfg.js +1 -0
  44. package/_next/static/chunks/3z29h80ysf4f1.js +739 -0
  45. package/_next/static/chunks/40b8ooaw6x7my.js +180 -0
  46. package/_next/static/chunks/44f5hh9caupby.js +1 -0
  47. package/_not-found/__next._full.txt +2 -2
  48. package/_not-found/__next._not-found.__PAGE__.txt +2 -2
  49. package/_not-found/__next._tree.txt +2 -2
  50. package/_not-found.html +1 -1
  51. package/_not-found.txt +2 -2
  52. package/boats/boats.json +11 -19
  53. package/boats/windsurf/assets/license.txt +6 -8
  54. package/boats/windsurf/assets/rider.glb +0 -0
  55. package/boats/wingfoil/assets/license.txt +9 -0
  56. package/boats/wingfoil/assets/rider.glb +0 -0
  57. package/guide/bathymetry.jpg +0 -0
  58. package/guide/weather.jpg +0 -0
  59. package/index.html +1 -1
  60. package/index.txt +3 -3
  61. package/package.json +2 -2
  62. package/settings/__next._full.txt +3 -3
  63. package/settings/__next._tree.txt +2 -2
  64. package/settings/__next.settings.__PAGE__.txt +3 -3
  65. package/settings.html +1 -1
  66. package/settings.txt +3 -3
  67. package/_next/static/chunks/0-jqvc-r0kh0c.js +0 -1
  68. package/_next/static/chunks/05do10p9ldt1p.js +0 -409
  69. package/_next/static/chunks/096zaxs1gf_3q.js +0 -2
  70. package/_next/static/chunks/0b3cus8izqkmg.js +0 -119
  71. package/_next/static/chunks/0jucaltuccn03.js +0 -1
  72. package/_next/static/chunks/0m7wbuocx-b4_.js +0 -9
  73. package/_next/static/chunks/1_g85m2d7jjpo.css +0 -3
  74. package/_next/static/chunks/1arvue9o-atui.js +0 -739
  75. package/_next/static/chunks/1bo0ke8gjc1c2.js +0 -1
  76. package/_next/static/chunks/1cp1kkarm5gxz.js +0 -1
  77. package/_next/static/chunks/1hz_mzl8l35j8.js +0 -1
  78. package/_next/static/chunks/1k72cpd0x8veh.js +0 -1
  79. package/_next/static/chunks/2aivnrnff0avu.js +0 -446
  80. package/_next/static/chunks/2fthh9f57zzm2.js +0 -1
  81. package/_next/static/chunks/2mzecccvvbjr1.js +0 -1
  82. package/_next/static/chunks/2r98jty3a4wel.js +0 -564
  83. package/_next/static/chunks/2v6ebsavxlgyw.js +0 -1
  84. package/_next/static/chunks/2w71oj1brox5z.js +0 -1
  85. package/_next/static/chunks/2wayx8t5r5fi9.js +0 -1
  86. package/_next/static/chunks/33u782y6vhw-f.js +0 -346
  87. package/_next/static/chunks/3qzb9nvvw-b-k.js +0 -1
  88. package/_next/static/chunks/3r8nellt-dsed.js +0 -1
  89. package/_next/static/chunks/3td9mnhvcj9cq.js +0 -1
  90. package/_next/static/chunks/3wwn1rti8oc_r.js +0 -1
  91. package/_next/static/chunks/41odv061mfm6t.js +0 -1
  92. package/_next/static/chunks/432vtxrssprta.js +0 -1
  93. package/boats/optimist/Scene.jsx +0 -28
  94. package/boats/optimist/assets/license.txt +0 -11
  95. package/boats/optimist/assets/scene-transformed.glb +0 -0
  96. package/boats/sailboat/Scene.jsx +0 -21
  97. package/boats/sailboat/assets/license.txt +0 -10
  98. package/boats/sailboat/assets/scene-transformed.glb +0 -0
  99. package/boats/windsurf/Scene.jsx +0 -22
  100. package/boats/windsurf/assets/scene-transformed.glb +0 -0
  101. /package/_next/static/{QMD1VkISjzTIQCzLSHPpB → RbyYYNpJGkiHnU7YTHoaU}/_buildManifest.js +0 -0
  102. /package/_next/static/{QMD1VkISjzTIQCzLSHPpB → RbyYYNpJGkiHnU7YTHoaU}/_clientMiddlewareManifest.js +0 -0
  103. /package/_next/static/{QMD1VkISjzTIQCzLSHPpB → RbyYYNpJGkiHnU7YTHoaU}/_ssgManifest.js +0 -0
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47141,e=>{"use strict";var t=e.i(43476),a=e.i(61949),r=e.i(71645),n=e.i(8560),o=e.i(90072);e.s(["ACESFilmicToneMapping",()=>o.ACESFilmicToneMapping,"AddEquation",()=>o.AddEquation,"AddOperation",()=>o.AddOperation,"AdditiveAnimationBlendMode",()=>o.AdditiveAnimationBlendMode,"AdditiveBlending",()=>o.AdditiveBlending,"AgXToneMapping",()=>o.AgXToneMapping,"AlphaFormat",()=>o.AlphaFormat,"AlwaysCompare",()=>o.AlwaysCompare,"AlwaysDepth",()=>o.AlwaysDepth,"AlwaysStencilFunc",()=>o.AlwaysStencilFunc,"AmbientLight",()=>o.AmbientLight,"AnimationAction",()=>o.AnimationAction,"AnimationClip",()=>o.AnimationClip,"AnimationLoader",()=>o.AnimationLoader,"AnimationMixer",()=>o.AnimationMixer,"AnimationObjectGroup",()=>o.AnimationObjectGroup,"AnimationUtils",()=>o.AnimationUtils,"ArcCurve",()=>o.ArcCurve,"ArrayCamera",()=>o.ArrayCamera,"ArrowHelper",()=>o.ArrowHelper,"AttachedBindMode",()=>o.AttachedBindMode,"Audio",()=>o.Audio,"AudioAnalyser",()=>o.AudioAnalyser,"AudioContext",()=>o.AudioContext,"AudioListener",()=>o.AudioListener,"AudioLoader",()=>o.AudioLoader,"AxesHelper",()=>o.AxesHelper,"BackSide",()=>o.BackSide,"BasicDepthPacking",()=>o.BasicDepthPacking,"BasicShadowMap",()=>o.BasicShadowMap,"BatchedMesh",()=>o.BatchedMesh,"BezierInterpolant",()=>o.BezierInterpolant,"Bone",()=>o.Bone,"BooleanKeyframeTrack",()=>o.BooleanKeyframeTrack,"Box2",()=>o.Box2,"Box3",()=>o.Box3,"Box3Helper",()=>o.Box3Helper,"BoxGeometry",()=>o.BoxGeometry,"BoxHelper",()=>o.BoxHelper,"BufferAttribute",()=>o.BufferAttribute,"BufferGeometry",()=>o.BufferGeometry,"BufferGeometryLoader",()=>o.BufferGeometryLoader,"ByteType",()=>o.ByteType,"Cache",()=>o.Cache,"Camera",()=>o.Camera,"CameraHelper",()=>o.CameraHelper,"CanvasTexture",()=>o.CanvasTexture,"CapsuleGeometry",()=>o.CapsuleGeometry,"CatmullRomCurve3",()=>o.CatmullRomCurve3,"CineonToneMapping",()=>o.CineonToneMapping,"CircleGeometry",()=>o.CircleGeometry,"ClampToEdgeWrapping",()=>o.ClampToEdgeWrapping,"Clock",()=>o.Clock,"Color",()=>o.Color,"ColorKeyframeTrack",()=>o.ColorKeyframeTrack,"ColorManagement",()=>o.ColorManagement,"Compatibility",()=>o.Compatibility,"CompressedArrayTexture",()=>o.CompressedArrayTexture,"CompressedCubeTexture",()=>o.CompressedCubeTexture,"CompressedTexture",()=>o.CompressedTexture,"CompressedTextureLoader",()=>o.CompressedTextureLoader,"ConeGeometry",()=>o.ConeGeometry,"ConstantAlphaFactor",()=>o.ConstantAlphaFactor,"ConstantColorFactor",()=>o.ConstantColorFactor,"Controls",()=>o.Controls,"CubeCamera",()=>o.CubeCamera,"CubeDepthTexture",()=>o.CubeDepthTexture,"CubeReflectionMapping",()=>o.CubeReflectionMapping,"CubeRefractionMapping",()=>o.CubeRefractionMapping,"CubeTexture",()=>o.CubeTexture,"CubeTextureLoader",()=>o.CubeTextureLoader,"CubeUVReflectionMapping",()=>o.CubeUVReflectionMapping,"CubicBezierCurve",()=>o.CubicBezierCurve,"CubicBezierCurve3",()=>o.CubicBezierCurve3,"CubicInterpolant",()=>o.CubicInterpolant,"CullFaceBack",()=>o.CullFaceBack,"CullFaceFront",()=>o.CullFaceFront,"CullFaceFrontBack",()=>o.CullFaceFrontBack,"CullFaceNone",()=>o.CullFaceNone,"Curve",()=>o.Curve,"CurvePath",()=>o.CurvePath,"CustomBlending",()=>o.CustomBlending,"CustomToneMapping",()=>o.CustomToneMapping,"CylinderGeometry",()=>o.CylinderGeometry,"Cylindrical",()=>o.Cylindrical,"Data3DTexture",()=>o.Data3DTexture,"DataArrayTexture",()=>o.DataArrayTexture,"DataTexture",()=>o.DataTexture,"DataTextureLoader",()=>o.DataTextureLoader,"DataUtils",()=>o.DataUtils,"DecrementStencilOp",()=>o.DecrementStencilOp,"DecrementWrapStencilOp",()=>o.DecrementWrapStencilOp,"DefaultLoadingManager",()=>o.DefaultLoadingManager,"DepthFormat",()=>o.DepthFormat,"DepthStencilFormat",()=>o.DepthStencilFormat,"DepthTexture",()=>o.DepthTexture,"DetachedBindMode",()=>o.DetachedBindMode,"DirectionalLight",()=>o.DirectionalLight,"DirectionalLightHelper",()=>o.DirectionalLightHelper,"DiscreteInterpolant",()=>o.DiscreteInterpolant,"DodecahedronGeometry",()=>o.DodecahedronGeometry,"DoubleSide",()=>o.DoubleSide,"DstAlphaFactor",()=>o.DstAlphaFactor,"DstColorFactor",()=>o.DstColorFactor,"DynamicCopyUsage",()=>o.DynamicCopyUsage,"DynamicDrawUsage",()=>o.DynamicDrawUsage,"DynamicReadUsage",()=>o.DynamicReadUsage,"EdgesGeometry",()=>o.EdgesGeometry,"EllipseCurve",()=>o.EllipseCurve,"EqualCompare",()=>o.EqualCompare,"EqualDepth",()=>o.EqualDepth,"EqualStencilFunc",()=>o.EqualStencilFunc,"EquirectangularReflectionMapping",()=>o.EquirectangularReflectionMapping,"EquirectangularRefractionMapping",()=>o.EquirectangularRefractionMapping,"Euler",()=>o.Euler,"EventDispatcher",()=>o.EventDispatcher,"ExternalTexture",()=>o.ExternalTexture,"ExtrudeGeometry",()=>o.ExtrudeGeometry,"FileLoader",()=>o.FileLoader,"Float16BufferAttribute",()=>o.Float16BufferAttribute,"Float32BufferAttribute",()=>o.Float32BufferAttribute,"FloatType",()=>o.FloatType,"Fog",()=>o.Fog,"FogExp2",()=>o.FogExp2,"FramebufferTexture",()=>o.FramebufferTexture,"FrontSide",()=>o.FrontSide,"Frustum",()=>o.Frustum,"FrustumArray",()=>o.FrustumArray,"GLBufferAttribute",()=>o.GLBufferAttribute,"GLSL1",()=>o.GLSL1,"GLSL3",()=>o.GLSL3,"GreaterCompare",()=>o.GreaterCompare,"GreaterDepth",()=>o.GreaterDepth,"GreaterEqualCompare",()=>o.GreaterEqualCompare,"GreaterEqualDepth",()=>o.GreaterEqualDepth,"GreaterEqualStencilFunc",()=>o.GreaterEqualStencilFunc,"GreaterStencilFunc",()=>o.GreaterStencilFunc,"GridHelper",()=>o.GridHelper,"Group",()=>o.Group,"HTMLTexture",()=>o.HTMLTexture,"HalfFloatType",()=>o.HalfFloatType,"HemisphereLight",()=>o.HemisphereLight,"HemisphereLightHelper",()=>o.HemisphereLightHelper,"IcosahedronGeometry",()=>o.IcosahedronGeometry,"ImageBitmapLoader",()=>o.ImageBitmapLoader,"ImageLoader",()=>o.ImageLoader,"ImageUtils",()=>o.ImageUtils,"IncrementStencilOp",()=>o.IncrementStencilOp,"IncrementWrapStencilOp",()=>o.IncrementWrapStencilOp,"InstancedBufferAttribute",()=>o.InstancedBufferAttribute,"InstancedBufferGeometry",()=>o.InstancedBufferGeometry,"InstancedInterleavedBuffer",()=>o.InstancedInterleavedBuffer,"InstancedMesh",()=>o.InstancedMesh,"Int16BufferAttribute",()=>o.Int16BufferAttribute,"Int32BufferAttribute",()=>o.Int32BufferAttribute,"Int8BufferAttribute",()=>o.Int8BufferAttribute,"IntType",()=>o.IntType,"InterleavedBuffer",()=>o.InterleavedBuffer,"InterleavedBufferAttribute",()=>o.InterleavedBufferAttribute,"Interpolant",()=>o.Interpolant,"InterpolateBezier",()=>o.InterpolateBezier,"InterpolateDiscrete",()=>o.InterpolateDiscrete,"InterpolateLinear",()=>o.InterpolateLinear,"InterpolateSmooth",()=>o.InterpolateSmooth,"InterpolationSamplingMode",()=>o.InterpolationSamplingMode,"InterpolationSamplingType",()=>o.InterpolationSamplingType,"InvertStencilOp",()=>o.InvertStencilOp,"KeepStencilOp",()=>o.KeepStencilOp,"KeyframeTrack",()=>o.KeyframeTrack,"LOD",()=>o.LOD,"LatheGeometry",()=>o.LatheGeometry,"Layers",()=>o.Layers,"LessCompare",()=>o.LessCompare,"LessDepth",()=>o.LessDepth,"LessEqualCompare",()=>o.LessEqualCompare,"LessEqualDepth",()=>o.LessEqualDepth,"LessEqualStencilFunc",()=>o.LessEqualStencilFunc,"LessStencilFunc",()=>o.LessStencilFunc,"Light",()=>o.Light,"LightProbe",()=>o.LightProbe,"LightShadow",()=>o.LightShadow,"Line",()=>o.Line,"Line3",()=>o.Line3,"LineBasicMaterial",()=>o.LineBasicMaterial,"LineCurve",()=>o.LineCurve,"LineCurve3",()=>o.LineCurve3,"LineDashedMaterial",()=>o.LineDashedMaterial,"LineLoop",()=>o.LineLoop,"LineSegments",()=>o.LineSegments,"LinearFilter",()=>o.LinearFilter,"LinearInterpolant",()=>o.LinearInterpolant,"LinearMipMapLinearFilter",()=>o.LinearMipMapLinearFilter,"LinearMipMapNearestFilter",()=>o.LinearMipMapNearestFilter,"LinearMipmapLinearFilter",()=>o.LinearMipmapLinearFilter,"LinearMipmapNearestFilter",()=>o.LinearMipmapNearestFilter,"LinearSRGBColorSpace",()=>o.LinearSRGBColorSpace,"LinearToneMapping",()=>o.LinearToneMapping,"LinearTransfer",()=>o.LinearTransfer,"Loader",()=>o.Loader,"LoaderUtils",()=>o.LoaderUtils,"LoadingManager",()=>o.LoadingManager,"LoopOnce",()=>o.LoopOnce,"LoopPingPong",()=>o.LoopPingPong,"LoopRepeat",()=>o.LoopRepeat,"MOUSE",()=>o.MOUSE,"Material",()=>o.Material,"MaterialBlending",()=>o.MaterialBlending,"MaterialLoader",()=>o.MaterialLoader,"MathUtils",()=>o.MathUtils,"Matrix2",()=>o.Matrix2,"Matrix3",()=>o.Matrix3,"Matrix4",()=>o.Matrix4,"MaxEquation",()=>o.MaxEquation,"Mesh",()=>o.Mesh,"MeshBasicMaterial",()=>o.MeshBasicMaterial,"MeshDepthMaterial",()=>o.MeshDepthMaterial,"MeshDistanceMaterial",()=>o.MeshDistanceMaterial,"MeshLambertMaterial",()=>o.MeshLambertMaterial,"MeshMatcapMaterial",()=>o.MeshMatcapMaterial,"MeshNormalMaterial",()=>o.MeshNormalMaterial,"MeshPhongMaterial",()=>o.MeshPhongMaterial,"MeshPhysicalMaterial",()=>o.MeshPhysicalMaterial,"MeshStandardMaterial",()=>o.MeshStandardMaterial,"MeshToonMaterial",()=>o.MeshToonMaterial,"MinEquation",()=>o.MinEquation,"MirroredRepeatWrapping",()=>o.MirroredRepeatWrapping,"MixOperation",()=>o.MixOperation,"MultiplyBlending",()=>o.MultiplyBlending,"MultiplyOperation",()=>o.MultiplyOperation,"NearestFilter",()=>o.NearestFilter,"NearestMipMapLinearFilter",()=>o.NearestMipMapLinearFilter,"NearestMipMapNearestFilter",()=>o.NearestMipMapNearestFilter,"NearestMipmapLinearFilter",()=>o.NearestMipmapLinearFilter,"NearestMipmapNearestFilter",()=>o.NearestMipmapNearestFilter,"NeutralToneMapping",()=>o.NeutralToneMapping,"NeverCompare",()=>o.NeverCompare,"NeverDepth",()=>o.NeverDepth,"NeverStencilFunc",()=>o.NeverStencilFunc,"NoBlending",()=>o.NoBlending,"NoColorSpace",()=>o.NoColorSpace,"NoNormalPacking",()=>o.NoNormalPacking,"NoToneMapping",()=>o.NoToneMapping,"NormalAnimationBlendMode",()=>o.NormalAnimationBlendMode,"NormalBlending",()=>o.NormalBlending,"NormalGAPacking",()=>o.NormalGAPacking,"NormalRGPacking",()=>o.NormalRGPacking,"NotEqualCompare",()=>o.NotEqualCompare,"NotEqualDepth",()=>o.NotEqualDepth,"NotEqualStencilFunc",()=>o.NotEqualStencilFunc,"NumberKeyframeTrack",()=>o.NumberKeyframeTrack,"Object3D",()=>o.Object3D,"ObjectLoader",()=>o.ObjectLoader,"ObjectSpaceNormalMap",()=>o.ObjectSpaceNormalMap,"OctahedronGeometry",()=>o.OctahedronGeometry,"OneFactor",()=>o.OneFactor,"OneMinusConstantAlphaFactor",()=>o.OneMinusConstantAlphaFactor,"OneMinusConstantColorFactor",()=>o.OneMinusConstantColorFactor,"OneMinusDstAlphaFactor",()=>o.OneMinusDstAlphaFactor,"OneMinusDstColorFactor",()=>o.OneMinusDstColorFactor,"OneMinusSrcAlphaFactor",()=>o.OneMinusSrcAlphaFactor,"OneMinusSrcColorFactor",()=>o.OneMinusSrcColorFactor,"OrthographicCamera",()=>o.OrthographicCamera,"PCFShadowMap",()=>o.PCFShadowMap,"PCFSoftShadowMap",()=>o.PCFSoftShadowMap,"PMREMGenerator",()=>n.PMREMGenerator,"Path",()=>o.Path,"PerspectiveCamera",()=>o.PerspectiveCamera,"Plane",()=>o.Plane,"PlaneGeometry",()=>o.PlaneGeometry,"PlaneHelper",()=>o.PlaneHelper,"PointLight",()=>o.PointLight,"PointLightHelper",()=>o.PointLightHelper,"Points",()=>o.Points,"PointsMaterial",()=>o.PointsMaterial,"PolarGridHelper",()=>o.PolarGridHelper,"PolyhedronGeometry",()=>o.PolyhedronGeometry,"PositionalAudio",()=>o.PositionalAudio,"PropertyBinding",()=>o.PropertyBinding,"PropertyMixer",()=>o.PropertyMixer,"QuadraticBezierCurve",()=>o.QuadraticBezierCurve,"QuadraticBezierCurve3",()=>o.QuadraticBezierCurve3,"Quaternion",()=>o.Quaternion,"QuaternionKeyframeTrack",()=>o.QuaternionKeyframeTrack,"QuaternionLinearInterpolant",()=>o.QuaternionLinearInterpolant,"R11_EAC_Format",()=>o.R11_EAC_Format,"RED_GREEN_RGTC2_Format",()=>o.RED_GREEN_RGTC2_Format,"RED_RGTC1_Format",()=>o.RED_RGTC1_Format,"REVISION",()=>o.REVISION,"RG11_EAC_Format",()=>o.RG11_EAC_Format,"RGBADepthPacking",()=>o.RGBADepthPacking,"RGBAFormat",()=>o.RGBAFormat,"RGBAIntegerFormat",()=>o.RGBAIntegerFormat,"RGBA_ASTC_10x10_Format",()=>o.RGBA_ASTC_10x10_Format,"RGBA_ASTC_10x5_Format",()=>o.RGBA_ASTC_10x5_Format,"RGBA_ASTC_10x6_Format",()=>o.RGBA_ASTC_10x6_Format,"RGBA_ASTC_10x8_Format",()=>o.RGBA_ASTC_10x8_Format,"RGBA_ASTC_12x10_Format",()=>o.RGBA_ASTC_12x10_Format,"RGBA_ASTC_12x12_Format",()=>o.RGBA_ASTC_12x12_Format,"RGBA_ASTC_4x4_Format",()=>o.RGBA_ASTC_4x4_Format,"RGBA_ASTC_5x4_Format",()=>o.RGBA_ASTC_5x4_Format,"RGBA_ASTC_5x5_Format",()=>o.RGBA_ASTC_5x5_Format,"RGBA_ASTC_6x5_Format",()=>o.RGBA_ASTC_6x5_Format,"RGBA_ASTC_6x6_Format",()=>o.RGBA_ASTC_6x6_Format,"RGBA_ASTC_8x5_Format",()=>o.RGBA_ASTC_8x5_Format,"RGBA_ASTC_8x6_Format",()=>o.RGBA_ASTC_8x6_Format,"RGBA_ASTC_8x8_Format",()=>o.RGBA_ASTC_8x8_Format,"RGBA_BPTC_Format",()=>o.RGBA_BPTC_Format,"RGBA_ETC2_EAC_Format",()=>o.RGBA_ETC2_EAC_Format,"RGBA_PVRTC_2BPPV1_Format",()=>o.RGBA_PVRTC_2BPPV1_Format,"RGBA_PVRTC_4BPPV1_Format",()=>o.RGBA_PVRTC_4BPPV1_Format,"RGBA_S3TC_DXT1_Format",()=>o.RGBA_S3TC_DXT1_Format,"RGBA_S3TC_DXT3_Format",()=>o.RGBA_S3TC_DXT3_Format,"RGBA_S3TC_DXT5_Format",()=>o.RGBA_S3TC_DXT5_Format,"RGBDepthPacking",()=>o.RGBDepthPacking,"RGBFormat",()=>o.RGBFormat,"RGBIntegerFormat",()=>o.RGBIntegerFormat,"RGB_BPTC_SIGNED_Format",()=>o.RGB_BPTC_SIGNED_Format,"RGB_BPTC_UNSIGNED_Format",()=>o.RGB_BPTC_UNSIGNED_Format,"RGB_ETC1_Format",()=>o.RGB_ETC1_Format,"RGB_ETC2_Format",()=>o.RGB_ETC2_Format,"RGB_PVRTC_2BPPV1_Format",()=>o.RGB_PVRTC_2BPPV1_Format,"RGB_PVRTC_4BPPV1_Format",()=>o.RGB_PVRTC_4BPPV1_Format,"RGB_S3TC_DXT1_Format",()=>o.RGB_S3TC_DXT1_Format,"RGDepthPacking",()=>o.RGDepthPacking,"RGFormat",()=>o.RGFormat,"RGIntegerFormat",()=>o.RGIntegerFormat,"RawShaderMaterial",()=>o.RawShaderMaterial,"Ray",()=>o.Ray,"Raycaster",()=>o.Raycaster,"RectAreaLight",()=>o.RectAreaLight,"RedFormat",()=>o.RedFormat,"RedIntegerFormat",()=>o.RedIntegerFormat,"ReinhardToneMapping",()=>o.ReinhardToneMapping,"RenderObjectRefreshType",()=>o.RenderObjectRefreshType,"RenderTarget",()=>o.RenderTarget,"RenderTarget3D",()=>o.RenderTarget3D,"RepeatWrapping",()=>o.RepeatWrapping,"ReplaceStencilOp",()=>o.ReplaceStencilOp,"ReverseSubtractEquation",()=>o.ReverseSubtractEquation,"RingGeometry",()=>o.RingGeometry,"SIGNED_R11_EAC_Format",()=>o.SIGNED_R11_EAC_Format,"SIGNED_RED_GREEN_RGTC2_Format",()=>o.SIGNED_RED_GREEN_RGTC2_Format,"SIGNED_RED_RGTC1_Format",()=>o.SIGNED_RED_RGTC1_Format,"SIGNED_RG11_EAC_Format",()=>o.SIGNED_RG11_EAC_Format,"SRGBColorSpace",()=>o.SRGBColorSpace,"SRGBTransfer",()=>o.SRGBTransfer,"Scene",()=>o.Scene,"ShaderChunk",()=>n.ShaderChunk,"ShaderLib",()=>n.ShaderLib,"ShaderMaterial",()=>o.ShaderMaterial,"ShadowMaterial",()=>o.ShadowMaterial,"Shape",()=>o.Shape,"ShapeGeometry",()=>o.ShapeGeometry,"ShapePath",()=>o.ShapePath,"ShapeUtils",()=>o.ShapeUtils,"ShortType",()=>o.ShortType,"Skeleton",()=>o.Skeleton,"SkeletonHelper",()=>o.SkeletonHelper,"SkinnedMesh",()=>o.SkinnedMesh,"Source",()=>o.Source,"Sphere",()=>o.Sphere,"SphereGeometry",()=>o.SphereGeometry,"Spherical",()=>o.Spherical,"SphericalHarmonics3",()=>o.SphericalHarmonics3,"SplineCurve",()=>o.SplineCurve,"SpotLight",()=>o.SpotLight,"SpotLightHelper",()=>o.SpotLightHelper,"Sprite",()=>o.Sprite,"SpriteMaterial",()=>o.SpriteMaterial,"SrcAlphaFactor",()=>o.SrcAlphaFactor,"SrcAlphaSaturateFactor",()=>o.SrcAlphaSaturateFactor,"SrcColorFactor",()=>o.SrcColorFactor,"StaticCopyUsage",()=>o.StaticCopyUsage,"StaticDrawUsage",()=>o.StaticDrawUsage,"StaticReadUsage",()=>o.StaticReadUsage,"StereoCamera",()=>o.StereoCamera,"StreamCopyUsage",()=>o.StreamCopyUsage,"StreamDrawUsage",()=>o.StreamDrawUsage,"StreamReadUsage",()=>o.StreamReadUsage,"StringKeyframeTrack",()=>o.StringKeyframeTrack,"SubtractEquation",()=>o.SubtractEquation,"SubtractiveBlending",()=>o.SubtractiveBlending,"TOUCH",()=>o.TOUCH,"TangentSpaceNormalMap",()=>o.TangentSpaceNormalMap,"TetrahedronGeometry",()=>o.TetrahedronGeometry,"Texture",()=>o.Texture,"TextureLoader",()=>o.TextureLoader,"TextureSource",()=>o.TextureSource,"TextureUtils",()=>o.TextureUtils,"Timer",()=>o.Timer,"TimestampQuery",()=>o.TimestampQuery,"TorusGeometry",()=>o.TorusGeometry,"TorusKnotGeometry",()=>o.TorusKnotGeometry,"Triangle",()=>o.Triangle,"TriangleFanDrawMode",()=>o.TriangleFanDrawMode,"TriangleStripDrawMode",()=>o.TriangleStripDrawMode,"TrianglesDrawMode",()=>o.TrianglesDrawMode,"TubeGeometry",()=>o.TubeGeometry,"UVMapping",()=>o.UVMapping,"Uint16BufferAttribute",()=>o.Uint16BufferAttribute,"Uint32BufferAttribute",()=>o.Uint32BufferAttribute,"Uint8BufferAttribute",()=>o.Uint8BufferAttribute,"Uint8ClampedBufferAttribute",()=>o.Uint8ClampedBufferAttribute,"Uniform",()=>o.Uniform,"UniformsGroup",()=>o.UniformsGroup,"UniformsLib",()=>n.UniformsLib,"UniformsUtils",()=>o.UniformsUtils,"UnsignedByteType",()=>o.UnsignedByteType,"UnsignedInt101111Type",()=>o.UnsignedInt101111Type,"UnsignedInt248Type",()=>o.UnsignedInt248Type,"UnsignedInt5999Type",()=>o.UnsignedInt5999Type,"UnsignedIntType",()=>o.UnsignedIntType,"UnsignedShort4444Type",()=>o.UnsignedShort4444Type,"UnsignedShort5551Type",()=>o.UnsignedShort5551Type,"UnsignedShortType",()=>o.UnsignedShortType,"VSMShadowMap",()=>o.VSMShadowMap,"Vector2",()=>o.Vector2,"Vector3",()=>o.Vector3,"Vector4",()=>o.Vector4,"VectorKeyframeTrack",()=>o.VectorKeyframeTrack,"VideoFrameTexture",()=>o.VideoFrameTexture,"VideoTexture",()=>o.VideoTexture,"WebGL3DRenderTarget",()=>o.WebGL3DRenderTarget,"WebGLArrayRenderTarget",()=>o.WebGLArrayRenderTarget,"WebGLCoordinateSystem",()=>o.WebGLCoordinateSystem,"WebGLCubeRenderTarget",()=>n.WebGLCubeRenderTarget,"WebGLRenderTarget",()=>o.WebGLRenderTarget,"WebGLRenderer",()=>n.WebGLRenderer,"WebGLUtils",()=>n.WebGLUtils,"WebGPUCoordinateSystem",()=>o.WebGPUCoordinateSystem,"WebXRController",()=>o.WebXRController,"WireframeGeometry",()=>o.WireframeGeometry,"WrapAroundEnding",()=>o.WrapAroundEnding,"ZeroCurvatureEnding",()=>o.ZeroCurvatureEnding,"ZeroFactor",()=>o.ZeroFactor,"ZeroSlopeEnding",()=>o.ZeroSlopeEnding,"ZeroStencilOp",()=>o.ZeroStencilOp,"createCanvasElement",()=>o.createCanvasElement,"error",()=>o.error,"getConsoleFunction",()=>o.getConsoleFunction,"log",()=>o.log,"setConsoleFunction",()=>o.setConsoleFunction,"warn",()=>o.warn,"warnOnce",()=>o.warnOnce],32009);var l=e.i(32009);function i(e,t){let a;return(...r)=>{window.clearTimeout(a),a=window.setTimeout(()=>e(...r),t)}}let s=["x","y","top","bottom","left","right","width","height"];var c=e.i(46791);function u({ref:e,children:n,fallback:o,resize:c,style:d,gl:m,events:p=a.f,eventSource:h,eventPrefix:f,shadows:x,linear:g,flat:b,legacy:C,orthographic:S,frameloop:y,dpr:A,performance:T,raycaster:M,camera:v,scene:F,onPointerMissed:G,onCreated:_,...R}){r.useMemo(()=>(0,a.e)(l),[]);let B=(0,a.u)(),[w,L]=function({debounce:e,scroll:t,polyfill:a,offsetSize:n}={debounce:0,scroll:!1,offsetSize:!1}){var o,l,c;let u=a||("u"<typeof window?class{}:window.ResizeObserver);if(!u)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[d,m]=(0,r.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),p=(0,r.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:d,orientationHandler:null}),h=e?"number"==typeof e?e:e.scroll:null,f=e?"number"==typeof e?e:e.resize:null,x=(0,r.useRef)(!1);(0,r.useEffect)(()=>(x.current=!0,()=>void(x.current=!1)));let[g,b,C]=(0,r.useMemo)(()=>{let e=()=>{let e,t;if(!p.current.element)return;let{left:a,top:r,width:o,height:l,bottom:i,right:c,x:u,y:d}=p.current.element.getBoundingClientRect(),h={left:a,top:r,width:o,height:l,bottom:i,right:c,x:u,y:d};p.current.element instanceof HTMLElement&&n&&(h.height=p.current.element.offsetHeight,h.width=p.current.element.offsetWidth),Object.freeze(h),x.current&&(e=p.current.lastBounds,t=h,!s.every(a=>e[a]===t[a]))&&m(p.current.lastBounds=h)};return[e,f?i(e,f):e,h?i(e,h):e]},[m,n,h,f]);function S(){p.current.scrollContainers&&(p.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",C,!0)),p.current.scrollContainers=null),p.current.resizeObserver&&(p.current.resizeObserver.disconnect(),p.current.resizeObserver=null),p.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",p.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",p.current.orientationHandler))}function y(){p.current.element&&(p.current.resizeObserver=new u(C),p.current.resizeObserver.observe(p.current.element),t&&p.current.scrollContainers&&p.current.scrollContainers.forEach(e=>e.addEventListener("scroll",C,{capture:!0,passive:!0})),p.current.orientationHandler=()=>{C()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",p.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",p.current.orientationHandler))}return o=C,l=!!t,(0,r.useEffect)(()=>{if(l)return window.addEventListener("scroll",o,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",o,!0)},[o,l]),c=b,(0,r.useEffect)(()=>(window.addEventListener("resize",c),()=>void window.removeEventListener("resize",c)),[c]),(0,r.useEffect)(()=>{S(),y()},[t,C,b]),(0,r.useEffect)(()=>S,[]),[e=>{e&&e!==p.current.element&&(S(),p.current.element=e,p.current.scrollContainers=function e(t){let a=[];if(!t||t===document.body)return a;let{overflow:r,overflowX:n,overflowY:o}=window.getComputedStyle(t);return[r,n,o].some(e=>"auto"===e||"scroll"===e)&&a.push(t),[...a,...e(t.parentElement)]}(e),y())},d,g]}({scroll:!0,debounce:{scroll:50,resize:0},...c}),E=r.useRef(null),N=r.useRef(null);r.useImperativeHandle(e,()=>E.current);let D=(0,a.a)(G),j=r.useCallback(e=>null==D.current?void 0:D.current(e),[D]),[k,P]=r.useState(!1),[I,O]=r.useState(!1);if(k)throw k;if(I)throw I;let U=r.useRef(null),[W,H]=(0,a.b)(),z=r.useRef(null),V=()=>h?(0,a.i)(h)?h.current:h:N.current;r.useInsertionEffect(()=>()=>{let e=U.current;U.current=null,null==e||e.unmount()},[]),(0,a.c)(()=>{let e=E.current;L.width>0&&L.height>0&&e&&(U.current||(U.current=(0,a.d)(e)),U.current.configure({gl:m,scene:F,events:p,shadows:x,linear:g,flat:b,legacy:C,orthographic:S,frameloop:y,dpr:A,performance:T,raycaster:M,camera:v,size:L,onPointerMissed:j,onCreated:e=>{var t;z.current=e,null==e.events.connect||e.events.connect(null!=(t=V())?t:N.current),f&&e.setEvents({compute:(e,t)=>{let a=e[f+"X"],r=e[f+"Y"];t.pointer.set(a/t.size.width*2-1,-(2*(r/t.size.height))+1),t.raycaster.setFromCamera(t.pointer,t.camera)}}),null==_||_(e)}}).catch(O),"fulfilled"===U.current.ready.status?U.current.render((0,t.jsx)(B,{children:(0,t.jsx)(a.E,{set:O,children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(a.B,{set:P}),children:null!=n?n:null})})})):"pending"===U.current.ready.status&&H(U.current.ready))}),r.useEffect(()=>{var e;let t=null==(e=z.current)?void 0:e.get(),a=V();t&&a&&t.events.connected!==a&&(null==t.events.connect||t.events.connect(a))}),r.useEffect(()=>{let e=E.current;return()=>{var t;e.isConnected||null==(t=U.current)||t.unmount()}},[]);let q=h?"none":"auto";return(0,t.jsxs)("div",{ref:N,style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",pointerEvents:q,...d},...R,children:[(0,t.jsx)("div",{ref:w,style:{width:"100%",height:"100%"},children:(0,t.jsx)("canvas",{ref:E,style:{display:"block"},children:o})}),W]})}function d(e){return(0,t.jsx)(c.FiberProvider,{children:(0,t.jsx)(u,{...e})})}e.i(89499);var m=e.i(90874),p=e.i(58567),h=e.i(70703),f=e.i(67561),x=e.i(83402),g=e.i(49721),b=e.i(68757),C=e.i(18638);e.i(85269);var S=e.i(22831);let y=({onClick:e,icon:a,isActive:r,activeClass:n,label:o})=>(0,t.jsxs)("button",{onClick:e,className:`p-2 rounded-xl tesla-hover transition-all duration-300 group relative ${r?"bg-hud-elevated shadow-soft":""}`,title:o,children:[(0,t.jsx)(g.FontAwesomeIcon,{icon:a,className:`text-xl transition-all duration-300 ${r?n+" scale-110":"text-hud-muted group-hover:text-hud-main"}`}),r&&(0,t.jsx)("span",{className:`absolute -bottom-1 left-1/2 -translate-x-1/2 w-1 h-1 rounded-full ${n.replace("text-","bg-")} animate-soft-pulse`})]}),A=({layers:e,onToggle:a,label:n})=>{let[o,l]=(0,r.useState)(!1),i=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!o)return;let e=e=>{i.current&&!i.current.contains(e.target)&&l(!1)},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[o]);let s=e.some(e=>e.on);return(0,t.jsxs)("div",{ref:i,className:"relative",children:[(0,t.jsx)(y,{onClick:()=>l(e=>!e),icon:b.faLayerGroup,isActive:o||s,activeClass:"text-oBlue",label:n}),o&&(0,t.jsx)("div",{role:"menu","aria-label":n,className:"bg-hud-menu absolute right-0 [@media(max-height:500px)]:right-auto [@media(max-height:500px)]:left-0 top-full mt-2 z-50 w-[13rem] [@media(max-height:500px)]:w-[26rem] max-w-[calc(100vw-1rem)] max-h-[calc(100dvh-8rem)] overflow-y-auto p-2 rounded-2xl border border-hud shadow-2xl grid grid-cols-1 [@media(max-height:500px)]:grid-cols-2 gap-1",children:e.map(e=>(0,t.jsxs)("button",{role:"menuitemcheckbox","aria-checked":e.on,onClick:()=>a(e.key),className:`flex items-center gap-3 px-3 py-2.5 [@media(max-height:500px)]:py-2 rounded-xl text-left text-label tesla-hover ${e.on?"text-hud-main":"text-hud-muted"}`,children:[(0,t.jsx)(g.FontAwesomeIcon,{icon:e.icon,className:`w-4 ${e.on?e.color:""}`}),(0,t.jsx)("span",{className:"flex-1",children:e.label}),(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faCheck,className:`w-3 ${e.on?"text-oBlue":"opacity-0"}`})]},e.key))})]})},T=()=>{let{t:e}=(0,S.useTranslation)(),{theme:a,themeMode:r,setTheme:n,states:o,toggleState:l,toggleExclusiveMode:i,cycleOceanMode:s}=(0,f.useOcearoContext)(),c={water:{icon:b.faWater,color:"text-oBlue",label:e("toolbar.oceanWater")},black:{icon:b.faBorderAll,color:"text-hud-main",label:e("toolbar.oceanBlack")},depth:{icon:b.faCube,color:"text-oGreen",label:e("toolbar.oceanDepth")}},u={auto:{icon:b.faCircleHalfStroke,label:e("toolbar.themeAuto",{theme:e(`toolbar.theme_${a}`)})},day:{icon:b.faSun,label:e("toolbar.theme_day")},dark:{icon:b.faMoon,label:e("toolbar.theme_dark")},night:{icon:b.faEye,label:e("toolbar.theme_night")}},d=u[r]||u.dark,m=c[o.oceanMode]?o.oceanMode:"black",p=c[m],h=[{key:"ais",on:!!o.ais,icon:b.faSatellite,color:"text-oGreen",label:e("toolbar.aisRadar")},{key:"showWind",on:!!o.showWind,icon:b.faWind,color:"text-oYellow",label:e("toolbar.layerWind")},{key:"showCurrent",on:!!o.showCurrent,icon:b.faWater,color:"text-oBlue",label:e("toolbar.layerCurrent")},{key:"showLaylines3D",on:!!o.showLaylines3D,icon:b.faRulerCombined,color:"text-oGreen",label:e("toolbar.laylines3D")},{key:"showPolar",on:!!o.showPolar,icon:b.faCompass,color:"text-oBlue",label:e("toolbar.polarView")},{key:"showSeamarks",on:!!o.showSeamarks,icon:b.faLifeRing,color:"text-oYellow",label:e("toolbar.layerSeamarks")}];return(0,t.jsxs)("div",{className:"flex items-center space-x-1 p-1.5 rounded-2xl",children:[(0,t.jsx)(y,{onClick:()=>i("autopilot"),icon:b.faShip,isActive:o.autopilot,activeClass:"text-oBlue",label:e("toolbar.autopilot")}),(0,t.jsx)(y,{onClick:()=>i("anchorWatch"),icon:b.faAnchor,isActive:o.anchorWatch,activeClass:"text-oYellow",label:e("toolbar.anchorWatch")}),(0,t.jsx)(y,{onClick:()=>i("parkingMode"),icon:b.faParking,isActive:o.parkingMode,activeClass:"text-oGreen",label:e("toolbar.parkingMode")}),(0,t.jsx)("div",{className:"h-6 w-[1px] bg-hud-border mx-0.5"}),(0,t.jsx)(y,{onClick:()=>{n(C.THEME_MODES[(C.THEME_MODES.indexOf(r)+1)%C.THEME_MODES.length])},icon:d.icon,isActive:"dark"!==r,activeClass:"text-hud-main",label:d.label}),(0,t.jsx)(y,{onClick:s,icon:p.icon,isActive:!0,activeClass:p.color,label:p.label}),(0,t.jsx)(A,{layers:h,onToggle:e=>l(e),label:e("toolbar.layers")})]})};var M=e.i(72466),v=e.i(85709);let F="batteries",G={FRESH_WATER:{id:"freshWater",labelKey:"tanks.freshWater",path:"tanks.freshWater.0.currentLevel",icon:b.faDroplet,color:"bg-oBlue"},FUEL:{id:"fuel",labelKey:"tanks.fuel",path:"tanks.fuel.0.currentLevel",icon:b.faGasPump,color:"bg-oYellow"},BLACK_WATER:{id:"blackWater",labelKey:"tanks.blackWater",path:"tanks.blackWater.0.currentLevel",icon:b.faToilet,color:"bg-hud-muted"}},_=({level:e,type:a})=>{let{t:r}=(0,S.useTranslation)(),n=Math.max(0,Math.min(100,e)),{labelKey:o,icon:l,color:i}=G[a],s=n<=20,c=i.replace("bg-","text-");return(0,t.jsxs)("div",{className:"flex items-center space-x-2",title:r(o),children:[(0,t.jsx)(g.FontAwesomeIcon,{icon:l,className:`text-xs ${c} opacity-60`}),(0,t.jsx)("div",{className:"relative w-14 h-[8px] rounded-full bg-hud-elevated/60 overflow-hidden",children:(0,t.jsx)("div",{className:`absolute left-0 top-0 h-full rounded-full ${s?"bg-oRed":i} transition-all duration-1000 ease-out`,style:{width:`${n}%`}})}),(0,t.jsxs)("span",{className:`text-caption font-semibold tabular-nums min-w-[28px] text-right ${s?"text-oRed animate-soft-pulse":"text-hud-main"}`,children:[n,"%"]})]})},R=({batteryLevel:e,batteryNumber:a,voltage:r})=>{let{t:n}=(0,S.useTranslation)(),o=Math.max(0,Math.min(100,e)),l=(0,M.isBatteryCharging)(r),i=o<=M.BATTERY_CONFIG.DANGER_THRESHOLD;return(0,t.jsxs)("div",{className:"flex items-center space-x-2",title:`${o}% — ${r?.toFixed(1)}V${l?" "+n("common.charging"):""}`,children:[(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faBolt,className:`text-xs ${l?"text-oYellow animate-pulse":"text-oGreen opacity-60"}`}),(0,t.jsx)("div",{className:"relative w-14 h-[8px] rounded-full bg-hud-elevated/60 overflow-hidden",children:(0,t.jsx)("div",{className:`absolute left-0 top-0 h-full rounded-full ${i?"bg-oRed":l?"bg-oGreen":"bg-oBlue"} transition-all duration-1000 ease-out ${l?"shadow-[0_0_6px_var(--color-oGreen)]":""}`,style:{width:`${o}%`}})})]})},B=()=>{let[e,a]=(0,r.useState)(F),n=(0,r.useMemo)(()=>["electrical.batteries.1.capacity.stateOfCharge","electrical.batteries.1.voltage"],[]),o=(0,r.useMemo)(()=>["tanks.freshWater.0.currentLevel","tanks.fuel.0.currentLevel","tanks.blackWater.0.currentLevel"],[]),l=(0,v.useSignalKPaths)([...n,...o]),i=(0,r.useMemo)(()=>{let e=l["electrical.batteries.1.capacity.stateOfCharge"],t=l["electrical.batteries.1.voltage"];return[{level:null==e?(0,M.estimateStateOfCharge)(t):e,number:1,voltage:t}].filter(e=>null!=e.level&&!Number.isNaN(e.level))},[l]),s=(0,r.useMemo)(()=>{let e=l["tanks.freshWater.0.currentLevel"],t=l["tanks.fuel.0.currentLevel"],a=l["tanks.blackWater.0.currentLevel"];return{FRESH_WATER:null!=e?100*e:0,FUEL:null!=t?100*t:0,BLACK_WATER:null!=a?100*a:0}},[l]),c=()=>{a(e=>e===F?"tanks":F)},u=e===F;return(0,t.jsx)("div",{className:"p-1.5 rounded-2xl transition-all duration-300 cursor-pointer select-none",onClick:c,role:"button",tabIndex:0,"aria-label":`Toggle between ${u?"tanks":"batteries"} display`,onKeyDown:e=>"Enter"===e.key&&c(),children:(0,t.jsx)("div",{className:"flex flex-col space-y-1",children:u?(0,t.jsx)(t.Fragment,{children:i.map(e=>(0,t.jsx)(R,{batteryLevel:e.level,batteryNumber:e.number,voltage:e.voltage},e.number))}):(0,t.jsx)(t.Fragment,{children:Object.keys(G).map(e=>(0,t.jsx)(_,{type:e,level:s[e]},e))})})})},w=[.25,.35,.5,.7,1,1.4,2],L=({value:e,onChange:a})=>{let r,{t:n}=(0,S.useTranslation)(),o=(r=0,w.forEach((t,a)=>{Math.abs(t-e)<Math.abs(w[r]-e)&&(r=a)}),r),l=w[o]/.7,i=l>=1?`\xd7${Number(l.toFixed(1))}`:`\xf7${Number((1/l).toFixed(1))}`,s=e=>{let t=w[Math.max(0,Math.min(w.length-1,o+e))];t!==w[o]&&a(t)},c="w-9 h-9 flex items-center justify-center rounded-lg text-hud-main hover:bg-hud-elevated/60 disabled:opacity-30";return(0,t.jsxs)("div",{className:"flex items-center gap-1 rounded-xl bg-hud-bg/70 backdrop-blur-sm px-1 py-1",title:n("sceneScale.help"),children:[(0,t.jsx)("button",{type:"button",className:c,onClick:()=>s(-1),disabled:0===o,"aria-label":n("sceneScale.closer"),children:(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faMinus})}),(0,t.jsx)("span",{className:"min-w-[3rem] text-center text-caption font-semibold tabular-nums text-hud-main",onDoubleClick:()=>a(.7),children:o===w.indexOf(.7)?"1:1":i}),(0,t.jsx)("button",{type:"button",className:c,onClick:()=>s(1),disabled:o===w.length-1,"aria-label":n("sceneScale.wider"),children:(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faPlus})})]})},E=({side:e,panels:a,defaults:r,shown:n,onChange:o})=>{let{t:l}=(0,S.useTranslation)(),i=Object.keys(a),s=n["left"===e?"right":"left"],c=n[e],u=a[c]?c:r[e],d=(()=>{let e=i.indexOf(c);for(let t=1;t<=i.length;t++){let a=i[(e+t)%i.length];if(a!==s)return a}return c})();return(0,t.jsxs)("button",{type:"button",onClick:()=>o(e,d),"aria-label":l("hud.switchTo",{name:l(`hud.panel_${d}`)}),className:`flex flex-col gap-1 text-left cursor-pointer rounded-2xl focus-visible:outline focus-visible:outline-2 focus-visible:outline-oBlue ${"right"===e?"items-end":"items-start"}`,children:[i.map(e=>{let r=a[e];return(0,t.jsx)("div",{hidden:e!==u,children:(0,t.jsx)(r,{})},e)}),(0,t.jsx)("span",{className:"flex gap-1.5 px-1","aria-hidden":"true",children:i.map(e=>(0,t.jsx)("span",{className:`h-1.5 rounded-full transition-all ${e===u?"w-4 bg-hud-main":e===s?"w-1.5 bg-hud-muted opacity-30":"w-1.5 bg-hud-muted opacity-60"}`},e))})]})};var N=e.i(66799),D=e.i(37256),j=e.i(81574),k=e.i(38507),P=e.i(9617);let I=(0,D.coursePaths)("distance"),O=new Set([j.default.waypointPicker.description,k.default.waypointPicker.description]),U=async()=>{let e=await N.default.getCourse().catch(()=>null);await N.default.clearCourse();let t=(e?.nextPoint?.href||"").match(/^\/resources\/waypoints\/(.+)$/);if(!t)return;let a=await N.default.apiCall("/signalk/v2/api/resources/waypoints").catch(()=>null),r=a?.[t[1]];r&&O.has(r.description)&&await N.default.deleteResource("waypoints",t[1])},W=({canPlace:e})=>{let{t:a}=(0,S.useTranslation)(),{moved:n,placingWaypoint:o,message:l}=(0,r.useSyncExternalStore)(P.subscribeView,P.getViewState,P.getViewState),i=(0,v.useSignalKPaths)(I),s=(0,D.courseValue)(i,"distance"),[c,u]=(0,r.useState)(null),d=Number.isFinite(s)&&s!==c,[m,p]=(0,r.useState)(!1),h=async()=>{p(!0);try{await U(),u(s),(0,P.setViewMessage)(a("waypointPicker.cleared"))}catch(e){(0,P.setViewMessage)(a("waypointPicker.clearFailed",{error:e.message}))}finally{p(!1)}};(0,r.useEffect)(()=>{if(!l)return;let e=setTimeout(()=>(0,P.setViewMessage)(null),6e3);return()=>clearTimeout(e)},[l]),(0,r.useEffect)(()=>{!e&&o&&(0,P.setPlacingWaypoint)(!1)},[e,o]);let f="w-11 h-11 flex items-center justify-center rounded-xl bg-hud-bg/70 backdrop-blur-sm text-hud-main hover:bg-hud-elevated/60";return(0,t.jsxs)("div",{className:"flex flex-col items-end gap-2",children:[e&&(0,t.jsx)("button",{type:"button",onClick:()=>(0,P.setPlacingWaypoint)(!o),className:`${f} ${o?"!bg-oBlue text-white":""}`,title:a("waypointPicker.button"),"aria-label":a("waypointPicker.button"),"aria-pressed":o,children:(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faLocationDot})}),d&&(0,t.jsx)("button",{type:"button",onClick:h,disabled:m,className:`${f} disabled:opacity-40`,title:a("waypointPicker.clear"),"aria-label":a("waypointPicker.clear"),children:(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faTrashCan})}),n&&(0,t.jsx)("button",{type:"button",onClick:P.requestRecenter,className:f,title:a("viewButtons.recenter"),"aria-label":a("viewButtons.recenter"),children:(0,t.jsx)(g.FontAwesomeIcon,{icon:b.faCrosshairs})}),(o||l)&&(0,t.jsx)("div",{className:"max-w-[16rem] rounded-xl bg-hud-bg/80 backdrop-blur-sm px-3 py-2 text-caption text-hud-main text-right",children:l||a("waypointPicker.hint")})]})};var H=e.i(39271);let z=e=>{let[t,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=window.matchMedia(e),r=()=>a(t.matches);return r(),t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),t},V=(0,h.default)(()=>e.A(36258),{loadableGenerated:{modules:[59465]},ssr:!1}),q=(0,h.default)(()=>e.A(11220),{loadableGenerated:{modules:[27404]},ssr:!1}),$=(0,h.default)(()=>e.A(97820),{loadableGenerated:{modules:[69675]},ssr:!1}),K=(0,h.default)(()=>e.A(29882),{loadableGenerated:{modules:[56665]}}),X=(0,h.default)(()=>e.A(93170),{loadableGenerated:{modules:[50226]}}),Q=(0,h.default)(()=>e.A(93889),{loadableGenerated:{modules:[58166]}}),Y=(0,h.default)(()=>e.A(64390),{loadableGenerated:{modules:[39554]}}),Z=(0,h.default)(()=>e.A(48217),{loadableGenerated:{modules:[14774]}}),J=(0,h.default)(()=>e.A(30150),{loadableGenerated:{modules:[84237]}}),ee=(0,h.default)(()=>e.A(34882),{loadableGenerated:{modules:[77021]}}),et=(0,h.default)(()=>e.A(59499),{loadableGenerated:{modules:[85003]}}),ea=(0,h.default)(()=>e.A(43322),{loadableGenerated:{modules:[56101]}}),er=(0,h.default)(()=>e.A(32673),{loadableGenerated:{modules:[36540]}}),en=(0,h.default)(()=>e.A(66984),{loadableGenerated:{modules:[79261]}}),eo=(0,h.default)(()=>e.A(32598),{loadableGenerated:{modules:[79224]}}),el=(0,h.default)(()=>e.A(73321),{loadableGenerated:{modules:[78938]}}),ei=(0,h.default)(()=>e.A(82041),{loadableGenerated:{modules:[41994]}}),es=(0,h.default)(()=>e.A(71762),{loadableGenerated:{modules:[91999]}}),ec=(0,h.default)(()=>e.A(31987),{loadableGenerated:{modules:[81788]}}),eu=(0,h.default)(()=>e.A(77324),{loadableGenerated:{modules:[64587]}}),ed=(0,h.default)(()=>e.A(93540),{loadableGenerated:{modules:[84809]}}),em=(0,h.default)(()=>e.A(11657),{loadableGenerated:{modules:[75058]}}),ep=()=>{let{gl:e,scene:t}=(0,m.useThree)();return(0,r.useEffect)(()=>{if(window&&e){window.__OCEARO_RENDERER=e;let t=setInterval(()=>{e&&e.info&&(window.__OCEARO_RENDER_INFO=e.info)},1e3);return()=>{delete window.__OCEARO_RENDERER,delete window.__OCEARO_RENDER_INFO,clearInterval(t)}}},[e,t]),null},eh=({fps:e})=>{let t=(0,m.useThree)(e=>e.invalidate);return(0,r.useEffect)(()=>{let a=setInterval(()=>t(),1e3/e);return()=>clearInterval(a)},[e,t]),null},ef={depth:ei,wind:ec,speed:eu,tide:es},ex={left:"depth",right:"tide"};e.s(["default",0,({active:e=!0,fullscreen:a=!1})=>{let[n,l]=(e=>{let[t,a]=(0,r.useState)(()=>({...e,...x.default.get("hudPanels")||{}}));return[t,(e,t)=>{a(a=>{let r={...a,[e]:t};return x.default.set("hudPanels",r),r})}]})(ex),[i]=(0,r.useState)(p.getRenderProfile);(0,r.useEffect)(()=>{document.documentElement.dataset.renderProfile=i.id},[i.id]);let s=i.fps<60,{states:c,theme:u}=(0,f.useOcearoContext)(),m=(0,H.useReplay)().active,[h,g]=(0,r.useState)(null),[b,C]=(0,r.useState)(()=>x.default.get("aisLengthScalingFactor")||.7),[S,y]=(0,r.useState)(!0),[A]=(0,r.useState)(()=>x.default.get("hudStyle")||"minimal"),M="classic"===A,v=z("(min-width: 1024px) and (min-height: 600px)"),F=a&&!M&&v,G=z("(max-height: 500px)"),_=z("(max-width: 639px)"),R=!F&&!M,w=!c.anchorWatch&&!c.parkingMode&&!c.moored&&!m;(0,r.useEffect)(()=>{y(!1!==x.default.getAll().showAttitudeIndicator)},[]);let N="day"===u&&"depth"===c.oceanMode;return(0,t.jsxs)("div",{className:"w-full h-full relative overflow-hidden","data-scene":N?"light":void 0,children:[(0,t.jsxs)("div",{className:"absolute top-2 left-2 right-2 z-40 flex items-center justify-between","data-hud-solid":!0,children:[(0,t.jsx)(T,{}),(0,t.jsxs)("div",{className:"hidden sm:flex items-center space-x-4 min-w-0 shrink-0",children:[(0,t.jsx)(ed,{compact:!a}),(0,t.jsx)(B,{})]})]}),(0,t.jsxs)("div",{className:"absolute top-14 right-2 z-30 hidden sm:flex flex-col items-end gap-2","data-hud-solid":!0,children:[(0,t.jsx)(L,{value:b,onChange:e=>{x.default.set("aisLengthScalingFactor",e),C(e)}}),(0,t.jsx)(W,{canPlace:!c.parkingMode&&!c.anchorWatch})]}),(0,t.jsxs)("div",{className:"absolute top-14 left-2 z-30","data-hud-solid":!0,children:[!c.anchorWatch&&(0,t.jsx)(K,{}),c.anchorWatch&&(0,t.jsx)(Y,{}),!M&&(0,t.jsx)(et,{omitDepth:!0,maxItems:F?4:3}),!c.parkingMode&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)(em,{})})]}),M&&S&&(0,t.jsx)("div",{className:"absolute top-14 right-2 z-20",children:(0,t.jsx)(J,{})}),h&&!R&&(0,t.jsx)("div",{"data-hud-solid":!0,className:`hud-stack absolute z-30 w-96 max-h-[calc(100%-5rem)] flex flex-col ${M?"top-28 left-2":"top-14 right-3"}`,children:(0,t.jsx)(ee,{content:h,onClose:()=>g(null)})}),F&&(0,t.jsx)("div",{className:"absolute left-3 bottom-3 z-20","data-hud-solid":!0,children:(0,t.jsx)(E,{side:"left",panels:ef,defaults:ex,shown:n,onChange:l})}),F&&(0,t.jsx)("div",{className:"absolute right-3 bottom-3 z-20","data-hud-solid":!0,children:(0,t.jsx)(E,{side:"right",panels:ef,defaults:ex,shown:n,onChange:l})}),!m&&(0,t.jsx)("div",{"data-hud-solid":!0,className:"absolute right-2 top-14 z-30 max-w-[calc(100%-10rem)] sm:right-auto sm:left-1/2 sm:-translate-x-1/2 sm:max-w-[calc(100%-12rem)]",children:(0,t.jsx)(el,{})}),(c.showWind||c.showCurrent)&&(0,t.jsx)("div",{"data-hud-solid":!0,className:`absolute top-14 z-30 ${_?"left-36 right-2":"left-1/2 -translate-x-1/2 w-[30rem] max-w-[calc(100%-12rem)]"}`,children:(0,t.jsx)(eo,{compact:G||_,wind:!!c.showWind,current:!!c.showCurrent})}),R?(0,t.jsxs)("div",{"data-hud-solid":!0,className:`hud-stack absolute bottom-2 z-30 flex flex-col gap-2 min-h-0 max-h-[calc(100%-4.5rem)] pointer-events-none [&>*]:pointer-events-auto
2
+ ${G?"right-40 w-[min(24rem,calc(100%-21rem))]":"left-16 right-16 sm:left-auto sm:w-[26rem]"}`,children:[h&&(0,t.jsx)("div",{className:"min-h-0 flex flex-col",children:(0,t.jsx)(ee,{content:h,onClose:()=>g(null)})}),!(G&&h)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"empty:hidden shrink-0 flex justify-center",children:(0,t.jsx)(en,{})}),c.parkingMode&&(0,t.jsx)("div",{className:"empty:hidden shrink-0 tesla-card !p-3 !rounded-2xl",children:(0,t.jsx)(er,{})}),w&&(0,t.jsx)("div",{className:"empty:hidden shrink-0 [&>*]:max-w-none",children:(0,t.jsx)(ea,{})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 bottom-3 z-30 max-w-[calc(100%-1rem)]",children:(0,t.jsx)(en,{})}),c.parkingMode&&(0,t.jsx)("div",{className:"absolute left-1/2 -translate-x-1/2 bottom-3 z-20 max-w-[calc(100%-9rem)]",children:(0,t.jsx)(er,{})}),w&&(0,t.jsx)("div",{"data-hud-solid":!0,className:`hud-stack absolute left-1/2 -translate-x-1/2 z-20 ${M?"bottom-24 max-w-[calc(100%-9rem)]":"bottom-3 max-w-[calc(100%-41rem)]"}`,children:(0,t.jsx)(ea,{})})]}),(M||R)&&(G&&!M?(0,t.jsxs)("div",{className:"absolute right-2 bottom-2 z-20 flex items-end","data-hud-solid":!0,children:[(0,t.jsx)(Z,{}),(0,t.jsx)(Q,{})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute left-2 bottom-2 z-20 flex flex-col items-center","data-hud-solid":!0,children:(0,t.jsx)(Z,{})}),(0,t.jsx)("div",{className:"absolute right-2 bottom-2 z-20 flex flex-col items-center","data-hud-solid":!0,children:(0,t.jsx)(Q,{})})]})),M&&!c.anchorWatch&&(0,t.jsx)("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 z-10",children:(0,t.jsx)(X,{})}),(0,t.jsx)("div",{className:"absolute left-1/2 transform -translate-x-1/2 w-full h-full",children:(0,t.jsxs)(d,{style:{width:"100%",height:"100%"},shadows:!1,frameloop:e?s?"demand":"always":"never",dpr:i.dpr,performance:{min:.5},gl:{antialias:i.antialias,powerPreference:"low-power",physicallyCorrectLights:!1,toneMapping:o.NoToneMapping,toneMappingExposure:1,shadowMap:{enabled:!1},precision:"lowp"},children:[(0,t.jsx)(ep,{}),e&&s&&(0,t.jsx)(eh,{fps:i.fps}),c.parkingMode?(0,t.jsx)(q,{onUpdateInfoPanel:g},b):c.anchorWatch?(0,t.jsx)($,{onUpdateInfoPanel:g},b):(0,t.jsx)(V,{onUpdateInfoPanel:g,selection:h},b)]})})]})}],47141)},23595,function(e){e.n(e.i(47141))}]);