@cesium/engine 9.0.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/Build/ThirdParty/Workers/pako_deflate.min.js +108 -210
  2. package/Build/ThirdParty/Workers/pako_inflate.min.js +466 -568
  3. package/Build/ThirdParty/Workers/z-worker-pako.js +56 -105
  4. package/Build/Workers/{chunk-VR5RBW52.js → chunk-26NE4LRW.js} +7 -7
  5. package/Build/Workers/{chunk-P2YAAMT2.js → chunk-26XJDV3D.js} +15 -15
  6. package/Build/Workers/{chunk-L4BW3RUA.js → chunk-2TRB253J.js} +7 -7
  7. package/Build/Workers/{chunk-NP2GYYE5.js → chunk-3PV5HQ2R.js} +6 -6
  8. package/Build/Workers/{chunk-BCU2LH5T.js → chunk-3VDHTBY5.js} +10 -10
  9. package/Build/Workers/{chunk-WHUSTDIB.js → chunk-4RG6WOXH.js} +10 -10
  10. package/Build/Workers/{chunk-P4XKB3QZ.js → chunk-5OK5JFDP.js} +5 -5
  11. package/Build/Workers/{chunk-2ZBL3MVO.js → chunk-7HLZRYGD.js} +10 -12
  12. package/Build/Workers/chunk-7PFZ4Z7C.js +961 -0
  13. package/Build/Workers/{chunk-24YTYWNB.js → chunk-A5CSB5ZE.js} +11 -13
  14. package/Build/Workers/{chunk-RMOEYCZW.js → chunk-AROLUUGS.js} +2 -2
  15. package/Build/Workers/{chunk-3NCVAGDA.js → chunk-BBBTT36L.js} +14 -14
  16. package/Build/Workers/{chunk-QKBGRKKG.js → chunk-BNT2SNWU.js} +4 -4
  17. package/Build/Workers/{chunk-LQJ5FFFR.js → chunk-CFBGPZU6.js} +11 -13
  18. package/Build/Workers/{chunk-C6OI26DR.js → chunk-CVCVMOQA.js} +1 -1
  19. package/Build/Workers/{chunk-SS4ESNE3.js → chunk-DIVFF6DK.js} +2 -2
  20. package/Build/Workers/{chunk-PXB7T27O.js → chunk-EJZVBTX4.js} +6 -6
  21. package/Build/Workers/{chunk-TZORKRNK.js → chunk-EODIOQ35.js} +1 -1
  22. package/Build/Workers/{chunk-QCQUZGXI.js → chunk-ETC45PHH.js} +5 -6
  23. package/Build/Workers/{chunk-E6WXPSJS.js → chunk-G7IAO7CW.js} +7 -7
  24. package/Build/Workers/{chunk-X2F6BEPY.js → chunk-GOQEANLM.js} +16 -16
  25. package/Build/Workers/{chunk-7COR472O.js → chunk-GUFV24F4.js} +7197 -5096
  26. package/Build/Workers/{chunk-5TIV3L26.js → chunk-GX2BWBN2.js} +13 -13
  27. package/Build/Workers/{chunk-ADOVHYWO.js → chunk-GX5LMUGZ.js} +469 -6
  28. package/Build/Workers/{chunk-2632RVPI.js → chunk-I6CW7ZE5.js} +7 -7
  29. package/Build/Workers/{chunk-YDVSBWEO.js → chunk-IF2OX6R4.js} +3 -5
  30. package/Build/Workers/{chunk-RSJXEO2A.js → chunk-IXYFH7DV.js} +95 -155
  31. package/Build/Workers/{chunk-ZNVSKMQ2.js → chunk-K5F23SZO.js} +6 -6
  32. package/Build/Workers/{chunk-MWV7IZK4.js → chunk-KTZK2UDR.js} +7 -7
  33. package/Build/Workers/{chunk-HBQPB6IH.js → chunk-LZFFO4KB.js} +12 -12
  34. package/Build/Workers/{chunk-GFA4SMXV.js → chunk-OYP23VAL.js} +11 -11
  35. package/Build/Workers/{chunk-ZYPTP7GS.js → chunk-PHT53MCH.js} +11 -11
  36. package/Build/Workers/{chunk-TJBU6GML.js → chunk-PUQR43HZ.js} +6 -6
  37. package/Build/Workers/{chunk-CO35JNNE.js → chunk-QZIWFSRM.js} +4 -4
  38. package/Build/Workers/{chunk-C3XBUYBO.js → chunk-RDR4KVPA.js} +17 -17
  39. package/Build/Workers/{chunk-YV4H2Y7M.js → chunk-RRUO4QEK.js} +4 -4
  40. package/Build/Workers/{chunk-LAQP3SCC.js → chunk-RTIT7UDN.js} +2 -2
  41. package/Build/Workers/{chunk-Z7FQLK6N.js → chunk-SC3TBKST.js} +4 -4
  42. package/Build/Workers/{chunk-GXUXEOE2.js → chunk-TDIGL45B.js} +1 -1
  43. package/Build/Workers/{chunk-EOXYZ34O.js → chunk-TP4FFUAH.js} +2 -2
  44. package/Build/Workers/{chunk-N4KXMWQU.js → chunk-U2LSTOMA.js} +2 -2
  45. package/Build/Workers/{chunk-6WF3KIF5.js → chunk-U6MTSO6A.js} +47 -84
  46. package/Build/Workers/{chunk-I37B3MZ2.js → chunk-UICVDDCQ.js} +1 -1
  47. package/Build/Workers/{chunk-DPUSFA7S.js → chunk-UKJCFXVV.js} +6 -6
  48. package/Build/Workers/{chunk-EPKE7GE3.js → chunk-UYKG3UFK.js} +5 -5
  49. package/Build/Workers/{chunk-RV7ZOSS6.js → chunk-W4OS542B.js} +13 -13
  50. package/Build/Workers/{chunk-DGDUKCJJ.js → chunk-WHDEZSAL.js} +6 -6
  51. package/Build/Workers/{chunk-NZWNZA6S.js → chunk-WOYQB5HM.js} +5 -5
  52. package/Build/Workers/{chunk-M2AYBTNH.js → chunk-WP3LCUOE.js} +13 -13
  53. package/Build/Workers/{chunk-73FKKY52.js → chunk-YGNQJ4YI.js} +5 -5
  54. package/Build/Workers/{chunk-SE4PXOEA.js → chunk-YGTWKLFY.js} +19 -19
  55. package/Build/Workers/{chunk-5R6VWLMH.js → chunk-ZHJDE6JN.js} +6 -6
  56. package/Build/Workers/combineGeometry.js +22 -24
  57. package/Build/Workers/createBoxGeometry.js +16 -18
  58. package/Build/Workers/createBoxOutlineGeometry.js +14 -16
  59. package/Build/Workers/createCircleGeometry.js +24 -26
  60. package/Build/Workers/createCircleOutlineGeometry.js +17 -19
  61. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -34
  62. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -31
  63. package/Build/Workers/createCorridorGeometry.js +27 -29
  64. package/Build/Workers/createCorridorOutlineGeometry.js +26 -28
  65. package/Build/Workers/createCylinderGeometry.js +18 -20
  66. package/Build/Workers/createCylinderOutlineGeometry.js +16 -18
  67. package/Build/Workers/createEllipseGeometry.js +24 -26
  68. package/Build/Workers/createEllipseOutlineGeometry.js +17 -19
  69. package/Build/Workers/createEllipsoidGeometry.js +17 -19
  70. package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -18
  71. package/Build/Workers/createFrustumGeometry.js +16 -18
  72. package/Build/Workers/createFrustumOutlineGeometry.js +18 -19
  73. package/Build/Workers/createGeometry.js +22 -24
  74. package/Build/Workers/createGroundPolylineGeometry.js +23 -25
  75. package/Build/Workers/createPlaneGeometry.js +14 -16
  76. package/Build/Workers/createPlaneOutlineGeometry.js +13 -15
  77. package/Build/Workers/createPolygonGeometry.js +32 -34
  78. package/Build/Workers/createPolygonOutlineGeometry.js +28 -30
  79. package/Build/Workers/createPolylineGeometry.js +23 -25
  80. package/Build/Workers/createPolylineVolumeGeometry.js +29 -31
  81. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -27
  82. package/Build/Workers/createRectangleGeometry.js +27 -29
  83. package/Build/Workers/createRectangleOutlineGeometry.js +18 -20
  84. package/Build/Workers/createSimplePolylineGeometry.js +21 -23
  85. package/Build/Workers/createSphereGeometry.js +17 -19
  86. package/Build/Workers/createSphereOutlineGeometry.js +16 -18
  87. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  88. package/Build/Workers/createVectorTileClampedPolylines.js +14 -16
  89. package/Build/Workers/createVectorTileGeometries.js +22 -24
  90. package/Build/Workers/createVectorTilePoints.js +12 -12
  91. package/Build/Workers/createVectorTilePolygons.js +20 -22
  92. package/Build/Workers/createVectorTilePolylines.js +14 -16
  93. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -25
  94. package/Build/Workers/createVerticesFromHeightmap.js +23 -25
  95. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +19 -22
  96. package/Build/Workers/createWallGeometry.js +22 -24
  97. package/Build/Workers/createWallOutlineGeometry.js +21 -23
  98. package/Build/Workers/decodeDraco.js +11 -11
  99. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +12 -19
  100. package/Build/Workers/decodeI3S.js +10 -11
  101. package/Build/Workers/transcodeKTX2.js +44 -80
  102. package/Build/Workers/transferTypedArrayTest.js +1 -1
  103. package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -22
  104. package/Source/Core/Ion.js +1 -1
  105. package/Source/Core/Math.js +0 -5
  106. package/Source/Core/PixelFormat.js +1 -0
  107. package/Source/Core/Rectangle.js +89 -0
  108. package/Source/Core/TaskProcessor.js +19 -3
  109. package/Source/Core/sampleTerrain.js +3 -3
  110. package/Source/DataSources/DataSourceDisplay.js +5 -0
  111. package/Source/Renderer/ShaderBuilder.js +6 -3
  112. package/Source/Scene/ArcGisMapService.js +1 -1
  113. package/Source/Scene/Billboard.js +7 -5
  114. package/Source/Scene/Cesium3DTile.js +65 -0
  115. package/Source/Scene/Cesium3DTileset.js +48 -1
  116. package/Source/Scene/ClippingPolygon.js +212 -0
  117. package/Source/Scene/ClippingPolygonCollection.js +968 -0
  118. package/Source/Scene/Globe.js +14 -0
  119. package/Source/Scene/GlobeSurfaceShaderSet.js +81 -15
  120. package/Source/Scene/GlobeSurfaceTileProvider.js +81 -1
  121. package/Source/Scene/GltfLoader.js +458 -435
  122. package/Source/Scene/GltfLoaderUtil.js +3 -12
  123. package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +23 -7
  124. package/Source/Scene/GltfStructuralMetadataLoader.js +11 -9
  125. package/Source/Scene/Label.js +1 -1
  126. package/Source/Scene/Model/AlphaPipelineStage.js +1 -1
  127. package/Source/Scene/Model/GeometryPipelineStage.js +15 -43
  128. package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +7 -0
  129. package/Source/Scene/Model/LightingPipelineStage.js +2 -4
  130. package/Source/Scene/Model/MaterialPipelineStage.js +346 -29
  131. package/Source/Scene/Model/Model.js +91 -3
  132. package/Source/Scene/Model/Model3DTileContent.js +21 -0
  133. package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +92 -0
  134. package/Source/Scene/Model/ModelSceneGraph.js +5 -0
  135. package/Source/Scene/Model/ModelUtility.js +3 -0
  136. package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -6
  137. package/Source/Scene/ModelComponents.js +169 -1
  138. package/Source/Scene/PickDepth.js +23 -15
  139. package/Source/Scene/ResourceCache.js +41 -50
  140. package/Source/Scene/ResourceCacheKey.js +41 -53
  141. package/Source/Scene/Terrain.js +2 -2
  142. package/Source/Shaders/Builtin/CzmBuiltins.js +6 -8
  143. package/Source/Shaders/Builtin/Functions/clipPolygons.glsl +37 -0
  144. package/Source/Shaders/Builtin/Functions/clipPolygons.js +39 -0
  145. package/Source/Shaders/Builtin/Functions/maximumComponent.glsl +21 -0
  146. package/Source/Shaders/Builtin/Functions/maximumComponent.js +23 -0
  147. package/Source/Shaders/Builtin/Functions/pbrLighting.glsl +108 -44
  148. package/Source/Shaders/Builtin/Functions/pbrLighting.js +108 -44
  149. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.glsl +14 -0
  150. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.js +15 -0
  151. package/Source/Shaders/Builtin/Structs/modelMaterial.glsl +14 -0
  152. package/Source/Shaders/Builtin/Structs/modelMaterial.js +14 -0
  153. package/Source/Shaders/GlobeFS.glsl +13 -1
  154. package/Source/Shaders/GlobeFS.js +13 -1
  155. package/Source/Shaders/GlobeVS.glsl +32 -0
  156. package/Source/Shaders/GlobeVS.js +32 -0
  157. package/Source/Shaders/Model/GeometryStageVS.glsl +1 -1
  158. package/Source/Shaders/Model/GeometryStageVS.js +1 -1
  159. package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +211 -133
  160. package/Source/Shaders/Model/ImageBasedLightingStageFS.js +212 -133
  161. package/Source/Shaders/Model/LightingStageFS.glsl +113 -48
  162. package/Source/Shaders/Model/LightingStageFS.js +113 -48
  163. package/Source/Shaders/Model/MaterialStageFS.glsl +399 -137
  164. package/Source/Shaders/Model/MaterialStageFS.js +399 -137
  165. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.glsl +6 -0
  166. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.js +8 -0
  167. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.glsl +27 -0
  168. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.js +29 -0
  169. package/Source/Shaders/Model/ModelFS.glsl +6 -0
  170. package/Source/Shaders/Model/ModelFS.js +7 -1
  171. package/Source/Shaders/Model/ModelVS.glsl +4 -0
  172. package/Source/Shaders/Model/ModelVS.js +4 -0
  173. package/Source/Shaders/PolygonSignedDistanceFS.glsl +100 -0
  174. package/Source/Shaders/PolygonSignedDistanceFS.js +101 -0
  175. package/Source/ThirdParty/Workers/z-worker-pako.js +1 -1
  176. package/index.d.ts +230 -4
  177. package/index.js +234 -229
  178. package/package.json +1 -1
  179. package/Build/Workers/chunk-2KACWKS4.js +0 -501
  180. package/Build/Workers/chunk-2XPLH3JY.js +0 -2977
  181. package/Build/Workers/chunk-X6XOMPWL.js +0 -73
  182. package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.glsl +0 -16
  183. package/Source/Shaders/Builtin/Functions/defaultPbrMaterial.js +0 -18
  184. package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.glsl +0 -37
  185. package/Source/Shaders/Builtin/Functions/pbrMetallicRoughnessMaterial.js +0 -39
  186. package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.glsl +0 -30
  187. package/Source/Shaders/Builtin/Functions/pbrSpecularGlossinessMaterial.js +0 -32
  188. package/Source/Shaders/Builtin/Structs/pbrParameters.glsl +0 -16
  189. package/Source/Shaders/Builtin/Structs/pbrParameters.js +0 -18
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,54 +25,52 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-PXB7T27O.js";
29
- import "./chunk-ZYPTP7GS.js";
30
- import "./chunk-ZNVSKMQ2.js";
28
+ } from "./chunk-EJZVBTX4.js";
29
+ import "./chunk-PHT53MCH.js";
30
+ import "./chunk-K5F23SZO.js";
31
31
  import {
32
32
  VertexFormat_default
33
- } from "./chunk-YV4H2Y7M.js";
34
- import "./chunk-EPKE7GE3.js";
35
- import "./chunk-DGDUKCJJ.js";
36
- import "./chunk-L4BW3RUA.js";
37
- import "./chunk-NP2GYYE5.js";
33
+ } from "./chunk-RRUO4QEK.js";
34
+ import "./chunk-UYKG3UFK.js";
35
+ import "./chunk-WHDEZSAL.js";
36
+ import "./chunk-2TRB253J.js";
37
+ import "./chunk-3PV5HQ2R.js";
38
38
  import {
39
39
  IndexDatatype_default
40
- } from "./chunk-P4XKB3QZ.js";
40
+ } from "./chunk-5OK5JFDP.js";
41
41
  import {
42
42
  GeometryAttributes_default
43
- } from "./chunk-EOXYZ34O.js";
43
+ } from "./chunk-TP4FFUAH.js";
44
44
  import {
45
45
  GeometryAttribute_default,
46
46
  Geometry_default,
47
47
  PrimitiveType_default
48
- } from "./chunk-2ZBL3MVO.js";
48
+ } from "./chunk-7HLZRYGD.js";
49
49
  import {
50
50
  BoundingSphere_default
51
- } from "./chunk-7COR472O.js";
52
- import "./chunk-2KACWKS4.js";
53
- import "./chunk-X6XOMPWL.js";
54
- import "./chunk-2XPLH3JY.js";
51
+ } from "./chunk-7PFZ4Z7C.js";
52
+ import "./chunk-GUFV24F4.js";
55
53
  import {
56
54
  ComponentDatatype_default
57
- } from "./chunk-NZWNZA6S.js";
55
+ } from "./chunk-WOYQB5HM.js";
58
56
  import {
59
57
  Cartesian3_default,
60
58
  Ellipsoid_default
61
- } from "./chunk-ADOVHYWO.js";
59
+ } from "./chunk-GX5LMUGZ.js";
62
60
  import {
63
61
  Math_default
64
- } from "./chunk-QCQUZGXI.js";
65
- import "./chunk-I37B3MZ2.js";
66
- import "./chunk-N4KXMWQU.js";
62
+ } from "./chunk-ETC45PHH.js";
63
+ import "./chunk-UICVDDCQ.js";
64
+ import "./chunk-U2LSTOMA.js";
67
65
  import {
68
66
  defaultValue_default
69
- } from "./chunk-TZORKRNK.js";
67
+ } from "./chunk-EODIOQ35.js";
70
68
  import {
71
69
  DeveloperError_default
72
- } from "./chunk-SS4ESNE3.js";
70
+ } from "./chunk-DIVFF6DK.js";
73
71
  import {
74
72
  defined_default
75
- } from "./chunk-YDVSBWEO.js";
73
+ } from "./chunk-IF2OX6R4.js";
76
74
 
