vizor_view 1.8.2

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 (479) hide show
  1. package/README.md +144 -0
  2. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  3. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  4. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  5. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  6. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  7. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  8. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  9. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  10. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  11. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  12. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  13. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  14. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  15. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  16. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  17. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  18. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  19. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  20. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  21. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  22. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  23. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  24. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  25. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  26. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  27. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  28. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  29. package/dist/cesiumStatic/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  30. package/dist/cesiumStatic/Assets/Images/bing_maps_credit.png +0 -0
  31. package/dist/cesiumStatic/Assets/Images/cesium_credit.png +0 -0
  32. package/dist/cesiumStatic/Assets/Images/google_earth_credit.png +0 -0
  33. package/dist/cesiumStatic/Assets/Images/ion-credit.png +0 -0
  34. package/dist/cesiumStatic/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  35. package/dist/cesiumStatic/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  36. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  37. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  38. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  39. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  40. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  41. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  42. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  43. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  44. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  45. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  46. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  47. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  48. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  49. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  50. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  51. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  52. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  53. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  54. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  55. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  56. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  57. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  58. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  59. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  60. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  61. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  62. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  63. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  64. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  65. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  66. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  67. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  68. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  69. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  70. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  71. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  72. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  73. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  74. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  75. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  76. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  77. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  78. package/dist/cesiumStatic/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  79. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  80. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  81. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  82. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  83. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  84. package/dist/cesiumStatic/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  85. package/dist/cesiumStatic/Assets/Textures/maki/airfield.png +0 -0
  86. package/dist/cesiumStatic/Assets/Textures/maki/airport.png +0 -0
  87. package/dist/cesiumStatic/Assets/Textures/maki/alcohol-shop.png +0 -0
  88. package/dist/cesiumStatic/Assets/Textures/maki/america-football.png +0 -0
  89. package/dist/cesiumStatic/Assets/Textures/maki/art-gallery.png +0 -0
  90. package/dist/cesiumStatic/Assets/Textures/maki/bakery.png +0 -0
  91. package/dist/cesiumStatic/Assets/Textures/maki/bank.png +0 -0
  92. package/dist/cesiumStatic/Assets/Textures/maki/bar.png +0 -0
  93. package/dist/cesiumStatic/Assets/Textures/maki/baseball.png +0 -0
  94. package/dist/cesiumStatic/Assets/Textures/maki/basketball.png +0 -0
  95. package/dist/cesiumStatic/Assets/Textures/maki/beer.png +0 -0
  96. package/dist/cesiumStatic/Assets/Textures/maki/bicycle.png +0 -0
  97. package/dist/cesiumStatic/Assets/Textures/maki/building.png +0 -0
  98. package/dist/cesiumStatic/Assets/Textures/maki/bus.png +0 -0
  99. package/dist/cesiumStatic/Assets/Textures/maki/cafe.png +0 -0
  100. package/dist/cesiumStatic/Assets/Textures/maki/camera.png +0 -0
  101. package/dist/cesiumStatic/Assets/Textures/maki/campsite.png +0 -0
  102. package/dist/cesiumStatic/Assets/Textures/maki/car.png +0 -0
  103. package/dist/cesiumStatic/Assets/Textures/maki/cemetery.png +0 -0
  104. package/dist/cesiumStatic/Assets/Textures/maki/cesium.png +0 -0
  105. package/dist/cesiumStatic/Assets/Textures/maki/chemist.png +0 -0
  106. package/dist/cesiumStatic/Assets/Textures/maki/cinema.png +0 -0
  107. package/dist/cesiumStatic/Assets/Textures/maki/circle-stroked.png +0 -0
  108. package/dist/cesiumStatic/Assets/Textures/maki/circle.png +0 -0
  109. package/dist/cesiumStatic/Assets/Textures/maki/city.png +0 -0
  110. package/dist/cesiumStatic/Assets/Textures/maki/clothing-store.png +0 -0
  111. package/dist/cesiumStatic/Assets/Textures/maki/college.png +0 -0
  112. package/dist/cesiumStatic/Assets/Textures/maki/commercial.png +0 -0
  113. package/dist/cesiumStatic/Assets/Textures/maki/cricket.png +0 -0
  114. package/dist/cesiumStatic/Assets/Textures/maki/cross.png +0 -0
  115. package/dist/cesiumStatic/Assets/Textures/maki/dam.png +0 -0
  116. package/dist/cesiumStatic/Assets/Textures/maki/danger.png +0 -0
  117. package/dist/cesiumStatic/Assets/Textures/maki/disability.png +0 -0
  118. package/dist/cesiumStatic/Assets/Textures/maki/dog-park.png +0 -0
  119. package/dist/cesiumStatic/Assets/Textures/maki/embassy.png +0 -0
  120. package/dist/cesiumStatic/Assets/Textures/maki/emergency-telephone.png +0 -0
  121. package/dist/cesiumStatic/Assets/Textures/maki/entrance.png +0 -0
  122. package/dist/cesiumStatic/Assets/Textures/maki/farm.png +0 -0
  123. package/dist/cesiumStatic/Assets/Textures/maki/fast-food.png +0 -0
  124. package/dist/cesiumStatic/Assets/Textures/maki/ferry.png +0 -0
  125. package/dist/cesiumStatic/Assets/Textures/maki/fire-station.png +0 -0
  126. package/dist/cesiumStatic/Assets/Textures/maki/fuel.png +0 -0
  127. package/dist/cesiumStatic/Assets/Textures/maki/garden.png +0 -0
  128. package/dist/cesiumStatic/Assets/Textures/maki/gift.png +0 -0
  129. package/dist/cesiumStatic/Assets/Textures/maki/golf.png +0 -0
  130. package/dist/cesiumStatic/Assets/Textures/maki/grocery.png +0 -0
  131. package/dist/cesiumStatic/Assets/Textures/maki/hairdresser.png +0 -0
  132. package/dist/cesiumStatic/Assets/Textures/maki/harbor.png +0 -0
  133. package/dist/cesiumStatic/Assets/Textures/maki/heart.png +0 -0
  134. package/dist/cesiumStatic/Assets/Textures/maki/heliport.png +0 -0
  135. package/dist/cesiumStatic/Assets/Textures/maki/hospital.png +0 -0
  136. package/dist/cesiumStatic/Assets/Textures/maki/ice-cream.png +0 -0
  137. package/dist/cesiumStatic/Assets/Textures/maki/industrial.png +0 -0
  138. package/dist/cesiumStatic/Assets/Textures/maki/land-use.png +0 -0
  139. package/dist/cesiumStatic/Assets/Textures/maki/laundry.png +0 -0
  140. package/dist/cesiumStatic/Assets/Textures/maki/library.png +0 -0
  141. package/dist/cesiumStatic/Assets/Textures/maki/lighthouse.png +0 -0
  142. package/dist/cesiumStatic/Assets/Textures/maki/lodging.png +0 -0
  143. package/dist/cesiumStatic/Assets/Textures/maki/logging.png +0 -0
  144. package/dist/cesiumStatic/Assets/Textures/maki/london-underground.png +0 -0
  145. package/dist/cesiumStatic/Assets/Textures/maki/marker-stroked.png +0 -0
  146. package/dist/cesiumStatic/Assets/Textures/maki/marker.png +0 -0
  147. package/dist/cesiumStatic/Assets/Textures/maki/minefield.png +0 -0
  148. package/dist/cesiumStatic/Assets/Textures/maki/mobilephone.png +0 -0
  149. package/dist/cesiumStatic/Assets/Textures/maki/monument.png +0 -0
  150. package/dist/cesiumStatic/Assets/Textures/maki/museum.png +0 -0
  151. package/dist/cesiumStatic/Assets/Textures/maki/music.png +0 -0
  152. package/dist/cesiumStatic/Assets/Textures/maki/oil-well.png +0 -0
  153. package/dist/cesiumStatic/Assets/Textures/maki/park.png +0 -0
  154. package/dist/cesiumStatic/Assets/Textures/maki/park2.png +0 -0
  155. package/dist/cesiumStatic/Assets/Textures/maki/parking-garage.png +0 -0
  156. package/dist/cesiumStatic/Assets/Textures/maki/parking.png +0 -0
  157. package/dist/cesiumStatic/Assets/Textures/maki/pharmacy.png +0 -0
  158. package/dist/cesiumStatic/Assets/Textures/maki/pitch.png +0 -0
  159. package/dist/cesiumStatic/Assets/Textures/maki/place-of-worship.png +0 -0
  160. package/dist/cesiumStatic/Assets/Textures/maki/playground.png +0 -0
  161. package/dist/cesiumStatic/Assets/Textures/maki/police.png +0 -0
  162. package/dist/cesiumStatic/Assets/Textures/maki/polling-place.png +0 -0
  163. package/dist/cesiumStatic/Assets/Textures/maki/post.png +0 -0
  164. package/dist/cesiumStatic/Assets/Textures/maki/prison.png +0 -0
  165. package/dist/cesiumStatic/Assets/Textures/maki/rail-above.png +0 -0
  166. package/dist/cesiumStatic/Assets/Textures/maki/rail-light.png +0 -0
  167. package/dist/cesiumStatic/Assets/Textures/maki/rail-metro.png +0 -0
  168. package/dist/cesiumStatic/Assets/Textures/maki/rail-underground.png +0 -0
  169. package/dist/cesiumStatic/Assets/Textures/maki/rail.png +0 -0
  170. package/dist/cesiumStatic/Assets/Textures/maki/religious-christian.png +0 -0
  171. package/dist/cesiumStatic/Assets/Textures/maki/religious-jewish.png +0 -0
  172. package/dist/cesiumStatic/Assets/Textures/maki/religious-muslim.png +0 -0
  173. package/dist/cesiumStatic/Assets/Textures/maki/restaurant.png +0 -0
  174. package/dist/cesiumStatic/Assets/Textures/maki/roadblock.png +0 -0
  175. package/dist/cesiumStatic/Assets/Textures/maki/rocket.png +0 -0
  176. package/dist/cesiumStatic/Assets/Textures/maki/school.png +0 -0
  177. package/dist/cesiumStatic/Assets/Textures/maki/scooter.png +0 -0
  178. package/dist/cesiumStatic/Assets/Textures/maki/shop.png +0 -0
  179. package/dist/cesiumStatic/Assets/Textures/maki/skiing.png +0 -0
  180. package/dist/cesiumStatic/Assets/Textures/maki/slaughterhouse.png +0 -0
  181. package/dist/cesiumStatic/Assets/Textures/maki/soccer.png +0 -0
  182. package/dist/cesiumStatic/Assets/Textures/maki/square-stroked.png +0 -0
  183. package/dist/cesiumStatic/Assets/Textures/maki/square.png +0 -0
  184. package/dist/cesiumStatic/Assets/Textures/maki/star-stroked.png +0 -0
  185. package/dist/cesiumStatic/Assets/Textures/maki/star.png +0 -0
  186. package/dist/cesiumStatic/Assets/Textures/maki/suitcase.png +0 -0
  187. package/dist/cesiumStatic/Assets/Textures/maki/swimming.png +0 -0
  188. package/dist/cesiumStatic/Assets/Textures/maki/telephone.png +0 -0
  189. package/dist/cesiumStatic/Assets/Textures/maki/tennis.png +0 -0
  190. package/dist/cesiumStatic/Assets/Textures/maki/theatre.png +0 -0
  191. package/dist/cesiumStatic/Assets/Textures/maki/toilets.png +0 -0
  192. package/dist/cesiumStatic/Assets/Textures/maki/town-hall.png +0 -0
  193. package/dist/cesiumStatic/Assets/Textures/maki/town.png +0 -0
  194. package/dist/cesiumStatic/Assets/Textures/maki/triangle-stroked.png +0 -0
  195. package/dist/cesiumStatic/Assets/Textures/maki/triangle.png +0 -0
  196. package/dist/cesiumStatic/Assets/Textures/maki/village.png +0 -0
  197. package/dist/cesiumStatic/Assets/Textures/maki/warehouse.png +0 -0
  198. package/dist/cesiumStatic/Assets/Textures/maki/waste-basket.png +0 -0
  199. package/dist/cesiumStatic/Assets/Textures/maki/water.png +0 -0
  200. package/dist/cesiumStatic/Assets/Textures/maki/wetland.png +0 -0
  201. package/dist/cesiumStatic/Assets/Textures/maki/zoo.png +0 -0
  202. package/dist/cesiumStatic/Assets/Textures/moonSmall.jpg +0 -0
  203. package/dist/cesiumStatic/Assets/Textures/pin.svg +1 -0
  204. package/dist/cesiumStatic/Assets/Textures/waterNormals.jpg +0 -0
  205. package/dist/cesiumStatic/Assets/Textures/waterNormalsSmall.jpg +0 -0
  206. package/dist/cesiumStatic/Assets/approximateTerrainHeights.json +1 -0
  207. package/dist/cesiumStatic/ThirdParty/Workers/package.json +1 -0
  208. package/dist/cesiumStatic/ThirdParty/Workers/pako_deflate.min.js +2 -0
  209. package/dist/cesiumStatic/ThirdParty/Workers/pako_deflate.min.js.LICENSE.txt +1 -0
  210. package/dist/cesiumStatic/ThirdParty/Workers/pako_inflate.min.js +2 -0
  211. package/dist/cesiumStatic/ThirdParty/Workers/pako_inflate.min.js.LICENSE.txt +1 -0
  212. package/dist/cesiumStatic/ThirdParty/Workers/z-worker-pako.js +1 -0
  213. package/dist/cesiumStatic/ThirdParty/basis_transcoder.wasm +0 -0
  214. package/dist/cesiumStatic/ThirdParty/draco_decoder.wasm +0 -0
  215. package/dist/cesiumStatic/ThirdParty/google-earth-dbroot-parser.js +1 -0
  216. package/dist/cesiumStatic/Widgets/Animation/Animation.css +127 -0
  217. package/dist/cesiumStatic/Widgets/Animation/lighter.css +70 -0
  218. package/dist/cesiumStatic/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
  219. package/dist/cesiumStatic/Widgets/BaseLayerPicker/lighter.css +22 -0
  220. package/dist/cesiumStatic/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
  221. package/dist/cesiumStatic/Widgets/CesiumInspector/CesiumInspector.css +113 -0
  222. package/dist/cesiumStatic/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  223. package/dist/cesiumStatic/Widgets/CesiumWidget/lighter.css +14 -0
  224. package/dist/cesiumStatic/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  225. package/dist/cesiumStatic/Widgets/Geocoder/Geocoder.css +70 -0
  226. package/dist/cesiumStatic/Widgets/Geocoder/lighter.css +17 -0
  227. package/dist/cesiumStatic/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  228. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  229. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  230. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  231. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  232. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  233. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  234. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  235. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  236. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  237. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  238. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  239. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  240. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  241. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  242. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  243. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  244. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  245. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  246. package/dist/cesiumStatic/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  247. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  248. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  249. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  250. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  251. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  252. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  253. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  254. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  255. package/dist/cesiumStatic/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  256. package/dist/cesiumStatic/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  257. package/dist/cesiumStatic/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  258. package/dist/cesiumStatic/Widgets/Images/TimelineIcons.png +0 -0
  259. package/dist/cesiumStatic/Widgets/Images/info-loading.gif +0 -0
  260. package/dist/cesiumStatic/Widgets/InfoBox/InfoBox.css +92 -0
  261. package/dist/cesiumStatic/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  262. package/dist/cesiumStatic/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
  263. package/dist/cesiumStatic/Widgets/NavigationHelpButton/lighter.css +38 -0
  264. package/dist/cesiumStatic/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  265. package/dist/cesiumStatic/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
  266. package/dist/cesiumStatic/Widgets/SceneModePicker/SceneModePicker.css +56 -0
  267. package/dist/cesiumStatic/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
  268. package/dist/cesiumStatic/Widgets/Timeline/Timeline.css +103 -0
  269. package/dist/cesiumStatic/Widgets/Timeline/lighter.css +23 -0
  270. package/dist/cesiumStatic/Widgets/VRButton/VRButton.css +8 -0
  271. package/dist/cesiumStatic/Widgets/Viewer/Viewer.css +107 -0
  272. package/dist/cesiumStatic/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  273. package/dist/cesiumStatic/Widgets/lighter.css +237 -0
  274. package/dist/cesiumStatic/Widgets/lighterShared.css +46 -0
  275. package/dist/cesiumStatic/Widgets/shared.css +103 -0
  276. package/dist/cesiumStatic/Widgets/widgets.css +1342 -0
  277. package/dist/cesiumStatic/Workers/chunk-3FGVTQZT.js +2 -0
  278. package/dist/cesiumStatic/Workers/chunk-3FGVTQZT.js.LICENSE.txt +24 -0
  279. package/dist/cesiumStatic/Workers/chunk-5KPQNVA2.js +2 -0
  280. package/dist/cesiumStatic/Workers/chunk-5KPQNVA2.js.LICENSE.txt +24 -0
  281. package/dist/cesiumStatic/Workers/chunk-666MYB7X.js +2 -0
  282. package/dist/cesiumStatic/Workers/chunk-666MYB7X.js.LICENSE.txt +24 -0
  283. package/dist/cesiumStatic/Workers/chunk-6GG6EJBW.js +2 -0
  284. package/dist/cesiumStatic/Workers/chunk-6GG6EJBW.js.LICENSE.txt +24 -0
  285. package/dist/cesiumStatic/Workers/chunk-7OVGHUAO.js +2 -0
  286. package/dist/cesiumStatic/Workers/chunk-7OVGHUAO.js.LICENSE.txt +24 -0
  287. package/dist/cesiumStatic/Workers/chunk-AWPY57MX.js +2 -0
  288. package/dist/cesiumStatic/Workers/chunk-AWPY57MX.js.LICENSE.txt +24 -0
  289. package/dist/cesiumStatic/Workers/chunk-AXCXHIZO.js +2 -0
  290. package/dist/cesiumStatic/Workers/chunk-AXCXHIZO.js.LICENSE.txt +24 -0
  291. package/dist/cesiumStatic/Workers/chunk-BSL4RZYV.js +2 -0
  292. package/dist/cesiumStatic/Workers/chunk-BSL4RZYV.js.LICENSE.txt +24 -0
  293. package/dist/cesiumStatic/Workers/chunk-CRU5R7HF.js +2 -0
  294. package/dist/cesiumStatic/Workers/chunk-CRU5R7HF.js.LICENSE.txt +24 -0
  295. package/dist/cesiumStatic/Workers/chunk-CUOIAHY2.js +2 -0
  296. package/dist/cesiumStatic/Workers/chunk-CUOIAHY2.js.LICENSE.txt +24 -0
  297. package/dist/cesiumStatic/Workers/chunk-CWBIOT2C.js +2 -0
  298. package/dist/cesiumStatic/Workers/chunk-CWBIOT2C.js.LICENSE.txt +24 -0
  299. package/dist/cesiumStatic/Workers/chunk-DBOVA5XH.js +2 -0
  300. package/dist/cesiumStatic/Workers/chunk-DBOVA5XH.js.LICENSE.txt +24 -0
  301. package/dist/cesiumStatic/Workers/chunk-EEN7GMYN.js +2 -0
  302. package/dist/cesiumStatic/Workers/chunk-EEN7GMYN.js.LICENSE.txt +24 -0
  303. package/dist/cesiumStatic/Workers/chunk-FPT7TGTJ.js +2 -0
  304. package/dist/cesiumStatic/Workers/chunk-FPT7TGTJ.js.LICENSE.txt +24 -0
  305. package/dist/cesiumStatic/Workers/chunk-FYZYSHA7.js +2 -0
  306. package/dist/cesiumStatic/Workers/chunk-FYZYSHA7.js.LICENSE.txt +24 -0
  307. package/dist/cesiumStatic/Workers/chunk-G2BB42Z6.js +2 -0
  308. package/dist/cesiumStatic/Workers/chunk-G2BB42Z6.js.LICENSE.txt +24 -0
  309. package/dist/cesiumStatic/Workers/chunk-G4IO3CPJ.js +2 -0
  310. package/dist/cesiumStatic/Workers/chunk-G4IO3CPJ.js.LICENSE.txt +24 -0
  311. package/dist/cesiumStatic/Workers/chunk-G6QT7N47.js +2 -0
  312. package/dist/cesiumStatic/Workers/chunk-G6QT7N47.js.LICENSE.txt +24 -0
  313. package/dist/cesiumStatic/Workers/chunk-GBRF7ES3.js +2 -0
  314. package/dist/cesiumStatic/Workers/chunk-GBRF7ES3.js.LICENSE.txt +24 -0
  315. package/dist/cesiumStatic/Workers/chunk-GI7IUZK6.js +2 -0
  316. package/dist/cesiumStatic/Workers/chunk-GI7IUZK6.js.LICENSE.txt +24 -0
  317. package/dist/cesiumStatic/Workers/chunk-GWDOQ4QX.js +2 -0
  318. package/dist/cesiumStatic/Workers/chunk-GWDOQ4QX.js.LICENSE.txt +24 -0
  319. package/dist/cesiumStatic/Workers/chunk-H7SSJW5A.js +2 -0
  320. package/dist/cesiumStatic/Workers/chunk-H7SSJW5A.js.LICENSE.txt +24 -0
  321. package/dist/cesiumStatic/Workers/chunk-I36V6CKP.js +2 -0
  322. package/dist/cesiumStatic/Workers/chunk-I36V6CKP.js.LICENSE.txt +24 -0
  323. package/dist/cesiumStatic/Workers/chunk-KGKDCW56.js +2 -0
  324. package/dist/cesiumStatic/Workers/chunk-KGKDCW56.js.LICENSE.txt +24 -0
  325. package/dist/cesiumStatic/Workers/chunk-LL4PRXXO.js +2 -0
  326. package/dist/cesiumStatic/Workers/chunk-LL4PRXXO.js.LICENSE.txt +24 -0
  327. package/dist/cesiumStatic/Workers/chunk-LVKOVZ5N.js +2 -0
  328. package/dist/cesiumStatic/Workers/chunk-LVKOVZ5N.js.LICENSE.txt +24 -0
  329. package/dist/cesiumStatic/Workers/chunk-M6TFP6VU.js +2 -0
  330. package/dist/cesiumStatic/Workers/chunk-M6TFP6VU.js.LICENSE.txt +24 -0
  331. package/dist/cesiumStatic/Workers/chunk-NVJ64HSB.js +2 -0
  332. package/dist/cesiumStatic/Workers/chunk-NVJ64HSB.js.LICENSE.txt +24 -0
  333. package/dist/cesiumStatic/Workers/chunk-O3U5FZIX.js +2 -0
  334. package/dist/cesiumStatic/Workers/chunk-O3U5FZIX.js.LICENSE.txt +24 -0
  335. package/dist/cesiumStatic/Workers/chunk-O7LU3SZT.js +2 -0
  336. package/dist/cesiumStatic/Workers/chunk-O7LU3SZT.js.LICENSE.txt +24 -0
  337. package/dist/cesiumStatic/Workers/chunk-OKAWXMC7.js +2 -0
  338. package/dist/cesiumStatic/Workers/chunk-OKAWXMC7.js.LICENSE.txt +24 -0
  339. package/dist/cesiumStatic/Workers/chunk-PPN6SLYU.js +2 -0
  340. package/dist/cesiumStatic/Workers/chunk-PPN6SLYU.js.LICENSE.txt +24 -0
  341. package/dist/cesiumStatic/Workers/chunk-Q5J5QSYF.js +2 -0
  342. package/dist/cesiumStatic/Workers/chunk-Q5J5QSYF.js.LICENSE.txt +24 -0
  343. package/dist/cesiumStatic/Workers/chunk-Q6IZOLLM.js +2 -0
  344. package/dist/cesiumStatic/Workers/chunk-Q6IZOLLM.js.LICENSE.txt +24 -0
  345. package/dist/cesiumStatic/Workers/chunk-QALYXFKR.js +2 -0
  346. package/dist/cesiumStatic/Workers/chunk-QALYXFKR.js.LICENSE.txt +24 -0
  347. package/dist/cesiumStatic/Workers/chunk-RAWIUDJR.js +2 -0
  348. package/dist/cesiumStatic/Workers/chunk-RAWIUDJR.js.LICENSE.txt +24 -0
  349. package/dist/cesiumStatic/Workers/chunk-RDVL7HNQ.js +2 -0
  350. package/dist/cesiumStatic/Workers/chunk-RDVL7HNQ.js.LICENSE.txt +24 -0
  351. package/dist/cesiumStatic/Workers/chunk-RHEGXTJ5.js +2 -0
  352. package/dist/cesiumStatic/Workers/chunk-RHEGXTJ5.js.LICENSE.txt +24 -0
  353. package/dist/cesiumStatic/Workers/chunk-RIW4PILL.js +2 -0
  354. package/dist/cesiumStatic/Workers/chunk-RIW4PILL.js.LICENSE.txt +24 -0
  355. package/dist/cesiumStatic/Workers/chunk-SOWUYSYI.js +2 -0
  356. package/dist/cesiumStatic/Workers/chunk-SOWUYSYI.js.LICENSE.txt +67 -0
  357. package/dist/cesiumStatic/Workers/chunk-SPMC5TLM.js +2 -0
  358. package/dist/cesiumStatic/Workers/chunk-SPMC5TLM.js.LICENSE.txt +24 -0
  359. package/dist/cesiumStatic/Workers/chunk-SQXEWPMX.js +2 -0
  360. package/dist/cesiumStatic/Workers/chunk-SQXEWPMX.js.LICENSE.txt +24 -0
  361. package/dist/cesiumStatic/Workers/chunk-SXYTVHGU.js +2 -0
  362. package/dist/cesiumStatic/Workers/chunk-SXYTVHGU.js.LICENSE.txt +24 -0
  363. package/dist/cesiumStatic/Workers/chunk-T52RL3ZJ.js +2 -0
  364. package/dist/cesiumStatic/Workers/chunk-T52RL3ZJ.js.LICENSE.txt +24 -0
  365. package/dist/cesiumStatic/Workers/chunk-TJP3YKBO.js +2 -0
  366. package/dist/cesiumStatic/Workers/chunk-TJP3YKBO.js.LICENSE.txt +24 -0
  367. package/dist/cesiumStatic/Workers/chunk-TXLODGLR.js +2 -0
  368. package/dist/cesiumStatic/Workers/chunk-TXLODGLR.js.LICENSE.txt +24 -0
  369. package/dist/cesiumStatic/Workers/chunk-W2LU7RJ5.js +2 -0
  370. package/dist/cesiumStatic/Workers/chunk-W2LU7RJ5.js.LICENSE.txt +24 -0
  371. package/dist/cesiumStatic/Workers/chunk-W5FWNHP7.js +2 -0
  372. package/dist/cesiumStatic/Workers/chunk-W5FWNHP7.js.LICENSE.txt +24 -0
  373. package/dist/cesiumStatic/Workers/chunk-WG62ICZK.js +2 -0
  374. package/dist/cesiumStatic/Workers/chunk-WG62ICZK.js.LICENSE.txt +24 -0
  375. package/dist/cesiumStatic/Workers/chunk-WN2OOK5W.js +2 -0
  376. package/dist/cesiumStatic/Workers/chunk-WN2OOK5W.js.LICENSE.txt +24 -0
  377. package/dist/cesiumStatic/Workers/chunk-WNCIY4BT.js +2 -0
  378. package/dist/cesiumStatic/Workers/chunk-WNCIY4BT.js.LICENSE.txt +24 -0
  379. package/dist/cesiumStatic/Workers/chunk-WZ52TQTL.js +2 -0
  380. package/dist/cesiumStatic/Workers/chunk-WZ52TQTL.js.LICENSE.txt +24 -0
  381. package/dist/cesiumStatic/Workers/combineGeometry.js +2 -0
  382. package/dist/cesiumStatic/Workers/combineGeometry.js.LICENSE.txt +24 -0
  383. package/dist/cesiumStatic/Workers/createBoxGeometry.js +2 -0
  384. package/dist/cesiumStatic/Workers/createBoxGeometry.js.LICENSE.txt +24 -0
  385. package/dist/cesiumStatic/Workers/createBoxOutlineGeometry.js +2 -0
  386. package/dist/cesiumStatic/Workers/createBoxOutlineGeometry.js.LICENSE.txt +24 -0
  387. package/dist/cesiumStatic/Workers/createCircleGeometry.js +2 -0
  388. package/dist/cesiumStatic/Workers/createCircleGeometry.js.LICENSE.txt +24 -0
  389. package/dist/cesiumStatic/Workers/createCircleOutlineGeometry.js +2 -0
  390. package/dist/cesiumStatic/Workers/createCircleOutlineGeometry.js.LICENSE.txt +24 -0
  391. package/dist/cesiumStatic/Workers/createCoplanarPolygonGeometry.js +2 -0
  392. package/dist/cesiumStatic/Workers/createCoplanarPolygonGeometry.js.LICENSE.txt +24 -0
  393. package/dist/cesiumStatic/Workers/createCoplanarPolygonOutlineGeometry.js +2 -0
  394. package/dist/cesiumStatic/Workers/createCoplanarPolygonOutlineGeometry.js.LICENSE.txt +24 -0
  395. package/dist/cesiumStatic/Workers/createCorridorGeometry.js +2 -0
  396. package/dist/cesiumStatic/Workers/createCorridorGeometry.js.LICENSE.txt +24 -0
  397. package/dist/cesiumStatic/Workers/createCorridorOutlineGeometry.js +2 -0
  398. package/dist/cesiumStatic/Workers/createCorridorOutlineGeometry.js.LICENSE.txt +24 -0
  399. package/dist/cesiumStatic/Workers/createCylinderGeometry.js +2 -0
  400. package/dist/cesiumStatic/Workers/createCylinderGeometry.js.LICENSE.txt +24 -0
  401. package/dist/cesiumStatic/Workers/createCylinderOutlineGeometry.js +2 -0
  402. package/dist/cesiumStatic/Workers/createCylinderOutlineGeometry.js.LICENSE.txt +24 -0
  403. package/dist/cesiumStatic/Workers/createEllipseGeometry.js +2 -0
  404. package/dist/cesiumStatic/Workers/createEllipseGeometry.js.LICENSE.txt +24 -0
  405. package/dist/cesiumStatic/Workers/createEllipseOutlineGeometry.js +2 -0
  406. package/dist/cesiumStatic/Workers/createEllipseOutlineGeometry.js.LICENSE.txt +24 -0
  407. package/dist/cesiumStatic/Workers/createEllipsoidGeometry.js +2 -0
  408. package/dist/cesiumStatic/Workers/createEllipsoidGeometry.js.LICENSE.txt +24 -0
  409. package/dist/cesiumStatic/Workers/createEllipsoidOutlineGeometry.js +2 -0
  410. package/dist/cesiumStatic/Workers/createEllipsoidOutlineGeometry.js.LICENSE.txt +24 -0
  411. package/dist/cesiumStatic/Workers/createFrustumGeometry.js +2 -0
  412. package/dist/cesiumStatic/Workers/createFrustumGeometry.js.LICENSE.txt +24 -0
  413. package/dist/cesiumStatic/Workers/createFrustumOutlineGeometry.js +2 -0
  414. package/dist/cesiumStatic/Workers/createFrustumOutlineGeometry.js.LICENSE.txt +24 -0
  415. package/dist/cesiumStatic/Workers/createGeometry.js +2 -0
  416. package/dist/cesiumStatic/Workers/createGeometry.js.LICENSE.txt +24 -0
  417. package/dist/cesiumStatic/Workers/createGroundPolylineGeometry.js +2 -0
  418. package/dist/cesiumStatic/Workers/createGroundPolylineGeometry.js.LICENSE.txt +24 -0
  419. package/dist/cesiumStatic/Workers/createPlaneGeometry.js +2 -0
  420. package/dist/cesiumStatic/Workers/createPlaneGeometry.js.LICENSE.txt +24 -0
  421. package/dist/cesiumStatic/Workers/createPlaneOutlineGeometry.js +2 -0
  422. package/dist/cesiumStatic/Workers/createPlaneOutlineGeometry.js.LICENSE.txt +24 -0
  423. package/dist/cesiumStatic/Workers/createPolygonGeometry.js +2 -0
  424. package/dist/cesiumStatic/Workers/createPolygonGeometry.js.LICENSE.txt +24 -0
  425. package/dist/cesiumStatic/Workers/createPolygonOutlineGeometry.js +2 -0
  426. package/dist/cesiumStatic/Workers/createPolygonOutlineGeometry.js.LICENSE.txt +24 -0
  427. package/dist/cesiumStatic/Workers/createPolylineGeometry.js +2 -0
  428. package/dist/cesiumStatic/Workers/createPolylineGeometry.js.LICENSE.txt +24 -0
  429. package/dist/cesiumStatic/Workers/createPolylineVolumeGeometry.js +2 -0
  430. package/dist/cesiumStatic/Workers/createPolylineVolumeGeometry.js.LICENSE.txt +24 -0
  431. package/dist/cesiumStatic/Workers/createPolylineVolumeOutlineGeometry.js +2 -0
  432. package/dist/cesiumStatic/Workers/createPolylineVolumeOutlineGeometry.js.LICENSE.txt +24 -0
  433. package/dist/cesiumStatic/Workers/createRectangleGeometry.js +2 -0
  434. package/dist/cesiumStatic/Workers/createRectangleGeometry.js.LICENSE.txt +24 -0
  435. package/dist/cesiumStatic/Workers/createRectangleOutlineGeometry.js +2 -0
  436. package/dist/cesiumStatic/Workers/createRectangleOutlineGeometry.js.LICENSE.txt +24 -0
  437. package/dist/cesiumStatic/Workers/createSimplePolylineGeometry.js +2 -0
  438. package/dist/cesiumStatic/Workers/createSimplePolylineGeometry.js.LICENSE.txt +24 -0
  439. package/dist/cesiumStatic/Workers/createSphereGeometry.js +2 -0
  440. package/dist/cesiumStatic/Workers/createSphereGeometry.js.LICENSE.txt +24 -0
  441. package/dist/cesiumStatic/Workers/createSphereOutlineGeometry.js +2 -0
  442. package/dist/cesiumStatic/Workers/createSphereOutlineGeometry.js.LICENSE.txt +24 -0
  443. package/dist/cesiumStatic/Workers/createTaskProcessorWorker.js +2 -0
  444. package/dist/cesiumStatic/Workers/createTaskProcessorWorker.js.LICENSE.txt +24 -0
  445. package/dist/cesiumStatic/Workers/createVectorTileClampedPolylines.js +2 -0
  446. package/dist/cesiumStatic/Workers/createVectorTileClampedPolylines.js.LICENSE.txt +24 -0
  447. package/dist/cesiumStatic/Workers/createVectorTileGeometries.js +2 -0
  448. package/dist/cesiumStatic/Workers/createVectorTileGeometries.js.LICENSE.txt +24 -0
  449. package/dist/cesiumStatic/Workers/createVectorTilePoints.js +2 -0
  450. package/dist/cesiumStatic/Workers/createVectorTilePoints.js.LICENSE.txt +24 -0
  451. package/dist/cesiumStatic/Workers/createVectorTilePolygons.js +2 -0
  452. package/dist/cesiumStatic/Workers/createVectorTilePolygons.js.LICENSE.txt +24 -0
  453. package/dist/cesiumStatic/Workers/createVectorTilePolylines.js +2 -0
  454. package/dist/cesiumStatic/Workers/createVectorTilePolylines.js.LICENSE.txt +24 -0
  455. package/dist/cesiumStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -0
  456. package/dist/cesiumStatic/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt +24 -0
  457. package/dist/cesiumStatic/Workers/createVerticesFromHeightmap.js +2 -0
  458. package/dist/cesiumStatic/Workers/createVerticesFromHeightmap.js.LICENSE.txt +26 -0
  459. package/dist/cesiumStatic/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -0
  460. package/dist/cesiumStatic/Workers/createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt +24 -0
  461. package/dist/cesiumStatic/Workers/createWallGeometry.js +2 -0
  462. package/dist/cesiumStatic/Workers/createWallGeometry.js.LICENSE.txt +24 -0
  463. package/dist/cesiumStatic/Workers/createWallOutlineGeometry.js +2 -0
  464. package/dist/cesiumStatic/Workers/createWallOutlineGeometry.js.LICENSE.txt +24 -0
  465. package/dist/cesiumStatic/Workers/decodeDraco.js +2 -0
  466. package/dist/cesiumStatic/Workers/decodeDraco.js.LICENSE.txt +24 -0
  467. package/dist/cesiumStatic/Workers/decodeGoogleEarthEnterprisePacket.js +2 -0
  468. package/dist/cesiumStatic/Workers/decodeGoogleEarthEnterprisePacket.js.LICENSE.txt +24 -0
  469. package/dist/cesiumStatic/Workers/decodeI3S.js +2 -0
  470. package/dist/cesiumStatic/Workers/decodeI3S.js.LICENSE.txt +24 -0
  471. package/dist/cesiumStatic/Workers/transcodeKTX2.js +2 -0
  472. package/dist/cesiumStatic/Workers/transcodeKTX2.js.LICENSE.txt +24 -0
  473. package/dist/cesiumStatic/Workers/transferTypedArrayTest.js +2 -0
  474. package/dist/cesiumStatic/Workers/transferTypedArrayTest.js.LICENSE.txt +24 -0
  475. package/dist/cesiumStatic/Workers/upsampleQuantizedTerrainMesh.js +2 -0
  476. package/dist/cesiumStatic/Workers/upsampleQuantizedTerrainMesh.js.LICENSE.txt +24 -0
  477. package/dist/vizor_view.min.js +2 -0
  478. package/dist/vizor_view.min.js.LICENSE.txt +61 -0
  479. package/package.json +42 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVectorTilePoints.js.LICENSE.txt */