77
75
  // packages/engine/Source/Core/WallGeometry.js
78
76
  var scratchCartesian3Position1 = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,51 +25,49 @@
25
25
 
26
26
  import {
27
27
  WallGeometryLibrary_default
28
- } from "./chunk-PXB7T27O.js";
29
- import "./chunk-ZYPTP7GS.js";
30
- import "./chunk-ZNVSKMQ2.js";
31
- import "./chunk-EPKE7GE3.js";
32
- import "./chunk-DGDUKCJJ.js";
33
- import "./chunk-L4BW3RUA.js";
34
- import "./chunk-NP2GYYE5.js";
28
+ } from "./chunk-EJZVBTX4.js";
29
+ import "./chunk-PHT53MCH.js";
30
+ import "./chunk-K5F23SZO.js";
31
+ import "./chunk-UYKG3UFK.js";
32
+ import "./chunk-WHDEZSAL.js";
33
+ import "./chunk-2TRB253J.js";
34
+ import "./chunk-3PV5HQ2R.js";
35
35
  import {
36
36
  IndexDatatype_default
37
- } from "./chunk-P4XKB3QZ.js";
37
+ } from "./chunk-5OK5JFDP.js";
38
38
  import {
39
39
  GeometryAttributes_default
40
- } from "./chunk-EOXYZ34O.js";
40
+ } from "./chunk-TP4FFUAH.js";
41
41
  import {
42
42
  GeometryAttribute_default,
43
43
  Geometry_default,
44
44
  PrimitiveType_default
45
- } from "./chunk-2ZBL3MVO.js";
45
+ } from "./chunk-7HLZRYGD.js";
46
46
  import {
47
47
  BoundingSphere_default
48
- } from "./chunk-7COR472O.js";
49
- import "./chunk-2KACWKS4.js";
50
- import "./chunk-X6XOMPWL.js";
51
- import "./chunk-2XPLH3JY.js";
48
+ } from "./chunk-7PFZ4Z7C.js";
49
+ import "./chunk-GUFV24F4.js";
52
50
  import {
53
51
  ComponentDatatype_default
54
- } from "./chunk-NZWNZA6S.js";
52
+ } from "./chunk-WOYQB5HM.js";
55
53
  import {
56
54
  Cartesian3_default,
57
55
  Ellipsoid_default
58
- } from "./chunk-ADOVHYWO.js";
56
+ } from "./chunk-GX5LMUGZ.js";
59
57
  import {
60
58
  Math_default
61
- } from "./chunk-QCQUZGXI.js";
62
- import "./chunk-I37B3MZ2.js";
63
- import "./chunk-N4KXMWQU.js";
59
+ } from "./chunk-ETC45PHH.js";
60
+ import "./chunk-UICVDDCQ.js";
61
+ import "./chunk-U2LSTOMA.js";
64
62
  import {
65
63
  defaultValue_default
66
- } from "./chunk-TZORKRNK.js";
64
+ } from "./chunk-EODIOQ35.js";
67
65
  import {
68
66
  DeveloperError_default
69
- } from "./chunk-SS4ESNE3.js";
67
+ } from "./chunk-DIVFF6DK.js";
70
68
  import {
71
69
  defined_default
72
- } from "./chunk-YDVSBWEO.js";
70
+ } from "./chunk-IF2OX6R4.js";
73
71
 
74
72
  // packages/engine/Source/Core/WallOutlineGeometry.js
75
73
  var scratchCartesian3Position1 = new Cartesian3_default();
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,27 +25,27 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-RSJXEO2A.js";
28
+ } from "./chunk-IXYFH7DV.js";
29
29
  import {
30
30
  createTaskProcessorWorker_default
31
- } from "./chunk-RMOEYCZW.js";
31
+ } from "./chunk-AROLUUGS.js";
32
32
  import {
33
33
  IndexDatatype_default
34
- } from "./chunk-P4XKB3QZ.js";
34
+ } from "./chunk-5OK5JFDP.js";
35
35
  import {
36
36
  ComponentDatatype_default
37
- } from "./chunk-NZWNZA6S.js";
38
- import "./chunk-QCQUZGXI.js";
39
- import "./chunk-I37B3MZ2.js";
37
+ } from "./chunk-WOYQB5HM.js";
38
+ import "./chunk-ETC45PHH.js";
39
+ import "./chunk-UICVDDCQ.js";
40
40
  import {
41
41
  RuntimeError_default
42
- } from "./chunk-N4KXMWQU.js";
43
- import "./chunk-TZORKRNK.js";
44
- import "./chunk-SS4ESNE3.js";
42
+ } from "./chunk-U2LSTOMA.js";
43
+ import "./chunk-EODIOQ35.js";
44
+ import "./chunk-DIVFF6DK.js";
45
45
  import {
46
46
  __toESM,
47
47
  defined_default
48
- } from "./chunk-YDVSBWEO.js";
48
+ } from "./chunk-IF2OX6R4.js";
49
49
 