2
+ import{a as x}from"./chunk-RIW4PILL.js";import{a as w}from"./chunk-OKAWXMC7.js";import{h as c}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as h,b as l,d as p}from"./chunk-WG62ICZK.js";import{a as i}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import"./chunk-GBRF7ES3.js";var u=32767,F=new l,L=new h,b=new c,y=new p,a={min:void 0,max:void 0};function V(r){r=new Float64Array(r);let n=0;a.min=r[n++],a.max=r[n++],c.unpack(r,n,b),n+=c.packedLength,p.unpack(r,n,y)}function z(r,n){let t=new Uint16Array(r.positions);V(r.packedBuffer);let o=b,e=y,s=a.min,p=a.max,c=t.length/3,m=t.subarray(0,c),f=t.subarray(c,2*c),k=t.subarray(2*c,3*c);w.zigZagDeltaDecode(m,f,k);let j=new Float64Array(t.length);for(let a=0;a<c;++a){let r=m[a],n=f[a],t=k[a],c=i.lerp(o.west,o.east,r/u),w=i.lerp(o.south,o.north,n/u),b=i.lerp(s,p,t/u),y=l.fromRadians(c,w,b,F),d=e.cartographicToCartesian(y,L);h.pack(d,j,3*a)}return n.push(j.buffer),{positions:j.buffer}}var G=x(z);export{G as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVectorTilePolygons.js.LICENSE.txt */
2
+ import{a as R}from"./chunk-LL4PRXXO.js";import{a as It}from"./chunk-RIW4PILL.js";import{a as M}from"./chunk-RDVL7HNQ.js";import{a as bt}from"./chunk-OKAWXMC7.js";import"./chunk-FYZYSHA7.js";import"./chunk-CRU5R7HF.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as W}from"./chunk-DBOVA5XH.js";import"./chunk-PPN6SLYU.js";import{h as z}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as o,b as nt,d as j}from"./chunk-WG62ICZK.js";import{a as et}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import{e as A}from"./chunk-GBRF7ES3.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(t){let e=new Float64Array(t),n=0;E.indexBytesPerElement=e[n++],E.min=e[n++],E.max=e[n++],o.unpack(e,n,kt),n+=o.packedLength,j.unpack(e,n,Bt),n+=j.packedLength,z.unpack(e,n,Nt)}function Tt(t){let e=t.length,n=0;for(let r=0;r<e;++r)n+=R.packedLength+3+t[r].batchIds.length;return n}function Ct(t,e,n){let r=e.length,o=2+r*M.packedLength+1+Tt(n),a=new Float64Array(o),i=0;a[i++]=t,a[i++]=r;for(let t=0;t<r;++t)M.pack(e[t],a,i),i+=M.packedLength;let s=n.length;a[i++]=s;for(let t=0;t<s;++t){let e=n[t];R.pack(e.color,a,i),i+=R.packedLength,a[i++]=e.offset,a[i++]=e.count;let r=e.batchIds,o=r.length;a[i++]=o;for(let t=0;t<o;++t)a[i++]=r[t]}return a}var yt=32767,wt=new o,Ht=new o,St=new o,Ut=new o,Ft=new o,Lt=new nt,Mt=new z;function Rt(t,e){let n;Pt(t.packedBuffer),n=2===E.indexBytesPerElement?new Uint16Array(t.indices):new Uint32Array(t.indices);let r=new Uint16Array(t.positions),a=new Uint32Array(t.counts),i=new Uint32Array(t.indexCounts),s=new Uint32Array(t.batchIds),f=new Uint32Array(t.batchTableColors),c=new Array(a.length),h=kt,l=Bt,u=Nt,m=E.min,p=E.max,d=t.minimumHeights,I=t.maximumHeights;A(d)&&A(I)&&(d=new Float32Array(d),I=new Float32Array(I));let k,g,w,b=r.length/2,y=r.subarray(0,b),N=r.subarray(b,2*b);bt.zigZagDeltaDecode(y,N);let L=new Float64Array(3*b);for(k=0;k<b;++k){let t=y[k],e=N[k],n=et.lerp(u.west,u.east,t/yt),r=et.lerp(u.south,u.north,e/yt),a=nt.fromRadians(n,r,0,Lt),i=l.cartographicToCartesian(a,wt);o.pack(i,L,3*k)}let j=a.length,x=new Array(j),T=new Array(j),U=0,S=0;for(k=0;k<j;++k)x[k]=U,T[k]=S,U+=a[k],S+=i[k];let P=new Float32Array(3*b*2),O=new Uint16Array(2*b),F=new Uint32Array(T.length),B=new Uint32Array(i.length),C=[],Y={};for(k=0;k<j;++k)w=f[k],A(Y[w])?(Y[w].positionLength+=a[k],Y[w].indexLength+=i[k],Y[w].batchIds.push(k)):Y[w]={positionLength:a[k],indexLength:i[k],offset:0,indexOffset:0,batchIds:[k]};let G,H=0,V=0;for(w in Y)if(Y.hasOwnProperty(w)){G=Y[w],G.offset=H,G.indexOffset=V;let t=2*G.positionLength,e=2*G.indexLength+6*G.positionLength;H+=t,V+=e,G.indexLength=e}let D=[];for(w in Y)Y.hasOwnProperty(w)&&(G=Y[w],D.push({color:R.fromRgba(parseInt(w)),offset:G.indexOffset,count:G.indexLength,batchIds:G.batchIds}));for(k=0;k<j;++k){w=f[k],G=Y[w];let t=G.offset,e=3*t,r=t,b=x[k],y=a[k],N=s[k],E=m,j=p;A(d)&&A(I)&&(E=d[k],j=I[k]);let R=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,S=Number.POSITIVE_INFINITY,W=Number.NEGATIVE_INFINITY;for(g=0;g<y;++g){let t=o.unpack(L,3*b+3*g,wt);l.scaleToGeodeticSurface(t,t);let n=l.cartesianToCartographic(t,Lt),a=n.latitude,i=n.longitude;R=Math.min(a,R),U=Math.max(a,U),S=Math.min(i,S),W=Math.max(i,W);let s=l.geodeticSurfaceNormal(t,Ht),f=o.multiplyByScalar(s,E,St),c=o.add(t,f,Ut);f=o.multiplyByScalar(s,j,f);let u=o.add(t,f,Ft);o.subtract(u,h,u),o.subtract(c,h,c),o.pack(u,P,e),o.pack(c,P,e+3),O[r]=N,O[r+1]=N,e+=6,r+=2}u=Mt,u.west=S,u.east=W,u.south=R,u.north=U,c[k]=M.fromRectangle(u,m,p,l);let H=G.indexOffset,V=T[k],D=i[k];for(F[k]=H,g=0;g<D;g+=3){let e=n[V+g]-b,r=n[V+g+1]-b,o=n[V+g+2]-b;C[H++]=2*e+t,C[H++]=2*r+t,C[H++]=2*o+t,C[H++]=2*o+1+t,C[H++]=2*r+1+t,C[H++]=2*e+1+t}for(g=0;g<y;++g){let e=g,n=(g+1)%y;C[H++]=2*e+1+t,C[H++]=2*n+t,C[H++]=2*e+t,C[H++]=2*e+1+t,C[H++]=2*n+1+t,C[H++]=2*n+t}G.offset+=2*y,G.indexOffset=H,B[k]=H-F[k]}C=W.createTypedArray(P.length/3,C);let _=D.length;for(let t=0;t<_;++t){let e=D[t].batchIds,n=0,r=e.length;for(let t=0;t<r;++t)n+=B[e[t]];D[t].count=n}let v=Ct(2===C.BYTES_PER_ELEMENT?W.UNSIGNED_SHORT:W.UNSIGNED_INT,c,D);return e.push(P.buffer,C.buffer,F.buffer,B.buffer,O.buffer,v.buffer),{positions:P.buffer,indices:C.buffer,indexOffsets:F.buffer,indexCounts:B.buffer,batchIds:O.buffer,packedBuffer:v.buffer}}var Jt=It(Rt);export{Jt as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVectorTilePolylines.js.LICENSE.txt */
2
+ import{a as K}from"./chunk-RIW4PILL.js";import{a as G}from"./chunk-OKAWXMC7.js";import{a as S}from"./chunk-DBOVA5XH.js";import{c as B,h as R}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as t,b as _,d as L}from"./chunk-WG62ICZK.js";import{a as F}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import"./chunk-GBRF7ES3.js";var O=32767,ct=new _,rt=new t;function it(e,r,a,n,u){let o=e.length/3,s=e.subarray(0,o),f=e.subarray(o,2*o),i=e.subarray(2*o,3*o);G.zigZagDeltaDecode(s,f,i);let c=new Float64Array(e.length);for(let e=0;e<o;++e){let o=s[e],p=f[e],l=i[e],d=F.lerp(r.west,r.east,o/O),h=F.lerp(r.south,r.north,p/O),k=F.lerp(a,n,l/O),b=_.fromRadians(d,h,k,ct),m=u.cartographicToCartesian(b,rt);t.pack(m,c,3*e)}return c}var Y=it,X=new R,$=new L,j=new t,H={min:void 0,max:void 0};function at(e){e=new Float64Array(e);let r=0;H.min=e[r++],H.max=e[r++],R.unpack(e,r,X),r+=R.packedLength,L.unpack(e,r,$),r+=L.packedLength,t.unpack(e,r,j)}function ft(t){let e=t.length,r=new Uint32Array(e+1),a=0;for(let n=0;n<e;++n)r[n]=a,a+=t[n];return r[e]=a,r}var Z=new t,q=new t,J=new t,dt=new t,Q=new t;function ut(e,r){let a=new Uint16Array(e.positions),n=new Uint16Array(e.widths),u=new Uint32Array(e.counts),o=new Uint16Array(e.batchIds);at(e.packedBuffer);let s,f=X,i=$,c=j,p=H.min,l=H.max,d=Y(a,f,p,l,i),h=d.length/3,k=4*h-4,b=new Float32Array(3*k),m=new Float32Array(3*k),w=new Float32Array(3*k),y=new Float32Array(2*k),A=new Uint16Array(k),I=0,F=0,R=0,U=0,g=u.length;for(s=0;s<g;++s){let e=u[s],r=n[s],a=o[s];for(let n=0;n<e;++n){let u;if(0===n){let e=t.unpack(d,3*U,Z),r=t.unpack(d,3*(U+1),q);u=t.subtract(e,r,J),t.add(e,u,u)}else u=t.unpack(d,3*(U+n-1),J);let o,s=t.unpack(d,3*(U+n),dt);if(n===e-1){let r=t.unpack(d,3*(U+e-1),Z),a=t.unpack(d,3*(U+e-2),q);o=t.subtract(r,a,Q),t.add(r,o,o)}else o=t.unpack(d,3*(U+n+1),Q);t.subtract(u,c,u),t.subtract(s,c,s),t.subtract(o,c,o);let f=n===e-1?2:4;for(let e=0===n?2:0;e<f;++e){t.pack(s,b,I),t.pack(u,m,I),t.pack(o,w,I),I+=3;let n=e-2<0?-1:1;y[F++]=e%2*2-1,y[F++]=n*r,A[R++]=a}}U+=e}let E=S.createTypedArray(k,6*h-6),G=0,O=0;for(g=h-1,s=0;s<g;++s)E[O++]=G,E[O++]=G+2,E[O++]=G+1,E[O++]=G+1,E[O++]=G+2,E[O++]=G+3,G+=4;r.push(b.buffer,m.buffer,w.buffer),r.push(y.buffer,A.buffer,E.buffer);let P={indexDatatype:2===E.BYTES_PER_ELEMENT?S.UNSIGNED_SHORT:S.UNSIGNED_INT,currentPositions:b.buffer,previousPositions:m.buffer,nextPositions:w.buffer,expandAndWidth:y.buffer,batchIds:A.buffer,indices:E.buffer};if(e.keepDecodedPositions){let t=ft(u);r.push(d.buffer,t.buffer),P=B(P,{decodedPositions:d.buffer,decodedPositionOffsets:t.buffer})}return P}var It=K(ut);export{It as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVerticesFromGoogleEarthEnterpriseBuffer.js.LICENSE.txt */
2
+ import{a as Gt,b as Xt}from"./chunk-QALYXFKR.js";import{a as kt}from"./chunk-RIW4PILL.js";import{a as lt}from"./chunk-NVJ64HSB.js";import{a as Dt}from"./chunk-RDVL7HNQ.js";import"./chunk-OKAWXMC7.js";import"./chunk-FYZYSHA7.js";import{a as qt}from"./chunk-CRU5R7HF.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{d as Lt}from"./chunk-PPN6SLYU.js";import{b as $,g as Ot,h as zt}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as P,b as N,c as wt,d as Ht}from"./chunk-WG62ICZK.js";import{a as r}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import{a as Vt}from"./chunk-RAWIUDJR.js";import{a as Ut}from"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import{e as ht}from"./chunk-GBRF7ES3.js";var te=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,ee=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(t,e,n){n=Ut(n,r);let i=t.length;for(let o=0;o<i;++o)if(n.equalsEpsilon(t[o],e,r.EPSILON12))return o;return-1}function oe(t,e){t.ellipsoid=Ht.clone(t.ellipsoid),t.rectangle=zt.clone(t.rectangle);let n=se(t.buffer,t.relativeToCenter,t.ellipsoid,t.rectangle,t.nativeRectangle,t.exaggeration,t.exaggerationRelativeHeight,t.skirtHeight,t.includeWebMercatorT,t.negativeAltitudeExponentBias,t.negativeElevationThreshold),i=n.vertices;e.push(i.buffer);let r=n.indices;return e.push(r.buffer),{vertices:i.buffer,indices:r.buffer,numberOfAttributes:n.encoding.stride,minimumHeight:n.minimumHeight,maximumHeight:n.maximumHeight,boundingSphere3D:n.boundingSphere3D,orientedBoundingBox:n.orientedBoundingBox,occludeePointInScaledSpace:n.occludeePointInScaledSpace,encoding:n.encoding,vertexCountWithoutSkirts:n.vertexCountWithoutSkirts,indexCountWithoutSkirts:n.indexCountWithoutSkirts,westIndicesSouthToNorth:n.westIndicesSouthToNorth,southIndicesEastToWest:n.southIndicesEastToWest,eastIndicesNorthToSouth:n.eastIndicesNorthToSouth,northIndicesWestToEast:n.northIndicesWestToEast}}var u=new N,G=new P,ne=new P,ie=new P,re=new $;function se(t,e,n,i,o,a,s,l,h,c,d){let m,g,p,I,f,E;ht(i)?(m=i.west,g=i.south,p=i.east,I=i.north,f=i.width,E=i.height):(m=r.toRadians(o.west),g=r.toRadians(o.south),p=r.toRadians(o.east),I=r.toRadians(o.north),f=r.toRadians(i.width),E=r.toRadians(i.height));let T,S,x=[g,I],w=[m,p],R=Ot.eastNorthUpToFixedFrame(e,n),k=$.inverseTransformation(R,re);h&&(T=lt.geodeticLatitudeToMercatorAngle(g),S=1/(lt.geodeticLatitudeToMercatorAngle(I)-T));let A=1!==a,b=new DataView(t),y=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,v=ne;v.x=Number.POSITIVE_INFINITY,v.y=Number.POSITIVE_INFINITY,v.z=Number.POSITIVE_INFINITY;let B=ie;B.x=Number.NEGATIVE_INFINITY,B.y=Number.NEGATIVE_INFINITY,B.z=Number.NEGATIVE_INFINITY;let M,W,_=0,Y=0,C=0;for(W=0;W<4;++W){let t=_;M=b.getUint32(t,!0),t+=Pt;let e=r.toRadians(180*b.getFloat64(t,!0));t+=H,-1===tt(w,e)&&w.push(e);let n=r.toRadians(180*b.getFloat64(t,!0));t+=H,-1===tt(x,n)&&x.push(n),t+=2*H;let i=b.getInt32(t,!0);t+=mt,Y+=i,i=b.getInt32(t,!0),C+=3*i,_+=M+Pt}let j=[],U=[],V=new Array(Y),L=new Array(Y),O=new Array(Y),D=h?new Array(Y):[],K=A?new Array(Y):[],z=new Array(C),X=[],Q=[],q=[],J=[],Z=0,et=0;for(_=0,W=0;W<4;++W){M=b.getUint32(_,!0),_+=Pt;let t=_,e=r.toRadians(180*b.getFloat64(_,!0));_+=H;let i=r.toRadians(180*b.getFloat64(_,!0));_+=H;let o=r.toRadians(180*b.getFloat64(_,!0)),a=.5*o;_+=H;let s=r.toRadians(180*b.getFloat64(_,!0)),l=.5*s;_+=H;let f=b.getInt32(_,!0);_+=mt;let E=b.getInt32(_,!0);_+=mt,_+=mt;let R=new Array(f);for(let t=0;t<f;++t){let f=e+b.getUint8(_++)*o;u.longitude=f;let E=i+b.getUint8(_++)*s;u.latitude=E;let H=b.getFloat32(_,!0);if(_+=ee,0!==H&&H<d&&(H*=-Math.pow(2,c)),H*=6371010,u.height=H,-1!==tt(w,f)||-1!==tt(x,E)){let e=tt(j,u,N);if(-1!==e){R[t]=U[e];continue}j.push(N.clone(u)),U.push(Z)}R[t]=Z,Math.abs(f-m)<a?X.push({index:Z,cartographic:N.clone(u)}):Math.abs(f-p)<a?q.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-g)<l?Q.push({index:Z,cartographic:N.clone(u)}):Math.abs(E-I)<l&&J.push({index:Z,cartographic:N.clone(u)}),y=Math.min(H,y),F=Math.max(H,F),O[Z]=H;let M=n.cartographicToCartesian(u);if(V[Z]=M,h&&(D[Z]=(lt.geodeticLatitudeToMercatorAngle(E)-T)*S),A){let t=n.geodeticSurfaceNormal(M);K[Z]=t}$.multiplyByPoint(k,M,G),P.minimumByComponent(G,v,v),P.maximumByComponent(G,B,B);let W=(f-m)/(p-m);W=r.clamp(W,0,1);let Y=(E-g)/(I-g);Y=r.clamp(Y,0,1),L[Z]=new wt(W,Y),++Z}let W=3*E;for(let t=0;t<W;++t,++et)z[et]=R[b.getUint16(_,!0)],_+=te;if(M!==_-t)throw new Vt("Invalid terrain tile.")}V.length=Z,L.length=Z,O.length=Z,h&&(D.length=Z),A&&(K.length=Z);let nt=Z,it=et,rt={hMin:y,lastBorderPoint:void 0,skirtHeight:l,toENU:k,ellipsoid:n,minimum:v,maximum:B};X.sort((function(t,e){return e.cartographic.latitude-t.cartographic.latitude})),Q.sort((function(t,e){return t.cartographic.longitude-e.cartographic.longitude})),q.sort((function(t,e){return t.cartographic.latitude-e.cartographic.latitude})),J.sort((function(t,e){return e.cartographic.longitude-t.cartographic.longitude}));let ot=1e-5;if(gt(V,O,L,D,K,z,rt,X,-ot*f,!0,-ot*E),gt(V,O,L,D,K,z,rt,Q,-ot*E,!1),gt(V,O,L,D,K,z,rt,q,ot*f,!0,ot*E),gt(V,O,L,D,K,z,rt,J,ot*E,!1),X.length>0&&J.length>0){let t=X[0].index,e=nt,n=J[J.length-1].index,i=V.length-1;z.push(n,i,e,e,t,n)}Y=V.length;let at,ut=Lt.fromPoints(V);ht(i)&&(at=Dt.fromRectangle(i,y,F,n));let st=new Gt(n).computeHorizonCullingPointPossiblyUnderEllipsoid(e,V,y),ct=new qt(v,B,e),dt=new Xt(e,ct,rt.hMin,F,R,!1,h,A,a,s),pt=new Float32Array(Y*dt.stride),It=0;for(let t=0;t<Y;++t)It=dt.encode(pt,It,V[t],L[t],O[t],void 0,D[t],K[t]);let Nt=X.map((function(t){return t.index})).reverse(),ft=Q.map((function(t){return t.index})).reverse(),Et=q.map((function(t){return t.index})).reverse(),Tt=J.map((function(t){return t.index})).reverse();return ft.unshift(Et[Et.length-1]),ft.push(Nt[0]),Tt.unshift(Nt[Nt.length-1]),Tt.push(Et[0]),{vertices:pt,indices:new Uint16Array(z),maximumHeight:F,minimumHeight:y,encoding:dt,boundingSphere3D:ut,orientedBoundingBox:at,occludeePointInScaledSpace:st,vertexCountWithoutSkirts:nt,indexCountWithoutSkirts:it,westIndicesSouthToNorth:Nt,southIndicesEastToWest:ft,eastIndicesNorthToSouth:Et,northIndicesWestToEast:Tt}}function gt(t,e,n,i,o,a,s,l,h,c,d){let m=l.length;for(let g=0;g<m;++g){let p=l[g],I=p.cartographic,f=p.index,E=t.length,T=I.longitude,S=I.latitude;S=r.clamp(S,-r.PI_OVER_TWO,r.PI_OVER_TWO);let x=I.height-s.skirtHeight;s.hMin=Math.min(s.hMin,x),N.fromRadians(T,S,x,u),c&&(u.longitude+=h),c?g===m-1?u.latitude+=d:0===g&&(u.latitude-=d):u.latitude+=h;let w=s.ellipsoid.cartographicToCartesian(u);t.push(w),e.push(x),n.push(wt.clone(n[f])),i.length>0&&i.push(i[f]),o.length>0&&o.push(o[f]),$.multiplyByPoint(s.toENU,w,G);let R=s.minimum,k=s.maximum;P.minimumByComponent(G,R,R),P.maximumByComponent(G,k,k);let A=s.lastBorderPoint;if(ht(A)){let t=A.index;a.push(t,E-1,E,E,f,t)}s.lastBorderPoint=p}}var Ae=kt(oe);export{Ae as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVerticesFromHeightmap.js.LICENSE.txt */
2
+ import{a as sr,b as fr}from"./chunk-QALYXFKR.js";import{a as tr}from"./chunk-RIW4PILL.js";import{a as Ue}from"./chunk-NVJ64HSB.js";import{a as ar}from"./chunk-RDVL7HNQ.js";import"./chunk-OKAWXMC7.js";import"./chunk-FYZYSHA7.js";import{a as nr}from"./chunk-CRU5R7HF.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{d as ir}from"./chunk-PPN6SLYU.js";import{b as xe,g as rr,h as ae}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as ie,c as er,d as Ie}from"./chunk-WG62ICZK.js";import{a as ge}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import{a as He}from"./chunk-RAWIUDJR.js";import{a as Y}from"./chunk-KGKDCW56.js";import{a as he}from"./chunk-G4IO3CPJ.js";import{c as Ir,d as xr,e as G}from"./chunk-GBRF7ES3.js";var ur=Ir(((e,t)=>{!function(){var e,i,r,a,n,s,l=(e={defaultNoDataValue:-34027999387901484e22,decode:function(t,s){var l=(s=s||{}).encodedMaskData||null===s.encodedMaskData,o=n(t,s.inputOffset||0,l),f=null!==s.noDataValue?s.noDataValue:e.defaultNoDataValue,u=i(o,s.pixelType||Float32Array,s.encodedMaskData,f,s.returnMask),h={width:o.width,height:o.height,pixelData:u.resultPixels,minValue:u.minValue,maxValue:o.pixels.maxValue,noDataValue:f};return u.resultMask&&(h.maskData=u.resultMask),s.returnEncodedMask&&o.mask&&(h.encodedMaskData=o.mask.bitset?o.mask.bitset:null),s.returnFileInfo&&(h.fileInfo=r(o),s.computeUsedBitDepths&&(h.fileInfo.bitDepths=a(o))),h}},i=function(e,t,i,r,a){var n,l,o,f=0,u=e.pixels.numBlocksX,h=e.pixels.numBlocksY,c=Math.floor(e.width/u),m=Math.floor(e.height/h),d=2*e.maxZError,g=Number.MAX_VALUE;i=i||(e.mask?e.mask.bitset:null),l=new t(e.width*e.height),a&&i&&(o=new Uint8Array(e.width*e.height));for(var p,w,x=new Float32Array(c*m),k=0;k<=h;k++){var y=k!==h?m:e.height%h;if(0!==y)for(var I=0;I<=u;I++){var U=I!==u?c:e.width%u;if(0!==U){var b,v,T,A,M=k*e.width*m+I*c,V=e.width-U,D=e.pixels.blocks[f];if(D.encoding<2?(0===D.encoding?b=D.rawData:(s(D.stuffedData,D.bitsPerPixel,D.numValidPixels,D.offset,d,x,e.pixels.maxValue),b=x),v=0):T=2===D.encoding?0:D.offset,i)for(w=0;w<y;w++){for(7&M&&(A=i[M>>3],A<<=7&M),p=0;p<U;p++)7&M||(A=i[M>>3]),128&A?(o&&(o[M]=1),g=g>(n=D.encoding<2?b[v++]:T)?n:g,l[M++]=n):(o&&(o[M]=0),l[M++]=r),A<<=1;M+=V}else if(D.encoding<2)for(w=0;w<y;w++){for(p=0;p<U;p++)g=g>(n=b[v++])?n:g,l[M++]=n;M+=V}else for(g=g>T?T:g,w=0;w<y;w++){for(p=0;p<U;p++)l[M++]=T;M+=V}if(1===D.encoding&&v!==D.numValidPixels)throw"Block and Mask do not match";f++}}}return{resultPixels:l,resultMask:o,minValue:g}},r=function(e){return{fileIdentifierString:e.fileIdentifierString,fileVersion:e.fileVersion,imageType:e.imageType,height:e.height,width:e.width,maxZError:e.maxZError,eofOffset:e.eofOffset,mask:e.mask?{numBlocksX:e.mask.numBlocksX,numBlocksY:e.mask.numBlocksY,numBytes:e.mask.numBytes,maxValue:e.mask.maxValue}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,numBytes:e.pixels.numBytes,maxValue:e.pixels.maxValue,noDataValue:e.noDataValue}}},a=function(e){for(var t=e.pixels.numBlocksX*e.pixels.numBlocksY,i={},r=0;r<t;r++){var a=e.pixels.blocks[r];0===a.encoding?i.float32=!0:1===a.encoding?i[a.bitsPerPixel]=!0:i[0]=!0}return Object.keys(i)},n=function(e,t,i){var r={},a=new Uint8Array(e,t,10);if(r.fileIdentifierString=String.fromCharCode.apply(null,a),"CntZImage"!==r.fileIdentifierString.trim())throw"Unexpected file identifier string: "+r.fileIdentifierString;t+=10;var n=new DataView(e,t,24);if(r.fileVersion=n.getInt32(0,!0),r.imageType=n.getInt32(4,!0),r.height=n.getUint32(8,!0),r.width=n.getUint32(12,!0),r.maxZError=n.getFloat64(16,!0),t+=24,!i)if(n=new DataView(e,t,16),r.mask={},r.mask.numBlocksY=n.getUint32(0,!0),r.mask.numBlocksX=n.getUint32(4,!0),r.mask.numBytes=n.getUint32(8,!0),r.mask.maxValue=n.getFloat32(12,!0),t+=16,r.mask.numBytes>0){var s=new Uint8Array(Math.ceil(r.width*r.height/8)),l=(n=new DataView(e,t,r.mask.numBytes)).getInt16(0,!0),o=2,f=0;do{if(l>0)for(;l--;)s[f++]=n.getUint8(o++);else{var u=n.getUint8(o++);for(l=-l;l--;)s[f++]=u}l=n.getInt16(o,!0),o+=2}while(o<r.mask.numBytes);if(-32768!==l||f<s.length)throw"Unexpected end of mask RLE encoding";r.mask.bitset=s,t+=r.mask.numBytes}else r.mask.numBytes|r.mask.numBlocksY|r.mask.maxValue||(r.mask.bitset=new Uint8Array(Math.ceil(r.width*r.height/8)));n=new DataView(e,t,16),r.pixels={},r.pixels.numBlocksY=n.getUint32(0,!0),r.pixels.numBlocksX=n.getUint32(4,!0),r.pixels.numBytes=n.getUint32(8,!0),r.pixels.maxValue=n.getFloat32(12,!0),t+=16;var h=r.pixels.numBlocksX,c=r.pixels.numBlocksY,m=h+(r.width%h>0?1:0),d=c+(r.height%c>0?1:0);r.pixels.blocks=new Array(m*d);for(var g=0,p=0;p<d;p++)for(var w=0;w<m;w++){var x=0,k=e.byteLength-t;n=new DataView(e,t,Math.min(10,k));var y={};r.pixels.blocks[g++]=y;var I=n.getUint8(0);if(x++,y.encoding=63&I,y.encoding>3)throw"Invalid block encoding ("+y.encoding+")";if(2!==y.encoding){if(0!==I&&2!==I){if(I>>=6,y.offsetType=I,2===I)y.offset=n.getInt8(1),x++;else if(1===I)y.offset=n.getInt16(1,!0),x+=2;else{if(0!==I)throw"Invalid block offset type";y.offset=n.getFloat32(1,!0),x+=4}if(1===y.encoding)if(I=n.getUint8(x),x++,y.bitsPerPixel=63&I,I>>=6,y.numValidPixelsType=I,2===I)y.numValidPixels=n.getUint8(x),x++;else if(1===I)y.numValidPixels=n.getUint16(x,!0),x+=2;else{if(0!==I)throw"Invalid valid pixel count type";y.numValidPixels=n.getUint32(x,!0),x+=4}}var U;if(t+=x,3!==y.encoding)if(0===y.encoding){var b=(r.pixels.numBytes-1)/4;if(b!==Math.floor(b))throw"uncompressed block has invalid length";U=new ArrayBuffer(4*b),new Uint8Array(U).set(new Uint8Array(e,t,4*b));var v=new Float32Array(U);y.rawData=v,t+=4*b}else if(1===y.encoding){var T=Math.ceil(y.numValidPixels*y.bitsPerPixel/8),A=Math.ceil(T/4);U=new ArrayBuffer(4*A),new Uint8Array(U).set(new Uint8Array(e,t,T)),y.stuffedData=new Uint32Array(U),t+=T}}else t++}return r.eofOffset=t,r},s=function(e,t,i,r,a,n,s){var l,o,f,u=(1<<t)-1,h=0,c=0,m=Math.ceil((s-r)/a),d=4*e.length-Math.ceil(t*i/8);for(e[e.length-1]<<=8*d,l=0;l<i;l++){if(0===c&&(f=e[h++],c=32),c>=t)o=f>>>c-t&u,c-=t;else{var g=t-c;o=(f&u)<<g&u,o+=(f=e[h++])>>>(c=32-g)}n[l]=o<m?r+o*a:s}return n},e),o=function(){"use strict";var e=function(e,t,i,r,a,n,s,l){var o,f,u,h,c,m=(1<<i)-1,d=0,g=0,p=4*e.length-Math.ceil(i*r/8);if(e[e.length-1]<<=8*p,a)for(o=0;o<r;o++)0===g&&(u=e[d++],g=32),g>=i?(f=u>>>g-i&m,g-=i):(f=(u&m)<<(h=i-g)&m,f+=(u=e[d++])>>>(g=32-h)),t[o]=a[f];else for(c=Math.ceil((l-n)/s),o=0;o<r;o++)0===g&&(u=e[d++],g=32),g>=i?(f=u>>>g-i&m,g-=i):(f=(u&m)<<(h=i-g)&m,f+=(u=e[d++])>>>(g=32-h)),t[o]=f<c?n+f*s:l},t=function(e,t,i,r,a,n){var s,l=(1<<t)-1,o=0,f=0,u=0,h=0,c=0,m=[],d=4*e.length-Math.ceil(t*i/8);e[e.length-1]<<=8*d;var g=Math.ceil((n-r)/a);for(f=0;f<i;f++)0===h&&(s=e[o++],h=32),h>=t?(c=s>>>h-t&l,h-=t):(c=(s&l)<<(u=t-h)&l,c+=(s=e[o++])>>>(h=32-u)),m[f]=c<g?r+c*a:n;return m.unshift(r),m},i=function(e,t,i,r,a,n,s,l){var o,f,u,h,c=(1<<i)-1,m=0,d=0,g=0;if(a)for(o=0;o<r;o++)0===d&&(u=e[m++],d=32,g=0),d>=i?(f=u>>>g&c,d-=i,g+=i):(f=u>>>g&c,d=32-(h=i-d),f|=((u=e[m++])&(1<<h)-1)<<i-h,g=h),t[o]=a[f];else{var p=Math.ceil((l-n)/s);for(o=0;o<r;o++)0===d&&(u=e[m++],d=32,g=0),d>=i?(f=u>>>g&c,d-=i,g+=i):(f=u>>>g&c,d=32-(h=i-d),f|=((u=e[m++])&(1<<h)-1)<<i-h,g=h),t[o]=f<p?n+f*s:l}return t},r=function(e,t,i,r,a,n){var s,l=(1<<t)-1,o=0,f=0,u=0,h=0,c=0,m=0,d=[],g=Math.ceil((n-r)/a);for(f=0;f<i;f++)0===h&&(s=e[o++],h=32,m=0),h>=t?(c=s>>>m&l,h-=t,m+=t):(c=s>>>m&l,h=32-(u=t-h),c|=((s=e[o++])&(1<<u)-1)<<t-u,m=u),d[f]=c<g?r+c*a:n;return d.unshift(r),d},a=function(e,t,i,r){var a,n,s,l,o=(1<<i)-1,f=0,u=0,h=4*e.length-Math.ceil(i*r/8);for(e[e.length-1]<<=8*h,a=0;a<r;a++)0===u&&(s=e[f++],u=32),u>=i?(n=s>>>u-i&o,u-=i):(n=(s&o)<<(l=i-u)&o,n+=(s=e[f++])>>>(u=32-l)),t[a]=n;return t},n=function(e,t,i,r){var a,n,s,l,o=(1<<i)-1,f=0,u=0,h=0;for(a=0;a<r;a++)0===u&&(s=e[f++],u=32,h=0),u>=i?(n=s>>>h&o,u-=i,h+=i):(n=s>>>h&o,u=32-(l=i-u),n|=((s=e[f++])&(1<<l)-1)<<i-l,h=l),t[a]=n;return t},s={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(e){for(var t=65535,i=65535,r=e.length,a=Math.floor(r/2),n=0;a;){var s=a>=359?359:a;a-=s;do{t+=e[n++]<<8,i+=t+=e[n++]}while(--s);t=(65535&t)+(t>>>16),i=(65535&i)+(i>>>16)}return 1&r&&(i+=t+=e[n]<<8),((i=(65535&i)+(i>>>16))<<16|(t=(65535&t)+(t>>>16)))>>>0},readHeaderInfo:function(e,t){var i=t.ptr,r=new Uint8Array(e,i,6),a={};if(a.fileIdentifierString=String.fromCharCode.apply(null,r),0!==a.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+a.fileIdentifierString;i+=6;var n,s=new DataView(e,i,8),l=s.getInt32(0,!0);if(a.fileVersion=l,i+=4,l>=3&&(a.checksum=s.getUint32(4,!0),i+=4),s=new DataView(e,i,12),a.height=s.getUint32(0,!0),a.width=s.getUint32(4,!0),i+=8,l>=4?(a.numDims=s.getUint32(8,!0),i+=4):a.numDims=1,s=new DataView(e,i,40),a.numValidPixel=s.getUint32(0,!0),a.microBlockSize=s.getInt32(4,!0),a.blobSize=s.getInt32(8,!0),a.imageType=s.getInt32(12,!0),a.maxZError=s.getFloat64(16,!0),a.zMin=s.getFloat64(24,!0),a.zMax=s.getFloat64(32,!0),i+=40,t.headerInfo=a,t.ptr=i,l>=3&&(n=l>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(e,i-n,a.blobSize-14))!==a.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(e,t){var i=t.headerInfo,r=this.getDataTypeArray(i.imageType),a=i.numDims*this.getDataTypeSize(i.imageType),n=this.readSubArray(e,t.ptr,r,a),s=this.readSubArray(e,t.ptr+a,r,a);t.ptr+=2*a;var l,o=!0;for(l=0;l<i.numDims;l++)if(n[l]!==s[l]){o=!1;break}return i.minValues=n,i.maxValues=s,o},readSubArray:function(e,t,i,r){var a;if(i===Uint8Array)a=new Uint8Array(e,t,r);else{var n=new ArrayBuffer(r);new Uint8Array(n).set(new Uint8Array(e,t,r)),a=new i(n)}return a},readMask:function(e,t){var i,r,a=t.ptr,n=t.headerInfo,s=n.width*n.height,l=n.numValidPixel,o=new DataView(e,a,4),f={};if(f.numBytes=o.getUint32(0,!0),a+=4,(0===l||s===l)&&0!==f.numBytes)throw"invalid mask";if(0===l)i=new Uint8Array(Math.ceil(s/8)),f.bitset=i,r=new Uint8Array(s),t.pixels.resultMask=r,a+=f.numBytes;else if(f.numBytes>0){i=new Uint8Array(Math.ceil(s/8));var u=(o=new DataView(e,a,f.numBytes)).getInt16(0,!0),h=2,c=0,m=0;do{if(u>0)for(;u--;)i[c++]=o.getUint8(h++);else for(m=o.getUint8(h++),u=-u;u--;)i[c++]=m;u=o.getInt16(h,!0),h+=2}while(h<f.numBytes);if(-32768!==u||c<i.length)throw"Unexpected end of mask RLE encoding";r=new Uint8Array(s);var d=0,g=0;for(g=0;g<s;g++)7&g?(d=i[g>>3],d<<=7&g):d=i[g>>3],128&d&&(r[g]=1);t.pixels.resultMask=r,f.bitset=i,a+=f.numBytes}return t.ptr=a,t.mask=f,!0},readDataOneSweep:function(e,t,i){var r,a=t.ptr,n=t.headerInfo,l=n.numDims,o=n.width*n.height,f=n.imageType,u=n.numValidPixel*s.getDataTypeSize(f)*l,h=t.pixels.resultMask;if(i===Uint8Array)r=new Uint8Array(e,a,u);else{var c=new ArrayBuffer(u);new Uint8Array(c).set(new Uint8Array(e,a,u)),r=new i(c)}if(r.length===o*l)t.pixels.resultPixels=r;else{t.pixels.resultPixels=new i(o*l);var m=0,d=0,g=0,p=0;if(l>1)for(g=0;g<l;g++)for(p=g*o,d=0;d<o;d++)h[d]&&(t.pixels.resultPixels[p+d]=r[m++]);else for(d=0;d<o;d++)h[d]&&(t.pixels.resultPixels[d]=r[m++])}return a+=u,t.ptr=a,!0},readHuffmanTree:function(e,t){var i=this.HUFFMAN_LUT_BITS_MAX,r=new DataView(e,t.ptr,16);if(t.ptr+=16,r.getInt32(0,!0)<2)throw"unsupported Huffman version";var a=r.getInt32(4,!0),n=r.getInt32(8,!0),o=r.getInt32(12,!0);if(n>=o)return!1;var f=new Uint32Array(o-n);s.decodeBits(e,t,f);var u,h,c,m,d=[];for(u=n;u<o;u++)d[h=u-(u<a?0:a)]={first:f[u-n],second:null};var g=e.byteLength-t.ptr,p=Math.ceil(g/4),w=new ArrayBuffer(4*p);new Uint8Array(w).set(new Uint8Array(e,t.ptr,g));var x,k=new Uint32Array(w),y=0,I=0;for(x=k[0],u=n;u<o;u++)(m=d[h=u-(u<a?0:a)].first)>0&&(d[h].second=x<<y>>>32-m,32-y>=m?32===(y+=m)&&(y=0,x=k[++I]):(y+=m-32,x=k[++I],d[h].second|=x>>>32-y));var U=0,b=0,v=new l;for(u=0;u<d.length;u++)void 0!==d[u]&&(U=Math.max(U,d[u].first));b=U>=i?i:U,U>=30&&console.log("WARning, large NUM LUT BITS IS "+U);var T,A,M,V,D,B=[];for(u=n;u<o;u++)if((m=d[h=u-(u<a?0:a)].first)>0)if(T=[m,h],m<=b)for(A=d[h].second<<b-m,M=1<<b-m,c=0;c<M;c++)B[A|c]=T;else for(A=d[h].second,D=v,V=m-1;V>=0;V--)A>>>V&1?(D.right||(D.right=new l),D=D.right):(D.left||(D.left=new l),D=D.left),0===V&&!D.val&&(D.val=T[1]);return{decodeLut:B,numBitsLUTQick:b,numBitsLUT:U,tree:v,stuffedData:k,srcPtr:I,bitPos:y}},readHuffman:function(e,t,i){var r,a,n,s,l,o,f,u,h,c=t.headerInfo,m=c.numDims,d=t.headerInfo.height,g=t.headerInfo.width,p=g*d,w=this.readHuffmanTree(e,t),x=w.decodeLut,k=w.tree,y=w.stuffedData,I=w.srcPtr,U=w.bitPos,b=w.numBitsLUTQick,v=w.numBitsLUT,T=0===t.headerInfo.imageType?128:0,A=t.pixels.resultMask,M=0;U>0&&(I++,U=0);var V,D=y[I],B=1===t.encodeMode,S=new i(p*m),P=S;for(V=0;V<c.numDims;V++){if(m>1&&(P=new i(S.buffer,p*V,p),M=0),t.headerInfo.numValidPixel===g*d)for(u=0,o=0;o<d;o++)for(f=0;f<g;f++,u++){if(a=0,l=s=D<<U>>>32-b,32-U<b&&(l=s|=y[I+1]>>>64-U-b),x[l])a=x[l][1],U+=x[l][0];else for(l=s=D<<U>>>32-v,32-U<v&&(l=s|=y[I+1]>>>64-U-v),r=k,h=0;h<v;h++)if(!(r=s>>>v-h-1&1?r.right:r.left).left&&!r.right){a=r.val,U=U+h+1;break}U>=32&&(U-=32,D=y[++I]),n=a-T,B?(n+=f>0?M:o>0?P[u-g]:M,n&=255,P[u]=n,M=n):P[u]=n}else for(u=0,o=0;o<d;o++)for(f=0;f<g;f++,u++)if(A[u]){if(a=0,l=s=D<<U>>>32-b,32-U<b&&(l=s|=y[I+1]>>>64-U-b),x[l])a=x[l][1],U+=x[l][0];else for(l=s=D<<U>>>32-v,32-U<v&&(l=s|=y[I+1]>>>64-U-v),r=k,h=0;h<v;h++)if(!(r=s>>>v-h-1&1?r.right:r.left).left&&!r.right){a=r.val,U=U+h+1;break}U>=32&&(U-=32,D=y[++I]),n=a-T,B?(f>0&&A[u-1]?n+=M:o>0&&A[u-g]?n+=P[u-g]:n+=M,n&=255,P[u]=n,M=n):P[u]=n}t.ptr=t.ptr+4*(I+1)+(U>0?4:0)}t.pixels.resultPixels=S},decodeBits:function(s,l,o,f,u){var h=l.headerInfo,c=h.fileVersion,m=0,d=new DataView(s,l.ptr,5),g=d.getUint8(0);m++;var p=g>>6,w=0===p?4:3-p,x=(32&g)>0,k=31&g,y=0;if(1===w)y=d.getUint8(m),m++;else if(2===w)y=d.getUint16(m,!0),m+=2;else{if(4!==w)throw"Invalid valid pixel count type";y=d.getUint32(m,!0),m+=4}var I,U,b,v,T,A,M,V,D,B=2*h.maxZError,S=h.numDims>1?h.maxValues[u]:h.zMax;if(x){for(l.counter.lut++,V=d.getUint8(m),m++,v=Math.ceil((V-1)*k/8),T=Math.ceil(v/4),U=new ArrayBuffer(4*T),b=new Uint8Array(U),l.ptr+=m,b.set(new Uint8Array(s,l.ptr,v)),M=new Uint32Array(U),l.ptr+=v,D=0;V-1>>>D;)D++;v=Math.ceil(y*D/8),T=Math.ceil(v/4),U=new ArrayBuffer(4*T),(b=new Uint8Array(U)).set(new Uint8Array(s,l.ptr,v)),I=new Uint32Array(U),l.ptr+=v,A=c>=3?r(M,k,V-1,f,B,S):t(M,k,V-1,f,B,S),c>=3?i(I,o,D,y,A):e(I,o,D,y,A)}else l.counter.bitstuffer++,D=k,l.ptr+=m,D>0&&(v=Math.ceil(y*D/8),T=Math.ceil(v/4),U=new ArrayBuffer(4*T),(b=new Uint8Array(U)).set(new Uint8Array(s,l.ptr,v)),I=new Uint32Array(U),l.ptr+=v,c>=3?null==f?n(I,o,D,y):i(I,o,D,y,!1,f,B,S):null==f?a(I,o,D,y):e(I,o,D,y,!1,f,B,S))},readTiles:function(e,t,i){var r=t.headerInfo,a=r.width,n=r.height,l=r.microBlockSize,o=r.imageType,f=s.getDataTypeSize(o),u=Math.ceil(a/l),h=Math.ceil(n/l);t.pixels.numBlocksY=h,t.pixels.numBlocksX=u,t.pixels.ptr=0;var c,m,d,g,p,w,x,k,y=0,I=0,U=0,b=0,v=0,T=0,A=0,M=0,V=0,D=0,B=0,S=0,P=0,E=0,F=0,N=new i(l*l),Y=n%l||l,L=a%l||l,R=r.numDims,C=t.pixels.resultMask,O=t.pixels.resultPixels;for(U=0;U<h;U++)for(v=U!==h-1?l:Y,b=0;b<u;b++)for(D=U*a*l+b*l,B=a-(T=b!==u-1?l:L),k=0;k<R;k++){if(R>1&&(O=new i(t.pixels.resultPixels.buffer,a*n*k*f,a*n)),A=e.byteLength-t.ptr,m={},F=0,F++,V=(M=(c=new DataView(e,t.ptr,Math.min(10,A))).getUint8(0))>>6&255,(M>>2&15)!==(b*l>>3&15))throw"integrity issue";if((p=3&M)>3)throw t.ptr+=F,"Invalid block encoding ("+p+")";if(2!==p)if(0===p){if(t.counter.uncompressed++,t.ptr+=F,S=(S=v*T*f)<(P=e.byteLength-t.ptr)?S:P,d=new ArrayBuffer(S%f==0?S:S+f-S%f),new Uint8Array(d).set(new Uint8Array(e,t.ptr,S)),g=new i(d),E=0,C)for(y=0;y<v;y++){for(I=0;I<T;I++)C[D]&&(O[D]=g[E++]),D++;D+=B}else for(y=0;y<v;y++){for(I=0;I<T;I++)O[D++]=g[E++];D+=B}t.ptr+=E*f}else if(w=s.getDataTypeUsed(o,V),x=s.getOnePixel(m,F,w,c),F+=s.getDataTypeSize(w),3===p)if(t.ptr+=F,t.counter.constantoffset++,C)for(y=0;y<v;y++){for(I=0;I<T;I++)C[D]&&(O[D]=x),D++;D+=B}else for(y=0;y<v;y++){for(I=0;I<T;I++)O[D++]=x;D+=B}else if(t.ptr+=F,s.decodeBits(e,t,N,x,k),F=0,C)for(y=0;y<v;y++){for(I=0;I<T;I++)C[D]&&(O[D]=N[F++]),D++;D+=B}else for(y=0;y<v;y++){for(I=0;I<T;I++)O[D++]=N[F++];D+=B}else t.counter.constant++,t.ptr+=F}},formatFileInfo:function(e){return{fileIdentifierString:e.headerInfo.fileIdentifierString,fileVersion:e.headerInfo.fileVersion,imageType:e.headerInfo.imageType,height:e.headerInfo.height,width:e.headerInfo.width,numValidPixel:e.headerInfo.numValidPixel,microBlockSize:e.headerInfo.microBlockSize,blobSize:e.headerInfo.blobSize,maxZError:e.headerInfo.maxZError,pixelType:s.getPixelType(e.headerInfo.imageType),eofOffset:e.eofOffset,mask:e.mask?{numBytes:e.mask.numBytes}:null,pixels:{numBlocksX:e.pixels.numBlocksX,numBlocksY:e.pixels.numBlocksY,maxValue:e.headerInfo.zMax,minValue:e.headerInfo.zMin,noDataValue:e.noDataValue}}},constructConstantSurface:function(e){var t=e.headerInfo.zMax,i=e.headerInfo.numDims,r=e.headerInfo.height*e.headerInfo.width,a=r*i,n=0,s=0,l=0,o=e.pixels.resultMask;if(o)if(i>1)for(n=0;n<i;n++)for(l=n*r,s=0;s<r;s++)o[s]&&(e.pixels.resultPixels[l+s]=t);else for(s=0;s<r;s++)o[s]&&(e.pixels.resultPixels[s]=t);else if(e.pixels.resultPixels.fill)e.pixels.resultPixels.fill(t);else for(s=0;s<a;s++)e.pixels.resultPixels[s]=t},getDataTypeArray:function(e){var t;switch(e){case 0:t=Int8Array;break;case 1:t=Uint8Array;break;case 2:t=Int16Array;break;case 3:t=Uint16Array;break;case 4:t=Int32Array;break;case 5:t=Uint32Array;break;case 6:default:t=Float32Array;break;case 7:t=Float64Array}return t},getPixelType:function(e){var t;switch(e){case 0:t="S8";break;case 1:t="U8";break;case 2:t="S16";break;case 3:t="U16";break;case 4:t="S32";break;case 5:t="U32";break;case 6:default:t="F32";break;case 7:t="F64"}return t},isValidPixelValue:function(e,t){if(null==t)return!1;var i;switch(e){case 0:i=t>=-128&&t<=127;break;case 1:i=t>=0&&t<=255;break;case 2:i=t>=-32768&&t<=32767;break;case 3:i=t>=0&&t<=65536;break;case 4:i=t>=-2147483648&&t<=2147483647;break;case 5:i=t>=0&&t<=4294967296;break;case 6:i=t>=-34027999387901484e22&&t<=34027999387901484e22;break;case 7:i=t>=5e-324&&t<=17976931348623157e292;break;default:i=!1}return i},getDataTypeSize:function(e){var t=0;switch(e){case 0:case 1:t=1;break;case 2:case 3:t=2;break;case 4:case 5:case 6:t=4;break;case 7:t=8;break;default:t=e}return t},getDataTypeUsed:function(e,t){var i=e;switch(e){case 2:case 4:i=e-t;break;case 3:case 5:i=e-2*t;break;case 6:i=0===t?e:1===t?2:1;break;case 7:i=0===t?e:e-2*t+1;break;default:i=e}return i},getOnePixel:function(e,t,i,r){var a=0;switch(i){case 0:a=r.getInt8(t);break;case 1:a=r.getUint8(t);break;case 2:a=r.getInt16(t,!0);break;case 3:a=r.getUint16(t,!0);break;case 4:a=r.getInt32(t,!0);break;case 5:a=r.getUInt32(t,!0);break;case 6:a=r.getFloat32(t,!0);break;case 7:a=r.getFloat64(t,!0);break;default:throw"the decoder does not understand this pixel type"}return a}},l=function(e,t,i){this.val=e,this.left=t,this.right=i},o={decode:function(e,t){var i=(t=t||{}).noDataValue,r=0,a={};if(a.ptr=t.inputOffset||0,a.pixels={},s.readHeaderInfo(e,a)){var n=a.headerInfo,l=n.fileVersion,o=s.getDataTypeArray(n.imageType);s.readMask(e,a),n.numValidPixel!==n.width*n.height&&!a.pixels.resultMask&&(a.pixels.resultMask=t.maskData);var f,u=n.width*n.height;if(a.pixels.resultPixels=new o(u*n.numDims),a.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0},0!==n.numValidPixel)if(n.zMax===n.zMin)s.constructConstantSurface(a);else if(l>=4&&s.checkMinMaxRanges(e,a))s.constructConstantSurface(a);else{var h=new DataView(e,a.ptr,2),c=h.getUint8(0);if(a.ptr++,c)s.readDataOneSweep(e,a,o);else if(l>1&&n.imageType<=1&&Math.abs(n.maxZError-.5)<1e-5){var m=h.getUint8(1);if(a.ptr++,a.encodeMode=m,m>2||l<4&&m>1)throw"Invalid Huffman flag "+m;m?s.readHuffman(e,a,o):s.readTiles(e,a,o)}else s.readTiles(e,a,o)}a.eofOffset=a.ptr,t.inputOffset?(f=a.headerInfo.blobSize+t.inputOffset-a.ptr,Math.abs(f)>=1&&(a.eofOffset=t.inputOffset+a.headerInfo.blobSize)):(f=a.headerInfo.blobSize-a.ptr,Math.abs(f)>=1&&(a.eofOffset=a.headerInfo.blobSize));var d={width:n.width,height:n.height,pixelData:a.pixels.resultPixels,minValue:n.zMin,maxValue:n.zMax,validPixelCount:n.numValidPixel,dimCount:n.numDims,dimStats:{minValues:n.minValues,maxValues:n.maxValues},maskData:a.pixels.resultMask};if(a.pixels.resultMask&&s.isValidPixelValue(n.imageType,i)){var g=a.pixels.resultMask;for(r=0;r<u;r++)g[r]||(d.pixelData[r]=i);d.noDataValue=i}return a.noDataValue=i,t.returnFileInfo&&(d.fileInfo=s.formatFileInfo(a)),d}},getBandCount:function(e){for(var t=0,i=0,r={ptr:0,pixels:{}};i<e.byteLength-58;)s.readHeaderInfo(e,r),i+=r.headerInfo.blobSize,t++,r.ptr=i;return t}};return o}(),f=function(){var e=new ArrayBuffer(4),t=new Uint8Array(e);return new Uint32Array(e)[0]=1,1===t[0]}(),u={decode:function(e,t){if(!f)throw"Big endian system is not supported.";var i,r,a,n,s,u=(t=t||{}).inputOffset||0,h=new Uint8Array(e,u,10),c=String.fromCharCode.apply(null,h);if("CntZImage"===c.trim())i=l,r=1;else{if("Lerc2"!==c.substring(0,5))throw"Unexpected file identifier string: "+c;i=o,r=2}for(var m,d,g,p=0,w=e.byteLength-10,x=[],k={width:0,height:0,pixels:[],pixelType:t.pixelType,mask:null,statistics:[]};u<w;){var y=i.decode(e,{inputOffset:u,encodedMaskData:m,maskData:g,returnMask:0===p,returnEncodedMask:0===p,returnFileInfo:!0,pixelType:t.pixelType||null,noDataValue:t.noDataValue||null});u=y.fileInfo.eofOffset,0===p&&(m=y.encodedMaskData,g=y.maskData,k.width=y.width,k.height=y.height,k.dimCount=y.dimCount||1,k.pixelType=y.pixelType||y.fileInfo.pixelType,k.mask=y.maskData),r>1&&y.fileInfo.mask&&y.fileInfo.mask.numBytes>0&&x.push(y.maskData),p++,k.pixels.push(y.pixelData),k.statistics.push({minValue:y.minValue,maxValue:y.maxValue,noDataValue:y.noDataValue,dimStats:y.dimStats})}if(r>1&&x.length>1){for(s=k.width*k.height,k.bandMasks=x,(g=new Uint8Array(s)).set(x[0]),a=1;a<x.length;a++)for(d=x[a],n=0;n<s;n++)g[n]=g[n]&d[n];k.maskData=g}return k}};"function"==typeof define&&define.amd?define([],(function(){return u})):typeof t<"u"&&t.exports?t.exports=u:this.Lerc=u}()})),Ur={NONE:0,LERC:1},or=Object.freeze(Ur),Q={};Q.DEFAULT_STRUCTURE=Object.freeze({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});var Ye=new ie,Tr=new xe,kr=new ie,yr=new ie;Q.computeVertices=function(e){if(!G(e)||!G(e.heightmap))throw new he("options.heightmap is required.");if(!G(e.width)||!G(e.height))throw new he("options.width and options.height are required.");if(!G(e.nativeRectangle))throw new he("options.nativeRectangle is required.");if(!G(e.skirtHeight))throw new he("options.skirtHeight is required.");let t,i,r,a,n=Math.cos,s=Math.sin,l=Math.sqrt,o=Math.atan,f=Math.exp,u=ge.PI_OVER_TWO,h=ge.toRadians,c=e.heightmap,m=e.width,d=e.height,g=e.skirtHeight,p=g>0,w=Y(e.isGeographic,!0),x=Y(e.ellipsoid,Ie.default),k=1/x.maximumRadius,y=ae.clone(e.nativeRectangle),I=ae.clone(e.rectangle);G(I)?(t=I.west,i=I.south,r=I.east,a=I.north):w?(t=h(y.west),i=h(y.south),r=h(y.east),a=h(y.north)):(t=y.west*k,i=u-2*o(f(-y.south*k)),r=y.east*k,a=u-2*o(f(-y.north*k)));let U=e.relativeToCenter,b=G(U);U=b?U:ie.ZERO;let v=Y(e.includeWebMercatorT,!1),T=Y(e.exaggeration,1),A=Y(e.exaggerationRelativeHeight,0),M=1!==T,V=Y(e.structure,Q.DEFAULT_STRUCTURE),D=Y(V.heightScale,Q.DEFAULT_STRUCTURE.heightScale),B=Y(V.heightOffset,Q.DEFAULT_STRUCTURE.heightOffset),S=Y(V.elementsPerHeight,Q.DEFAULT_STRUCTURE.elementsPerHeight),P=Y(V.stride,Q.DEFAULT_STRUCTURE.stride),E=Y(V.elementMultiplier,Q.DEFAULT_STRUCTURE.elementMultiplier),F=Y(V.isBigEndian,Q.DEFAULT_STRUCTURE.isBigEndian),N=ae.computeWidth(y),L=ae.computeHeight(y),R=N/(m-1),C=L/(d-1);w||(N*=k,L*=k);let O,z,H=x.radiiSquared,_=H.x,j=H.y,X=H.z,W=65536,Z=-65536,K=rr.eastNorthUpToFixedFrame(U,x),q=xe.inverseTransformation(K,Tr);v&&(O=Ue.geodeticLatitudeToMercatorAngle(i),z=1/(Ue.geodeticLatitudeToMercatorAngle(a)-O));let J=kr;J.x=Number.POSITIVE_INFINITY,J.y=Number.POSITIVE_INFINITY,J.z=Number.POSITIVE_INFINITY;let $=yr;$.x=Number.NEGATIVE_INFINITY,$.y=Number.NEGATIVE_INFINITY,$.z=Number.NEGATIVE_INFINITY;let ee=Number.POSITIVE_INFINITY,te=m*d,re=te+(g>0?2*m+2*d:0),ne=new Array(re),se=new Array(re),le=new Array(re),oe=v?new Array(re):[],fe=M?new Array(re):[],ue=0,ce=d,me=0,de=m;p&&(--ue,++ce,--me,++de);let pe=1e-5;for(let e=ue;e<ce;++e){let p=e;p<0&&(p=0),p>=d&&(p=d-1);let I=y.north-C*p;I=w?h(I):u-2*o(f(-I*k));let U=(I-i)/(a-i);U=ge.clamp(U,0,1);let b=e===ue,T=e===ce-1;g>0&&(b?I+=pe*L:T&&(I-=pe*L));let A,V=n(I),Y=s(I),H=X*Y;v&&(A=(Ue.geodeticLatitudeToMercatorAngle(I)-O)*z);for(let e=me;e<de;++e){let i=e;i<0&&(i=0),i>=m&&(i=m-1);let a,o=p*(m*P)+i*P;if(1===S)a=c[o];else{let e;if(a=0,F)for(e=0;e<S;++e)a=a*E+c[o+e];else for(e=S-1;e>=0;--e)a=a*E+c[o+e]}a=a*D+B,Z=Math.max(Z,a),W=Math.min(W,a);let f=y.west+R*i;w?f=h(f):f*=k;let u=(f-t)/(r-t);u=ge.clamp(u,0,1);let I=p*m+i;if(g>0){let t=e===me,r=e===de-1,n=b||T||t||r;if((b||T)&&(t||r))continue;n&&(a-=g,t?(I=te+(d-p-1),f-=pe*N):T?I=te+d+(m-i-1):r?(I=te+d+m+p,f+=pe*N):b&&(I=te+d+m+d+i))}let L=V*n(f),C=V*s(f),O=_*L,z=j*C,G=1/l(O*L+z*C+H*Y),X=O*G,Q=z*G,K=H*G,re=new ie;re.x=X+L*a,re.y=Q+C*a,re.z=K+Y*a,xe.multiplyByPoint(q,re,Ye),ie.minimumByComponent(Ye,J,J),ie.maximumByComponent(Ye,$,$),ee=Math.min(ee,a),ne[I]=re,le[I]=new er(u,U),se[I]=a,v&&(oe[I]=A),M&&(fe[I]=x.geodeticSurfaceNormal(re))}}let we,ke,ye=ir.fromPoints(ne);G(I)&&(we=ar.fromRectangle(I,W,Z,x)),b&&(ke=new sr(x).computeHorizonCullingPointPossiblyUnderEllipsoid(U,ne,W));let be=new nr(J,$,U),ve=new fr(U,be,ee,Z,K,!1,v,M,T,A),Te=new Float32Array(re*ve.stride),Ae=0;for(let e=0;e<re;++e)Ae=ve.encode(Te,Ae,ne[e],le[e],se[e],void 0,oe[e],fe[e]);return{vertices:Te,maximumHeight:Z,minimumHeight:W,encoding:ve,boundingSphere3D:ye,orientedBoundingBox:we,occludeePointInScaledSpace:ke}};var lr=Q,cr=xr(ur(),1);function Mr(e,t){if(e.encoding===or.LERC){let t;try{t=cr.default.decode(e.heightmap)}catch(e){throw new He(e)}if(t.statistics[0].minValue===Number.MAX_VALUE)throw new He("Invalid tile data");e.heightmap=t.pixels[0],e.width=t.width,e.height=t.height}e.ellipsoid=Ie.clone(e.ellipsoid),e.rectangle=ae.clone(e.rectangle);let i=lr.computeVertices(e),r=i.vertices;return t.push(r.buffer),{vertices:r.buffer,numberOfAttributes:i.encoding.stride,minimumHeight:i.minimumHeight,maximumHeight:i.maximumHeight,gridWidth:e.width,gridHeight:e.height,boundingSphere3D:i.boundingSphere3D,orientedBoundingBox:i.orientedBoundingBox,occludeePointInScaledSpace:i.occludeePointInScaledSpace,encoding:i.encoding,westIndicesSouthToNorth:i.westIndicesSouthToNorth,southIndicesEastToWest:i.southIndicesEastToWest,eastIndicesNorthToSouth:i.eastIndicesNorthToSouth,northIndicesWestToEast:i.northIndicesWestToEast}}var Pr=tr(Mr);export{Pr as default};
@@ -0,0 +1,26 @@
1
+ /* Copyright 2015-2018 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */
2
+
3
+ /**
4
+ * @license
5
+ * Cesium - https://github.com/CesiumGS/cesium
6
+ * Version 1.120
7
+ *
8
+ * Copyright 2011-2022 Cesium Contributors
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ *
22
+ * Columbus View (Pat. Pend.)
23
+ *
24
+ * Portions licensed separately.
25
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
26
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createVerticesFromQuantizedTerrainMesh.js.LICENSE.txt */
2
+ import{a as Ct,b as vt}from"./chunk-QALYXFKR.js";import{a as Mt}from"./chunk-RIW4PILL.js";import{a as z}from"./chunk-NVJ64HSB.js";import"./chunk-OKAWXMC7.js";import{a as Wt}from"./chunk-CRU5R7HF.js";import{a as X}from"./chunk-DBOVA5XH.js";import"./chunk-PPN6SLYU.js";import{b as U,g as bt,h as At}from"./chunk-SOWUYSYI.js";import"./chunk-I36V6CKP.js";import{a as P,b as wt,c as lt,d as pt}from"./chunk-WG62ICZK.js";import{a as f}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import{a as m}from"./chunk-G4IO3CPJ.js";import{e as w}from"./chunk-GBRF7ES3.js";function T(){m.throwInstantiationError()}Object.defineProperties(T.prototype,{errorEvent:{get:m.throwInstantiationError},credit:{get:m.throwInstantiationError},tilingScheme:{get:m.throwInstantiationError},hasWaterMask:{get:m.throwInstantiationError},hasVertexNormals:{get:m.throwInstantiationError},availability:{get:m.throwInstantiationError}});var Ot=[];T.getRegularGridIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=Ot[t];w(r)||(Ot[t]=r=[]);let n=r[e];return w(n)||(n=t*e<f.SIXTY_FOUR_KILOBYTES?r[e]=new Uint16Array((t-1)*(e-1)*6):r[e]=new Uint32Array((t-1)*(e-1)*6),Pt(t,e,n,0)),n};var Gt=[];T.getRegularGridIndicesAndEdgeIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=Gt[t];w(r)||(Gt[t]=r=[]);let n=r[e];if(!w(n)){let i=T.getRegularGridIndices(t,e),o=Lt(t,e),a=o.westIndicesSouthToNorth,s=o.southIndicesEastToWest,h=o.eastIndicesNorthToSouth,u=o.northIndicesWestToEast;n=r[e]={indices:i,westIndicesSouthToNorth:a,southIndicesEastToWest:s,eastIndicesNorthToSouth:h,northIndicesWestToEast:u}}return n};var kt=[];function Lt(t,e){let r,n=new Array(e),i=new Array(t),o=new Array(e),a=new Array(t);for(r=0;r<t;++r)a[r]=r,i[r]=t*e-1-r;for(r=0;r<e;++r)o[r]=(r+1)*t-1,n[r]=(e-r-1)*t;return{westIndicesSouthToNorth:n,southIndicesEastToWest:i,eastIndicesNorthToSouth:o,northIndicesWestToEast:a}}function Pt(t,e,r,n){let i=0;for(let o=0;o<e-1;++o){for(let e=0;e<t-1;++e){let e=i,o=e+t,a=o+1,s=e+1;r[n++]=e,r[n++]=o,r[n++]=s,r[n++]=s,r[n++]=o,r[n++]=a,++i}++i}}function Z(t,e,r,n){let i=t[0],o=t.length;for(let a=1;a<o;++a){let o=t[a];r[n++]=i,r[n++]=o,r[n++]=e,r[n++]=e,r[n++]=o,r[n++]=e+1,i=o,++e}return n}T.getRegularGridAndSkirtIndicesAndEdgeIndices=function(t,e){if(t*e>=f.FOUR_GIGABYTES)throw new m("The total number of vertices (width * height) must be less than 4,294,967,296.");let r=kt[t];w(r)||(kt[t]=r=[]);let n=r[e];if(!w(n)){let i=t*e,o=(t-1)*(e-1)*6,a=2*t+2*e,s=i+a,h=o+6*Math.max(0,a-4),u=Lt(t,e),c=u.westIndicesSouthToNorth,l=u.southIndicesEastToWest,I=u.eastIndicesNorthToSouth,d=u.northIndicesWestToEast,m=X.createTypedArray(s,h);Pt(t,e,m,0),T.addSkirtIndices(c,l,I,d,i,m,o),n=r[e]={indices:m,westIndicesSouthToNorth:c,southIndicesEastToWest:l,eastIndicesNorthToSouth:I,northIndicesWestToEast:d,indexCountWithoutSkirts:o}}return n},T.addSkirtIndices=function(t,e,r,n,i,o,a){let s=i;a=Z(t,s,o,a),s+=t.length,a=Z(e,s,o,a),s+=e.length,a=Z(r,s,o,a),s+=r.length,Z(n,s,o,a)},T.heightmapTerrainQuality=.25,T.getEstimatedLevelZeroGeometricErrorForAHeightmap=function(t,e,r){return 2*t.maximumRadius*Math.PI*T.heightmapTerrainQuality/(e*r)},T.prototype.requestTileGeometry=m.throwInstantiationError,T.prototype.getLevelMaximumGeometricError=m.throwInstantiationError,T.prototype.getTileDataAvailable=m.throwInstantiationError,T.prototype.loadTileDataAvailability=m.throwInstantiationError;var Vt=T,ht=32767,D=new P,Xt=new P,Zt=new P,u=new wt,Y=new lt;function Jt(t,e){let r,n,i=t.quantizedVertices,o=i.length/3,a=t.octEncodedNormals,s=t.westIndices.length+t.eastIndices.length+t.southIndices.length+t.northIndices.length,h=t.includeWebMercatorT,c=t.exaggeration,l=t.exaggerationRelativeHeight,I=1!==c,d=At.clone(t.rectangle),m=d.west,T=d.south,g=d.east,p=d.north,N=pt.clone(t.ellipsoid),E=t.minimumHeight,y=t.maximumHeight,S=t.relativeToCenter,A=bt.eastNorthUpToFixedFrame(S,N),b=U.inverseTransformation(A,new U);h&&(r=z.geodeticLatitudeToMercatorAngle(T),n=1/(z.geodeticLatitudeToMercatorAngle(p)-r));let k=i.subarray(0,o),x=i.subarray(o,2*o),G=i.subarray(2*o,3*o),W=w(a),M=new Array(o),v=new Array(o),F=new Array(o),O=h?new Array(o):[],C=I?new Array(o):[],H=Xt;H.x=Number.POSITIVE_INFINITY,H.y=Number.POSITIVE_INFINITY,H.z=Number.POSITIVE_INFINITY;let V=Zt;V.x=Number.NEGATIVE_INFINITY,V.y=Number.NEGATIVE_INFINITY,V.z=Number.NEGATIVE_INFINITY;let _=Number.POSITIVE_INFINITY,j=Number.NEGATIVE_INFINITY,R=Number.POSITIVE_INFINITY,L=Number.NEGATIVE_INFINITY;for(let t=0;t<o;++t){let e=k[t],i=x[t],o=e/ht,a=i/ht,s=f.lerp(E,y,G[t]/ht);u.longitude=f.lerp(m,g,o),u.latitude=f.lerp(T,p,a),u.height=s,_=Math.min(u.longitude,_),j=Math.max(u.longitude,j),R=Math.min(u.latitude,R),L=Math.max(u.latitude,L);let c=N.cartographicToCartesian(u);M[t]=new lt(o,a),v[t]=s,F[t]=c,h&&(O[t]=(z.geodeticLatitudeToMercatorAngle(u.latitude)-r)*n),I&&(C[t]=N.geodeticSurfaceNormal(c)),U.multiplyByPoint(b,c,D),P.minimumByComponent(D,H,H),P.maximumByComponent(D,V,V)}let B,Z=tt(t.westIndices,(function(t,e){return M[t].y-M[e].y})),K=tt(t.eastIndices,(function(t,e){return M[e].y-M[t].y})),Q=tt(t.southIndices,(function(t,e){return M[e].x-M[t].x})),q=tt(t.northIndices,(function(t,e){return M[t].x-M[e].x}));E<0&&(B=new Ct(N).computeHorizonCullingPointPossiblyUnderEllipsoid(S,F,E));let et=E;et=Math.min(et,J(t.westIndices,t.westSkirtHeight,v,M,d,N,b,H,V)),et=Math.min(et,J(t.southIndices,t.southSkirtHeight,v,M,d,N,b,H,V)),et=Math.min(et,J(t.eastIndices,t.eastSkirtHeight,v,M,d,N,b,H,V)),et=Math.min(et,J(t.northIndices,t.northSkirtHeight,v,M,d,N,b,H,V));let rt=new Wt(H,V,S),nt=new vt(S,rt,et,y,A,W,h,I,c,l),it=nt.stride,ot=new Float32Array(o*it+s*it),at=0;for(let t=0;t<o;++t){if(W){let e=2*t;Y.x=a[e],Y.y=a[e+1]}at=nt.encode(ot,at,F[t],M[t],v[t],Y,O[t],C[t])}let st=Math.max(0,2*(s-4)),ut=t.indices.length+3*st,ct=X.createTypedArray(o+s,ut);ct.set(t.indices,0);let It=1e-4,dt=(j-_)*It,mt=(L-R)*It,Tt=-dt,gt=dt,ft=mt,wt=-mt,Nt=o*it;return $(ot,Nt,Z,nt,v,M,a,N,d,t.westSkirtHeight,r,n,Tt,0),Nt+=t.westIndices.length*it,$(ot,Nt,Q,nt,v,M,a,N,d,t.southSkirtHeight,r,n,0,wt),Nt+=t.southIndices.length*it,$(ot,Nt,K,nt,v,M,a,N,d,t.eastSkirtHeight,r,n,gt,0),Nt+=t.eastIndices.length*it,$(ot,Nt,q,nt,v,M,a,N,d,t.northSkirtHeight,r,n,0,ft),Vt.addSkirtIndices(Z,Q,K,q,o,ct,t.indices.length),e.push(ot.buffer,ct.buffer),{vertices:ot.buffer,indices:ct.buffer,westIndicesSouthToNorth:Z,southIndicesEastToWest:Q,eastIndicesNorthToSouth:K,northIndicesWestToEast:q,vertexStride:it,center:S,minimumHeight:E,maximumHeight:y,occludeePointInScaledSpace:B,encoding:nt,indexCountWithoutSkirts:t.indices.length}}function J(t,e,r,n,i,o,a,s,h){let c=Number.POSITIVE_INFINITY,l=i.north,I=i.south,d=i.east,m=i.west;d<m&&(d+=f.TWO_PI);let T=t.length;for(let i=0;i<T;++i){let T=t[i],g=r[T],w=n[T];u.longitude=f.lerp(m,d,w.x),u.latitude=f.lerp(I,l,w.y),u.height=g-e;let p=o.cartographicToCartesian(u,D);U.multiplyByPoint(a,p,p),P.minimumByComponent(p,s,s),P.maximumByComponent(p,h,h),c=Math.min(c,u.height)}return c}function $(t,e,r,n,i,o,a,s,h,c,l,I,d,m){let T=w(a),g=h.north,p=h.south,N=h.east,E=h.west;N<E&&(N+=f.TWO_PI);let y=r.length;for(let h=0;h<y;++h){let w=r[h],y=i[w],S=o[w];u.longitude=f.lerp(E,N,S.x)+d,u.latitude=f.lerp(p,g,S.y)+m,u.height=y-c;let A,b,k=s.cartographicToCartesian(u,D);if(T){let t=2*w;Y.x=a[t],Y.y=a[t+1]}n.hasWebMercatorT&&(A=(z.geodeticLatitudeToMercatorAngle(u.latitude)-l)*I),n.hasGeodeticSurfaceNormals&&(b=s.geodeticSurfaceNormal(k)),e=n.encode(t,e,k,S,u.height,Y,A,b)}}function tt(t,e){let r;return"function"==typeof t.slice&&(r=t.slice(),"function"!=typeof r.sort&&(r=void 0)),w(r)||(r=Array.prototype.slice.call(t)),r.sort(e),r}var Se=Mt(Jt);export{Se as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createWallGeometry.js.LICENSE.txt */
2
+ import{a as nt}from"./chunk-WN2OOK5W.js";import"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import{a as _}from"./chunk-TXLODGLR.js";import"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as ot}from"./chunk-DBOVA5XH.js";import{a as it}from"./chunk-RHEGXTJ5.js";import{b as tt,c as et,d as S}from"./chunk-CWBIOT2C.js";import{d as I}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as R}from"./chunk-I36V6CKP.js";import{a as s,d as l}from"./chunk-WG62ICZK.js";import{a as J}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as w}from"./chunk-KGKDCW56.js";import{a as P}from"./chunk-G4IO3CPJ.js";import{e as r}from"./chunk-GBRF7ES3.js";var Q=new s,Y=new s,lt=new s,st=new s,pt=new s,ut=new s,ft=new s;function k(t){let e=(t=w(t,w.EMPTY_OBJECT)).positions,i=t.maximumHeights,n=t.minimumHeights;if(!r(e))throw new P("options.positions is required.");if(r(i)&&i.length!==e.length)throw new P("options.positions and options.maximumHeights must have the same length.");if(r(n)&&n.length!==e.length)throw new P("options.positions and options.minimumHeights must have the same length.");let o=w(t.vertexFormat,_.DEFAULT),a=w(t.granularity,J.RADIANS_PER_DEGREE),m=w(t.ellipsoid,l.default);this._positions=e,this._minimumHeights=n,this._maximumHeights=i,this._vertexFormat=_.clone(o),this._granularity=a,this._ellipsoid=l.clone(m),this._workerName="createWallGeometry";let p=1+e.length*s.packedLength+2;r(n)&&(p+=n.length),r(i)&&(p+=i.length),this.packedLength=p+l.packedLength+_.packedLength+1}k.pack=function(t,e,i){if(!r(t))throw new P("value is required");if(!r(e))throw new P("array is required");i=w(i,0);let n,o=t._positions,a=o.length;for(e[i++]=a,n=0;n<a;++n,i+=s.packedLength)s.pack(o[n],e,i);let m=t._minimumHeights;if(a=r(m)?m.length:0,e[i++]=a,r(m))for(n=0;n<a;++n)e[i++]=m[n];let p=t._maximumHeights;if(a=r(p)?p.length:0,e[i++]=a,r(p))for(n=0;n<a;++n)e[i++]=p[n];return l.pack(t._ellipsoid,e,i),i+=l.packedLength,_.pack(t._vertexFormat,e,i),e[i+=_.packedLength]=t._granularity,e};var mt=l.clone(l.UNIT_SPHERE),rt=new _,V={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:mt,vertexFormat:rt,granularity:void 0};k.unpack=function(t,e,i){if(!r(t))throw new P("array is required");e=w(e,0);let n,o,a,m=t[e++],p=new Array(m);for(n=0;n<m;++n,e+=s.packedLength)p[n]=s.unpack(t,e);if(m=t[e++],m>0)for(o=new Array(m),n=0;n<m;++n)o[n]=t[e++];if(m=t[e++],m>0)for(a=new Array(m),n=0;n<m;++n)a[n]=t[e++];let u=l.unpack(t,e,mt);e+=l.packedLength;let h=_.unpack(t,e,rt),c=t[e+=_.packedLength];return r(i)?(i._positions=p,i._minimumHeights=o,i._maximumHeights=a,i._ellipsoid=l.clone(u,i._ellipsoid),i._vertexFormat=_.clone(h,i._vertexFormat),i._granularity=c,i):(V.positions=p,V.minimumHeights=o,V.maximumHeights=a,V.granularity=c,new k(V))},k.fromConstantHeights=function(t){let e=(t=w(t,w.EMPTY_OBJECT)).positions;if(!r(e))throw new P("options.positions is required.");let i,n,o=t.minimumHeight,s=t.maximumHeight,a=r(o),m=r(s);if(a||m){let t=e.length;i=a?new Array(t):void 0,n=m?new Array(t):void 0;for(let e=0;e<t;++e)a&&(i[e]=o),m&&(n[e]=s)}return new k({positions:e,maximumHeights:n,minimumHeights:i,ellipsoid:t.ellipsoid,vertexFormat:t.vertexFormat})},k.createGeometry=function(t){let e=t._positions,i=t._minimumHeights,n=t._maximumHeights,o=t._vertexFormat,a=t._granularity,m=t._ellipsoid,l=nt.computePositions(m,e,n,i,a,!0);if(!r(l))return;let p=l.bottomPositions,u=l.topPositions,h=l.numCorners,c=u.length,g=2*c,f=o.position?new Float64Array(g):void 0,w=o.normal?new Float32Array(g):void 0,k=o.tangent?new Float32Array(g):void 0,d=o.bitangent?new Float32Array(g):void 0,_=o.st?new Float32Array(g/3*2):void 0,y=0,v=0,A=0,x=0,P=0,L=ft,H=ut,E=pt,T=!0;c/=3;let j,F=0,O=1/(c-h-1);for(j=0;j<c;++j){let t=3*j,e=s.fromArray(u,t,Q),i=s.fromArray(p,t,Y);if(o.position&&(f[y++]=i.x,f[y++]=i.y,f[y++]=i.z,f[y++]=e.x,f[y++]=e.y,f[y++]=e.z),o.st&&(_[P++]=F,_[P++]=0,_[P++]=F,_[P++]=1),o.normal||o.tangent||o.bitangent){let i=s.clone(s.ZERO,st),n=s.subtract(e,m.geodeticSurfaceNormal(e,Y),Y);if(j+1<c&&(i=s.fromArray(u,t+3,st)),T){let t=s.subtract(i,e,lt),r=s.subtract(n,e,Q);L=s.normalize(s.cross(r,t,L),L),T=!1}s.equalsEpsilon(e,i,J.EPSILON10)?T=!0:(F+=O,o.tangent&&(H=s.normalize(s.subtract(i,e,H),H)),o.bitangent&&(E=s.normalize(s.cross(L,H,E),E))),o.normal&&(w[v++]=L.x,w[v++]=L.y,w[v++]=L.z,w[v++]=L.x,w[v++]=L.y,w[v++]=L.z),o.tangent&&(k[x++]=H.x,k[x++]=H.y,k[x++]=H.z,k[x++]=H.x,k[x++]=H.y,k[x++]=H.z),o.bitangent&&(d[A++]=E.x,d[A++]=E.y,d[A++]=E.z,d[A++]=E.x,d[A++]=E.y,d[A++]=E.z)}}let b=new it;o.position&&(b.position=new S({componentDatatype:R.DOUBLE,componentsPerAttribute:3,values:f})),o.normal&&(b.normal=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:w})),o.tangent&&(b.tangent=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:k})),o.bitangent&&(b.bitangent=new S({componentDatatype:R.FLOAT,componentsPerAttribute:3,values:d})),o.st&&(b.st=new S({componentDatatype:R.FLOAT,componentsPerAttribute:2,values:_}));let D=g/3;g-=6*(h+1);let G=ot.createTypedArray(D,g),N=0;for(j=0;j<D-2;j+=2){let t=j,e=j+2,i=s.fromArray(f,3*t,Q),n=s.fromArray(f,3*e,Y);if(s.equalsEpsilon(i,n,J.EPSILON10))continue;let r=j+1,o=j+3;G[N++]=r,G[N++]=t,G[N++]=o,G[N++]=o,G[N++]=t,G[N++]=e}return new et({attributes:b,indices:G,primitiveType:tt.TRIANGLES,boundingSphere:new I.fromVertices(f)})};var X=k;function ht(t,e){return r(e)&&(t=X.unpack(t,e)),t._ellipsoid=l.clone(t._ellipsoid),X.createGeometry(t)}var Ot=ht;export{Ot as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see createWallOutlineGeometry.js.LICENSE.txt */
2
+ import{a as B}from"./chunk-WN2OOK5W.js";import"./chunk-T52RL3ZJ.js";import"./chunk-O7LU3SZT.js";import"./chunk-M6TFP6VU.js";import"./chunk-Q6IZOLLM.js";import"./chunk-WZ52TQTL.js";import"./chunk-5KPQNVA2.js";import{a as W}from"./chunk-DBOVA5XH.js";import{a as N}from"./chunk-RHEGXTJ5.js";import{b as R,c as S,d as M}from"./chunk-CWBIOT2C.js";import{d as D}from"./chunk-PPN6SLYU.js";import"./chunk-SOWUYSYI.js";import{a as q}from"./chunk-I36V6CKP.js";import{a as p,d as l}from"./chunk-WG62ICZK.js";import{a as O}from"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import"./chunk-RAWIUDJR.js";import{a as d}from"./chunk-KGKDCW56.js";import{a as _}from"./chunk-G4IO3CPJ.js";import{e as m}from"./chunk-GBRF7ES3.js";var U=new p,z=new p;function w(i){let t=(i=d(i,d.EMPTY_OBJECT)).positions,e=i.maximumHeights,o=i.minimumHeights;if(!m(t))throw new _("options.positions is required.");if(m(e)&&e.length!==t.length)throw new _("options.positions and options.maximumHeights must have the same length.");if(m(o)&&o.length!==t.length)throw new _("options.positions and options.minimumHeights must have the same length.");let n=d(i.granularity,O.RADIANS_PER_DEGREE),r=d(i.ellipsoid,l.default);this._positions=t,this._minimumHeights=o,this._maximumHeights=e,this._granularity=n,this._ellipsoid=l.clone(r),this._workerName="createWallOutlineGeometry";let s=1+t.length*p.packedLength+2;m(o)&&(s+=o.length),m(e)&&(s+=e.length),this.packedLength=s+l.packedLength+1}w.pack=function(i,t,e){if(!m(i))throw new _("value is required");if(!m(t))throw new _("array is required");e=d(e,0);let o,n=i._positions,r=n.length;for(t[e++]=r,o=0;o<r;++o,e+=p.packedLength)p.pack(n[o],t,e);let s=i._minimumHeights;if(r=m(s)?s.length:0,t[e++]=r,m(s))for(o=0;o<r;++o)t[e++]=s[o];let a=i._maximumHeights;if(r=m(a)?a.length:0,t[e++]=r,m(a))for(o=0;o<r;++o)t[e++]=a[o];return l.pack(i._ellipsoid,t,e),t[e+=l.packedLength]=i._granularity,t};var G=l.clone(l.UNIT_SPHERE),b={positions:void 0,minimumHeights:void 0,maximumHeights:void 0,ellipsoid:G,granularity:void 0};w.unpack=function(i,t,e){if(!m(i))throw new _("array is required");t=d(t,0);let o,n,r,s=i[t++],a=new Array(s);for(o=0;o<s;++o,t+=p.packedLength)a[o]=p.unpack(i,t);if(s=i[t++],s>0)for(n=new Array(s),o=0;o<s;++o)n[o]=i[t++];if(s=i[t++],s>0)for(r=new Array(s),o=0;o<s;++o)r[o]=i[t++];let h=l.unpack(i,t,G),u=i[t+=l.packedLength];return m(e)?(e._positions=a,e._minimumHeights=n,e._maximumHeights=r,e._ellipsoid=l.clone(h,e._ellipsoid),e._granularity=u,e):(b.positions=a,b.minimumHeights=n,b.maximumHeights=r,b.granularity=u,new w(b))},w.fromConstantHeights=function(i){let t=(i=d(i,d.EMPTY_OBJECT)).positions;if(!m(t))throw new _("options.positions is required.");let e,o,n=i.minimumHeight,r=i.maximumHeight,s=m(n),a=m(r);if(s||a){let i=t.length;e=s?new Array(i):void 0,o=a?new Array(i):void 0;for(let t=0;t<i;++t)s&&(e[t]=n),a&&(o[t]=r)}return new w({positions:t,maximumHeights:o,minimumHeights:e,ellipsoid:i.ellipsoid})},w.createGeometry=function(i){let t=i._positions,e=i._minimumHeights,o=i._maximumHeights,n=i._granularity,r=i._ellipsoid,s=B.computePositions(r,t,o,e,n,!1);if(!m(s))return;let a,l=s.bottomPositions,h=s.topPositions,u=h.length,c=2*u,g=new Float64Array(c),d=0;for(u/=3,a=0;a<u;++a){let i=3*a,t=p.fromArray(h,i,U),e=p.fromArray(l,i,z);g[d++]=e.x,g[d++]=e.y,g[d++]=e.z,g[d++]=t.x,g[d++]=t.y,g[d++]=t.z}let f=new N({position:new M({componentDatatype:q.DOUBLE,componentsPerAttribute:3,values:g})}),w=c/3;c=2*w-4+w;let _=W.createTypedArray(w,c),k=0;for(a=0;a<w-2;a+=2){let i=a,t=a+2,e=p.fromArray(g,3*i,U),o=p.fromArray(g,3*t,z);if(p.equalsEpsilon(e,o,O.EPSILON10))continue;let n=a+1,r=a+3;_[k++]=n,_[k++]=i,_[k++]=n,_[k++]=r,_[k++]=i,_[k++]=t}return _[k++]=w-2,_[k++]=w-1,new S({attributes:f,indices:_,primitiveType:R.LINES,boundingSphere:new D.fromVertices(g)})};var C=w;function J(i,t){return m(t)&&(i=C.unpack(i,t)),i._ellipsoid=l.clone(i._ellipsoid),C.createGeometry(i)}var pi=J;export{pi as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see decodeDraco.js.LICENSE.txt */
2
+ import{a as O}from"./chunk-7OVGHUAO.js";import{a as I}from"./chunk-RIW4PILL.js";import{a as m}from"./chunk-DBOVA5XH.js";import{a as w}from"./chunk-I36V6CKP.js";import"./chunk-EEN7GMYN.js";import"./chunk-SXYTVHGU.js";import{a as A}from"./chunk-RAWIUDJR.js";import"./chunk-KGKDCW56.js";import"./chunk-G4IO3CPJ.js";import{d as D,e as d}from"./chunk-GBRF7ES3.js";var o,b=D(O(),1);function F(t,e){let r=t.num_points(),n=t.num_faces(),a=new o.DracoInt32Array,i=3*n,s=m.createTypedArray(r,i),u=0;for(let r=0;r<n;++r)e.GetFaceFromMesh(t,r,a),s[u+0]=a.GetValue(0),s[u+1]=a.GetValue(1),s[u+2]=a.GetValue(2),u+=3;return o.destroy(a),{typedArray:s,numberOfIndices:i}}function U(t,e,r,n,a){let i,s;n.quantizationBits<=8?(s=new o.DracoUInt8Array,i=new Uint8Array(a),e.GetAttributeUInt8ForAllPoints(t,r,s)):n.quantizationBits<=16?(s=new o.DracoUInt16Array,i=new Uint16Array(a),e.GetAttributeUInt16ForAllPoints(t,r,s)):(s=new o.DracoFloat32Array,i=new Float32Array(a),e.GetAttributeFloatForAllPoints(t,r,s));for(let t=0;t<a;++t)i[t]=s.GetValue(t);return o.destroy(s),i}function k(t,e,r,n){let a,i;switch(r.data_type()){case 1:case 11:i=new o.DracoInt8Array,a=new Int8Array(n),e.GetAttributeInt8ForAllPoints(t,r,i);break;case 2:i=new o.DracoUInt8Array,a=new Uint8Array(n),e.GetAttributeUInt8ForAllPoints(t,r,i);break;case 3:i=new o.DracoInt16Array,a=new Int16Array(n),e.GetAttributeInt16ForAllPoints(t,r,i);break;case 4:i=new o.DracoUInt16Array,a=new Uint16Array(n),e.GetAttributeUInt16ForAllPoints(t,r,i);break;case 5:case 7:i=new o.DracoInt32Array,a=new Int32Array(n),e.GetAttributeInt32ForAllPoints(t,r,i);break;case 6:case 8:i=new o.DracoUInt32Array,a=new Uint32Array(n),e.GetAttributeUInt32ForAllPoints(t,r,i);break;case 9:case 10:i=new o.DracoFloat32Array,a=new Float32Array(n),e.GetAttributeFloatForAllPoints(t,r,i)}for(let t=0;t<n;++t)a[t]=i.GetValue(t);return o.destroy(i),a}function p(t,e,r){let n,a=t.num_points(),i=r.num_components(),s=new o.AttributeQuantizationTransform;if(s.InitFromAttribute(r)){let t=new Array(i);for(let e=0;e<i;++e)t[e]=s.min_value(e);n={quantizationBits:s.quantization_bits(),minValues:t,range:s.range(),octEncoded:!1}}o.destroy(s),s=new o.AttributeOctahedronTransform,s.InitFromAttribute(r)&&(n={quantizationBits:s.quantization_bits(),octEncoded:!0}),o.destroy(s);let u,l=a*i;u=d(n)?U(t,e,r,n,l):k(t,e,r,l);let A=w.fromTypedArray(u);return{array:u,data:{componentsPerAttribute:i,componentDatatype:A,byteOffset:r.byte_offset(),byteStride:w.getSizeInBytes(A)*i,normalized:r.normalized(),quantization:n}}}function _(t){let e=new o.Decoder;t.dequantizeInShader&&(e.SkipAttributeTransform(o.POSITION),e.SkipAttributeTransform(o.NORMAL));let r=new o.DecoderBuffer;if(r.Init(t.buffer,t.buffer.length),e.GetEncodedGeometryType(r)!==o.POINT_CLOUD)throw new A("Draco geometry type must be POINT_CLOUD.");let n=new o.PointCloud,a=e.DecodeBufferToPointCloud(r,n);if(!a.ok()||0===n.ptr)throw new A(`Error decoding draco point cloud: ${a.error_msg()}`);o.destroy(r);let i={},s=t.properties;for(let t in s)if(s.hasOwnProperty(t)){let r;if("POSITION"===t||"NORMAL"===t){let a=e.GetAttributeId(n,o[t]);r=e.GetAttribute(n,a)}else{let o=s[t];r=e.GetAttributeByUniqueId(n,o)}i[t]=p(n,e,r)}return o.destroy(n),o.destroy(e),i}function g(t){let e=new o.Decoder,r=["POSITION","NORMAL","COLOR","TEX_COORD"];if(t.dequantizeInShader)for(let t=0;t<r.length;++t)e.SkipAttributeTransform(o[r[t]]);let n=t.bufferView,a=new o.DecoderBuffer;if(a.Init(t.array,n.byteLength),e.GetEncodedGeometryType(a)!==o.TRIANGULAR_MESH)throw new A("Unsupported draco mesh geometry type.");let i=new o.Mesh,s=e.DecodeBufferToMesh(a,i);if(!s.ok()||0===i.ptr)throw new A(`Error decoding draco mesh geometry: ${s.error_msg()}`);o.destroy(a);let u={},l=t.compressedAttributes;for(let t in l)if(l.hasOwnProperty(t)){let r=l[t],o=e.GetAttributeByUniqueId(i,r);u[t]=p(i,e,o)}let c={indexArray:F(i,e),attributeData:u};return o.destroy(i),o.destroy(e),c}async function z(t,e){return d(t.bufferView)?g(t):_(t)}async function C(t,e){let r=t.webAssemblyConfig;return o=d(r)&&d(r.wasmBinaryFile)?await(0,b.default)(r):await(0,b.default)(),!0}async function G(t,e){let r=t.webAssemblyConfig;return d(r)?C(t,e):z(t,e)}var h=I(G);export{h as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see decodeGoogleEarthEnterprisePacket.js.LICENSE.txt */
2
+ import{a as Se}from"./chunk-RIW4PILL.js";import{a as D}from"./chunk-RAWIUDJR.js";import{b as ae}from"./chunk-G4IO3CPJ.js";import{c as R,d as Ot,e as me}from"./chunk-GBRF7ES3.js";var Ie=R(((e,t)=>{"use strict";t.exports=(e,t,i,r)=>{let n=65535&e,a=e>>>16&65535,s=0;for(;0!==i;){s=i>2e3?2e3:i,i-=s;do{n=n+t[r++]|0,a=a+n|0}while(--s);n%=65521,a%=65521}return n|a<<16}})),De=R(((e,t)=>{"use strict";var i=new Uint32Array((()=>{let e,t=[];for(var i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t})());t.exports=(e,t,r,n)=>{let a=i,s=n+r;e^=-1;for(let i=n;i<s;i++)e=e>>>8^a[255&(e^t[i])];return~e}})),Oe=R(((e,t)=>{"use strict";t.exports=function(e,t){let i,r,n,a,s,o,l,f,d,h,c,u,w,b,m,g,k,_,p,v,y,x,R,E,A=e.state;i=e.next_in,R=e.input,r=i+(e.avail_in-5),n=e.next_out,E=e.output,a=n-(t-e.avail_out),s=n+(e.avail_out-257),o=A.dmax,l=A.wsize,f=A.whave,d=A.wnext,h=A.window,c=A.hold,u=A.bits,w=A.lencode,b=A.distcode,m=(1<<A.lenbits)-1,g=(1<<A.distbits)-1;e:do{u<15&&(c+=R[i++]<<u,u+=8,c+=R[i++]<<u,u+=8),k=w[c&m];t:for(;;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,0===_)E[n++]=65535&k;else{if(!(16&_)){if(64&_){if(32&_){A.mode=16191;break e}e.msg="invalid literal/length code",A.mode=16209;break e}k=w[(65535&k)+(c&(1<<_)-1)];continue t}for(p=65535&k,_&=15,_&&(u<_&&(c+=R[i++]<<u,u+=8),p+=c&(1<<_)-1,c>>>=_,u-=_),u<15&&(c+=R[i++]<<u,u+=8,c+=R[i++]<<u,u+=8),k=b[c&g];;){if(_=k>>>24,c>>>=_,u-=_,_=k>>>16&255,16&_){if(v=65535&k,_&=15,u<_&&(c+=R[i++]<<u,u+=8,u<_&&(c+=R[i++]<<u,u+=8)),v+=c&(1<<_)-1,v>o){e.msg="invalid distance too far back",A.mode=16209;break e}if(c>>>=_,u-=_,_=n-a,v>_){if(_=v-_,_>f&&A.sane){e.msg="invalid distance too far back",A.mode=16209;break e}if(y=0,x=h,0===d){if(y+=l-_,_<p){p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}}else if(d<_){if(y+=l+d-_,_-=d,_<p){p-=_;do{E[n++]=h[y++]}while(--_);if(y=0,d<p){_=d,p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}}}else if(y+=d-_,_<p){p-=_;do{E[n++]=h[y++]}while(--_);y=n-v,x=E}for(;p>2;)E[n++]=x[y++],E[n++]=x[y++],E[n++]=x[y++],p-=3;p&&(E[n++]=x[y++],p>1&&(E[n++]=x[y++]))}else{y=n-v;do{E[n++]=E[y++],E[n++]=E[y++],E[n++]=E[y++],p-=3}while(p>2);p&&(E[n++]=E[y++],p>1&&(E[n++]=E[y++]))}break}if(64&_){e.msg="invalid distance code",A.mode=16209;break e}k=b[(65535&k)+(c&(1<<_)-1)]}}break}}while(i<r&&n<s);p=u>>3,i-=p,u-=p<<3,c&=(1<<u)-1,e.next_in=i,e.next_out=n,e.avail_in=i<r?r-i+5:5-(i-r),e.avail_out=n<s?s-n+257:257-(n-s),A.hold=c,A.bits=u}})),Me=R(((e,t)=>{"use strict";var i=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),n=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),a=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);t.exports=(e,t,s,o,l,f,d,h)=>{let c,u,w,b,m,g,k,_,p,v=h.bits,y=0,x=0,R=0,E=0,A=0,T=0,D=0,U=0,S=0,I=0,Z=null,O=new Uint16Array(16),N=new Uint16Array(16),C=null;for(y=0;y<=15;y++)O[y]=0;for(x=0;x<o;x++)O[t[s+x]]++;for(A=v,E=15;E>=1&&0===O[E];E--);if(A>E&&(A=E),0===E)return l[f++]=20971520,l[f++]=20971520,h.bits=1,0;for(R=1;R<E&&0===O[R];R++);for(A<R&&(A=R),U=1,y=1;y<=15;y++)if(U<<=1,U-=O[y],U<0)return-1;if(U>0&&(0===e||1!==E))return-1;for(N[1]=0,y=1;y<15;y++)N[y+1]=N[y]+O[y];for(x=0;x<o;x++)0!==t[s+x]&&(d[N[t[s+x]]++]=x);if(0===e?(Z=C=d,g=20):1===e?(Z=i,C=r,g=257):(Z=n,C=a,g=0),I=0,x=0,y=R,m=f,T=A,D=0,w=-1,S=1<<A,b=S-1,1===e&&S>852||2===e&&S>592)return 1;for(;;){k=y-D,d[x]+1<g?(_=0,p=d[x]):d[x]>=g?(_=C[d[x]-g],p=Z[d[x]-g]):(_=96,p=0),c=1<<y-D,u=1<<T,R=u;do{u-=c,l[m+(I>>D)+u]=k<<24|_<<16|p}while(0!==u);for(c=1<<y-1;I&c;)c>>=1;if(0!==c?(I&=c-1,I+=c):I=0,x++,0==--O[y]){if(y===E)break;y=t[s+d[x]]}if(y>A&&(I&b)!==w){for(0===D&&(D=A),m+=R,T=y-D,U=1<<T;T+D<E&&(U-=O[T+D],!(U<=0));)T++,U<<=1;if(S+=1<<T,1===e&&S>852||2===e&&S>592)return 1;w=I&b,l[w]=A<<24|T<<16|m-f}}return 0!==I&&(l[m+I]=y-D<<24|64<<16),h.bits=A,0}})),J=R(((e,t)=>{"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}})),bt=R(((e,t)=>{"use strict";var i=Ie(),r=De(),n=Oe(),a=Me(),{Z_FINISH:s,Z_BLOCK:o,Z_TREES:l,Z_OK:f,Z_STREAM_END:d,Z_NEED_DICT:h,Z_STREAM_ERROR:c,Z_DATA_ERROR:u,Z_MEM_ERROR:w,Z_BUF_ERROR:b,Z_DEFLATED:m}=J(),g=16180,k=16190,_=16191,p=16192,v=16194,y=16199,x=16200,R=16206,E=16209,A=16210,T=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function D(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var U,S,I=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.mode<g||t.mode>16211?1:0},Z=e=>{if(I(e))return c;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=g,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,f},O=e=>{if(I(e))return c;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Z(e)},N=(e,t)=>{let i;if(I(e))return c;let r=e.state;return t<0?(i=0,t=-t):(i=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,O(e))},C=(e,t)=>{if(!e)return c;let i=new D;e.state=i,i.strm=e,i.window=null,i.mode=g;let r=N(e,t);return r!==f&&(e.state=null),r},B=!0,M=e=>{if(B){U=new Int32Array(512),S=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,U,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,S,0,e.work,{bits:5}),B=!1}e.lencode=U,e.lenbits=9,e.distcode=S,e.distbits=5},F=(e,t,i,r)=>{let n,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(i-a.wsize,i),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>r&&(n=r),a.window.set(t.subarray(i-r,i-r+n),a.wnext),(r-=n)?(a.window.set(t.subarray(i-r,i),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0};t.exports.inflateReset=O,t.exports.inflateReset2=N,t.exports.inflateResetKeep=Z,t.exports.inflateInit=e=>C(e,15),t.exports.inflateInit2=C,t.exports.inflate=(e,t)=>{let D,U,S,Z,O,N,C,B,L,H,P,z,V,j,Y,G,K,J,W,Q,X,q,$,ee,te=0,ie=new Uint8Array(4),re=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(I(e)||!e.output||!e.input&&0!==e.avail_in)return c;D=e.state,D.mode===_&&(D.mode=p),O=e.next_out,S=e.output,C=e.avail_out,Z=e.next_in,U=e.input,N=e.avail_in,B=D.hold,L=D.bits,H=N,P=C,q=f;e:for(;;)switch(D.mode){case g:if(0===D.wrap){D.mode=p;break}for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(2&D.wrap&&35615===B){0===D.wbits&&(D.wbits=15),D.check=0,ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0),B=0,L=0,D.mode=16181;break}if(D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&B)<<8)+(B>>8))%31){e.msg="incorrect header check",D.mode=E;break}if((15&B)!==m){e.msg="unknown compression method",D.mode=E;break}if(B>>>=4,L-=4,X=8+(15&B),0===D.wbits&&(D.wbits=X),X>15||X>D.wbits){e.msg="invalid window size",D.mode=E;break}D.dmax=1<<D.wbits,D.flags=0,e.adler=D.check=1,D.mode=512&B?16189:_,B=0,L=0;break;case 16181:for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(D.flags=B,(255&D.flags)!==m){e.msg="unknown compression method",D.mode=E;break}if(57344&D.flags){e.msg="unknown header flags set",D.mode=E;break}D.head&&(D.head.text=B>>8&1),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0,D.mode=16182;case 16182:for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.head&&(D.head.time=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,ie[2]=B>>>16&255,ie[3]=B>>>24&255,D.check=r(D.check,ie,4,0)),B=0,L=0,D.mode=16183;case 16183:for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.head&&(D.head.xflags=255&B,D.head.os=B>>8),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0,D.mode=16184;case 16184:if(1024&D.flags){for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.length=B,D.head&&(D.head.extra_len=B),512&D.flags&&4&D.wrap&&(ie[0]=255&B,ie[1]=B>>>8&255,D.check=r(D.check,ie,2,0)),B=0,L=0}else D.head&&(D.head.extra=null);D.mode=16185;case 16185:if(1024&D.flags&&(z=D.length,z>N&&(z=N),z&&(D.head&&(X=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Uint8Array(D.head.extra_len)),D.head.extra.set(U.subarray(Z,Z+z),X)),512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,D.length-=z),D.length))break e;D.length=0,D.mode=16186;case 16186:if(2048&D.flags){if(0===N)break e;z=0;do{X=U[Z+z++],D.head&&X&&D.length<65536&&(D.head.name+=String.fromCharCode(X))}while(X&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,X)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=16187;case 16187:if(4096&D.flags){if(0===N)break e;z=0;do{X=U[Z+z++],D.head&&X&&D.length<65536&&(D.head.comment+=String.fromCharCode(X))}while(X&&z<N);if(512&D.flags&&4&D.wrap&&(D.check=r(D.check,U,z,Z)),N-=z,Z+=z,X)break e}else D.head&&(D.head.comment=null);D.mode=16188;case 16188:if(512&D.flags){for(;L<16;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(4&D.wrap&&B!==(65535&D.check)){e.msg="header crc mismatch",D.mode=E;break}B=0,L=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),e.adler=D.check=0,D.mode=_;break;case 16189:for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}e.adler=D.check=T(B),B=0,L=0,D.mode=k;case k:if(0===D.havedict)return e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,h;e.adler=D.check=1,D.mode=_;case _:if(t===o||t===l)break e;case p:if(D.last){B>>>=7&L,L-=7&L,D.mode=R;break}for(;L<3;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}switch(D.last=1&B,B>>>=1,L-=1,3&B){case 0:D.mode=16193;break;case 1:if(M(D),D.mode=y,t===l){B>>>=2,L-=2;break e}break;case 2:D.mode=16196;break;case 3:e.msg="invalid block type",D.mode=E}B>>>=2,L-=2;break;case 16193:for(B>>>=7&L,L-=7&L;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if((65535&B)!=(B>>>16^65535)){e.msg="invalid stored block lengths",D.mode=E;break}if(D.length=65535&B,B=0,L=0,D.mode=v,t===l)break e;case v:D.mode=16195;case 16195:if(z=D.length,z){if(z>N&&(z=N),z>C&&(z=C),0===z)break e;S.set(U.subarray(Z,Z+z),O),N-=z,Z+=z,C-=z,O+=z,D.length-=z;break}D.mode=_;break;case 16196:for(;L<14;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(D.nlen=257+(31&B),B>>>=5,L-=5,D.ndist=1+(31&B),B>>>=5,L-=5,D.ncode=4+(15&B),B>>>=4,L-=4,D.nlen>286||D.ndist>30){e.msg="too many length or distance symbols",D.mode=E;break}D.have=0,D.mode=16197;case 16197:for(;D.have<D.ncode;){for(;L<3;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.lens[re[D.have++]]=7&B,B>>>=3,L-=3}for(;D.have<19;)D.lens[re[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,$={bits:D.lenbits},q=a(0,D.lens,0,19,D.lencode,0,D.work,$),D.lenbits=$.bits,q){e.msg="invalid code lengths set",D.mode=E;break}D.have=0,D.mode=16198;case 16198:for(;D.have<D.nlen+D.ndist;){for(;te=D.lencode[B&(1<<D.lenbits)-1],Y=te>>>24,G=te>>>16&255,K=65535&te,!(Y<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(K<16)B>>>=Y,L-=Y,D.lens[D.have++]=K;else{if(16===K){for(ee=Y+2;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(B>>>=Y,L-=Y,0===D.have){e.msg="invalid bit length repeat",D.mode=E;break}X=D.lens[D.have-1],z=3+(3&B),B>>>=2,L-=2}else if(17===K){for(ee=Y+3;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=Y,L-=Y,X=0,z=3+(7&B),B>>>=3,L-=3}else{for(ee=Y+7;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=Y,L-=Y,X=0,z=11+(127&B),B>>>=7,L-=7}if(D.have+z>D.nlen+D.ndist){e.msg="invalid bit length repeat",D.mode=E;break}for(;z--;)D.lens[D.have++]=X}}if(D.mode===E)break;if(0===D.lens[256]){e.msg="invalid code -- missing end-of-block",D.mode=E;break}if(D.lenbits=9,$={bits:D.lenbits},q=a(1,D.lens,0,D.nlen,D.lencode,0,D.work,$),D.lenbits=$.bits,q){e.msg="invalid literal/lengths set",D.mode=E;break}if(D.distbits=6,D.distcode=D.distdyn,$={bits:D.distbits},q=a(2,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,$),D.distbits=$.bits,q){e.msg="invalid distances set",D.mode=E;break}if(D.mode=y,t===l)break e;case y:D.mode=x;case x:if(N>=6&&C>=258){e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,n(e,P),O=e.next_out,S=e.output,C=e.avail_out,Z=e.next_in,U=e.input,N=e.avail_in,B=D.hold,L=D.bits,D.mode===_&&(D.back=-1);break}for(D.back=0;te=D.lencode[B&(1<<D.lenbits)-1],Y=te>>>24,G=te>>>16&255,K=65535&te,!(Y<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(G&&!(240&G)){for(J=Y,W=G,Q=K;te=D.lencode[Q+((B&(1<<J+W)-1)>>J)],Y=te>>>24,G=te>>>16&255,K=65535&te,!(J+Y<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=J,L-=J,D.back+=J}if(B>>>=Y,L-=Y,D.back+=Y,D.length=K,0===G){D.mode=16205;break}if(32&G){D.back=-1,D.mode=_;break}if(64&G){e.msg="invalid literal/length code",D.mode=E;break}D.extra=15&G,D.mode=16201;case 16201:if(D.extra){for(ee=D.extra;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.length+=B&(1<<D.extra)-1,B>>>=D.extra,L-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=16202;case 16202:for(;te=D.distcode[B&(1<<D.distbits)-1],Y=te>>>24,G=te>>>16&255,K=65535&te,!(Y<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(!(240&G)){for(J=Y,W=G,Q=K;te=D.distcode[Q+((B&(1<<J+W)-1)>>J)],Y=te>>>24,G=te>>>16&255,K=65535&te,!(J+Y<=L);){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}B>>>=J,L-=J,D.back+=J}if(B>>>=Y,L-=Y,D.back+=Y,64&G){e.msg="invalid distance code",D.mode=E;break}D.offset=K,D.extra=15&G,D.mode=16203;case 16203:if(D.extra){for(ee=D.extra;L<ee;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}D.offset+=B&(1<<D.extra)-1,B>>>=D.extra,L-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){e.msg="invalid distance too far back",D.mode=E;break}D.mode=16204;case 16204:if(0===C)break e;if(z=P-C,D.offset>z){if(z=D.offset-z,z>D.whave&&D.sane){e.msg="invalid distance too far back",D.mode=E;break}z>D.wnext?(z-=D.wnext,V=D.wsize-z):V=D.wnext-z,z>D.length&&(z=D.length),j=D.window}else j=S,V=O-D.offset,z=D.length;z>C&&(z=C),C-=z,D.length-=z;do{S[O++]=j[V++]}while(--z);0===D.length&&(D.mode=x);break;case 16205:if(0===C)break e;S[O++]=D.length,C--,D.mode=x;break;case R:if(D.wrap){for(;L<32;){if(0===N)break e;N--,B|=U[Z++]<<L,L+=8}if(P-=C,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,O-P):i(D.check,S,P,O-P)),P=C,4&D.wrap&&(D.flags?B:T(B))!==D.check){e.msg="incorrect data check",D.mode=E;break}B=0,L=0}D.mode=16207;case 16207:if(D.wrap&&D.flags){for(;L<32;){if(0===N)break e;N--,B+=U[Z++]<<L,L+=8}if(4&D.wrap&&B!==(4294967295&D.total)){e.msg="incorrect length check",D.mode=E;break}B=0,L=0}D.mode=16208;case 16208:q=d;break e;case E:q=u;break e;case A:return w;default:return c}return e.next_out=O,e.avail_out=C,e.next_in=Z,e.avail_in=N,D.hold=B,D.bits=L,(D.wsize||P!==e.avail_out&&D.mode<E&&(D.mode<R||t!==s))&&F(e,e.output,e.next_out,P-e.avail_out)?(D.mode=A,w):(H-=e.avail_in,P-=e.avail_out,e.total_in+=H,e.total_out+=P,D.total+=P,4&D.wrap&&P&&(e.adler=D.check=D.flags?r(D.check,S,P,e.next_out-P):i(D.check,S,P,e.next_out-P)),e.data_type=D.bits+(D.last?64:0)+(D.mode===_?128:0)+(D.mode===y||D.mode===v?256:0),(0===H&&0===P||t===s)&&q===f&&(q=b),q)},t.exports.inflateEnd=e=>{if(I(e))return c;let t=e.state;return t.window&&(t.window=null),e.state=null,f},t.exports.inflateGetHeader=(e,t)=>{if(I(e))return c;let i=e.state;return 2&i.wrap?(i.head=t,t.done=!1,f):c},t.exports.inflateSetDictionary=(e,t)=>{let r,n,a,s=t.length;return I(e)||(r=e.state,0!==r.wrap&&r.mode!==k)?c:r.mode===k&&(n=1,n=i(n,t,s,0),n!==r.check)?u:(a=F(e,t,s,s),a?(r.mode=A,w):(r.havedict=1,f))},t.exports.inflateInfo="pako inflate (from Nodeca project)"})),_t=R(((e,t)=>{"use strict";var i=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);t.exports.assign=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(let t in r)i(r,t)&&(e[t]=r[t])}}return e},t.exports.flattenChunks=e=>{let t=0;for(let i=0,r=e.length;i<r;i++)t+=e[i].length;let i=new Uint8Array(t);for(let t=0,r=0,n=e.length;t<n;t++){let n=e[t];i.set(n,r),r+=n.length}return i}})),kt=R(((e,t)=>{"use strict";var i=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}var r=new Uint8Array(256);for(let e=0;e<256;e++)r[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;r[254]=r[254]=1,t.exports.string2buf=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,i,r,n,a,s=e.length,o=0;for(n=0;n<s;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(t=new Uint8Array(o),a=0,n=0;a<o;n++)i=e.charCodeAt(n),55296==(64512&i)&&n+1<s&&(r=e.charCodeAt(n+1),56320==(64512&r)&&(i=65536+(i-55296<<10)+(r-56320),n++)),i<128?t[a++]=i:i<2048?(t[a++]=192|i>>>6,t[a++]=128|63&i):i<65536?(t[a++]=224|i>>>12,t[a++]=128|i>>>6&63,t[a++]=128|63&i):(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63,t[a++]=128|i>>>6&63,t[a++]=128|63&i);return t};t.exports.buf2string=(e,t)=>{let n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let a,s,o=new Array(2*n);for(s=0,a=0;a<n;){let t=e[a++];if(t<128){o[s++]=t;continue}let i=r[t];if(i>4)o[s++]=65533,a+=i-1;else{for(t&=2===i?31:3===i?15:7;i>1&&a<n;)t=t<<6|63&e[a++],i--;i>1?o[s++]=65533:t<65536?o[s++]=t:(t-=65536,o[s++]=55296|t>>10&1023,o[s++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&i)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r})(o,s)},t.exports.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let i=t-1;for(;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+r[e[i]]>t?i:t}})),Et=R(((e,t)=>{"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}})),St=R(((e,t)=>{"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}})),vt=R(((e,t)=>{"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}})),Rt=R(((e,t)=>{"use strict";var i=bt(),r=_t(),n=kt(),a=Et(),s=St(),o=vt(),l=Object.prototype.toString,{Z_NO_FLUSH:f,Z_FINISH:d,Z_OK:h,Z_STREAM_END:c,Z_NEED_DICT:u,Z_STREAM_ERROR:w,Z_DATA_ERROR:b,Z_MEM_ERROR:m}=J();function g(e){this.options=r.assign({chunkSize:65536,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let f=i.inflateInit2(this.strm,t.windowBits);if(f!==h)throw new Error(a[f]);if(this.header=new o,i.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=n.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(f=i.inflateSetDictionary(this.strm,t.dictionary),f!==h)))throw new Error(a[f])}function k(e,t){let i=new g(t);if(i.push(e),i.err)throw i.msg||a[i.err];return i.result}g.prototype.push=function(e,t){let r,a,s,o=this.strm,g=this.options.chunkSize,k=this.options.dictionary;if(this.ended)return!1;for(a=t===~~t?t:!0===t?d:f,"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(g),o.next_out=0,o.avail_out=g),r=i.inflate(o,a),r===u&&k&&(r=i.inflateSetDictionary(o,k),r===h?r=i.inflate(o,a):r===b&&(r=u));o.avail_in>0&&r===c&&o.state.wrap>0&&0!==e[o.next_in];)i.inflateReset(o),r=i.inflate(o,a);switch(r){case w:case b:case u:case m:return this.onEnd(r),this.ended=!0,!1}if(s=o.avail_out,o.next_out&&(0===o.avail_out||r===c))if("string"===this.options.to){let e=n.utf8border(o.output,o.next_out),t=o.next_out-e,i=n.buf2string(o.output,e);o.next_out=t,o.avail_out=g-t,t&&o.output.set(o.output.subarray(e,e+t),0),this.onData(i)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out));if(r!==h||0!==s){if(r===c)return r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.exports.Inflate=g,t.exports.inflate=k,t.exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,k(e,t)},t.exports.ungzip=k,t.exports.constants=J()})),Nt=1953029805,Mt=2917034100;function oe(e,t){if(oe.passThroughDataForTesting)return t;ae.typeOf.object("key",e),ae.typeOf.object("data",t);let i=e.byteLength;if(0===i||i%4!=0)throw new D("The length of key must be greater than 0 and a multiple of 4.");let r=new DataView(t),n=r.getUint32(0,!0);if(n===Nt||n===Mt)return t;let a,s=new DataView(e),o=0,l=t.byteLength,f=l-l%8,d=i,h=8;for(;o<f;)for(h=(h+8)%24,a=h;o<f&&a<d;)r.setUint32(o,r.getUint32(o,!0)^s.getUint32(a,!0),!0),r.setUint32(o+4,r.getUint32(o+4,!0)^s.getUint32(a+4,!0),!0),o+=8,a+=24;if(o<l)for(a>=d&&(h=(h+8)%24,a=h);o<l;)r.setUint8(o,r.getUint8(o)^s.getUint8(a)),o++,a++}oe.passThroughDataForTesting=!1;var Te=oe;function Zt(e,t){return!!(e&t)}var F=Zt,Bt=[1,2,4,8],ve=15,Ct=16,Lt=64,Pt=128;function N(e,t,i,r,n,a){this._bits=e,this.cnodeVersion=t,this.imageryVersion=i,this.terrainVersion=r,this.imageryProvider=n,this.terrainProvider=a,this.ancestorHasTerrain=!1,this.terrainState=void 0}N.clone=function(e,t){return me(t)?(t._bits=e._bits,t.cnodeVersion=e.cnodeVersion,t.imageryVersion=e.imageryVersion,t.terrainVersion=e.terrainVersion,t.imageryProvider=e.imageryProvider,t.terrainProvider=e.terrainProvider):t=new N(e._bits,e.cnodeVersion,e.imageryVersion,e.terrainVersion,e.imageryProvider,e.terrainProvider),t.ancestorHasTerrain=e.ancestorHasTerrain,t.terrainState=e.terrainState,t},N.prototype.setParent=function(e){this.ancestorHasTerrain=e.ancestorHasTerrain||this.hasTerrain()},N.prototype.hasSubtree=function(){return F(this._bits,Ct)},N.prototype.hasImagery=function(){return F(this._bits,Lt)},N.prototype.hasTerrain=function(){return F(this._bits,Pt)},N.prototype.hasChildren=function(){return F(this._bits,ve)},N.prototype.hasChild=function(e){return F(this._bits,Bt[e])},N.prototype.getChildBitmask=function(){return this._bits&ve};var ye=N,Ut=Ot(Rt(),1),G=Uint16Array.BYTES_PER_ELEMENT,H=Int32Array.BYTES_PER_ELEMENT,Y=Uint32Array.BYTES_PER_ELEMENT,C={METADATA:0,TERRAIN:1,DBROOT:2};function Si(e,t){let i=C.fromString(e.type),r=e.buffer;Te(e.key,r);let n=Di(r);r=n.buffer;let a=n.length;switch(i){case C.METADATA:return vi(r,a,e.quadKey);case C.TERRAIN:return Ii(r,a,t);case C.DBROOT:return t.push(r),{buffer:r}}}C.fromString=function(e){return"Metadata"===e?C.METADATA:"Terrain"===e?C.TERRAIN:"DbRoot"===e?C.DBROOT:void 0};var Ti=32301;function vi(e,t,i){let r=new DataView(e),n=0,a=r.getUint32(n,!0);if(n+=Y,a!==Ti)throw new D("Invalid magic");let s=r.getUint32(n,!0);if(n+=Y,1!==s)throw new D("Invalid data type. Must be 1 for QuadTreePacket");let o=r.getUint32(n,!0);if(n+=Y,2!==o)throw new D("Invalid QuadTreePacket version. Only version 2 is supported.");let l=r.getInt32(n,!0);n+=H;let f=r.getInt32(n,!0);if(n+=H,32!==f)throw new D("Invalid instance size.");let d=r.getInt32(n,!0);n+=H;let h=r.getInt32(n,!0);n+=H;let c=r.getInt32(n,!0);if(n+=H,d!==l*f+n)throw new D("Invalid dataBufferOffset");if(d+h+c!==t)throw new D("Invalid packet offsets");let u=[];for(let e=0;e<l;++e){let e=r.getUint8(n);++n,++n;let t=r.getUint16(n,!0);n+=G;let i=r.getUint16(n,!0);n+=G;let a=r.getUint16(n,!0);n+=G,n+=G,n+=G,n+=H,n+=H,n+=8;let s=r.getUint8(n++),o=r.getUint8(n++);n+=G,u.push(new ye(e,t,i,a,s,o))}let w=[],b=0;let m=0,g=u[b++];return""===i?++m:w[i]=g,function e(t,i,r){let n=!1;if(4===r){if(i.hasSubtree())return;n=!0}for(let a=0;a<4;++a){let s=t+a.toString();if(n)w[s]=null;else if(r<4)if(i.hasChild(a)){if(b===l)return void console.log("Incorrect number of instances");let t=u[b++];w[s]=t,e(s,t,r+1)}else w[s]=null}}(i,g,m),w}var yi=5,Ai=4;function Ii(e,t,i){let r=new DataView(e),n=function(e){for(let i=0;i<Ai;++i){let i=r.getUint32(e,!0);if(e+=Y,(e+=i)>t)throw new D("Malformed terrain packet found.")}return e},a=0,s=[];for(;s.length<yi;){let t=a;a=n(a);let r=e.slice(t,a);i.push(r),s.push(r)}return s}var Dt=1953029805,Ri=2917034100;function Di(e){let t=new DataView(e),i=0,r=t.getUint32(i,!0);if(i+=Y,r!==Dt&&r!==Ri)throw new D("Invalid magic");let n=t.getUint32(i,r===Dt);i+=Y;let a=new Uint8Array(e,i),s=Ut.default.inflate(a);if(s.length!==n)throw new D("Size of packet doesn't match header");return s}var en=Se(Si);export{en as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */
@@ -0,0 +1,2 @@
1
+ /*! For license information please see decodeI3S.js.LICENSE.txt */
2
+ import{a as xt}from"./chunk-7OVGHUAO.js";import{a as P}from"./chunk-LL4PRXXO.js";import{a as yt}from"./chunk-RIW4PILL.js";import{a as ht}from"./chunk-NVJ64HSB.js";import{a as g,b as ot,d as st,e as it}from"./chunk-WG62ICZK.js";import{a as M}from"./chunk-EEN7GMYN.js";import{a as ft}from"./chunk-KGKDCW56.js";import{b as lt}from"./chunk-G4IO3CPJ.js";import{d as mt,e as h}from"./chunk-GBRF7ES3.js";var at=mt(xt(),1);function wt(t){return lt.defined("value",t),t<=.04045?.07739938080495357*t:Math.pow(.9478672985781991*(t+.055),2.4)}var ut,k=wt;function It(t,e,n,r,o,a){return(n*(1-t)+r*t)*(1-e)+(o*(1-t)+a*t)*e}function H(t,e,n,r){return r[t+e*n]}function At(t,e,n){let r=n.nativeExtent,o=(t-r.west)/(r.east-r.west)*(n.width-1),a=(e-r.south)/(r.north-r.south)*(n.height-1),i=Math.floor(o),l=Math.floor(a);o-=i,a-=l;let s=i<n.width?i+1:i,u=l<n.height?l+1:l;l=n.height-1-l,u=n.height-1-u;let f=It(o,a,H(i,l,n.width,n.buffer),H(s,l,n.width,n.buffer),H(i,u,n.width,n.buffer),H(s,u,n.width,n.buffer));return f=f*n.scale+n.offset,f}function bt(t,e,n){for(let r=0;r<n.length;r++){let o=n[r].nativeExtent,a=new g;if("WebMercator"===n[r].projectionType){let o=n[r].projection._ellipsoid._radii;a=new ht(new st(o.x,o.y,o.z)).project(new ot(t,e,0))}else a.x=t,a.y=e;if(a.x>o.west&&a.x<o.east&&a.y>o.south&&a.y<o.north)return At(a.x,a.y,n[r])}return 0}function Lt(t,e,n,r,o,a,i){if(i)return;let l=bt(o.longitude,o.latitude,a);for(let i=0;i<t;++i){let t=bt(o.longitude+M.toRadians(n*e[3*i]),o.latitude+M.toRadians(r*e[3*i+1]),a);e[3*i+2]+=t-l}}function Ot(t,e,n,r,o,a,i,l,s){if(0===t||!h(e)||0===e.length)return;let u=new st(Math.sqrt(i.x),Math.sqrt(i.y),Math.sqrt(i.z));for(let i=0;i<t;++i){let t=3*i,f=t+1,c=t+2,y=new ot;y.longitude=r.longitude+M.toRadians(l*e[t]),y.latitude=r.latitude+M.toRadians(s*e[f]),y.height=r.height+e[c];let p={};u.cartographicToCartesian(y,p),p.x-=o.x,p.y-=o.y,p.z-=o.z;let b={};if(it.multiplyByVector(a,p,b),e[t]=b.x,e[f]=b.y,e[c]=b.z,h(n)){let e=new g(n[t],n[f],n[c]),r={};it.multiplyByVector(a,e,r),n[t]=r.x,n[f]=r.y,n[c]=r.z}}}function Tt(t,e,n){for(let r=0;r<t;++r){let t=n[4*r]/65535,o=n[4*r+1]/65535,a=(n[4*r+2]-n[4*r])/65535,i=(n[4*r+3]-n[4*r+1])/65535;e[2*r]*=a,e[2*r]+=t,e[2*r+1]*=i,e[2*r+1]+=o}}function Ct(t,e,n,r){let o=new Uint32Array(t),a=h(e)?t=>e[t]:t=>t,i=0;if(r&&h(n)){let e=t=>n[4*a(t)+3]<255;for(let n=0;n<t;n+=3)!e(n)&&!e(n+1)&&!e(n+2)&&(o[i++]=a(n),o[i++]=a(n+1),o[i++]=a(n+2));if(i>0){let n=i;for(let r=0;r<t;r+=3)(e(r)||e(r+1)||e(r+2))&&(o[n++]=a(r),o[n++]=a(r+1),o[n++]=a(r+2))}else for(let e=0;e<t;++e)o[e]=a(e)}else{i=t;for(let e=0;e<t;++e)o[e]=a(e)}return{indexArray:o,transparentVertexOffset:i}}function Ft(t,e,n){let r=e[n];if(h(r))return r;let o=e[n]={positions:{},indices:{},edges:{}},a=ft(t[n],t.default);return o.hasOutline=h(a?.edges),o}function Ut(t,e,n,r){if(!h(t[n])){let o=3*n,a=e;for(let t=0;t<3;t++){let e=r[o+t];h(a[e])||(a[e]={}),a=a[e]}h(a.index)||(a.index=n),t[n]=a.index}}function Vt(t,e,n,r,o,a){let i,l;r<o?(i=r,l=o):(i=o,l=r);let s=t[i];h(s)||(s=t[i]={});let u=s[l];h(u)||(u=s[l]={normalsIndex:[],outlines:[]}),u.normalsIndex.push(a),(0===u.outlines.length||e!==r||n!==o)&&u.outlines.push(e,n)}function Et(t,e,n,r){let o=[];for(let a=0;a<n.length;a+=3){let i=Ft(t,o,h(e)?e[n[a]]:"default");if(!i.hasOutline)continue;let l=i.indices,s=i.positions;for(let t=0;t<3;t++){Ut(l,s,n[a+t],r)}let u=i.edges;for(let t=0;t<3;t++){let e=n[a+t],r=n[a+(t+1)%3];Vt(u,e,r,l[e],l[r],a)}}return o}var O=new g,X=new g,Y=new g;function gt(t,e,n,r){let o=3*n[e],a=3*n[e+1],i=3*n[e+2];g.fromArray(r,o,O),g.fromArray(r,a,X),g.fromArray(r,i,Y),g.subtract(X,O,X),g.subtract(Y,O,Y),g.cross(X,Y,O);let l=g.magnitude(O);0!==l&&g.divideByScalar(O,l,O);let s=3*e,u=3*(e+1),f=3*(e+2);g.pack(O,t,s),g.pack(O,t,u),g.pack(O,t,f)}var z=new g,ct=new g;function _t(t,e,n){g.fromArray(t,e,z),g.fromArray(t,n,ct);let r=g.dot(z,ct),o=g.magnitude(g.cross(z,ct,z));return Math.atan2(o,r)<.25}function Rt(t,e,n,r,o){if(e.normalsIndex.length>1){let t=r.length===o.length;for(let a=0;a<e.normalsIndex.length;a++){let i=e.normalsIndex[a];if(h(o[3*i])||gt(o,i,n,r),0!==a)for(let r=0;r<a;r++){let a=e.normalsIndex[r];if(_t(o,t?3*n[i]:3*i,t?3*n[a]:3*a))return}}}t.push(...e.outlines)}function Nt(t,e,n,r,o){let a=Object.keys(e);for(let i=0;i<a.length;i++){let l=e[a[i]],s=Object.keys(l);for(let e=0;e<s.length;e++){Rt(t,l[s[e]],n,r,o)}}}function Bt(t,e,n,r){let o=[],a=Object.keys(t);for(let i=0;i<a.length;i++){Nt(o,t[a[i]].edges,e,n,r)}return o}function Gt(t,e,n,r,o){if(!h(t)||0===Object.keys(t).length)return;let a=Et(t,e,n,r);(!h(o)||3*n.length!==o.length)&&(o=[]);let i=Bt(a,n,r,o);return i.length>0?new Uint32Array(i):void 0}function St(t){let e=new Float32Array(t.length);for(let n=0;n<t.length;n+=4)e[n]=k(P.byteToFloat(t[n])),e[n+1]=k(P.byteToFloat(t[n+1])),e[n+2]=k(P.byteToFloat(t[n+2])),e[n+3]=P.byteToFloat(t[n+3]);return e}function vt(t,e,n,r,o,a,i){let l={normals:void 0,positions:void 0,uv0s:void 0,colors:void 0,featureIndex:void 0,vertexCount:void 0};if(0===t||!h(n)||0===n.length||h(r))return l;if(h(e)){l.vertexCount=e.length,l.positions=new Float32Array(3*e.length),l.uv0s=h(o)?new Float32Array(2*e.length):void 0,l.colors=h(a)?new Uint8Array(4*e.length):void 0,l.featureIndex=h(i)?new Array(e.length):void 0;for(let t=0;t<e.length;t++){let r=e[t];l.positions[3*t]=n[3*r],l.positions[3*t+1]=n[3*r+1],l.positions[3*t+2]=n[3*r+2],h(l.uv0s)&&(l.uv0s[2*t]=o[2*r],l.uv0s[2*t+1]=o[2*r+1]),h(l.colors)&&(l.colors[4*t]=a[4*r],l.colors[4*t+1]=a[4*r+1],l.colors[4*t+2]=a[4*r+2],l.colors[4*t+3]=a[4*r+3]),h(l.featureIndex)&&(l.featureIndex[t]=i[r])}t=e.length,n=l.positions}e=new Array(t);for(let n=0;n<t;n++)e[n]=n;l.normals=new Float32Array(3*e.length);for(let t=0;t<e.length;t+=3)gt(l.normals,t,e,n);return l}function Mt(t,e,n,r,o,a,i,l){if(0===t||!h(n)||0===n.length)return{buffers:[],bufferViews:[],accessors:[],meshes:[],nodes:[],nodesInScene:[]};let s=[],u=[],f=[],c=[],y=[],g=[],p={},b=[];h(e)&&(t=e.length);let{indexArray:d,transparentVertexOffset:m}=Ct(t,e,a,l.splitGeometryByColorTransparency),w=new Blob([d],{type:"application/binary"}),A=URL.createObjectURL(w),x=t,I=l.enableFeatures&&h(i)?new Float32Array(i.length):void 0,v=0;if(h(I))for(let t=0;t<i.length;++t){I[t]=i[t];let e=i[t]+1;v<e&&(v=e)}let O,L=Gt(l.symbologyData,i,d,n,r);if(h(L)){let t=new Blob([L],{type:"application/binary"});O=URL.createObjectURL(t)}let C=n.subarray(0,3*x),R=new Blob([C],{type:"application/binary"}),_=URL.createObjectURL(R),T=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,G=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,V=Number.POSITIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(let t=0;t<C.length/3;t++)T=Math.min(T,C[3*t+0]),U=Math.max(U,C[3*t+0]),G=Math.min(G,C[3*t+1]),F=Math.max(F,C[3*t+1]),V=Math.min(V,C[3*t+2]),E=Math.max(E,C[3*t+2]);let N,M=r?r.subarray(0,3*x):void 0;if(h(M)){let t=new Blob([M],{type:"application/binary"});N=URL.createObjectURL(t)}let D,j=o?o.subarray(0,2*x):void 0;if(h(j)){let t=new Blob([j],{type:"application/binary"});D=URL.createObjectURL(t)}let k,B=h(a)?St(a.subarray(0,4*x)):void 0;if(h(B)){let t=new Blob([B],{type:"application/binary"});k=URL.createObjectURL(t)}let S,P=h(I)?I.subarray(0,x):void 0;if(h(P)){let t=new Blob([P],{type:"application/binary"});S=URL.createObjectURL(t)}let X,Y=h(I)?new Float32Array(v):void 0;if(h(Y)){for(let t=0;t<Y.length;++t)Y[t]=t;let t=new Blob([Y],{type:"application/binary"});X=URL.createObjectURL(t)}let z={},H={};z.POSITION=f.length,s.push({uri:_,byteLength:C.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:C.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:C.length/3,type:"VEC3",max:[T,G,V],min:[U,F,E]}),h(N)&&(z.NORMAL=f.length,s.push({uri:N,byteLength:M.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:M.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:M.length/3,type:"VEC3"})),h(D)&&(z.TEXCOORD_0=f.length,s.push({uri:D,byteLength:j.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:j.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:j.length/2,type:"VEC2"})),h(k)&&(z.COLOR_0=f.length,s.push({uri:k,byteLength:B.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:B.byteLength,target:34962}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:B.length/4,type:"VEC4"})),h(S)&&(z._FEATURE_ID_0=f.length,s.push({uri:S,byteLength:P.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:P.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:P.length,type:"SCALAR"}),H.EXT_mesh_features={featureIds:[{attribute:0,propertyTable:0,featureCount:v}]},b.push("EXT_mesh_features")),h(X)&&(s.push({uri:X,byteLength:Y.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:Y.byteLength,target:34963}),p.EXT_structural_metadata={schema:{id:"i3s-metadata-schema-001",name:"I3S metadata schema 001",description:"The schema for I3S metadata",version:"1.0",classes:{feature:{name:"feature",description:"Feature metadata",properties:{index:{description:"The feature index",type:"SCALAR",componentType:"FLOAT32",required:!0}}}}},propertyTables:[{name:"feature-indices-mapping",class:"feature",count:v,properties:{index:{values:u.length-1}}}]},b.push("EXT_structural_metadata")),h(O)&&(s.push({uri:O,byteLength:L.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:L.byteLength,target:34963}),f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:L.length,type:"SCALAR"}),H.CESIUM_primitive_outline={indices:f.length-1},b.push("CESIUM_primitive_outline")),s.push({uri:A,byteLength:d.byteLength}),u.push({buffer:s.length-1,byteOffset:0,byteLength:d.byteLength,target:34963});let W=[];return m>0&&(f.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H})),m<t&&(f.push({bufferView:u.length-1,byteOffset:4*m,componentType:5125,count:t-m,type:"SCALAR"}),W.push({attributes:z,indices:f.length-1,material:W.length,extensions:H,extra:{isTransparent:!0}})),c.push({primitives:W}),g.push(0),y.push({mesh:0}),{buffers:s,bufferViews:u,accessors:f,meshes:c,nodes:y,nodesInScene:g,rootExtensions:p,extensionsUsed:b}}function Pt(t,e,n,r){let o=new Uint8Array(t,0,5);return 68===o[0]&&82===o[1]&&65===o[2]&&67===o[3]&&79===o[4]?jt(t,n):Ht(t,e,n,r)}function jt(t){let e=ut,n=new e.DecoderBuffer,r=new Uint8Array(t);n.Init(r,r.length);let o,a,i=new e.Decoder,l=i.GetEncodedGeometryType(n),s=new e.MetadataQuerier;l===e.TRIANGULAR_MESH&&(o=new e.Mesh,a=i.DecodeBufferToMesh(n,o));let u={vertexCount:[0],featureCount:0};if(h(a)&&a.ok()&&0!==o.ptr){let t=o.num_faces(),n=o.num_attributes(),r=o.num_points();u.indices=new Uint32Array(3*t);let a=u.indices;u.vertexCount[0]=r,u.scale_x=1,u.scale_y=1;let l=new e.DracoInt32Array(3);for(let e=0;e<t;++e)i.GetFaceFromMesh(o,e,l),a[3*e]=l.GetValue(0),a[3*e+1]=l.GetValue(1),a[3*e+2]=l.GetValue(2);e.destroy(l);for(let t=0;t<n;++t){let n=i.GetAttribute(o,t),a=kt(e,i,o,n,r),l=n.attribute_type(),f="unknown";l===e.POSITION?f="positions":l===e.NORMAL?f="normals":l===e.COLOR?f="colors":l===e.TEX_COORD&&(f="uv0s");let c=i.GetAttributeMetadata(o,t);if(0!==c.ptr){let t=s.NumEntries(c);for(let e=0;e<t;++e){let t=s.GetEntryName(c,e);"i3s-scale_x"===t?u.scale_x=s.GetDoubleEntry(c,"i3s-scale_x"):"i3s-scale_y"===t?u.scale_y=s.GetDoubleEntry(c,"i3s-scale_y"):"i3s-attribute-type"===t&&(f=s.GetStringEntry(c,"i3s-attribute-type"))}}h(u[f])&&console.log("Attribute already exists",f),u[f]=a,"feature-index"===f&&u.featureCount++}e.destroy(o)}return e.destroy(s),e.destroy(i),u}function kt(t,e,n,r,o){let a,i=r.num_components()*o,l=[function(){},function(){a=new t.DracoInt8Array(i),e.GetAttributeInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt16Array(i),e.GetAttributeUInt16ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint16Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Int32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){a=new t.DracoInt32Array(i),e.GetAttributeUInt32ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){},function(){a=new t.DracoFloat32Array(i),e.GetAttributeFloatForAllPoints(n,r,a)||console.error("Bad stream");let o=new Float32Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o},function(){},function(){a=new t.DracoUInt8Array(i),e.GetAttributeUInt8ForAllPoints(n,r,a)||console.error("Bad stream");let o=new Uint8Array(i);for(let t=0;t<i;++t)o[t]=a.GetValue(t);return o}][r.data_type()]();return h(a)&&t.destroy(a),l}var W={position:function(t,e,n){let r=3*t.vertexCount;return t.positions=new Float32Array(e,n,r),n+=4*r},normal:function(t,e,n){let r=3*t.vertexCount;return t.normals=new Float32Array(e,n,r),n+=4*r},uv0:function(t,e,n){let r=2*t.vertexCount;return t.uv0s=new Float32Array(e,n,r),n+=4*r},color:function(t,e,n){let r=4*t.vertexCount;return t.colors=new Uint8Array(e,n,r),n+=r},featureId:function(t,e,n){return n+=8*t.featureCount},id:function(t,e,n){return n+=8*t.featureCount},faceRange:function(t,e,n){let r=2*t.featureCount;return t.faceRange=new Uint32Array(e,n,r),n+=4*r},uvRegion:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+=2*r},region:function(t,e,n){let r=4*t.vertexCount;return t["uv-region"]=new Uint16Array(e,n,r),n+=2*r}};function Ht(t,e,n,r){let o={vertexCount:0},a=new DataView(t);try{let i=0;if(o.vertexCount=a.getUint32(i,1),i+=4,o.featureCount=a.getUint32(i,1),i+=4,h(n))for(let e=0;e<n.attributes.length;e++)h(W[n.attributes[e]])?i=W[n.attributes[e]](o,t,i):console.error("Unknown decoder for",n.attributes[e]);else{let n=e.ordering,a=e.featureAttributeOrder;h(r)&&h(r.geometryData)&&h(r.geometryData[0])&&h(r.geometryData[0].params)&&(n=Object.keys(r.geometryData[0].params.vertexAttributes),a=Object.keys(r.geometryData[0].params.featureAttributes));for(let e=0;e<n.length;e++){i=(0,W[n[e]])(o,t,i)}for(let e=0;e<a.length;e++){i=(0,W[a[e]])(o,t,i)}}}catch(t){console.error(t)}return o.scale_x=1,o.scale_y=1,o}function Xt(t){let e,n=Pt(t.binaryData,t.schema,t.bufferInfo,t.featureData);if(h(t.geoidDataList)&&t.geoidDataList.length>0&&Lt(n.vertexCount,n.positions,n.scale_x,n.scale_y,t.cartographicCenter,t.geoidDataList,!1),Ot(n.vertexCount,n.positions,n.normals,t.cartographicCenter,t.cartesianCenter,t.parentRotation,t.ellipsoidRadiiSquare,n.scale_x,n.scale_y),h(n.uv0s)&&h(n["uv-region"])&&Tt(n.vertexCount,n.uv0s,n["uv-region"]),h(n["feature-index"]))e=n["feature-index"];else if(h(n.faceRange)){e=new Array(n.vertexCount);for(let t=0;t<n.faceRange.length-1;t+=2){let r=t/2,o=n.faceRange[t],a=n.faceRange[t+1];for(let t=o;t<=a;t++)e[3*t]=r,e[3*t+1]=r,e[3*t+2]=r}}if(t.calculateNormals){let t=vt(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e);h(t.normals)&&(n.normals=t.normals,h(t.vertexCount)&&(n.vertexCount=t.vertexCount,n.indices=t.indices,n.positions=t.positions,n.uv0s=t.uv0s,n.colors=t.colors,e=t.featureIndex))}let r=Mt(n.vertexCount,n.indices,n.positions,n.normals,n.uv0s,n.colors,e,t),o={positions:n.positions,indices:n.indices,featureIndex:e,sourceURL:t.url,cartesianCenter:t.cartesianCenter,parentRotation:t.parentRotation};return r._customAttributes=o,{meshData:r}}async function Yt(t,e){let n=t.webAssemblyConfig;return ut=h(n)&&h(n.wasmBinaryFile)?await(0,at.default)(n):await(0,at.default)(),!0}function zt(t,e){let n=t.webAssemblyConfig;return h(n)?Yt(t,e):Xt(t,e)}var se=yt(zt);export{se as default};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.120
5
+ *
6
+ * Copyright 2011-2022 Cesium Contributors
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ *
20
+ * Columbus View (Pat. Pend.)
21
+ *
22
+ * Portions licensed separately.
23
+ * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
+ */