50
50
  // packages/engine/Source/Workers/decodeDraco.js
51
51
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,18 +25,18 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-RMOEYCZW.js";
28
+ } from "./chunk-AROLUUGS.js";
29
29
  import {
30
30
  RuntimeError_default
31
- } from "./chunk-N4KXMWQU.js";
31
+ } from "./chunk-U2LSTOMA.js";
32
32
  import {
33
33
  Check_default
34
- } from "./chunk-SS4ESNE3.js";
34
+ } from "./chunk-DIVFF6DK.js";
35
35
  import {
36
36
  __commonJS,
37
37
  __toESM,
38
38
  defined_default
39
- } from "./chunk-YDVSBWEO.js";
39
+ } from "./chunk-IF2OX6R4.js";
40
40
 
41
41
  // node_modules/pako/lib/zlib/adler32.js
42
42
  var require_adler32 = __commonJS({
@@ -2219,12 +2219,9 @@ var require_inflate2 = __commonJS({
2219
2219
  const chunkSize = this.options.chunkSize;
2220
2220
  const dictionary = this.options.dictionary;
2221
2221
  let status, _flush_mode, last_avail_out;
2222
- if (this.ended)
2223
- return false;
2224
- if (flush_mode === ~~flush_mode)
2225
- _flush_mode = flush_mode;
2226
- else
2227
- _flush_mode = flush_mode === true ? Z_FINISH : Z_NO_FLUSH;
2222
+ if (this.ended) return false;
2223
+ if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;
2224
+ else _flush_mode = flush_mode === true ? Z_FINISH : Z_NO_FLUSH;
2228
2225
  if (toString.call(data) === "[object ArrayBuffer]") {
2229
2226
  strm.input = new Uint8Array(data);
2230
2227
  } else {
@@ -2269,24 +2266,21 @@ var require_inflate2 = __commonJS({
2269
2266
  let utf8str = strings.buf2string(strm.output, next_out_utf8);
2270
2267
  strm.next_out = tail;
2271
2268
  strm.avail_out = chunkSize - tail;
2272
- if (tail)
2273
- strm.output.set(strm.output.subarray(next_out_utf8, next_out_utf8 + tail), 0);
2269
+ if (tail) strm.output.set(strm.output.subarray(next_out_utf8, next_out_utf8 + tail), 0);
2274
2270
  this.onData(utf8str);
2275
2271
  } else {
2276
2272
  this.onData(strm.output.length === strm.next_out ? strm.output : strm.output.subarray(0, strm.next_out));
2277
2273
  }
2278
2274
  }
2279
2275
  }
2280
- if (status === Z_OK && last_avail_out === 0)
2281
- continue;
2276
+ if (status === Z_OK && last_avail_out === 0) continue;
2282
2277
  if (status === Z_STREAM_END) {
2283
2278
  status = zlib_inflate.inflateEnd(this.strm);
2284
2279
  this.onEnd(status);
2285
2280
  this.ended = true;
2286
2281
  return true;
2287
2282
  }
2288
- if (strm.avail_in === 0)
2289
- break;
2283
+ if (strm.avail_in === 0) break;
2290
2284
  }
2291
2285
  return true;
2292
2286
  };
@@ -2308,8 +2302,7 @@ var require_inflate2 = __commonJS({
2308
2302
  function inflate(input, options) {
2309
2303
  const inflator = new Inflate(options);
2310
2304
  inflator.push(input);
2311
- if (inflator.err)
2312
- throw inflator.msg || msg[inflator.err];
2305
+ if (inflator.err) throw inflator.msg || msg[inflator.err];
2313
2306
  return inflator.result;
2314
2307
  }
2315
2308
  function inflateRaw(input, options) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,36 +25,35 @@
25
25
 
26
26
  import {
27
27
  require_draco_decoder_nodejs
28
- } from "./chunk-RSJXEO2A.js";
28
+ } from "./chunk-IXYFH7DV.js";
29
29
  import {
30
30
  Color_default
31
- } from "./chunk-5R6VWLMH.js";
31
+ } from "./chunk-ZHJDE6JN.js";
32
32
  import {
33
33
  createTaskProcessorWorker_default
34
- } from "./chunk-RMOEYCZW.js";
34
+ } from "./chunk-AROLUUGS.js";
35
35
  import {
36
36
  WebMercatorProjection_default
37
- } from "./chunk-DPUSFA7S.js";
38
- import "./chunk-2KACWKS4.js";
37
+ } from "./chunk-UKJCFXVV.js";
39
38
  import {
40
39
  Cartesian3_default,
41
40
  Cartographic_default,
42
41
  Ellipsoid_default,
43
42
  Matrix3_default
44
- } from "./chunk-ADOVHYWO.js";
43
+ } from "./chunk-GX5LMUGZ.js";
45
44
  import {
46
45
  Math_default
47
- } from "./chunk-QCQUZGXI.js";
46
+ } from "./chunk-ETC45PHH.js";
48
47
  import {
49
48
  defaultValue_default
50
- } from "./chunk-TZORKRNK.js";
49
+ } from "./chunk-EODIOQ35.js";
51
50
  import {
52
51
  Check_default
53
- } from "./chunk-SS4ESNE3.js";
52
+ } from "./chunk-DIVFF6DK.js";
54
53
  import {
55
54
  __toESM,
56
55
  defined_default
57
- } from "./chunk-YDVSBWEO.js";
56
+ } from "./chunk-IF2OX6R4.js";
58
57
 
59
58
  // packages/engine/Source/Workers/decodeI3S.js
60
59
  var import_draco_decoder_nodejs = __toESM(require_draco_decoder_nodejs(), 1);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license
3
3
  * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.116
4
+ * Version 1.118
5
5
  *
6
6
  * Copyright 2011-2022 Cesium Contributors
7
7
  *
@@ -25,33 +25,32 @@
25
25
 
26
26
  import {
27
27
  createTaskProcessorWorker_default
28
- } from "./chunk-RMOEYCZW.js";
28
+ } from "./chunk-AROLUUGS.js";
29
29
  import {
30
30
  WebGLConstants_default
31
- } from "./chunk-I37B3MZ2.js";
31
+ } from "./chunk-UICVDDCQ.js";
32
32
  import {
33
33
  RuntimeError_default
34
- } from "./chunk-N4KXMWQU.js";
34
+ } from "./chunk-U2LSTOMA.js";
35
35
  import {
36
36
  defaultValue_default
37
- } from "./chunk-TZORKRNK.js";
37
+ } from "./chunk-EODIOQ35.js";
38
38
  import {
39
39
  Check_default
40
- } from "./chunk-SS4ESNE3.js";
40
+ } from "./chunk-DIVFF6DK.js";
41
41
  import {
42
42
  __commonJS,
43
43
  __require,
44
44
  __toESM,
45
45
  defined_default
46
- } from "./chunk-YDVSBWEO.js";
46
+ } from "./chunk-IF2OX6R4.js";
47
47
 
48
48
  // packages/engine/Source/ThirdParty/Workers/basis_transcoder.js
49
49
  var require_basis_transcoder = __commonJS({
50
50
  "packages/engine/Source/ThirdParty/Workers/basis_transcoder.js"(exports, module) {
51
51
  var BASIS = function() {
52
52
  var _scriptDir = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : void 0;
53
- if (typeof __filename !== "undefined")
54
- _scriptDir = _scriptDir || __filename;
53
+ if (typeof __filename !== "undefined") _scriptDir = _scriptDir || __filename;
55
54
  return function(BASIS2) {
56
55
  BASIS2 = BASIS2 || {};
57
56
  var Module = typeof BASIS2 !== "undefined" ? BASIS2 : {};
@@ -97,10 +96,8 @@ var require_basis_transcoder = __commonJS({
97
96
  scriptDirectory = __dirname + "/";
98
97
  }
99
98
  read_ = function shell_read(filename, binary) {
100
- if (!nodeFS)
101
- nodeFS = __require("fs");
102
- if (!nodePath)
103
- nodePath = __require("path");
99
+ if (!nodeFS) nodeFS = __require("fs");
100
+ if (!nodePath) nodePath = __require("path");
104
101
  filename = nodePath["normalize"](filename);
105
102
  return nodeFS["readFileSync"](filename, binary ? null : "utf8");
106
103
  };
@@ -154,8 +151,7 @@ var require_basis_transcoder = __commonJS({
154
151
  };
155
152
  }
156
153
  if (typeof print !== "undefined") {
157
- if (typeof console === "undefined")
158
- console = {};
154
+ if (typeof console === "undefined") console = {};
159
155
  console.log = print;
160
156
  console.warn = console.error = typeof printErr !== "undefined" ? printErr : print;
161
157
  }
@@ -217,19 +213,15 @@ var require_basis_transcoder = __commonJS({
217
213
  }
218
214
  }
219
215
  moduleOverrides = null;
220
- if (Module["arguments"])
221
- arguments_ = Module["arguments"];
222
- if (Module["thisProgram"])
223
- thisProgram = Module["thisProgram"];
224
- if (Module["quit"])
225
- quit_ = Module["quit"];
216
+ if (Module["arguments"]) arguments_ = Module["arguments"];
217
+ if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
218
+ if (Module["quit"]) quit_ = Module["quit"];
226
219
  var tempRet0 = 0;
227
220
  var setTempRet0 = function(value) {
228
221
  tempRet0 = value;
229
222
  };
230
223
  var wasmBinary;
231
- if (Module["wasmBinary"])
232
- wasmBinary = Module["wasmBinary"];
224
+ if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
233
225
  var noExitRuntime = Module["noExitRuntime"] || true;
234
226
  if (typeof WebAssembly !== "object") {
235
227
  abort("no native wasm support detected");
@@ -246,8 +238,7 @@ var require_basis_transcoder = __commonJS({
246
238
  function UTF8ArrayToString(heap, idx, maxBytesToRead) {
247
239
  var endIdx = idx + maxBytesToRead;
248
240
  var endPtr = idx;
249
- while (heap[endPtr] && !(endPtr >= endIdx))
250
- ++endPtr;
241
+ while (heap[endPtr] && !(endPtr >= endIdx)) ++endPtr;
251
242
  if (endPtr - idx > 16 && heap.subarray && UTF8Decoder) {
252
243
  return UTF8Decoder.decode(heap.subarray(idx, endPtr));
253
244
  } else {
@@ -283,8 +274,7 @@ var require_basis_transcoder = __commonJS({
283
274
  return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : "";
284
275
  }
285
276
  function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) {
286
- if (!(maxBytesToWrite > 0))
287
- return 0;
277
+ if (!(maxBytesToWrite > 0)) return 0;
288
278
  var startIdx = outIdx;
289
279
  var endIdx = outIdx + maxBytesToWrite - 1;
290
280
  for (var i = 0; i < str.length; ++i) {
@@ -294,23 +284,19 @@ var require_basis_transcoder = __commonJS({
294
284
  u = 65536 + ((u & 1023) << 10) | u1 & 1023;
295
285
  }
296
286
  if (u <= 127) {
297
- if (outIdx >= endIdx)
298
- break;
287
+ if (outIdx >= endIdx) break;
299
288
  heap[outIdx++] = u;
300
289
  } else if (u <= 2047) {
301
- if (outIdx + 1 >= endIdx)
302
- break;
290
+ if (outIdx + 1 >= endIdx) break;
303
291
  heap[outIdx++] = 192 | u >> 6;
304
292
  heap[outIdx++] = 128 | u & 63;
305
293
  } else if (u <= 65535) {
306
- if (outIdx + 2 >= endIdx)
307
- break;
294
+ if (outIdx + 2 >= endIdx) break;
308
295
  heap[outIdx++] = 224 | u >> 12;
309
296
  heap[outIdx++] = 128 | u >> 6 & 63;
310
297
  heap[outIdx++] = 128 | u & 63;
311
298
  } else {
312
- if (outIdx + 3 >= endIdx)
313
- break;
299
+ if (outIdx + 3 >= endIdx) break;
314
300
  heap[outIdx++] = 240 | u >> 18;
315
301
  heap[outIdx++] = 128 | u >> 12 & 63;
316
302
  heap[outIdx++] = 128 | u >> 6 & 63;
@@ -327,16 +313,11 @@ var require_basis_transcoder = __commonJS({
327
313
  var len = 0;
328
314
  for (var i = 0; i < str.length; ++i) {
329
315
  var u = str.charCodeAt(i);
330
- if (u >= 55296 && u <= 57343)
331
- u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023;
332
- if (u <= 127)
333
- ++len;
334
- else if (u <= 2047)
335
- len += 2;
336
- else if (u <= 65535)
337
- len += 3;
338
- else
339
- len += 4;
316
+ if (u >= 55296 && u <= 57343) u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023;
317
+ if (u <= 127) ++len;
318
+ else if (u <= 2047) len += 2;
319
+ else if (u <= 65535) len += 3;
320
+ else len += 4;
340
321
  }
341
322
  return len;
342
323
  }
@@ -345,8 +326,7 @@ var require_basis_transcoder = __commonJS({
345
326
  var endPtr = ptr;
346
327
  var idx = endPtr >> 1;
347
328
  var maxIdx = idx + maxBytesToRead / 2;
348
- while (!(idx >= maxIdx) && HEAPU16[idx])
349
- ++idx;
329
+ while (!(idx >= maxIdx) && HEAPU16[idx]) ++idx;
350
330
  endPtr = idx << 1;
351
331
  if (endPtr - ptr > 32 && UTF16Decoder) {
352
332
  return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
@@ -354,8 +334,7 @@ var require_basis_transcoder = __commonJS({
354
334
  var str = "";
355
335
  for (var i = 0; !(i >= maxBytesToRead / 2); ++i) {
356
336
  var codeUnit = HEAP16[ptr + i * 2 >> 1];
357
- if (codeUnit == 0)
358
- break;
337
+ if (codeUnit == 0) break;
359
338
  str += String.fromCharCode(codeUnit);
360
339
  }
361
340
  return str;
@@ -365,8 +344,7 @@ var require_basis_transcoder = __commonJS({
365
344
  if (maxBytesToWrite === void 0) {
366
345
  maxBytesToWrite = 2147483647;
367
346
  }
368
- if (maxBytesToWrite < 2)
369
- return 0;
347
+ if (maxBytesToWrite < 2) return 0;
370
348
  maxBytesToWrite -= 2;
371
349
  var startPtr = outPtr;
372
350
  var numCharsToWrite = maxBytesToWrite < str.length * 2 ? maxBytesToWrite / 2 : str.length;
@@ -386,8 +364,7 @@ var require_basis_transcoder = __commonJS({
386
364
  var str = "";
387
365
  while (!(i >= maxBytesToRead / 4)) {
388
366
  var utf32 = HEAP32[ptr + i * 4 >> 2];
389
- if (utf32 == 0)
390
- break;
367
+ if (utf32 == 0) break;
391
368
  ++i;
392
369
  if (utf32 >= 65536) {
393
370
  var ch = utf32 - 65536;
@@ -402,8 +379,7 @@ var require_basis_transcoder = __commonJS({
402
379
  if (maxBytesToWrite === void 0) {
403
380
  maxBytesToWrite = 2147483647;
404
381
  }
405
- if (maxBytesToWrite < 4)
406
- return 0;
382
+ if (maxBytesToWrite < 4) return 0;
407
383
  var startPtr = outPtr;
408
384
  var endPtr = startPtr + maxBytesToWrite - 4;
409
385
  for (var i = 0; i < str.length; ++i) {
@@ -414,8 +390,7 @@ var require_basis_transcoder = __commonJS({
414
390
  }
415
391
  HEAP32[outPtr >> 2] = codeUnit;
416
392
  outPtr += 4;
417
- if (outPtr + 4 > endPtr)
418
- break;
393
+ if (outPtr + 4 > endPtr) break;
419
394
  }
420
395
  HEAP32[outPtr >> 2] = 0;
421
396
  return outPtr - startPtr;
@@ -424,8 +399,7 @@ var require_basis_transcoder = __commonJS({
424
399
  var len = 0;
425
400
  for (var i = 0; i < str.length; ++i) {
426
401
  var codeUnit = str.charCodeAt(i);
427
- if (codeUnit >= 55296 && codeUnit <= 57343)
428
- ++i;
402
+ if (codeUnit >= 55296 && codeUnit <= 57343) ++i;
429
403
  len += 4;
430
404
  }
431
405
  return len;
@@ -457,8 +431,7 @@ var require_basis_transcoder = __commonJS({
457
431
  var runtimeInitialized = false;
458
432
  function preRun() {
459
433
  if (Module["preRun"]) {
460
- if (typeof Module["preRun"] == "function")
461
- Module["preRun"] = [Module["preRun"]];
434
+ if (typeof Module["preRun"] == "function") Module["preRun"] = [Module["preRun"]];
462
435
  while (Module["preRun"].length) {
463
436
  addOnPreRun(Module["preRun"].shift());
464
437
  }
@@ -474,8 +447,7 @@ var require_basis_transcoder = __commonJS({
474
447
  }
475
448
  function postRun() {
476
449
  if (Module["postRun"]) {
477
- if (typeof Module["postRun"] == "function")
478
- Module["postRun"] = [Module["postRun"]];
450
+ if (typeof Module["postRun"] == "function") Module["postRun"] = [Module["postRun"]];
479
451
  while (Module["postRun"].length) {
480
452
  addOnPostRun(Module["postRun"].shift());
481
453
  }
@@ -2220,10 +2192,8 @@ var require_basis_transcoder = __commonJS({
2220
2192
  this.status = status;
2221
2193
  }
2222
2194
  dependenciesFulfilled = function runCaller() {
2223
- if (!calledRun)
2224
- run();
2225
- if (!calledRun)
2226
- dependenciesFulfilled = runCaller;
2195
+ if (!calledRun) run();
2196
+ if (!calledRun) dependenciesFulfilled = runCaller;
2227
2197
  };
2228
2198
  function run(args) {
2229
2199
  args = args || arguments_;
@@ -2235,17 +2205,14 @@ var require_basis_transcoder = __commonJS({
2235
2205
  return;
2236
2206
  }
2237
2207
  function doRun() {
2238
- if (calledRun)
2239
- return;
2208
+ if (calledRun) return;
2240
2209
  calledRun = true;
2241
2210
  Module["calledRun"] = true;
2242
- if (ABORT)
2243
- return;
2211
+ if (ABORT) return;
2244
2212
  initRuntime();
2245
2213
  preMain();
2246
2214
  readyPromiseResolve(Module);
2247
- if (Module["onRuntimeInitialized"])
2248
- Module["onRuntimeInitialized"]();
2215
+ if (Module["onRuntimeInitialized"]) Module["onRuntimeInitialized"]();
2249
2216
  postRun();
2250
2217
  }
2251
2218
  if (Module["setStatus"]) {
@@ -2262,8 +2229,7 @@ var require_basis_transcoder = __commonJS({
2262
2229
  }
2263
2230
  Module["run"] = run;
2264
2231
  if (Module["preInit"]) {
2265
- if (typeof Module["preInit"] == "function")
2266
- Module["preInit"] = [Module["preInit"]];
2232
+ if (typeof Module["preInit"] == "function") Module["preInit"] = [Module["preInit"]];
2267
2233
  while (Module["preInit"].length > 0) {
2268
2234
  Module["preInit"].pop()();
2269
2235
  }
@@ -2519,7 +2485,7 @@ PixelFormat.validate = function(pixelFormat) {
2519
2485
  return pixelFormat === PixelFormat.DEPTH_COMPONENT || pixelFormat === PixelFormat.DEPTH_STENCIL || pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RED || pixelFormat === PixelFormat.RG || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA || pixelFormat === PixelFormat.RGB_DXT1 || pixelFormat === PixelFormat.RGBA_DXT1 || pixelFormat === PixelFormat.RGBA_DXT3 || pixelFormat === PixelFormat.RGBA_DXT5 || pixelFormat === PixelFormat.RGB_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGB_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_4BPPV1 || pixelFormat === PixelFormat.RGBA_PVRTC_2BPPV1 || pixelFormat === PixelFormat.RGBA_ASTC || pixelFormat === PixelFormat.RGB_ETC1 || pixelFormat === PixelFormat.RGB8_ETC2 || pixelFormat === PixelFormat.RGBA8_ETC2_EAC || pixelFormat === PixelFormat.RGBA_BC7;
2520
2486
  };
2521
2487
  PixelFormat.isColorFormat = function(pixelFormat) {
2522
- return pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA;
2488
+ return pixelFormat === PixelFormat.RED || pixelFormat === PixelFormat.ALPHA || pixelFormat === PixelFormat.RGB || pixelFormat === PixelFormat.RGBA || pixelFormat === PixelFormat.LUMINANCE || pixelFormat === PixelFormat.LUMINANCE_ALPHA;
2523
2489
  };
2524
2490
  PixelFormat.isDepthFormat = function(pixelFormat) {
2525
2491
  return pixelFormat === PixelFormat.DEPTH_COMPONENT || pixelFormat === PixelFormat.DEPTH_STENCIL;
@@ -3031,8 +2997,7 @@ var BufferReader = class {
3031
2997
  byteLength++;
3032
2998
  this._offset++;
3033
2999
  }
3034
- if (byteLength < maxByteLength)
3035
- this._offset++;
3000
+ if (byteLength < maxByteLength) this._offset++;
3036
3001
  return new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + byteOffset, byteLength);
3037
3002
  }
3038
3003
  };
@@ -3153,8 +3118,7 @@ function read2(data) {
3153
3118
  const kvPadding = keyValueByteLength % 4 ? 4 - keyValueByteLength % 4 : 0;
3154
3119
  kvdReader._skip(kvPadding);
3155
3120
  }
3156
- if (sgdByteLength <= 0)
3157
- return container;
3121
+ if (sgdByteLength <= 0) return container;
3158
3122
  const sgdReader = new BufferReader(data, sgdByteOffset, sgdByteLength, true);
3159
3123
  const endpointCount = sgdReader._nextUint16();
3160
3124
  const selectorCount = sgdReader._nextUint16();