@reearth/core 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (649) hide show
  1. package/README.md +18 -0
  2. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  3. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  4. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  5. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  6. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  7. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  8. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  9. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  10. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  11. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  12. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  13. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  14. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  15. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  16. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  17. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  18. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  19. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  20. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  21. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  22. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  23. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  24. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  25. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  26. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  27. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  28. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  29. package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  30. package/dist/cesium/Assets/Images/bing_maps_credit.png +0 -0
  31. package/dist/cesium/Assets/Images/cesium_credit.png +0 -0
  32. package/dist/cesium/Assets/Images/google_earth_credit.png +0 -0
  33. package/dist/cesium/Assets/Images/ion-credit.png +0 -0
  34. package/dist/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  35. package/dist/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  36. package/dist/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  37. package/dist/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  38. package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  39. package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  40. package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  41. package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  42. package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  43. package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  44. package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  45. package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  46. package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  47. package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  48. package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  49. package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  50. package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  51. package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  52. package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  53. package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  54. package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  55. package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  56. package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  57. package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  58. package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  59. package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  60. package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  61. package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  62. package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  63. package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  64. package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  65. package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  66. package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  67. package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  68. package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  69. package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  70. package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  71. package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  72. package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  73. package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  74. package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  75. package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  76. package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  77. package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  78. package/dist/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  79. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  80. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  81. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  82. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  83. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  84. package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  85. package/dist/cesium/Assets/Textures/maki/airfield.png +0 -0
  86. package/dist/cesium/Assets/Textures/maki/airport.png +0 -0
  87. package/dist/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
  88. package/dist/cesium/Assets/Textures/maki/america-football.png +0 -0
  89. package/dist/cesium/Assets/Textures/maki/art-gallery.png +0 -0
  90. package/dist/cesium/Assets/Textures/maki/bakery.png +0 -0
  91. package/dist/cesium/Assets/Textures/maki/bank.png +0 -0
  92. package/dist/cesium/Assets/Textures/maki/bar.png +0 -0
  93. package/dist/cesium/Assets/Textures/maki/baseball.png +0 -0
  94. package/dist/cesium/Assets/Textures/maki/basketball.png +0 -0
  95. package/dist/cesium/Assets/Textures/maki/beer.png +0 -0
  96. package/dist/cesium/Assets/Textures/maki/bicycle.png +0 -0
  97. package/dist/cesium/Assets/Textures/maki/building.png +0 -0
  98. package/dist/cesium/Assets/Textures/maki/bus.png +0 -0
  99. package/dist/cesium/Assets/Textures/maki/cafe.png +0 -0
  100. package/dist/cesium/Assets/Textures/maki/camera.png +0 -0
  101. package/dist/cesium/Assets/Textures/maki/campsite.png +0 -0
  102. package/dist/cesium/Assets/Textures/maki/car.png +0 -0
  103. package/dist/cesium/Assets/Textures/maki/cemetery.png +0 -0
  104. package/dist/cesium/Assets/Textures/maki/cesium.png +0 -0
  105. package/dist/cesium/Assets/Textures/maki/chemist.png +0 -0
  106. package/dist/cesium/Assets/Textures/maki/cinema.png +0 -0
  107. package/dist/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
  108. package/dist/cesium/Assets/Textures/maki/circle.png +0 -0
  109. package/dist/cesium/Assets/Textures/maki/city.png +0 -0
  110. package/dist/cesium/Assets/Textures/maki/clothing-store.png +0 -0
  111. package/dist/cesium/Assets/Textures/maki/college.png +0 -0
  112. package/dist/cesium/Assets/Textures/maki/commercial.png +0 -0
  113. package/dist/cesium/Assets/Textures/maki/cricket.png +0 -0
  114. package/dist/cesium/Assets/Textures/maki/cross.png +0 -0
  115. package/dist/cesium/Assets/Textures/maki/dam.png +0 -0
  116. package/dist/cesium/Assets/Textures/maki/danger.png +0 -0
  117. package/dist/cesium/Assets/Textures/maki/disability.png +0 -0
  118. package/dist/cesium/Assets/Textures/maki/dog-park.png +0 -0
  119. package/dist/cesium/Assets/Textures/maki/embassy.png +0 -0
  120. package/dist/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
  121. package/dist/cesium/Assets/Textures/maki/entrance.png +0 -0
  122. package/dist/cesium/Assets/Textures/maki/farm.png +0 -0
  123. package/dist/cesium/Assets/Textures/maki/fast-food.png +0 -0
  124. package/dist/cesium/Assets/Textures/maki/ferry.png +0 -0
  125. package/dist/cesium/Assets/Textures/maki/fire-station.png +0 -0
  126. package/dist/cesium/Assets/Textures/maki/fuel.png +0 -0
  127. package/dist/cesium/Assets/Textures/maki/garden.png +0 -0
  128. package/dist/cesium/Assets/Textures/maki/gift.png +0 -0
  129. package/dist/cesium/Assets/Textures/maki/golf.png +0 -0
  130. package/dist/cesium/Assets/Textures/maki/grocery.png +0 -0
  131. package/dist/cesium/Assets/Textures/maki/hairdresser.png +0 -0
  132. package/dist/cesium/Assets/Textures/maki/harbor.png +0 -0
  133. package/dist/cesium/Assets/Textures/maki/heart.png +0 -0
  134. package/dist/cesium/Assets/Textures/maki/heliport.png +0 -0
  135. package/dist/cesium/Assets/Textures/maki/hospital.png +0 -0
  136. package/dist/cesium/Assets/Textures/maki/ice-cream.png +0 -0
  137. package/dist/cesium/Assets/Textures/maki/industrial.png +0 -0
  138. package/dist/cesium/Assets/Textures/maki/land-use.png +0 -0
  139. package/dist/cesium/Assets/Textures/maki/laundry.png +0 -0
  140. package/dist/cesium/Assets/Textures/maki/library.png +0 -0
  141. package/dist/cesium/Assets/Textures/maki/lighthouse.png +0 -0
  142. package/dist/cesium/Assets/Textures/maki/lodging.png +0 -0
  143. package/dist/cesium/Assets/Textures/maki/logging.png +0 -0
  144. package/dist/cesium/Assets/Textures/maki/london-underground.png +0 -0
  145. package/dist/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
  146. package/dist/cesium/Assets/Textures/maki/marker.png +0 -0
  147. package/dist/cesium/Assets/Textures/maki/minefield.png +0 -0
  148. package/dist/cesium/Assets/Textures/maki/mobilephone.png +0 -0
  149. package/dist/cesium/Assets/Textures/maki/monument.png +0 -0
  150. package/dist/cesium/Assets/Textures/maki/museum.png +0 -0
  151. package/dist/cesium/Assets/Textures/maki/music.png +0 -0
  152. package/dist/cesium/Assets/Textures/maki/oil-well.png +0 -0
  153. package/dist/cesium/Assets/Textures/maki/park.png +0 -0
  154. package/dist/cesium/Assets/Textures/maki/park2.png +0 -0
  155. package/dist/cesium/Assets/Textures/maki/parking-garage.png +0 -0
  156. package/dist/cesium/Assets/Textures/maki/parking.png +0 -0
  157. package/dist/cesium/Assets/Textures/maki/pharmacy.png +0 -0
  158. package/dist/cesium/Assets/Textures/maki/pitch.png +0 -0
  159. package/dist/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
  160. package/dist/cesium/Assets/Textures/maki/playground.png +0 -0
  161. package/dist/cesium/Assets/Textures/maki/police.png +0 -0
  162. package/dist/cesium/Assets/Textures/maki/polling-place.png +0 -0
  163. package/dist/cesium/Assets/Textures/maki/post.png +0 -0
  164. package/dist/cesium/Assets/Textures/maki/prison.png +0 -0
  165. package/dist/cesium/Assets/Textures/maki/rail-above.png +0 -0
  166. package/dist/cesium/Assets/Textures/maki/rail-light.png +0 -0
  167. package/dist/cesium/Assets/Textures/maki/rail-metro.png +0 -0
  168. package/dist/cesium/Assets/Textures/maki/rail-underground.png +0 -0
  169. package/dist/cesium/Assets/Textures/maki/rail.png +0 -0
  170. package/dist/cesium/Assets/Textures/maki/religious-christian.png +0 -0
  171. package/dist/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
  172. package/dist/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
  173. package/dist/cesium/Assets/Textures/maki/restaurant.png +0 -0
  174. package/dist/cesium/Assets/Textures/maki/roadblock.png +0 -0
  175. package/dist/cesium/Assets/Textures/maki/rocket.png +0 -0
  176. package/dist/cesium/Assets/Textures/maki/school.png +0 -0
  177. package/dist/cesium/Assets/Textures/maki/scooter.png +0 -0
  178. package/dist/cesium/Assets/Textures/maki/shop.png +0 -0
  179. package/dist/cesium/Assets/Textures/maki/skiing.png +0 -0
  180. package/dist/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
  181. package/dist/cesium/Assets/Textures/maki/soccer.png +0 -0
  182. package/dist/cesium/Assets/Textures/maki/square-stroked.png +0 -0
  183. package/dist/cesium/Assets/Textures/maki/square.png +0 -0
  184. package/dist/cesium/Assets/Textures/maki/star-stroked.png +0 -0
  185. package/dist/cesium/Assets/Textures/maki/star.png +0 -0
  186. package/dist/cesium/Assets/Textures/maki/suitcase.png +0 -0
  187. package/dist/cesium/Assets/Textures/maki/swimming.png +0 -0
  188. package/dist/cesium/Assets/Textures/maki/telephone.png +0 -0
  189. package/dist/cesium/Assets/Textures/maki/tennis.png +0 -0
  190. package/dist/cesium/Assets/Textures/maki/theatre.png +0 -0
  191. package/dist/cesium/Assets/Textures/maki/toilets.png +0 -0
  192. package/dist/cesium/Assets/Textures/maki/town-hall.png +0 -0
  193. package/dist/cesium/Assets/Textures/maki/town.png +0 -0
  194. package/dist/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
  195. package/dist/cesium/Assets/Textures/maki/triangle.png +0 -0
  196. package/dist/cesium/Assets/Textures/maki/village.png +0 -0
  197. package/dist/cesium/Assets/Textures/maki/warehouse.png +0 -0
  198. package/dist/cesium/Assets/Textures/maki/waste-basket.png +0 -0
  199. package/dist/cesium/Assets/Textures/maki/water.png +0 -0
  200. package/dist/cesium/Assets/Textures/maki/wetland.png +0 -0
  201. package/dist/cesium/Assets/Textures/maki/zoo.png +0 -0
  202. package/dist/cesium/Assets/Textures/moonSmall.jpg +0 -0
  203. package/dist/cesium/Assets/Textures/pin.svg +1 -0
  204. package/dist/cesium/Assets/Textures/waterNormals.jpg +0 -0
  205. package/dist/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
  206. package/dist/cesium/Assets/approximateTerrainHeights.json +1 -0
  207. package/dist/cesium/ThirdParty/Workers/package.json +1 -0
  208. package/dist/cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
  209. package/dist/cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
  210. package/dist/cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
  211. package/dist/cesium/ThirdParty/basis_transcoder.wasm +0 -0
  212. package/dist/cesium/ThirdParty/draco_decoder.wasm +0 -0
  213. package/dist/cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
  214. package/dist/cesium/Widgets/Animation/Animation.css +127 -0
  215. package/dist/cesium/Widgets/Animation/lighter.css +70 -0
  216. package/dist/cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
  217. package/dist/cesium/Widgets/BaseLayerPicker/lighter.css +22 -0
  218. package/dist/cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
  219. package/dist/cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -0
  220. package/dist/cesium/Widgets/CesiumWidget/CesiumWidget.css +124 -0
  221. package/dist/cesium/Widgets/CesiumWidget/lighter.css +14 -0
  222. package/dist/cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  223. package/dist/cesium/Widgets/Geocoder/Geocoder.css +70 -0
  224. package/dist/cesium/Widgets/Geocoder/lighter.css +17 -0
  225. package/dist/cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  226. package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  227. package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  228. package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  229. package/dist/cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  230. package/dist/cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  231. package/dist/cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  232. package/dist/cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  233. package/dist/cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  234. package/dist/cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  235. package/dist/cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  236. package/dist/cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  237. package/dist/cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  238. package/dist/cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  239. package/dist/cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  240. package/dist/cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  241. package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  242. package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  243. package/dist/cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  244. package/dist/cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  245. package/dist/cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  246. package/dist/cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  247. package/dist/cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  248. package/dist/cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  249. package/dist/cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  250. package/dist/cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  251. package/dist/cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  252. package/dist/cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  253. package/dist/cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  254. package/dist/cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  255. package/dist/cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  256. package/dist/cesium/Widgets/Images/TimelineIcons.png +0 -0
  257. package/dist/cesium/Widgets/Images/info-loading.gif +0 -0
  258. package/dist/cesium/Widgets/InfoBox/InfoBox.css +92 -0
  259. package/dist/cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  260. package/dist/cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
  261. package/dist/cesium/Widgets/NavigationHelpButton/lighter.css +38 -0
  262. package/dist/cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  263. package/dist/cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
  264. package/dist/cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -0
  265. package/dist/cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
  266. package/dist/cesium/Widgets/Timeline/Timeline.css +103 -0
  267. package/dist/cesium/Widgets/Timeline/lighter.css +23 -0
  268. package/dist/cesium/Widgets/VRButton/VRButton.css +8 -0
  269. package/dist/cesium/Widgets/Viewer/Viewer.css +107 -0
  270. package/dist/cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  271. package/dist/cesium/Widgets/lighter.css +237 -0
  272. package/dist/cesium/Widgets/lighterShared.css +46 -0
  273. package/dist/cesium/Widgets/shared.css +103 -0
  274. package/dist/cesium/Widgets/widgets.css +1346 -0
  275. package/dist/cesium/Workers/chunk-2ED5WI77.js +26 -0
  276. package/dist/cesium/Workers/chunk-2MBPFWCP.js +26 -0
  277. package/dist/cesium/Workers/chunk-3C74MLG3.js +26 -0
  278. package/dist/cesium/Workers/chunk-45U7TTT3.js +26 -0
  279. package/dist/cesium/Workers/chunk-4N7SRDH5.js +26 -0
  280. package/dist/cesium/Workers/chunk-4T6AS6BZ.js +26 -0
  281. package/dist/cesium/Workers/chunk-5AG2MVRM.js +26 -0
  282. package/dist/cesium/Workers/chunk-5Z6L2FHX.js +26 -0
  283. package/dist/cesium/Workers/chunk-6AUUBDOF.js +26 -0
  284. package/dist/cesium/Workers/chunk-74N6MC2V.js +26 -0
  285. package/dist/cesium/Workers/chunk-7VJK3KHI.js +26 -0
  286. package/dist/cesium/Workers/chunk-7VZHIB6P.js +26 -0
  287. package/dist/cesium/Workers/chunk-7X2YQ6I4.js +27 -0
  288. package/dist/cesium/Workers/chunk-B2SKQ7LU.js +26 -0
  289. package/dist/cesium/Workers/chunk-B4TQDFIE.js +26 -0
  290. package/dist/cesium/Workers/chunk-B6TRTFAA.js +26 -0
  291. package/dist/cesium/Workers/chunk-BK3HCS7I.js +26 -0
  292. package/dist/cesium/Workers/chunk-BOPB43LN.js +26 -0
  293. package/dist/cesium/Workers/chunk-C6DMEJQ7.js +26 -0
  294. package/dist/cesium/Workers/chunk-CN7UN2OZ.js +26 -0
  295. package/dist/cesium/Workers/chunk-CSISXEG7.js +26 -0
  296. package/dist/cesium/Workers/chunk-CUOR5F7T.js +28 -0
  297. package/dist/cesium/Workers/chunk-DGCK3LD2.js +30 -0
  298. package/dist/cesium/Workers/chunk-DXEZYE3K.js +62 -0
  299. package/dist/cesium/Workers/chunk-EXBFEYPQ.js +26 -0
  300. package/dist/cesium/Workers/chunk-FK5KFB6H.js +26 -0
  301. package/dist/cesium/Workers/chunk-HPBHKP5S.js +26 -0
  302. package/dist/cesium/Workers/chunk-JCJ24DHF.js +26 -0
  303. package/dist/cesium/Workers/chunk-JEWHFDAA.js +26 -0
  304. package/dist/cesium/Workers/chunk-JZLZJJQD.js +26 -0
  305. package/dist/cesium/Workers/chunk-KRZBI2MU.js +26 -0
  306. package/dist/cesium/Workers/chunk-KTTUANTJ.js +26 -0
  307. package/dist/cesium/Workers/chunk-LDCAXLGS.js +26 -0
  308. package/dist/cesium/Workers/chunk-LOPN5R3I.js +26 -0
  309. package/dist/cesium/Workers/chunk-MDLPQIMP.js +26 -0
  310. package/dist/cesium/Workers/chunk-MRR3RGFO.js +26 -0
  311. package/dist/cesium/Workers/chunk-NPBZI5YA.js +26 -0
  312. package/dist/cesium/Workers/chunk-NUSW5B6A.js +26 -0
  313. package/dist/cesium/Workers/chunk-OUXRUXNB.js +26 -0
  314. package/dist/cesium/Workers/chunk-QPOPEH3M.js +26 -0
  315. package/dist/cesium/Workers/chunk-R2AN7EKC.js +26 -0
  316. package/dist/cesium/Workers/chunk-RURL6ZX2.js +26 -0
  317. package/dist/cesium/Workers/chunk-SUQM3OSW.js +28 -0
  318. package/dist/cesium/Workers/chunk-UBIRX2SP.js +26 -0
  319. package/dist/cesium/Workers/chunk-VAKC5J5C.js +26 -0
  320. package/dist/cesium/Workers/chunk-VHNZBQTR.js +27 -0
  321. package/dist/cesium/Workers/chunk-VKV642QV.js +26 -0
  322. package/dist/cesium/Workers/chunk-VMSXG4OA.js +26 -0
  323. package/dist/cesium/Workers/chunk-VQZSIOZW.js +26 -0
  324. package/dist/cesium/Workers/chunk-WZUWQMI7.js +26 -0
  325. package/dist/cesium/Workers/chunk-YBI55DLZ.js +26 -0
  326. package/dist/cesium/Workers/chunk-YEJWCH6C.js +26 -0
  327. package/dist/cesium/Workers/chunk-YPDO7SPO.js +26 -0
  328. package/dist/cesium/Workers/chunk-ZYWD6OQH.js +26 -0
  329. package/dist/cesium/Workers/combineGeometry.js +26 -0
  330. package/dist/cesium/Workers/createBoxGeometry.js +26 -0
  331. package/dist/cesium/Workers/createBoxOutlineGeometry.js +26 -0
  332. package/dist/cesium/Workers/createCircleGeometry.js +26 -0
  333. package/dist/cesium/Workers/createCircleOutlineGeometry.js +26 -0
  334. package/dist/cesium/Workers/createCoplanarPolygonGeometry.js +26 -0
  335. package/dist/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
  336. package/dist/cesium/Workers/createCorridorGeometry.js +26 -0
  337. package/dist/cesium/Workers/createCorridorOutlineGeometry.js +26 -0
  338. package/dist/cesium/Workers/createCylinderGeometry.js +26 -0
  339. package/dist/cesium/Workers/createCylinderOutlineGeometry.js +26 -0
  340. package/dist/cesium/Workers/createEllipseGeometry.js +26 -0
  341. package/dist/cesium/Workers/createEllipseOutlineGeometry.js +26 -0
  342. package/dist/cesium/Workers/createEllipsoidGeometry.js +26 -0
  343. package/dist/cesium/Workers/createEllipsoidOutlineGeometry.js +26 -0
  344. package/dist/cesium/Workers/createFrustumGeometry.js +26 -0
  345. package/dist/cesium/Workers/createFrustumOutlineGeometry.js +26 -0
  346. package/dist/cesium/Workers/createGeometry.js +26 -0
  347. package/dist/cesium/Workers/createGroundPolylineGeometry.js +26 -0
  348. package/dist/cesium/Workers/createPlaneGeometry.js +26 -0
  349. package/dist/cesium/Workers/createPlaneOutlineGeometry.js +26 -0
  350. package/dist/cesium/Workers/createPolygonGeometry.js +26 -0
  351. package/dist/cesium/Workers/createPolygonOutlineGeometry.js +26 -0
  352. package/dist/cesium/Workers/createPolylineGeometry.js +26 -0
  353. package/dist/cesium/Workers/createPolylineVolumeGeometry.js +26 -0
  354. package/dist/cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
  355. package/dist/cesium/Workers/createRectangleGeometry.js +26 -0
  356. package/dist/cesium/Workers/createRectangleOutlineGeometry.js +26 -0
  357. package/dist/cesium/Workers/createSimplePolylineGeometry.js +26 -0
  358. package/dist/cesium/Workers/createSphereGeometry.js +26 -0
  359. package/dist/cesium/Workers/createSphereOutlineGeometry.js +26 -0
  360. package/dist/cesium/Workers/createTaskProcessorWorker.js +26 -0
  361. package/dist/cesium/Workers/createVectorTileClampedPolylines.js +26 -0
  362. package/dist/cesium/Workers/createVectorTileGeometries.js +26 -0
  363. package/dist/cesium/Workers/createVectorTilePoints.js +26 -0
  364. package/dist/cesium/Workers/createVectorTilePolygons.js +26 -0
  365. package/dist/cesium/Workers/createVectorTilePolylines.js +26 -0
  366. package/dist/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
  367. package/dist/cesium/Workers/createVerticesFromHeightmap.js +26 -0
  368. package/dist/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
  369. package/dist/cesium/Workers/createWallGeometry.js +26 -0
  370. package/dist/cesium/Workers/createWallOutlineGeometry.js +26 -0
  371. package/dist/cesium/Workers/decodeDraco.js +26 -0
  372. package/dist/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
  373. package/dist/cesium/Workers/decodeI3S.js +26 -0
  374. package/dist/cesium/Workers/transcodeKTX2.js +56 -0
  375. package/dist/cesium/Workers/transferTypedArrayTest.js +26 -0
  376. package/dist/cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
  377. package/dist/core.js +83397 -0
  378. package/dist/core.umd.cjs +6710 -0
  379. package/dist/index-DqatWUTw.js +3225 -0
  380. package/dist/index.d.ts +1760 -0
  381. package/package.json +115 -0
  382. package/src/Map/ClusteredLayers/index.tsx +106 -0
  383. package/src/Map/Layer/hooks.ts +180 -0
  384. package/src/Map/Layer/index.tsx +92 -0
  385. package/src/Map/Layers/hooks.test.ts +819 -0
  386. package/src/Map/Layers/hooks.ts +955 -0
  387. package/src/Map/Layers/index.test.tsx +188 -0
  388. package/src/Map/Layers/index.tsx +76 -0
  389. package/src/Map/Layers/keys.ts +51 -0
  390. package/src/Map/Layers/utils.test.ts +53 -0
  391. package/src/Map/Layers/utils.ts +37 -0
  392. package/src/Map/Sketch/hooks.ts +641 -0
  393. package/src/Map/Sketch/index.tsx +101 -0
  394. package/src/Map/Sketch/preset.ts +29 -0
  395. package/src/Map/Sketch/sketchMachine.ts +323 -0
  396. package/src/Map/Sketch/sketchMachine.typegen.ts +72 -0
  397. package/src/Map/Sketch/types.ts +52 -0
  398. package/src/Map/Sketch/utils.ts +24 -0
  399. package/src/Map/hooks.ts +127 -0
  400. package/src/Map/index.tsx +147 -0
  401. package/src/Map/ref.ts +147 -0
  402. package/src/Map/types/event.ts +104 -0
  403. package/src/Map/types/index.ts +545 -0
  404. package/src/Map/useTimelineManager.ts +215 -0
  405. package/src/Map/utils.test.ts +62 -0
  406. package/src/Map/utils.ts +71 -0
  407. package/src/Visualizer/DropHolder.tsx +41 -0
  408. package/src/Visualizer/Error.tsx +15 -0
  409. package/src/Visualizer/context.tsx +27 -0
  410. package/src/Visualizer/coreContext.tsx +47 -0
  411. package/src/Visualizer/engines.ts +7 -0
  412. package/src/Visualizer/featureFlags.ts +9 -0
  413. package/src/Visualizer/hooks.ts +403 -0
  414. package/src/Visualizer/index.stories.tsx +128 -0
  415. package/src/Visualizer/index.tsx +187 -0
  416. package/src/Visualizer/interactionMode.ts +25 -0
  417. package/src/Visualizer/useViewport.ts +74 -0
  418. package/src/e2eConfig.ts +20 -0
  419. package/src/engines/Cesium/Cluster.tsx +90 -0
  420. package/src/engines/Cesium/Event.tsx +15 -0
  421. package/src/engines/Cesium/Feature/Box/Edge.tsx +94 -0
  422. package/src/engines/Cesium/Feature/Box/ScalePoints.tsx +158 -0
  423. package/src/engines/Cesium/Feature/Box/Side.tsx +70 -0
  424. package/src/engines/Cesium/Feature/Box/constants.ts +63 -0
  425. package/src/engines/Cesium/Feature/Box/hooks/box.ts +375 -0
  426. package/src/engines/Cesium/Feature/Box/hooks/edge.ts +112 -0
  427. package/src/engines/Cesium/Feature/Box/hooks/scalePoint.ts +174 -0
  428. package/src/engines/Cesium/Feature/Box/hooks/side.ts +72 -0
  429. package/src/engines/Cesium/Feature/Box/index.tsx +156 -0
  430. package/src/engines/Cesium/Feature/Box/utils.ts +168 -0
  431. package/src/engines/Cesium/Feature/Ellipse/index.stories.tsx +48 -0
  432. package/src/engines/Cesium/Feature/Ellipse/index.tsx +91 -0
  433. package/src/engines/Cesium/Feature/Ellipsoid/index.tsx +84 -0
  434. package/src/engines/Cesium/Feature/Frustum/FrustumColorAppearance.ts +38 -0
  435. package/src/engines/Cesium/Feature/Frustum/getFieldOfView.ts +23 -0
  436. package/src/engines/Cesium/Feature/Frustum/index.stories.tsx +49 -0
  437. package/src/engines/Cesium/Feature/Frustum/index.tsx +163 -0
  438. package/src/engines/Cesium/Feature/Frustum/shaders/frustumAppearance.frag.glsl +31 -0
  439. package/src/engines/Cesium/Feature/Frustum/shaders/frustumAppearance.vert.glsl +29 -0
  440. package/src/engines/Cesium/Feature/HeatMap/HeatmapMesh.tsx +186 -0
  441. package/src/engines/Cesium/Feature/HeatMap/HeatmapMeshMaterial.ts +81 -0
  442. package/src/engines/Cesium/Feature/HeatMap/colorMap.ts +47 -0
  443. package/src/engines/Cesium/Feature/HeatMap/constants.ts +781 -0
  444. package/src/engines/Cesium/Feature/HeatMap/createMeshImageData.ts +108 -0
  445. package/src/engines/Cesium/Feature/HeatMap/index.tsx +169 -0
  446. package/src/engines/Cesium/Feature/HeatMap/shaders/heatmapMeshMaterial.glsl +78 -0
  447. package/src/engines/Cesium/Feature/HeatMap/shaders/makeContour.glsl +13 -0
  448. package/src/engines/Cesium/Feature/HeatMap/shaders/sampleBicubic.glsl +57 -0
  449. package/src/engines/Cesium/Feature/Marker/index.tsx +296 -0
  450. package/src/engines/Cesium/Feature/Marker/marker.svg +3 -0
  451. package/src/engines/Cesium/Feature/Model/index.stories.tsx +48 -0
  452. package/src/engines/Cesium/Feature/Model/index.tsx +223 -0
  453. package/src/engines/Cesium/Feature/PhotoOverlay/hooks.ts +98 -0
  454. package/src/engines/Cesium/Feature/PhotoOverlay/index.tsx +163 -0
  455. package/src/engines/Cesium/Feature/PhotoOverlay/primPhotoIcon.svg +3 -0
  456. package/src/engines/Cesium/Feature/Polygon/index.stories.tsx +174 -0
  457. package/src/engines/Cesium/Feature/Polygon/index.tsx +182 -0
  458. package/src/engines/Cesium/Feature/Polyline/index.tsx +98 -0
  459. package/src/engines/Cesium/Feature/Raster/hooks.ts +52 -0
  460. package/src/engines/Cesium/Feature/Raster/index.stories.tsx +77 -0
  461. package/src/engines/Cesium/Feature/Raster/index.tsx +37 -0
  462. package/src/engines/Cesium/Feature/Raster/mvt.ts +33 -0
  463. package/src/engines/Cesium/Feature/Raster/tiles.ts +27 -0
  464. package/src/engines/Cesium/Feature/Raster/tms.ts +31 -0
  465. package/src/engines/Cesium/Feature/Raster/types.ts +5 -0
  466. package/src/engines/Cesium/Feature/Raster/utils.test.ts +14 -0
  467. package/src/engines/Cesium/Feature/Raster/utils.ts +10 -0
  468. package/src/engines/Cesium/Feature/Raster/wms.ts +28 -0
  469. package/src/engines/Cesium/Feature/Resource/index.stories.tsx +46 -0
  470. package/src/engines/Cesium/Feature/Resource/index.tsx +218 -0
  471. package/src/engines/Cesium/Feature/Resource/utils.test.ts +69 -0
  472. package/src/engines/Cesium/Feature/Resource/utils.ts +377 -0
  473. package/src/engines/Cesium/Feature/Tileset/DrawClippingPolygon/index.tsx +77 -0
  474. package/src/engines/Cesium/Feature/Tileset/TilesetFeatureIndex.ts +46 -0
  475. package/src/engines/Cesium/Feature/Tileset/hooks.ts +793 -0
  476. package/src/engines/Cesium/Feature/Tileset/index.stories.tsx +41 -0
  477. package/src/engines/Cesium/Feature/Tileset/index.tsx +127 -0
  478. package/src/engines/Cesium/Feature/Tileset/types.ts +5 -0
  479. package/src/engines/Cesium/Feature/Tileset/useClippingBox.ts +457 -0
  480. package/src/engines/Cesium/Feature/Tileset/useDrawClipping.ts +200 -0
  481. package/src/engines/Cesium/Feature/context.ts +33 -0
  482. package/src/engines/Cesium/Feature/index.tsx +250 -0
  483. package/src/engines/Cesium/Feature/utils.test.tsx +30 -0
  484. package/src/engines/Cesium/Feature/utils.tsx +289 -0
  485. package/src/engines/Cesium/FeatureIndex.ts +15 -0
  486. package/src/engines/Cesium/JapanSeaLevelEllipsoid.ts +20 -0
  487. package/src/engines/Cesium/PostProcesses/README.md +1 -0
  488. package/src/engines/Cesium/PostProcesses/hbao/AmbientOcclusion.tsx +120 -0
  489. package/src/engines/Cesium/PostProcesses/hbao/AmbientOcclusionOutputType.ts +7 -0
  490. package/src/engines/Cesium/PostProcesses/hbao/README.md +3 -0
  491. package/src/engines/Cesium/PostProcesses/hbao/config.ts +29 -0
  492. package/src/engines/Cesium/PostProcesses/hbao/createAmbientOcclusionStage.ts +173 -0
  493. package/src/engines/Cesium/PostProcesses/hbao/createCrossBilateralFilterStage.ts +94 -0
  494. package/src/engines/Cesium/PostProcesses/hbao/index.ts +3 -0
  495. package/src/engines/Cesium/PostProcesses/hbao/shaders/ambientOcclusionGenerate.glsl +151 -0
  496. package/src/engines/Cesium/PostProcesses/hbao/shaders/ambientOcclusionModulate.glsl +46 -0
  497. package/src/engines/Cesium/PostProcesses/hbao/shaders/crossBilateralFilter.glsl +108 -0
  498. package/src/engines/Cesium/PostProcesses/hbao/shaders/depth.glsl +3 -0
  499. package/src/engines/Cesium/PostProcesses/hbao/shaders/globeDepth.glsl +15 -0
  500. package/src/engines/Cesium/PostProcesses/hbao/shaders/highPassRandom.glsl +28 -0
  501. package/src/engines/Cesium/PostProcesses/hbao/shaders/packing.glsl +7 -0
  502. package/src/engines/Cesium/PostProcesses/hbao/shaders/reconstructNormal.glsl +109 -0
  503. package/src/engines/Cesium/PostProcesses/hbao/shaders/reconstructPosition.glsl +10 -0
  504. package/src/engines/Cesium/PostProcesses/hbao/shaders/turboColorMap.glsl +20 -0
  505. package/src/engines/Cesium/PostProcesses/hbao/shaders/vogelDisk.glsl +13 -0
  506. package/src/engines/Cesium/Shaders/CustomShaders/NonPBRLightingShader.ts +66 -0
  507. package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/Definitions.glsl +5 -0
  508. package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/HeatmapForTerrain.glsl +13 -0
  509. package/src/engines/Cesium/Shaders/OverriddenShaders/GlobeFS/IBL.glsl +57 -0
  510. package/src/engines/Cesium/Shaders/OverriddenShaders/README.md +13 -0
  511. package/src/engines/Cesium/Sketch/ControlPoint.tsx +67 -0
  512. package/src/engines/Cesium/Sketch/Entity.tsx +43 -0
  513. package/src/engines/Cesium/Sketch/ExtrudedControlPoints.tsx +51 -0
  514. package/src/engines/Cesium/Sketch/ExtrudedMeasurement.tsx +70 -0
  515. package/src/engines/Cesium/Sketch/ExtrudedPolygonEntity.tsx +75 -0
  516. package/src/engines/Cesium/Sketch/MeasurementText.tsx +13 -0
  517. package/src/engines/Cesium/Sketch/PolygonEntity.tsx +48 -0
  518. package/src/engines/Cesium/Sketch/PolylineEntity.tsx +44 -0
  519. package/src/engines/Cesium/Sketch/ScreenSpaceElement.tsx +87 -0
  520. package/src/engines/Cesium/Sketch/SurfaceControlPoints.tsx +67 -0
  521. package/src/engines/Cesium/Sketch/SurfaceMeasurement.tsx +80 -0
  522. package/src/engines/Cesium/Sketch/createGeometry.ts +224 -0
  523. package/src/engines/Cesium/Sketch/index.tsx +119 -0
  524. package/src/engines/Cesium/Sketch/utils.ts +27 -0
  525. package/src/engines/Cesium/VertexTerrainElevationMaterial.ts +33 -0
  526. package/src/engines/Cesium/cameraLimiter.ts +256 -0
  527. package/src/engines/Cesium/common.test.ts +38 -0
  528. package/src/engines/Cesium/common.ts +901 -0
  529. package/src/engines/Cesium/constants.ts +25 -0
  530. package/src/engines/Cesium/core/Clock.tsx +58 -0
  531. package/src/engines/Cesium/core/Globe.tsx +136 -0
  532. package/src/engines/Cesium/core/Imagery.test.ts +102 -0
  533. package/src/engines/Cesium/core/Imagery.tsx +184 -0
  534. package/src/engines/Cesium/core/Indicator/Indicator.tsx +141 -0
  535. package/src/engines/Cesium/core/Indicator/crosshair.svg +3 -0
  536. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImagery.tsx +321 -0
  537. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryLayer.tsx +56 -0
  538. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapLabelImageryProvider.ts +146 -0
  539. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/JapanGSIOptimalBVmapVectorMapLabel.tsx +258 -0
  540. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/getAnnotationType.ts +117 -0
  541. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/helpers.ts +24 -0
  542. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/index.ts +3 -0
  543. package/src/engines/Cesium/core/labels/JapanGSIOptimalBVmapVectorMapLabel/types.ts +26 -0
  544. package/src/engines/Cesium/core/labels/LabelImageryLayers.tsx +39 -0
  545. package/src/engines/Cesium/core/presets.ts +95 -0
  546. package/src/engines/Cesium/helpers/createUniforms.ts +64 -0
  547. package/src/engines/Cesium/helpers/sphericalHaromic.test.ts +33 -0
  548. package/src/engines/Cesium/helpers/sphericalHaromic.ts +27 -0
  549. package/src/engines/Cesium/hooks/useInstance.ts +98 -0
  550. package/src/engines/Cesium/hooks/useLayerSelectWithRect.ts +157 -0
  551. package/src/engines/Cesium/hooks/useSceneEvent.ts +47 -0
  552. package/src/engines/Cesium/hooks.ts +1004 -0
  553. package/src/engines/Cesium/index.stories.tsx +42 -0
  554. package/src/engines/Cesium/index.tsx +285 -0
  555. package/src/engines/Cesium/pickMany.ts +310 -0
  556. package/src/engines/Cesium/type.d.ts +47 -0
  557. package/src/engines/Cesium/types.ts +24 -0
  558. package/src/engines/Cesium/useEngineRef.test.tsx +627 -0
  559. package/src/engines/Cesium/useEngineRef.ts +945 -0
  560. package/src/engines/Cesium/useOverrideGlobeShader.ts +322 -0
  561. package/src/engines/Cesium/utils/mouse.ts +16 -0
  562. package/src/engines/Cesium/utils/polygon.ts +48 -0
  563. package/src/engines/Cesium/utils/utils.ts +446 -0
  564. package/src/engines/Cesium/vertexTerrainElevationMaterial.glsl +25 -0
  565. package/src/engines/index.ts +37 -0
  566. package/src/env.d.ts +3 -0
  567. package/src/hooks/index.ts +2 -0
  568. package/src/hooks/useRefFunction.ts +10 -0
  569. package/src/hooks/useRefValue.ts +7 -0
  570. package/src/index.ts +4 -0
  571. package/src/mantle/README.md +7 -0
  572. package/src/mantle/atoms/cache.test.ts +61 -0
  573. package/src/mantle/atoms/cache.ts +55 -0
  574. package/src/mantle/atoms/compute.test.ts +794 -0
  575. package/src/mantle/atoms/compute.ts +344 -0
  576. package/src/mantle/atoms/data.test.ts +182 -0
  577. package/src/mantle/atoms/data.ts +114 -0
  578. package/src/mantle/atoms/index.ts +1 -0
  579. package/src/mantle/compat/backward.test.ts +368 -0
  580. package/src/mantle/compat/backward.ts +189 -0
  581. package/src/mantle/compat/forward.test.ts +688 -0
  582. package/src/mantle/compat/forward.ts +272 -0
  583. package/src/mantle/compat/index.ts +4 -0
  584. package/src/mantle/compat/types.ts +73 -0
  585. package/src/mantle/data/csv.test.ts +478 -0
  586. package/src/mantle/data/csv.ts +194 -0
  587. package/src/mantle/data/geojson.ts +72 -0
  588. package/src/mantle/data/georss.ts +172 -0
  589. package/src/mantle/data/gml.ts +244 -0
  590. package/src/mantle/data/gpx.test.ts +65 -0
  591. package/src/mantle/data/gpx.ts +551 -0
  592. package/src/mantle/data/gtfs.ts +116 -0
  593. package/src/mantle/data/gtfsReader.ts +454 -0
  594. package/src/mantle/data/index.test.ts +16 -0
  595. package/src/mantle/data/index.ts +73 -0
  596. package/src/mantle/data/shapefile.ts +232 -0
  597. package/src/mantle/data/utils.ts +21 -0
  598. package/src/mantle/evaluator/index.ts +40 -0
  599. package/src/mantle/evaluator/simple/conditionalExpression/index.ts +60 -0
  600. package/src/mantle/evaluator/simple/expression/constants.ts +204 -0
  601. package/src/mantle/evaluator/simple/expression/expression.test.ts +63 -0
  602. package/src/mantle/evaluator/simple/expression/expression.ts +116 -0
  603. package/src/mantle/evaluator/simple/expression/functions/binaryFunctions.ts +43 -0
  604. package/src/mantle/evaluator/simple/expression/functions/colors.ts +189 -0
  605. package/src/mantle/evaluator/simple/expression/functions/index.ts +3 -0
  606. package/src/mantle/evaluator/simple/expression/functions/unaryFunctions.ts +54 -0
  607. package/src/mantle/evaluator/simple/expression/index.ts +1 -0
  608. package/src/mantle/evaluator/simple/expression/node.ts +570 -0
  609. package/src/mantle/evaluator/simple/expression/runtime.ts +266 -0
  610. package/src/mantle/evaluator/simple/expression/variableReplacer.test.ts +54 -0
  611. package/src/mantle/evaluator/simple/expression/variableReplacer.ts +121 -0
  612. package/src/mantle/evaluator/simple/index.test.ts +656 -0
  613. package/src/mantle/evaluator/simple/index.ts +178 -0
  614. package/src/mantle/evaluator/simple/interval.test.ts +102 -0
  615. package/src/mantle/evaluator/simple/interval.ts +27 -0
  616. package/src/mantle/evaluator/simple/utils.test.ts +56 -0
  617. package/src/mantle/evaluator/simple/utils.ts +31 -0
  618. package/src/mantle/index.ts +6 -0
  619. package/src/mantle/types/appearance.ts +318 -0
  620. package/src/mantle/types/events.ts +16 -0
  621. package/src/mantle/types/expression.ts +9 -0
  622. package/src/mantle/types/index.ts +156 -0
  623. package/src/mantle/types/value.ts +153 -0
  624. package/src/mantle/utils.test.ts +74 -0
  625. package/src/mantle/utils.ts +53 -0
  626. package/src/reearthTypes.ts +64 -0
  627. package/src/setupTests.ts +1 -0
  628. package/src/test/setup.ts +40 -0
  629. package/src/test/utils.tsx +40 -0
  630. package/src/types.ts +66 -0
  631. package/src/utils/StringMatcher.test.ts +132 -0
  632. package/src/utils/StringMatcher.ts +104 -0
  633. package/src/utils/assertType.ts +1 -0
  634. package/src/utils/generate-random-string.ts +9 -0
  635. package/src/utils/idle.ts +22 -0
  636. package/src/utils/image.ts +35 -0
  637. package/src/utils/index.ts +11 -0
  638. package/src/utils/object.ts +70 -0
  639. package/src/utils/raf.ts +58 -0
  640. package/src/utils/time.ts +18 -0
  641. package/src/utils/use-delayed-count.test.ts +139 -0
  642. package/src/utils/use-delayed-count.ts +65 -0
  643. package/src/utils/use-dnd/drag.ts +34 -0
  644. package/src/utils/use-dnd/drop.ts +93 -0
  645. package/src/utils/use-dnd/index.tsx +20 -0
  646. package/src/utils/use-dnd/types.ts +47 -0
  647. package/src/utils/util.ts +81 -0
  648. package/src/utils/value.ts +260 -0
  649. package/src/vite-env.d.ts +1 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as l}from"./chunk-YPDO7SPO.js";import{b as d,c as y,d as s}from"./chunk-7VJK3KHI.js";import{d as c}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as f}from"./chunk-B2SKQ7LU.js";import{a}from"./chunk-CUOR5F7T.js";import"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import"./chunk-NPBZI5YA.js";import{b as m}from"./chunk-7X2YQ6I4.js";import{e as i}from"./chunk-R2AN7EKC.js";function o(){this._workerName="createPlaneOutlineGeometry"}o.packedLength=0;o.pack=function(r,e){return m.defined("value",r),m.defined("array",e),e};o.unpack=function(r,e,t){return m.defined("array",r),i(t)?t:new o};var n=new a(-.5,-.5,0),p=new a(.5,.5,0);o.createGeometry=function(){let r=new l,e=new Uint16Array(4*2),t=new Float64Array(4*3);return t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=p.x,t[4]=n.y,t[5]=n.z,t[6]=p.x,t[7]=p.y,t[8]=n.z,t[9]=n.x,t[10]=p.y,t[11]=n.z,r.position=new s({componentDatatype:f.DOUBLE,componentsPerAttribute:3,values:t}),e[0]=0,e[1]=1,e[2]=1,e[3]=2,e[4]=2,e[5]=3,e[6]=3,e[7]=0,new y({attributes:r,indices:e,primitiveType:d.LINES,boundingSphere:new c(a.ZERO,Math.sqrt(2))})};var u=o;function w(r,e){return i(e)&&(r=u.unpack(r,e)),u.createGeometry(r)}var D=w;export{D as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as dt}from"./chunk-VQZSIOZW.js";import{a as F}from"./chunk-YBI55DLZ.js";import{a as at}from"./chunk-FK5KFB6H.js";import{a as st}from"./chunk-YEJWCH6C.js";import{a as bt}from"./chunk-KRZBI2MU.js";import"./chunk-C6DMEJQ7.js";import"./chunk-BK3HCS7I.js";import{a as ht}from"./chunk-3C74MLG3.js";import{a as Q}from"./chunk-4N7SRDH5.js";import{a as K}from"./chunk-VMSXG4OA.js";import"./chunk-7VZHIB6P.js";import{a as gt,b as nt}from"./chunk-5AG2MVRM.js";import"./chunk-RURL6ZX2.js";import"./chunk-QPOPEH3M.js";import{a as wt,b as yt}from"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as lt}from"./chunk-JEWHFDAA.js";import"./chunk-YPDO7SPO.js";import{c as mt,d as tt}from"./chunk-7VJK3KHI.js";import{d as Tt,e as ct}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import{c as _t}from"./chunk-DGCK3LD2.js";import{a as $}from"./chunk-B2SKQ7LU.js";import{a as c,b as ot,c as O,d as V,e as W}from"./chunk-CUOR5F7T.js";import{a as l}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as L}from"./chunk-NPBZI5YA.js";import{a as ut,b as q}from"./chunk-7X2YQ6I4.js";import{e as P}from"./chunk-R2AN7EKC.js";function b(t,e){this.position=t,P(this.position)||(this.position=new O),this.tangentPlane=e,P(this.tangentPlane)||(this.tangentPlane=b.NORTH_POLE_TANGENT_PLANE)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this.tangentPlane.ellipsoid}},x:{get:function(){return this.position.x}},y:{get:function(){return this.position.y}},conformalLatitude:{get:function(){let t=O.magnitude(this.position),e=2*this.ellipsoid.maximumRadius;return this.tangentPlane.plane.normal.z*(l.PI_OVER_TWO-2*Math.atan2(t,e))}},longitude:{get:function(){let t=l.PI_OVER_TWO+Math.atan2(this.y,this.x);return t>Math.PI&&(t-=l.TWO_PI),t}}});var it=new ot,Rt=new c;b.prototype.getLatitude=function(t){P(t)||(t=V.WGS84),it.latitude=this.conformalLatitude,it.longitude=this.longitude,it.height=0;let e=this.ellipsoid.cartographicToCartesian(it,Rt);return t.cartesianToCartographic(e,it),it.latitude};var It=new wt,Lt=new c,Ft=new c;b.fromCartesian=function(t,e){q.defined("cartesian",t);let o=l.signNotZero(t.z),n=b.NORTH_POLE_TANGENT_PLANE,s=b.SOUTH_POLE;o<0&&(n=b.SOUTH_POLE_TANGENT_PLANE,s=b.NORTH_POLE);let i=It;i.origin=n.ellipsoid.scaleToGeocentricSurface(t,i.origin),i.direction=c.subtract(i.origin,s,Lt),c.normalize(i.direction,i.direction);let r=yt.rayPlane(i,n.plane,Ft),f=c.subtract(r,s,r),d=c.dot(n.xAxis,f),p=o*c.dot(n.yAxis,f);return P(e)?(e.position=new O(d,p),e.tangentPlane=n,e):new b(new O(d,p),n)};b.fromCartesianArray=function(t,e){q.defined("cartesians",t);let o=t.length;P(e)?e.length=o:e=new Array(o);for(let n=0;n<o;n++)e[n]=b.fromCartesian(t[n],e[n]);return e};b.clone=function(t,e){if(P(t))return P(e)?(e.position=t.position,e.tangentPlane=t.tangentPlane,e):new b(t.position,t.tangentPlane)};b.HALF_UNIT_SPHERE=Object.freeze(new V(.5,.5,.5));b.NORTH_POLE=Object.freeze(new c(0,0,.5));b.SOUTH_POLE=Object.freeze(new c(0,0,-.5));b.NORTH_POLE_TANGENT_PLANE=Object.freeze(new K(b.NORTH_POLE,b.HALF_UNIT_SPHERE));b.SOUTH_POLE_TANGENT_PLANE=Object.freeze(new K(b.SOUTH_POLE,b.HALF_UNIT_SPHERE));var D=b;var vt=new ot,Ot=new ot;function St(t,e,o,n){let i=n.cartesianToCartographic(t,vt).height,r=n.cartesianToCartographic(e,Ot);r.height=i,n.cartographicToCartesian(r,e);let f=n.cartesianToCartographic(o,Ot);f.height=i-100,n.cartographicToCartesian(f,o)}var Et=new dt,Vt=new c,Bt=new c,Mt=new c,jt=new c,kt=new c,zt=new c,ft=new c,Z=new c,rt=new c,Dt=new O,Wt=new O,Ut=new c,At=new ct,Gt=new W,Yt=new W;function pt(t){let e=t.vertexFormat,o=t.geometry,n=t.shadowVolume,s=o.attributes.position.values,i=P(o.attributes.st)?o.attributes.st.values:void 0,r=s.length,f=t.wall,d=t.top||f,p=t.bottom||f;if(e.st||e.normal||e.tangent||e.bitangent||n){let w=t.boundingRectangle,a=t.rotationAxis,H=t.projectTo2d,x=t.ellipsoid,j=t.stRotation,C=t.perPositionHeight,R=Dt;R.x=w.x,R.y=w.y;let B=e.st?new Float32Array(2*(r/3)):void 0,u;e.normal&&(C&&d&&!f?u=o.attributes.normal.values:u=new Float32Array(r));let E=e.tangent?new Float32Array(r):void 0,A=e.bitangent?new Float32Array(r):void 0,v=n?new Float32Array(r):void 0,T=0,y=0,_=Bt,h=Mt,g=jt,k=!0,Y=Gt,J=Yt;if(j!==0){let M=ct.fromAxisAngle(a,j,At);Y=W.fromQuaternion(M,Y),M=ct.fromAxisAngle(a,-j,At),J=W.fromQuaternion(M,J)}else Y=W.clone(W.IDENTITY,Y),J=W.clone(W.IDENTITY,J);let m=0,I=0;d&&p&&(m=r/2,I=r/3,r/=2);for(let M=0;M<r;M+=3){let z=c.fromArray(s,M,Ut);if(e.st&&!P(i)){let N=W.multiplyByVector(Y,z,Vt);N=x.scaleToGeodeticSurface(N,N);let S=H([N],Wt)[0];O.subtract(S,R,S);let X=l.clamp(S.x/w.width,0,1),et=l.clamp(S.y/w.height,0,1);p&&(B[T+I]=X,B[T+1+I]=et),d&&(B[T]=X,B[T+1]=et),T+=2}if(e.normal||e.tangent||e.bitangent||n){let N=y+1,S=y+2;if(f){if(M+3<r){let X=c.fromArray(s,M+3,kt);if(k){let et=c.fromArray(s,M+r,zt);C&&St(z,X,et,x),c.subtract(X,z,X),c.subtract(et,z,et),_=c.normalize(c.cross(et,X,_),_),k=!1}c.equalsEpsilon(X,z,l.EPSILON10)&&(k=!0)}(e.tangent||e.bitangent)&&(g=x.geodeticSurfaceNormal(z,g),e.tangent&&(h=c.normalize(c.cross(g,_,h),h)))}else _=x.geodeticSurfaceNormal(z,_),(e.tangent||e.bitangent)&&(C&&(ft=c.fromArray(u,y,ft),Z=c.cross(c.UNIT_Z,ft,Z),Z=c.normalize(W.multiplyByVector(J,Z,Z),Z),e.bitangent&&(rt=c.normalize(c.cross(ft,Z,rt),rt))),h=c.cross(c.UNIT_Z,_,h),h=c.normalize(W.multiplyByVector(J,h,h),h),e.bitangent&&(g=c.normalize(c.cross(_,h,g),g)));e.normal&&(t.wall?(u[y+m]=_.x,u[N+m]=_.y,u[S+m]=_.z):p&&(u[y+m]=-_.x,u[N+m]=-_.y,u[S+m]=-_.z),(d&&!C||f)&&(u[y]=_.x,u[N]=_.y,u[S]=_.z)),n&&(f&&(_=x.geodeticSurfaceNormal(z,_)),v[y+m]=-_.x,v[N+m]=-_.y,v[S+m]=-_.z),e.tangent&&(t.wall?(E[y+m]=h.x,E[N+m]=h.y,E[S+m]=h.z):p&&(E[y+m]=-h.x,E[N+m]=-h.y,E[S+m]=-h.z),d&&(C?(E[y]=Z.x,E[N]=Z.y,E[S]=Z.z):(E[y]=h.x,E[N]=h.y,E[S]=h.z))),e.bitangent&&(p&&(A[y+m]=g.x,A[N+m]=g.y,A[S+m]=g.z),d&&(C?(A[y]=rt.x,A[N]=rt.y,A[S]=rt.z):(A[y]=g.x,A[N]=g.y,A[S]=g.z))),y+=3}}e.st&&!P(i)&&(o.attributes.st=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:2,values:B})),e.normal&&(o.attributes.normal=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:u})),e.tangent&&(o.attributes.tangent=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:E})),e.bitangent&&(o.attributes.bitangent=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:A})),n&&(o.attributes.extrudeDirection=new tt({componentDatatype:$.FLOAT,componentsPerAttribute:3,values:v}))}if(t.extrude&&P(t.offsetAttribute)){let w=s.length/3,a=new Uint8Array(w);if(t.offsetAttribute===ht.TOP)d&&p||f?a=a.fill(1,0,w/2):d&&(a=a.fill(1));else{let H=t.offsetAttribute===ht.NONE?0:1;a=a.fill(H)}o.attributes.applyOffset=new tt({componentDatatype:$.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})}return o}var Ht=[];function qt(t,e,o,n,s,i,r,f,d,p){let w={walls:[]},a;if(r||f){let u=F.createGeometryFromPositions(t,e,o,n,i,d,p),E=u.attributes.position.values,A=u.indices,v,T;if(r&&f){let y=E.concat(E);v=y.length/3,T=lt.createTypedArray(v,A.length*2),T.set(A);let _=A.length,h=v/2;for(a=0;a<_;a+=3){let g=T[a]+h,k=T[a+1]+h,Y=T[a+2]+h;T[a+_]=Y,T[a+1+_]=k,T[a+2+_]=g}if(u.attributes.position.values=y,i&&d.normal){let g=u.attributes.normal.values;u.attributes.normal.values=new Float32Array(y.length),u.attributes.normal.values.set(g)}if(d.st&&P(o)){let g=u.attributes.st.values;u.attributes.st.values=new Float32Array(v*2),u.attributes.st.values=g.concat(g)}u.indices=T}else if(f){for(v=E.length/3,T=lt.createTypedArray(v,A.length),a=0;a<A.length;a+=3)T[a]=A[a+2],T[a+1]=A[a+1],T[a+2]=A[a];u.indices=T}w.topAndBottom=new st({geometry:u})}let H=s.outerRing,x=K.fromPoints(H,t),j=x.projectPointsOntoPlane(H,Ht),C=nt.computeWindingOrder2D(j);C===gt.CLOCKWISE&&(H=H.slice().reverse());let R=F.computeWallGeometry(H,o,t,n,i,p);w.walls.push(new st({geometry:R}));let B=s.holes;for(a=0;a<B.length;a++){let u=B[a];j=x.projectPointsOntoPlane(u,Ht),C=nt.computeWindingOrder2D(j),C===gt.COUNTER_CLOCKWISE&&(u=u.slice().reverse()),R=F.computeWallGeometry(u,o,t,n,i,p),w.walls.push(new st({geometry:R}))}return w}function G(t){if(q.typeOf.object("options",t),q.typeOf.object("options.polygonHierarchy",t.polygonHierarchy),P(t.perPositionHeight)&&t.perPositionHeight&&P(t.height))throw new ut("Cannot use both options.perPositionHeight and options.height");if(P(t.arcType)&&t.arcType!==at.GEODESIC&&t.arcType!==at.RHUMB)throw new ut("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let e=t.polygonHierarchy,o=L(t.vertexFormat,Q.DEFAULT),n=L(t.ellipsoid,V.WGS84),s=L(t.granularity,l.RADIANS_PER_DEGREE),i=L(t.stRotation,0),r=t.textureCoordinates,f=L(t.perPositionHeight,!1),d=f&&P(t.extrudedHeight),p=L(t.height,0),w=L(t.extrudedHeight,p);if(!d){let a=Math.max(p,w);w=Math.min(p,w),p=a}this._vertexFormat=Q.clone(o),this._ellipsoid=V.clone(n),this._granularity=s,this._stRotation=i,this._height=p,this._extrudedHeight=w,this._closeTop=L(t.closeTop,!0),this._closeBottom=L(t.closeBottom,!0),this._polygonHierarchy=e,this._perPositionHeight=f,this._perPositionHeightExtrude=d,this._shadowVolume=L(t.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=t.offsetAttribute,this._arcType=L(t.arcType,at.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this._textureCoordinates=r,this.packedLength=F.computeHierarchyPackedLength(e,c)+V.packedLength+Q.packedLength+(r?F.computeHierarchyPackedLength(r,O):1)+12}G.fromPositions=function(t){t=L(t,L.EMPTY_OBJECT),q.defined("options.positions",t.positions);let e={polygonHierarchy:{positions:t.positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType,textureCoordinates:t.textureCoordinates};return new G(e)};G.pack=function(t,e,o){return q.typeOf.object("value",t),q.defined("array",e),o=L(o,0),o=F.packPolygonHierarchy(t._polygonHierarchy,e,o,c),V.pack(t._ellipsoid,e,o),o+=V.packedLength,Q.pack(t._vertexFormat,e,o),o+=Q.packedLength,e[o++]=t._height,e[o++]=t._extrudedHeight,e[o++]=t._granularity,e[o++]=t._stRotation,e[o++]=t._perPositionHeightExtrude?1:0,e[o++]=t._perPositionHeight?1:0,e[o++]=t._closeTop?1:0,e[o++]=t._closeBottom?1:0,e[o++]=t._shadowVolume?1:0,e[o++]=L(t._offsetAttribute,-1),e[o++]=t._arcType,P(t._textureCoordinates)?o=F.packPolygonHierarchy(t._textureCoordinates,e,o,O):e[o++]=-1,e[o++]=t.packedLength,e};var Qt=V.clone(V.UNIT_SPHERE),Zt=new Q,Kt={polygonHierarchy:{}};G.unpack=function(t,e,o){q.defined("array",t),e=L(e,0);let n=F.unpackPolygonHierarchy(t,e,c);e=n.startingIndex,delete n.startingIndex;let s=V.unpack(t,e,Qt);e+=V.packedLength;let i=Q.unpack(t,e,Zt);e+=Q.packedLength;let r=t[e++],f=t[e++],d=t[e++],p=t[e++],w=t[e++]===1,a=t[e++]===1,H=t[e++]===1,x=t[e++]===1,j=t[e++]===1,C=t[e++],R=t[e++],B=t[e]===-1?void 0:F.unpackPolygonHierarchy(t,e,O);P(B)?(e=B.startingIndex,delete B.startingIndex):e++;let u=t[e++];return P(o)||(o=new G(Kt)),o._polygonHierarchy=n,o._ellipsoid=V.clone(s,o._ellipsoid),o._vertexFormat=Q.clone(i,o._vertexFormat),o._height=r,o._extrudedHeight=f,o._granularity=d,o._stRotation=p,o._perPositionHeightExtrude=w,o._perPositionHeight=a,o._closeTop=H,o._closeBottom=x,o._shadowVolume=j,o._offsetAttribute=C===-1?void 0:C,o._arcType=R,o._textureCoordinates=B,o.packedLength=u,o};var Jt=new O,Xt=new O,$t=new D;function xt(t,e,o,n,s,i){let r=t.longitude,f=r>=0?r:r+l.TWO_PI;s.westOverIdl=Math.min(s.westOverIdl,f),s.eastOverIdl=Math.max(s.eastOverIdl,f),i.west=Math.min(i.west,r),i.east=Math.max(i.east,r);let d=t.getLatitude(o),p=d;if(i.south=Math.min(i.south,d),i.north=Math.max(i.north,d),n!==at.RHUMB){let H=O.subtract(e.position,t.position,Jt),x=O.dot(e.position,H)/O.dot(H,H);if(x>0&&x<1){let j=O.add(e.position,O.multiplyByScalar(H,-x,H),Xt),C=D.clone(e,$t);C.position=j;let R=C.getLatitude(o);i.south=Math.min(i.south,R),i.north=Math.max(i.north,R),Math.abs(d)>Math.abs(R)&&(p=R)}}let w=e.x*t.y-t.x*e.y,a=Math.sign(w);a!==0&&(a*=O.angleBetween(e.position,t.position)),p>=0&&(s.northAngle+=a),p<=0&&(s.southAngle+=a)}var Ct=new D,te=new D,U={northAngle:0,southAngle:0,westOverIdl:0,eastOverIdl:0};G.computeRectangleFromPositions=function(t,e,o,n){if(q.defined("positions",t),P(n)||(n=new _t),t.length<3)return n;n.west=Number.POSITIVE_INFINITY,n.east=Number.NEGATIVE_INFINITY,n.south=Number.POSITIVE_INFINITY,n.north=Number.NEGATIVE_INFINITY,U.northAngle=0,U.southAngle=0,U.westOverIdl=Number.POSITIVE_INFINITY,U.eastOverIdl=Number.NEGATIVE_INFINITY;let s=t.length,i=D.fromCartesian(t[0],te);for(let r=1;r<s;r++){let f=D.fromCartesian(t[r],Ct);xt(f,i,e,o,U,n),i=D.clone(f,i)}return xt(D.fromCartesian(t[0],Ct),i,e,o,U,n),n.east-n.west>U.eastOverIdl-U.westOverIdl&&(n.west=U.westOverIdl,n.east=U.eastOverIdl,n.east>l.PI&&(n.east=n.east-l.TWO_PI),n.west>l.PI&&(n.west=n.west-l.TWO_PI)),l.equalsEpsilon(Math.abs(U.northAngle),l.TWO_PI,l.EPSILON10)&&(n.north=l.PI_OVER_TWO,n.east=l.PI,n.west=-l.PI),l.equalsEpsilon(Math.abs(U.southAngle),l.TWO_PI,l.EPSILON10)&&(n.south=-l.PI_OVER_TWO,n.east=l.PI,n.west=-l.PI),n};var ee=new D;function oe(t,e,o){return t.height>=l.PI||t.width>=l.PI?D.fromCartesian(e[0],ee).tangentPlane:K.fromPoints(e,o)}var Nt=new ot;function ne(t,e,o){return(n,s)=>{if(t.height>=l.PI||t.width>=l.PI){if(t.south<0&&t.north>0){P(s)||(s=[]);for(let r=0;r<n.length;++r){let f=o.cartesianToCartographic(n[r],Nt);s[r]=new O(f.longitude/l.PI,f.latitude/l.PI_OVER_TWO)}return s.length=n.length,s}return D.fromCartesianArray(n,s)}return K.fromPoints(e,o).projectPointsOntoPlane(n,s)}}function ie(t,e,o){if(t.height>=l.PI||t.width>=l.PI)return(s,i)=>{if(t.south<0&&t.north>0){let r=o.cartesianToCartographic(s,Nt);return P(i)||(i=new O),i.x=r.longitude/l.PI,i.y=r.latitude/l.PI_OVER_TWO,i}return D.fromCartesian(s,i)};let n=K.fromPoints(e,o);return(s,i)=>n.projectPointsOntoPlane(s,i)}function re(t,e,o,n){return(s,i)=>!n&&(t.height>=l.PI_OVER_TWO||t.width>=2*l.PI_OVER_THREE)?F.splitPolygonsOnEquator(s,e,o,i):s}function se(t,e,o,n){if(e.height>=l.PI||e.width>=l.PI)return dt.fromRectangle(e,void 0,Et);let s=t,i=K.fromPoints(s,o);return F.computeBoundingRectangle(i.plane.normal,i.projectPointOntoPlane.bind(i),s,n,Et)}G.createGeometry=function(t){let e=t._vertexFormat,o=t._ellipsoid,n=t._granularity,s=t._stRotation,i=t._polygonHierarchy,r=t._perPositionHeight,f=t._closeTop,d=t._closeBottom,p=t._arcType,w=t._textureCoordinates,a=P(w),H=i.positions;if(H.length<3)return;let x=t.rectangle,j=F.polygonsFromHierarchy(i,a,ne(x,H,o),!r,o,re(x,o,p,r)),C=j.hierarchy,R=j.polygons,B=function(m){return m},u=a?F.polygonsFromHierarchy(w,!0,B,!1,o).polygons:void 0;if(C.length===0)return;let E=C[0].outerRing,A=se(E,x,o,s),v=[],T=t._height,y=t._extrudedHeight,_=t._perPositionHeightExtrude||!l.equalsEpsilon(T,y,0,l.EPSILON2),h={perPositionHeight:r,vertexFormat:e,geometry:void 0,rotationAxis:oe(x,E,o).plane.normal,projectTo2d:ie(x,E,o),boundingRectangle:A,ellipsoid:o,stRotation:s,textureCoordinates:void 0,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:p},g;if(_)for(h.extrude=!0,h.top=f,h.bottom=d,h.shadowVolume=t._shadowVolume,h.offsetAttribute=t._offsetAttribute,g=0;g<R.length;g++){let m=qt(o,R[g],a?u[g]:void 0,n,C[g],r,f,d,e,p),I;f&&d?(I=m.topAndBottom,h.geometry=F.scaleToGeodeticHeightExtruded(I.geometry,T,y,o,r)):f?(I=m.topAndBottom,I.geometry.attributes.position.values=nt.scaleToGeodeticHeight(I.geometry.attributes.position.values,T,o,!r),h.geometry=I.geometry):d&&(I=m.topAndBottom,I.geometry.attributes.position.values=nt.scaleToGeodeticHeight(I.geometry.attributes.position.values,y,o,!0),h.geometry=I.geometry),(f||d)&&(h.wall=!1,I.geometry=pt(h),v.push(I));let M=m.walls;h.wall=!0;for(let z=0;z<M.length;z++){let N=M[z];h.geometry=F.scaleToGeodeticHeightExtruded(N.geometry,T,y,o,r),N.geometry=pt(h),v.push(N)}}else for(g=0;g<R.length;g++){let m=new st({geometry:F.createGeometryFromPositions(o,R[g],a?u[g]:void 0,n,r,e,p)});if(m.geometry.attributes.position.values=nt.scaleToGeodeticHeight(m.geometry.attributes.position.values,T,o,!r),h.geometry=m.geometry,m.geometry=pt(h),P(t._offsetAttribute)){let I=m.geometry.attributes.position.values.length,M=t._offsetAttribute===ht.NONE?0:1,z=new Uint8Array(I/3).fill(M);m.geometry.attributes.applyOffset=new tt({componentDatatype:$.UNSIGNED_BYTE,componentsPerAttribute:1,values:z})}v.push(m)}let k=bt.combineInstances(v)[0];k.attributes.position.values=new Float64Array(k.attributes.position.values),k.indices=lt.createTypedArray(k.attributes.position.values.length/3,k.indices);let Y=k.attributes,J=Tt.fromVertices(Y.position.values);return e.position||delete Y.position,new mt({attributes:Y,indices:k.indices,primitiveType:k.primitiveType,boundingSphere:J,offsetAttribute:t._offsetAttribute})};G.createShadowVolume=function(t,e,o){let n=t._granularity,s=t._ellipsoid,i=e(n,s),r=o(n,s);return new G({polygonHierarchy:t._polygonHierarchy,ellipsoid:s,stRotation:t._stRotation,granularity:n,perPositionHeight:!1,extrudedHeight:i,height:r,vertexFormat:Q.POSITION_ONLY,shadowVolume:!0,arcType:t._arcType})};function ae(t){let e=-t._stRotation;if(e===0)return[0,0,0,1,1,0];let o=t._ellipsoid,n=t._polygonHierarchy.positions,s=t.rectangle;return mt._textureCoordinateRotationPoints(n,e,o,s)}Object.defineProperties(G.prototype,{rectangle:{get:function(){if(!P(this._rectangle)){let t=this._polygonHierarchy.positions;this._rectangle=G.computeRectangleFromPositions(t,this._ellipsoid,this._arcType)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return P(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=ae(this)),this._textureCoordinateRotationPoints}}});var Pt=G;function ce(t,e){return P(e)&&(t=Pt.unpack(t,e)),t._ellipsoid=V.clone(t._ellipsoid),Pt.createGeometry(t)}var Xe=ce;export{Xe as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a}from"./chunk-YBI55DLZ.js";import{a as b}from"./chunk-FK5KFB6H.js";import{a as W}from"./chunk-YEJWCH6C.js";import{a as V}from"./chunk-KRZBI2MU.js";import"./chunk-C6DMEJQ7.js";import"./chunk-BK3HCS7I.js";import{a as D}from"./chunk-3C74MLG3.js";import{a as F}from"./chunk-VMSXG4OA.js";import"./chunk-7VZHIB6P.js";import{a as j,b as k}from"./chunk-5AG2MVRM.js";import"./chunk-RURL6ZX2.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as M}from"./chunk-JEWHFDAA.js";import{a as B}from"./chunk-YPDO7SPO.js";import{b as U,c as C,d as S}from"./chunk-7VJK3KHI.js";import{d as z}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as w}from"./chunk-B2SKQ7LU.js";import{a as v,d as y}from"./chunk-CUOR5F7T.js";import{a as T}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as P}from"./chunk-NPBZI5YA.js";import{a as G,b as A}from"./chunk-7X2YQ6I4.js";import{e as O}from"./chunk-R2AN7EKC.js";var Y=[],R=[];function K(e,t,r,H,l){let p=F.fromPoints(t,e).projectPointsOntoPlane(t,Y);k.computeWindingOrder2D(p)===j.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=0;if(H)for(n=new Float64Array(o*2*3),i=0;i<o;i++){let u=t[i],h=t[(i+1)%o];n[c++]=u.x,n[c++]=u.y,n[c++]=u.z,n[c++]=h.x,n[c++]=h.y,n[c++]=h.z}else{let u=0;if(l===b.GEODESIC)for(i=0;i<o;i++)u+=a.subdivideLineCount(t[i],t[(i+1)%o],r);else if(l===b.RHUMB)for(i=0;i<o;i++)u+=a.subdivideRhumbLineCount(e,t[i],t[(i+1)%o],r);for(n=new Float64Array(u*3),i=0;i<o;i++){let h;l===b.GEODESIC?h=a.subdivideLine(t[i],t[(i+1)%o],r,R):l===b.RHUMB&&(h=a.subdivideRhumbLine(e,t[i],t[(i+1)%o],r,R));let g=h.length;for(let d=0;d<g;++d)n[c++]=h[d]}}o=n.length/3;let f=o*2,m=M.createTypedArray(o,f);for(c=0,i=0;i<o-1;i++)m[c++]=i,m[c++]=i+1;return m[c++]=o-1,m[c++]=0,new W({geometry:new C({attributes:new B({position:new S({componentDatatype:w.DOUBLE,componentsPerAttribute:3,values:n})}),indices:m,primitiveType:U.LINES})})}function q(e,t,r,H,l){let p=F.fromPoints(t,e).projectPointsOntoPlane(t,Y);k.computeWindingOrder2D(p)===j.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=new Array(o),f=0;if(H)for(n=new Float64Array(o*2*3*2),i=0;i<o;++i){c[i]=f/3;let g=t[i],d=t[(i+1)%o];n[f++]=g.x,n[f++]=g.y,n[f++]=g.z,n[f++]=d.x,n[f++]=d.y,n[f++]=d.z}else{let g=0;if(l===b.GEODESIC)for(i=0;i<o;i++)g+=a.subdivideLineCount(t[i],t[(i+1)%o],r);else if(l===b.RHUMB)for(i=0;i<o;i++)g+=a.subdivideRhumbLineCount(e,t[i],t[(i+1)%o],r);for(n=new Float64Array(g*3*2),i=0;i<o;++i){c[i]=f/3;let d;l===b.GEODESIC?d=a.subdivideLine(t[i],t[(i+1)%o],r,R):l===b.RHUMB&&(d=a.subdivideRhumbLine(e,t[i],t[(i+1)%o],r,R));let E=d.length;for(let N=0;N<E;++N)n[f++]=d[N]}}o=n.length/(3*2);let m=c.length,u=(o*2+m)*2,h=M.createTypedArray(o+m,u);for(f=0,i=0;i<o;++i)h[f++]=i,h[f++]=(i+1)%o,h[f++]=i+o,h[f++]=(i+1)%o+o;for(i=0;i<m;i++){let g=c[i];h[f++]=g,h[f++]=g+o}return new W({geometry:new C({attributes:new B({position:new S({componentDatatype:w.DOUBLE,componentsPerAttribute:3,values:n})}),indices:h,primitiveType:U.LINES})})}function L(e){if(A.typeOf.object("options",e),A.typeOf.object("options.polygonHierarchy",e.polygonHierarchy),e.perPositionHeight&&O(e.height))throw new G("Cannot use both options.perPositionHeight and options.height");if(O(e.arcType)&&e.arcType!==b.GEODESIC&&e.arcType!==b.RHUMB)throw new G("Invalid arcType. Valid options are ArcType.GEODESIC and ArcType.RHUMB.");let t=e.polygonHierarchy,r=P(e.ellipsoid,y.WGS84),H=P(e.granularity,T.RADIANS_PER_DEGREE),l=P(e.perPositionHeight,!1),_=l&&O(e.extrudedHeight),p=P(e.arcType,b.GEODESIC),s=P(e.height,0),n=P(e.extrudedHeight,s);if(!_){let i=Math.max(s,n);n=Math.min(s,n),s=i}this._ellipsoid=y.clone(r),this._granularity=H,this._height=s,this._extrudedHeight=n,this._arcType=p,this._polygonHierarchy=t,this._perPositionHeight=l,this._perPositionHeightExtrude=_,this._offsetAttribute=e.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=a.computeHierarchyPackedLength(t,v)+y.packedLength+8}L.pack=function(e,t,r){return A.typeOf.object("value",e),A.defined("array",t),r=P(r,0),r=a.packPolygonHierarchy(e._polygonHierarchy,t,r,v),y.pack(e._ellipsoid,t,r),r+=y.packedLength,t[r++]=e._height,t[r++]=e._extrudedHeight,t[r++]=e._granularity,t[r++]=e._perPositionHeightExtrude?1:0,t[r++]=e._perPositionHeight?1:0,t[r++]=e._arcType,t[r++]=P(e._offsetAttribute,-1),t[r]=e.packedLength,t};var J=y.clone(y.UNIT_SPHERE),Q={polygonHierarchy:{}};L.unpack=function(e,t,r){A.defined("array",e),t=P(t,0);let H=a.unpackPolygonHierarchy(e,t,v);t=H.startingIndex,delete H.startingIndex;let l=y.unpack(e,t,J);t+=y.packedLength;let _=e[t++],p=e[t++],s=e[t++],n=e[t++]===1,i=e[t++]===1,o=e[t++],c=e[t++],f=e[t];return O(r)||(r=new L(Q)),r._polygonHierarchy=H,r._ellipsoid=y.clone(l,r._ellipsoid),r._height=_,r._extrudedHeight=p,r._granularity=s,r._perPositionHeight=i,r._perPositionHeightExtrude=n,r._arcType=o,r._offsetAttribute=c===-1?void 0:c,r.packedLength=f,r};L.fromPositions=function(e){e=P(e,P.EMPTY_OBJECT),A.defined("options.positions",e.positions);let t={polygonHierarchy:{positions:e.positions},height:e.height,extrudedHeight:e.extrudedHeight,ellipsoid:e.ellipsoid,granularity:e.granularity,perPositionHeight:e.perPositionHeight,arcType:e.arcType,offsetAttribute:e.offsetAttribute};return new L(t)};L.createGeometry=function(e){let t=e._ellipsoid,r=e._granularity,H=e._polygonHierarchy,l=e._perPositionHeight,_=e._arcType,p=a.polygonOutlinesFromHierarchy(H,!l,t);if(p.length===0)return;let s,n=[],i=T.chordLength(r,t.maximumRadius),o=e._height,c=e._extrudedHeight,f=e._perPositionHeightExtrude||!T.equalsEpsilon(o,c,0,T.EPSILON2),m,u;if(f)for(u=0;u<p.length;u++){if(s=q(t,p[u],i,l,_),s.geometry=a.scaleToGeodeticHeightExtruded(s.geometry,o,c,t,l),O(e._offsetAttribute)){let d=s.geometry.attributes.position.values.length/3,E=new Uint8Array(d);e._offsetAttribute===D.TOP?E=E.fill(1,0,d/2):(m=e._offsetAttribute===D.NONE?0:1,E=E.fill(m)),s.geometry.attributes.applyOffset=new S({componentDatatype:w.UNSIGNED_BYTE,componentsPerAttribute:1,values:E})}n.push(s)}else for(u=0;u<p.length;u++){if(s=K(t,p[u],i,l,_),s.geometry.attributes.position.values=k.scaleToGeodeticHeight(s.geometry.attributes.position.values,o,t,!l),O(e._offsetAttribute)){let d=s.geometry.attributes.position.values.length;m=e._offsetAttribute===D.NONE?0:1;let E=new Uint8Array(d/3).fill(m);s.geometry.attributes.applyOffset=new S({componentDatatype:w.UNSIGNED_BYTE,componentsPerAttribute:1,values:E})}n.push(s)}let h=V.combineInstances(n)[0],g=z.fromVertices(h.attributes.position.values);return new C({attributes:h.attributes,indices:h.indices,primitiveType:h.primitiveType,boundingSphere:g,offsetAttribute:e._offsetAttribute})};var x=L;function X(e,t){return O(t)&&(e=x.unpack(e,t)),e._ellipsoid=y.clone(e._ellipsoid),x.createGeometry(e)}var Oe=X;export{Oe as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as m}from"./chunk-HPBHKP5S.js";import{a as N}from"./chunk-FK5KFB6H.js";import{a as U}from"./chunk-LDCAXLGS.js";import"./chunk-NUSW5B6A.js";import{a as k}from"./chunk-4N7SRDH5.js";import{a as le}from"./chunk-RURL6ZX2.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as se}from"./chunk-JEWHFDAA.js";import{a as ce}from"./chunk-YPDO7SPO.js";import{a as ne,b as re,c as ie,d as O}from"./chunk-7VJK3KHI.js";import{d as oe}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as x}from"./chunk-B2SKQ7LU.js";import{a as p,d as u}from"./chunk-CUOR5F7T.js";import{a as J}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as A}from"./chunk-NPBZI5YA.js";import{a as V}from"./chunk-7X2YQ6I4.js";import{e as h}from"./chunk-R2AN7EKC.js";var me=[];function Ae(e,o,t,n,c){let s=me;s.length=c;let l,E=t.red,a=t.green,r=t.blue,w=t.alpha,b=n.red,i=n.green,f=n.blue,L=n.alpha;if(m.equals(t,n)){for(l=0;l<c;l++)s[l]=m.clone(t);return s}let M=(b-E)/c,W=(i-a)/c,z=(f-r)/c,B=(L-w)/c;for(l=0;l<c;l++)s[l]=new m(E+l*M,a+l*W,r+l*z,w+l*B);return s}function q(e){e=A(e,A.EMPTY_OBJECT);let o=e.positions,t=e.colors,n=A(e.width,1),c=A(e.colorsPerVertex,!1);if(!h(o)||o.length<2)throw new V("At least two positions are required.");if(typeof n!="number")throw new V("width must be a number");if(h(t)&&(c&&t.length<o.length||!c&&t.length<o.length-1))throw new V("colors has an invalid length.");this._positions=o,this._colors=t,this._width=n,this._colorsPerVertex=c,this._vertexFormat=k.clone(A(e.vertexFormat,k.DEFAULT)),this._arcType=A(e.arcType,N.GEODESIC),this._granularity=A(e.granularity,J.RADIANS_PER_DEGREE),this._ellipsoid=u.clone(A(e.ellipsoid,u.WGS84)),this._workerName="createPolylineGeometry";let s=1+o.length*p.packedLength;s+=h(t)?1+t.length*m.packedLength:1,this.packedLength=s+u.packedLength+k.packedLength+4}q.pack=function(e,o,t){if(!h(e))throw new V("value is required");if(!h(o))throw new V("array is required");t=A(t,0);let n,c=e._positions,s=c.length;for(o[t++]=s,n=0;n<s;++n,t+=p.packedLength)p.pack(c[n],o,t);let l=e._colors;for(s=h(l)?l.length:0,o[t++]=s,n=0;n<s;++n,t+=m.packedLength)m.pack(l[n],o,t);return u.pack(e._ellipsoid,o,t),t+=u.packedLength,k.pack(e._vertexFormat,o,t),t+=k.packedLength,o[t++]=e._width,o[t++]=e._colorsPerVertex?1:0,o[t++]=e._arcType,o[t]=e._granularity,o};var de=u.clone(u.UNIT_SPHERE),ue=new k,S={positions:void 0,colors:void 0,ellipsoid:de,vertexFormat:ue,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};q.unpack=function(e,o,t){if(!h(e))throw new V("array is required");o=A(o,0);let n,c=e[o++],s=new Array(c);for(n=0;n<c;++n,o+=p.packedLength)s[n]=p.unpack(e,o);c=e[o++];let l=c>0?new Array(c):void 0;for(n=0;n<c;++n,o+=m.packedLength)l[n]=m.unpack(e,o);let E=u.unpack(e,o,de);o+=u.packedLength;let a=k.unpack(e,o,ue);o+=k.packedLength;let r=e[o++],w=e[o++]===1,b=e[o++],i=e[o];return h(t)?(t._positions=s,t._colors=l,t._ellipsoid=u.clone(E,t._ellipsoid),t._vertexFormat=k.clone(a,t._vertexFormat),t._width=r,t._colorsPerVertex=w,t._arcType=b,t._granularity=i,t):(S.positions=s,S.colors=l,S.width=r,S.colorsPerVertex=w,S.arcType=b,S.granularity=i,new q(S))};var pe=new p,ae=new p,fe=new p,he=new p;q.createGeometry=function(e){let o=e._width,t=e._vertexFormat,n=e._colors,c=e._colorsPerVertex,s=e._arcType,l=e._granularity,E=e._ellipsoid,a,r,w,b=[],i=le(e._positions,p.equalsEpsilon,!1,b);if(h(n)&&b.length>0){let d=0,P=b[0];n=n.filter(function(G,T){let g=!1;return c?g=T===P||T===0&&P===1:g=T+1===P,g?(d++,P=b[d],!1):!0})}let f=i.length;if(f<2||o<=0)return;if(s===N.GEODESIC||s===N.RHUMB){let d,P;s===N.GEODESIC?(d=J.chordLength(l,E.maximumRadius),P=U.numberOfPoints):(d=l,P=U.numberOfPointsRhumbLine);let G=U.extractHeights(i,E);if(h(n)){let T=1;for(a=0;a<f-1;++a)T+=P(i[a],i[a+1],d);let g=new Array(T),D=0;for(a=0;a<f-1;++a){let Z=i[a],$=i[a+1],I=n[a],ee=P(Z,$,d);if(c&&a<T){let _e=n[a+1],te=Ae(Z,$,I,_e,ee),Pe=te.length;for(r=0;r<Pe;++r)g[D++]=te[r]}else for(r=0;r<ee;++r)g[D++]=m.clone(I)}g[D]=m.clone(n[n.length-1]),n=g,me.length=0}s===N.GEODESIC?i=U.generateCartesianArc({positions:i,minDistance:d,ellipsoid:E,height:G}):i=U.generateCartesianRhumbArc({positions:i,granularity:d,ellipsoid:E,height:G})}f=i.length;let L=f*4-4,M=new Float64Array(L*3),W=new Float64Array(L*3),z=new Float64Array(L*3),B=new Float32Array(L*2),K=t.st?new Float32Array(L*2):void 0,y=h(n)?new Uint8Array(L*4):void 0,H=0,j=0,X=0,Y=0,_;for(r=0;r<f;++r){r===0?(_=pe,p.subtract(i[0],i[1],_),p.add(i[0],_,_)):_=i[r-1],p.clone(_,fe),p.clone(i[r],ae),r===f-1?(_=pe,p.subtract(i[f-1],i[f-2],_),p.add(i[f-1],_,_)):_=i[r+1],p.clone(_,he);let d,P;h(y)&&(r!==0&&!c?d=n[r-1]:d=n[r],r!==f-1&&(P=n[r]));let G=r===0?2:0,T=r===f-1?2:4;for(w=G;w<T;++w){p.pack(ae,M,H),p.pack(fe,W,H),p.pack(he,z,H),H+=3;let g=w-2<0?-1:1;if(B[j++]=2*(w%2)-1,B[j++]=g*o,t.st&&(K[X++]=r/(f-1),K[X++]=Math.max(B[j-2],0)),h(y)){let D=w<2?d:P;y[Y++]=m.floatToByte(D.red),y[Y++]=m.floatToByte(D.green),y[Y++]=m.floatToByte(D.blue),y[Y++]=m.floatToByte(D.alpha)}}}let v=new ce;v.position=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:M}),v.prevPosition=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:W}),v.nextPosition=new O({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:z}),v.expandAndWidth=new O({componentDatatype:x.FLOAT,componentsPerAttribute:2,values:B}),t.st&&(v.st=new O({componentDatatype:x.FLOAT,componentsPerAttribute:2,values:K})),h(y)&&(v.color=new O({componentDatatype:x.UNSIGNED_BYTE,componentsPerAttribute:4,values:y,normalize:!0}));let C=se.createTypedArray(L,f*6-6),F=0,R=0,we=f-1;for(r=0;r<we;++r)C[R++]=F,C[R++]=F+2,C[R++]=F+1,C[R++]=F+1,C[R++]=F+2,C[R++]=F+3,F+=4;return new ie({attributes:v,indices:C,primitiveType:re.TRIANGLES,boundingSphere:oe.fromPoints(i),geometryType:ne.POLYLINES})};var Q=q;function ge(e,o){return h(o)&&(e=Q.unpack(e,o)),e._ellipsoid=u.clone(e._ellipsoid),Q.createGeometry(e)}var He=ge;export{He as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as M}from"./chunk-VQZSIOZW.js";import{a as W}from"./chunk-KRZBI2MU.js";import"./chunk-C6DMEJQ7.js";import"./chunk-BK3HCS7I.js";import{a as x,b as I,c as j}from"./chunk-45U7TTT3.js";import"./chunk-LDCAXLGS.js";import"./chunk-NUSW5B6A.js";import{a as g}from"./chunk-4N7SRDH5.js";import"./chunk-VMSXG4OA.js";import"./chunk-7VZHIB6P.js";import{a as $,b as V}from"./chunk-5AG2MVRM.js";import{a as Z}from"./chunk-RURL6ZX2.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as X}from"./chunk-JEWHFDAA.js";import{a as Q}from"./chunk-YPDO7SPO.js";import{b as Y,c as z,d as U}from"./chunk-7VJK3KHI.js";import{d as K}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as B}from"./chunk-B2SKQ7LU.js";import{a as T,c as C,d as f}from"./chunk-CUOR5F7T.js";import{a as J}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as k}from"./chunk-NPBZI5YA.js";import{a as D}from"./chunk-7X2YQ6I4.js";import{e as _}from"./chunk-R2AN7EKC.js";function oe(t,e,n,o){let l=new Q;o.position&&(l.position=new U({componentDatatype:B.DOUBLE,componentsPerAttribute:3,values:t}));let i=e.length,u=t.length/3,L=(u-i*2)/(i*2),E=V.triangulate(e),G=(L-1)*i*6+E.length*2,r=X.createTypedArray(u,G),m,s,d,b,A,q,F=i*2,p=0;for(m=0;m<L-1;m++){for(s=0;s<i-1;s++)d=s*2+m*i*2,q=d+F,b=d+1,A=b+F,r[p++]=b,r[p++]=d,r[p++]=A,r[p++]=A,r[p++]=d,r[p++]=q;d=i*2-2+m*i*2,b=d+1,A=b+F,q=d+F,r[p++]=b,r[p++]=d,r[p++]=A,r[p++]=A,r[p++]=d,r[p++]=q}if(o.st||o.tangent||o.bitangent){let c=new Float32Array(u*2),S=1/(L-1),w=1/n.height,O=n.height/2,y,a,h=0;for(m=0;m<L;m++){for(y=m*S,a=w*(e[0].y+O),c[h++]=y,c[h++]=a,s=1;s<i;s++)a=w*(e[s].y+O),c[h++]=y,c[h++]=a,c[h++]=y,c[h++]=a;a=w*(e[0].y+O),c[h++]=y,c[h++]=a}for(s=0;s<i;s++)y=0,a=w*(e[s].y+O),c[h++]=y,c[h++]=a;for(s=0;s<i;s++)y=(L-1)*S,a=w*(e[s].y+O),c[h++]=y,c[h++]=a;l.st=new U({componentDatatype:B.FLOAT,componentsPerAttribute:2,values:new Float32Array(c)})}let N=u-i*2;for(m=0;m<E.length;m+=3){let c=E[m]+N,S=E[m+1]+N,w=E[m+2]+N;r[p++]=c,r[p++]=S,r[p++]=w,r[p++]=w+i,r[p++]=S+i,r[p++]=c+i}let P=new z({attributes:l,indices:r,boundingSphere:K.fromVertices(t),primitiveType:Y.TRIANGLES});if(o.normal&&(P=W.computeNormal(P)),o.tangent||o.bitangent){try{P=W.computeTangentAndBitangent(P)}catch{I("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(P.attributes.tangent=void 0),o.bitangent||(P.attributes.bitangent=void 0),o.st||(P.attributes.st=void 0)}return P}function R(t){t=k(t,k.EMPTY_OBJECT);let e=t.polylinePositions,n=t.shapePositions;if(!_(e))throw new D("options.polylinePositions is required.");if(!_(n))throw new D("options.shapePositions is required.");this._positions=e,this._shape=n,this._ellipsoid=f.clone(k(t.ellipsoid,f.WGS84)),this._cornerType=k(t.cornerType,x.ROUNDED),this._vertexFormat=g.clone(k(t.vertexFormat,g.DEFAULT)),this._granularity=k(t.granularity,J.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";let o=1+e.length*T.packedLength;o+=1+n.length*C.packedLength,this.packedLength=o+f.packedLength+g.packedLength+2}R.pack=function(t,e,n){if(!_(t))throw new D("value is required");if(!_(e))throw new D("array is required");n=k(n,0);let o,l=t._positions,i=l.length;for(e[n++]=i,o=0;o<i;++o,n+=T.packedLength)T.pack(l[o],e,n);let u=t._shape;for(i=u.length,e[n++]=i,o=0;o<i;++o,n+=C.packedLength)C.pack(u[o],e,n);return f.pack(t._ellipsoid,e,n),n+=f.packedLength,g.pack(t._vertexFormat,e,n),n+=g.packedLength,e[n++]=t._cornerType,e[n]=t._granularity,e};var ee=f.clone(f.UNIT_SPHERE),te=new g,v={polylinePositions:void 0,shapePositions:void 0,ellipsoid:ee,vertexFormat:te,cornerType:void 0,granularity:void 0};R.unpack=function(t,e,n){if(!_(t))throw new D("array is required");e=k(e,0);let o,l=t[e++],i=new Array(l);for(o=0;o<l;++o,e+=T.packedLength)i[o]=T.unpack(t,e);l=t[e++];let u=new Array(l);for(o=0;o<l;++o,e+=C.packedLength)u[o]=C.unpack(t,e);let L=f.unpack(t,e,ee);e+=f.packedLength;let E=g.unpack(t,e,te);e+=g.packedLength;let G=t[e++],r=t[e];return _(n)?(n._positions=i,n._shape=u,n._ellipsoid=f.clone(L,n._ellipsoid),n._vertexFormat=g.clone(E,n._vertexFormat),n._cornerType=G,n._granularity=r,n):(v.polylinePositions=i,v.shapePositions=u,v.cornerType=G,v.granularity=r,new R(v))};var ne=new M;R.createGeometry=function(t){let e=t._positions,n=Z(e,T.equalsEpsilon),o=t._shape;if(o=j.removeDuplicatesFromShape(o),n.length<2||o.length<3)return;V.computeWindingOrder2D(o)===$.CLOCKWISE&&o.reverse();let l=M.fromPoints(o,ne),i=j.computePositions(n,o,l,t,!0);return oe(i,o,l,t._vertexFormat)};var H=R;function ie(t,e){return _(e)&&(t=H.unpack(t,e)),t._ellipsoid=f.clone(t._ellipsoid),H.createGeometry(t)}var Re=ie;export{Re as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as w}from"./chunk-VQZSIOZW.js";import{a as N,c as E}from"./chunk-45U7TTT3.js";import"./chunk-LDCAXLGS.js";import"./chunk-NUSW5B6A.js";import"./chunk-VMSXG4OA.js";import"./chunk-7VZHIB6P.js";import{a as G,b as v}from"./chunk-5AG2MVRM.js";import{a as q}from"./chunk-RURL6ZX2.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as k}from"./chunk-JEWHFDAA.js";import{a as O}from"./chunk-YPDO7SPO.js";import{b as A,c as S,d as R}from"./chunk-7VJK3KHI.js";import{d as C}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as b}from"./chunk-B2SKQ7LU.js";import{a,c as _,d as s}from"./chunk-CUOR5F7T.js";import{a as D}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as d}from"./chunk-NPBZI5YA.js";import{a as y}from"./chunk-7X2YQ6I4.js";import{e as u}from"./chunk-R2AN7EKC.js";function U(o,i){let t=new O;t.position=new R({componentDatatype:b.DOUBLE,componentsPerAttribute:3,values:o});let e=i.length,r=t.position.values.length/3,f=o.length/3/e,p=k.createTypedArray(r,2*e*(f+1)),m,n,l=0;m=0;let h=m*e;for(n=0;n<e-1;n++)p[l++]=n+h,p[l++]=n+h+1;for(p[l++]=e-1+h,p[l++]=h,m=f-1,h=m*e,n=0;n<e-1;n++)p[l++]=n+h,p[l++]=n+h+1;for(p[l++]=e-1+h,p[l++]=h,m=0;m<f-1;m++){let T=e*m,W=T+e;for(n=0;n<e;n++)p[l++]=n+T,p[l++]=n+W}return new S({attributes:t,indices:k.createTypedArray(r,p),boundingSphere:C.fromVertices(o),primitiveType:A.LINES})}function g(o){o=d(o,d.EMPTY_OBJECT);let i=o.polylinePositions,t=o.shapePositions;if(!u(i))throw new y("options.polylinePositions is required.");if(!u(t))throw new y("options.shapePositions is required.");this._positions=i,this._shape=t,this._ellipsoid=s.clone(d(o.ellipsoid,s.WGS84)),this._cornerType=d(o.cornerType,N.ROUNDED),this._granularity=d(o.granularity,D.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeOutlineGeometry";let e=1+i.length*a.packedLength;e+=1+t.length*_.packedLength,this.packedLength=e+s.packedLength+2}g.pack=function(o,i,t){if(!u(o))throw new y("value is required");if(!u(i))throw new y("array is required");t=d(t,0);let e,r=o._positions,c=r.length;for(i[t++]=c,e=0;e<c;++e,t+=a.packedLength)a.pack(r[e],i,t);let f=o._shape;for(c=f.length,i[t++]=c,e=0;e<c;++e,t+=_.packedLength)_.pack(f[e],i,t);return s.pack(o._ellipsoid,i,t),t+=s.packedLength,i[t++]=o._cornerType,i[t]=o._granularity,i};var B=s.clone(s.UNIT_SPHERE),P={polylinePositions:void 0,shapePositions:void 0,ellipsoid:B,height:void 0,cornerType:void 0,granularity:void 0};g.unpack=function(o,i,t){if(!u(o))throw new y("array is required");i=d(i,0);let e,r=o[i++],c=new Array(r);for(e=0;e<r;++e,i+=a.packedLength)c[e]=a.unpack(o,i);r=o[i++];let f=new Array(r);for(e=0;e<r;++e,i+=_.packedLength)f[e]=_.unpack(o,i);let p=s.unpack(o,i,B);i+=s.packedLength;let m=o[i++],n=o[i];return u(t)?(t._positions=c,t._shape=f,t._ellipsoid=s.clone(p,t._ellipsoid),t._cornerType=m,t._granularity=n,t):(P.polylinePositions=c,P.shapePositions=f,P.cornerType=m,P.granularity=n,new g(P))};var M=new w;g.createGeometry=function(o){let i=o._positions,t=q(i,a.equalsEpsilon),e=o._shape;if(e=E.removeDuplicatesFromShape(e),t.length<2||e.length<3)return;v.computeWindingOrder2D(e)===G.CLOCKWISE&&e.reverse();let r=w.fromPoints(e,M),c=E.computePositions(t,e,r,o,!1);return U(c,e)};var L=g;function j(o,i){return u(i)&&(o=L.unpack(o,i)),o._ellipsoid=s.clone(o._ellipsoid),L.createGeometry(o)}var he=j;export{he as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as J}from"./chunk-5Z6L2FHX.js";import{a as Nt}from"./chunk-YEJWCH6C.js";import{a as zt}from"./chunk-KRZBI2MU.js";import"./chunk-C6DMEJQ7.js";import"./chunk-BK3HCS7I.js";import{a as ut}from"./chunk-3C74MLG3.js";import{a as X}from"./chunk-4N7SRDH5.js";import{b as Rt}from"./chunk-5AG2MVRM.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as yt}from"./chunk-JEWHFDAA.js";import{a as Vt}from"./chunk-YPDO7SPO.js";import{b as Mt,c as Pt,d as q}from"./chunk-7VJK3KHI.js";import{d as st,e as Lt}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import{c as S,d as At}from"./chunk-DGCK3LD2.js";import{a as Y}from"./chunk-B2SKQ7LU.js";import{a as _,b as wt,c as G,d as H,e as ft}from"./chunk-CUOR5F7T.js";import{a as W}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as L}from"./chunk-NPBZI5YA.js";import{a as Et,b as lt}from"./chunk-7X2YQ6I4.js";import{e as $}from"./chunk-R2AN7EKC.js";var Tt=new _,Bt=new _,Ut=new _,Yt=new _,qt=new S,Zt=new G,Kt=new st,$t=new st;function Xt(t,e){let n=new Pt({attributes:new Vt,primitiveType:Mt.TRIANGLES});return n.attributes.position=new q({componentDatatype:Y.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(n.attributes.normal=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(n.attributes.tangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(n.attributes.bitangent=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:e.bitangents})),n}function Gt(t,e,n,r){let a=t.length,c=e.normal?new Float32Array(a):void 0,l=e.tangent?new Float32Array(a):void 0,u=e.bitangent?new Float32Array(a):void 0,p=0,d=Yt,o=Ut,i=Bt;if(e.normal||e.tangent||e.bitangent)for(let f=0;f<a;f+=3){let s=_.fromArray(t,f,Tt),h=p+1,g=p+2;i=n.geodeticSurfaceNormal(s,i),(e.tangent||e.bitangent)&&(_.cross(_.UNIT_Z,i,o),ft.multiplyByVector(r,o,o),_.normalize(o,o),e.bitangent&&_.normalize(_.cross(i,o,d),d)),e.normal&&(c[p]=i.x,c[h]=i.y,c[g]=i.z),e.tangent&&(l[p]=o.x,l[h]=o.y,l[g]=o.z),e.bitangent&&(u[p]=d.x,u[h]=d.y,u[g]=d.z),p+=3}return Xt(e,{positions:t,normals:c,tangents:l,bitangents:u})}var Ct=new _,jt=new _;function te(t,e,n){let r=t.length,a=e.normal?new Float32Array(r):void 0,c=e.tangent?new Float32Array(r):void 0,l=e.bitangent?new Float32Array(r):void 0,u=0,p=0,d=0,o=!0,i=Yt,f=Ut,s=Bt;if(e.normal||e.tangent||e.bitangent)for(let h=0;h<r;h+=6){let g=_.fromArray(t,h,Tt),A=_.fromArray(t,(h+6)%r,Ct);if(o){let b=_.fromArray(t,(h+3)%r,jt);_.subtract(A,g,A),_.subtract(b,g,b),s=_.normalize(_.cross(b,A,s),s),o=!1}_.equalsEpsilon(A,g,W.EPSILON10)&&(o=!0),(e.tangent||e.bitangent)&&(i=n.geodeticSurfaceNormal(g,i),e.tangent&&(f=_.normalize(_.cross(i,s,f),f))),e.normal&&(a[u++]=s.x,a[u++]=s.y,a[u++]=s.z,a[u++]=s.x,a[u++]=s.y,a[u++]=s.z),e.tangent&&(c[p++]=f.x,c[p++]=f.y,c[p++]=f.z,c[p++]=f.x,c[p++]=f.y,c[p++]=f.z),e.bitangent&&(l[d++]=i.x,l[d++]=i.y,l[d++]=i.z,l[d++]=i.x,l[d++]=i.y,l[d++]=i.z)}return Xt(e,{positions:t,normals:a,tangents:c,bitangents:l})}function It(t,e){let n=t._vertexFormat,r=t._ellipsoid,a=e.height,c=e.width,l=e.northCap,u=e.southCap,p=0,d=a,o=a,i=0;l&&(p=1,o-=1,i+=1),u&&(d-=1,o-=1,i+=1),i+=c*o;let f=n.position?new Float64Array(i*3):void 0,s=n.st?new Float32Array(i*2):void 0,h=0,g=0,A=Tt,b=Zt,z=Number.MAX_VALUE,F=Number.MAX_VALUE,j=-Number.MAX_VALUE,T=-Number.MAX_VALUE;for(let x=p;x<d;++x)for(let k=0;k<c;++k)J.computePosition(e,r,n.st,x,k,A,b),f[h++]=A.x,f[h++]=A.y,f[h++]=A.z,n.st&&(s[g++]=b.x,s[g++]=b.y,z=Math.min(z,b.x),F=Math.min(F,b.y),j=Math.max(j,b.x),T=Math.max(T,b.y));if(l&&(J.computePosition(e,r,n.st,0,0,A,b),f[h++]=A.x,f[h++]=A.y,f[h++]=A.z,n.st&&(s[g++]=b.x,s[g++]=b.y,z=b.x,F=b.y,j=b.x,T=b.y)),u&&(J.computePosition(e,r,n.st,a-1,0,A,b),f[h++]=A.x,f[h++]=A.y,f[h]=A.z,n.st&&(s[g++]=b.x,s[g]=b.y,z=Math.min(z,b.x),F=Math.min(F,b.y),j=Math.max(j,b.x),T=Math.max(T,b.y))),n.st&&(z<0||F<0||j>1||T>1))for(let x=0;x<s.length;x+=2)s[x]=(s[x]-z)/(j-z),s[x+1]=(s[x+1]-F)/(T-F);let m=Gt(f,n,r,e.tangentRotationMatrix),K=6*(c-1)*(o-1);l&&(K+=3*(c-1)),u&&(K+=3*(c-1));let P=yt.createTypedArray(i,K),D=0,N=0,O;for(O=0;O<o-1;++O){for(let x=0;x<c-1;++x){let k=D,M=k+c,I=M+1,rt=k+1;P[N++]=k,P[N++]=M,P[N++]=rt,P[N++]=rt,P[N++]=M,P[N++]=I,++D}++D}if(l||u){let x=i-1,k=i-1;l&&u&&(x=i-2);let M,I;if(D=0,l)for(O=0;O<c-1;O++)M=D,I=M+1,P[N++]=x,P[N++]=M,P[N++]=I,++D;if(u)for(D=(o-1)*c,O=0;O<c-1;O++)M=D,I=M+1,P[N++]=M,P[N++]=k,P[N++]=I,++D}return m.indices=P,n.st&&(m.attributes.st=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:2,values:s})),m}function ht(t,e,n,r,a){return t[e++]=r[n],t[e++]=r[n+1],t[e++]=r[n+2],t[e++]=a[n],t[e++]=a[n+1],t[e]=a[n+2],t}function pt(t,e,n,r){return t[e++]=r[n],t[e++]=r[n+1],t[e++]=r[n],t[e]=r[n+1],t}var Dt=new X;function ee(t,e){let n=t._shadowVolume,r=t._offsetAttribute,a=t._vertexFormat,c=t._extrudedHeight,l=t._surfaceHeight,u=t._ellipsoid,p=e.height,d=e.width,o;if(n){let R=X.clone(a,Dt);R.normal=!0,t._vertexFormat=R}let i=It(t,e);n&&(t._vertexFormat=a);let f=Rt.scaleToGeodeticHeight(i.attributes.position.values,l,u,!1);f=new Float64Array(f);let s=f.length,h=s*2,g=new Float64Array(h);g.set(f);let A=Rt.scaleToGeodeticHeight(i.attributes.position.values,c,u);g.set(A,s),i.attributes.position.values=g;let b=a.normal?new Float32Array(h):void 0,z=a.tangent?new Float32Array(h):void 0,F=a.bitangent?new Float32Array(h):void 0,j=a.st?new Float32Array(h/3*2):void 0,T,m;if(a.normal){for(m=i.attributes.normal.values,b.set(m),o=0;o<s;o++)m[o]=-m[o];b.set(m,s),i.attributes.normal.values=b}if(n){m=i.attributes.normal.values,a.normal||(i.attributes.normal=void 0);let R=new Float32Array(h);for(o=0;o<s;o++)m[o]=-m[o];R.set(m,s),i.attributes.extrudeDirection=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:R})}let K,P=$(r);if(P){let R=s/3*2,at=new Uint8Array(R);r===ut.TOP?at=at.fill(1,0,R/2):(K=r===ut.NONE?0:1,at=at.fill(K)),i.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:at})}if(a.tangent){let R=i.attributes.tangent.values;for(z.set(R),o=0;o<s;o++)R[o]=-R[o];z.set(R,s),i.attributes.tangent.values=z}if(a.bitangent){let R=i.attributes.bitangent.values;F.set(R),F.set(R,s),i.attributes.bitangent.values=F}a.st&&(T=i.attributes.st.values,j.set(T),j.set(T,s/3*2),i.attributes.st.values=j);let D=i.indices,N=D.length,O=s/3,x=yt.createTypedArray(h/3,N*2);for(x.set(D),o=0;o<N;o+=3)x[o+N]=D[o+2]+O,x[o+1+N]=D[o+1]+O,x[o+2+N]=D[o]+O;i.indices=x;let k=e.northCap,M=e.southCap,I=p,rt=2,dt=0,xt=4,St=4;k&&(rt-=1,I-=1,dt+=1,xt-=2,St-=1),M&&(rt-=1,I-=1,dt+=1,xt-=2,St-=1),dt+=rt*d+2*I-xt;let gt=(dt+St)*2,C=new Float64Array(gt*3),E=n?new Float32Array(gt*3):void 0,Z=P?new Uint8Array(gt):void 0,V=a.st?new Float32Array(gt*2):void 0,et=r===ut.TOP;P&&!et&&(K=r===ut.ALL?1:0,Z=Z.fill(K));let v=0,B=0,y=0,U=0,nt=d*I,w;for(o=0;o<nt;o+=d)w=o*3,C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,o*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1);if(M){let R=k?nt+1:nt;for(w=R*3,o=0;o<2;o++)C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,R*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1)}else for(o=nt-d;o<nt;o++)w=o*3,C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,o*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1);for(o=nt-1;o>0;o-=d)w=o*3,C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,o*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1);if(k){let R=nt;for(w=R*3,o=0;o<2;o++)C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,R*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1)}else for(o=d-1;o>=0;o--)w=o*3,C=ht(C,v,w,f,A),v+=6,a.st&&(V=pt(V,B,o*2,T),B+=4),n&&(y+=3,E[y++]=m[w],E[y++]=m[w+1],E[y++]=m[w+2]),et&&(Z[U++]=1,U+=1);let ot=te(C,a,u);a.st&&(ot.attributes.st=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:2,values:V})),n&&(ot.attributes.extrudeDirection=new q({componentDatatype:Y.FLOAT,componentsPerAttribute:3,values:E})),P&&(ot.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:Z}));let it=yt.createTypedArray(gt,dt*6),mt,_t,kt,bt;s=C.length/3;let ct=0;for(o=0;o<s-1;o+=2){mt=o,bt=(mt+2)%s;let R=_.fromArray(C,mt*3,Ct),at=_.fromArray(C,bt*3,jt);_.equalsEpsilon(R,at,W.EPSILON10)||(_t=(mt+1)%s,kt=(_t+2)%s,it[ct++]=mt,it[ct++]=_t,it[ct++]=bt,it[ct++]=bt,it[ct++]=_t,it[ct++]=kt)}return ot.indices=it,ot=zt.combineInstances([new Nt({geometry:i}),new Nt({geometry:ot})]),ot[0]}var ne=[new _,new _,new _,new _],Wt=new wt,oe=new wt;function Ht(t,e,n,r,a){if(n===0)return S.clone(t,a);let c=J.computeOptions(t,e,n,0,qt,Wt),l=c.height,u=c.width,p=ne;return J.computePosition(c,r,!1,0,0,p[0]),J.computePosition(c,r,!1,0,u-1,p[1]),J.computePosition(c,r,!1,l-1,0,p[2]),J.computePosition(c,r,!1,l-1,u-1,p[3]),S.fromCartesianArray(p,r,a)}function Q(t){t=L(t,L.EMPTY_OBJECT);let e=t.rectangle;if(lt.typeOf.object("rectangle",e),S.validate(e),e.north<e.south)throw new Et("options.rectangle.north must be greater than or equal to options.rectangle.south");let n=L(t.height,0),r=L(t.extrudedHeight,n);this._rectangle=S.clone(e),this._granularity=L(t.granularity,W.RADIANS_PER_DEGREE),this._ellipsoid=H.clone(L(t.ellipsoid,H.WGS84)),this._surfaceHeight=Math.max(n,r),this._rotation=L(t.rotation,0),this._stRotation=L(t.stRotation,0),this._vertexFormat=X.clone(L(t.vertexFormat,X.DEFAULT)),this._extrudedHeight=Math.min(n,r),this._shadowVolume=L(t.shadowVolume,!1),this._workerName="createRectangleGeometry",this._offsetAttribute=t.offsetAttribute,this._rotatedRectangle=void 0,this._textureCoordinateRotationPoints=void 0}Q.packedLength=S.packedLength+H.packedLength+X.packedLength+7;Q.pack=function(t,e,n){return lt.typeOf.object("value",t),lt.defined("array",e),n=L(n,0),S.pack(t._rectangle,e,n),n+=S.packedLength,H.pack(t._ellipsoid,e,n),n+=H.packedLength,X.pack(t._vertexFormat,e,n),n+=X.packedLength,e[n++]=t._granularity,e[n++]=t._surfaceHeight,e[n++]=t._rotation,e[n++]=t._stRotation,e[n++]=t._extrudedHeight,e[n++]=t._shadowVolume?1:0,e[n]=L(t._offsetAttribute,-1),e};var Jt=new S,Qt=H.clone(H.UNIT_SPHERE),tt={rectangle:Jt,ellipsoid:Qt,vertexFormat:Dt,granularity:void 0,height:void 0,rotation:void 0,stRotation:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};Q.unpack=function(t,e,n){lt.defined("array",t),e=L(e,0);let r=S.unpack(t,e,Jt);e+=S.packedLength;let a=H.unpack(t,e,Qt);e+=H.packedLength;let c=X.unpack(t,e,Dt);e+=X.packedLength;let l=t[e++],u=t[e++],p=t[e++],d=t[e++],o=t[e++],i=t[e++]===1,f=t[e];return $(n)?(n._rectangle=S.clone(r,n._rectangle),n._ellipsoid=H.clone(a,n._ellipsoid),n._vertexFormat=X.clone(c,n._vertexFormat),n._granularity=l,n._surfaceHeight=u,n._rotation=p,n._stRotation=d,n._extrudedHeight=o,n._shadowVolume=i,n._offsetAttribute=f===-1?void 0:f,n):(tt.granularity=l,tt.height=u,tt.rotation=p,tt.stRotation=d,tt.extrudedHeight=o,tt.shadowVolume=i,tt.offsetAttribute=f===-1?void 0:f,new Q(tt))};Q.computeRectangle=function(t,e){t=L(t,L.EMPTY_OBJECT);let n=t.rectangle;if(lt.typeOf.object("rectangle",n),S.validate(n),n.north<n.south)throw new Et("options.rectangle.north must be greater than or equal to options.rectangle.south");let r=L(t.granularity,W.RADIANS_PER_DEGREE),a=L(t.ellipsoid,H.WGS84),c=L(t.rotation,0);return Ht(n,r,c,a,e)};var ie=new ft,Ft=new Lt,ae=new wt;Q.createGeometry=function(t){if(W.equalsEpsilon(t._rectangle.north,t._rectangle.south,W.EPSILON10)||W.equalsEpsilon(t._rectangle.east,t._rectangle.west,W.EPSILON10))return;let e=t._rectangle,n=t._ellipsoid,r=t._rotation,a=t._stRotation,c=t._vertexFormat,l=J.computeOptions(e,t._granularity,r,a,qt,Wt,oe),u=ie;if(a!==0||r!==0){let s=S.center(e,ae),h=n.geodeticSurfaceNormalCartographic(s,Ct);Lt.fromAxisAngle(h,-a,Ft),ft.fromQuaternion(Ft,u)}else ft.clone(ft.IDENTITY,u);let p=t._surfaceHeight,d=t._extrudedHeight,o=!W.equalsEpsilon(p,d,0,W.EPSILON2);l.lonScalar=1/t._rectangle.width,l.latScalar=1/t._rectangle.height,l.tangentRotationMatrix=u;let i,f;if(e=t._rectangle,o){i=ee(t,l);let s=st.fromRectangle3D(e,n,p,$t),h=st.fromRectangle3D(e,n,d,Kt);f=st.union(s,h)}else{if(i=It(t,l),i.attributes.position.values=Rt.scaleToGeodeticHeight(i.attributes.position.values,p,n,!1),$(t._offsetAttribute)){let s=i.attributes.position.values.length,h=t._offsetAttribute===ut.NONE?0:1,g=new Uint8Array(s/3).fill(h);i.attributes.applyOffset=new q({componentDatatype:Y.UNSIGNED_BYTE,componentsPerAttribute:1,values:g})}f=st.fromRectangle3D(e,n,p)}return c.position||delete i.attributes.position,new Pt({attributes:i.attributes,indices:i.indices,primitiveType:i.primitiveType,boundingSphere:f,offsetAttribute:t._offsetAttribute})};Q.createShadowVolume=function(t,e,n){let r=t._granularity,a=t._ellipsoid,c=e(r,a),l=n(r,a);return new Q({rectangle:t._rectangle,rotation:t._rotation,ellipsoid:a,stRotation:t._stRotation,granularity:r,extrudedHeight:l,height:c,vertexFormat:X.POSITION_ONLY,shadowVolume:!0})};var vt=new S,se=[new G,new G,new G],re=new At,ce=new wt;function le(t){if(t._stRotation===0)return[0,0,0,1,1,0];let e=S.clone(t._rectangle,vt),n=t._granularity,r=t._ellipsoid,a=t._rotation-t._stRotation,c=Ht(e,n,a,r,vt),l=se;l[0].x=c.west,l[0].y=c.south,l[1].x=c.west,l[1].y=c.north,l[2].x=c.east,l[2].y=c.south;let u=t.rectangle,p=At.fromRotation(t._stRotation,re),d=S.center(u,ce);for(let h=0;h<3;++h){let g=l[h];g.x-=d.longitude,g.y-=d.latitude,At.multiplyByVector(p,g,g),g.x+=d.longitude,g.y+=d.latitude,g.x=(g.x-u.west)/u.width,g.y=(g.y-u.south)/u.height}let o=l[0],i=l[1],f=l[2],s=new Array(6);return G.pack(o,s),G.pack(i,s,2),G.pack(f,s,4),s}Object.defineProperties(Q.prototype,{rectangle:{get:function(){return $(this._rotatedRectangle)||(this._rotatedRectangle=Ht(this._rectangle,this._granularity,this._rotation,this._ellipsoid)),this._rotatedRectangle}},textureCoordinateRotationPoints:{get:function(){return $(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=le(this)),this._textureCoordinateRotationPoints}}});var Ot=Q;function fe(t,e){return $(e)&&(t=Ot.unpack(t,e)),t._ellipsoid=H.clone(t._ellipsoid),t._rectangle=S.clone(t._rectangle),Ot.createGeometry(t)}var Ye=fe;export{Ye as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as C}from"./chunk-5Z6L2FHX.js";import{a as v}from"./chunk-3C74MLG3.js";import{b as z}from"./chunk-5AG2MVRM.js";import"./chunk-QPOPEH3M.js";import{a as O}from"./chunk-JEWHFDAA.js";import{a as Y}from"./chunk-YPDO7SPO.js";import{b as B,c as q,d as y}from"./chunk-7VJK3KHI.js";import{d as R}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import{c as b}from"./chunk-DGCK3LD2.js";import{a as T}from"./chunk-B2SKQ7LU.js";import{a as U,b as M,d as w}from"./chunk-CUOR5F7T.js";import{a as P}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as E}from"./chunk-NPBZI5YA.js";import{a as N}from"./chunk-7X2YQ6I4.js";import{e as S}from"./chunk-R2AN7EKC.js";var W=new R,j=new R,K=new U,Q=new b;function F(t,e){let i=t._ellipsoid,m=e.height,s=e.width,h=e.northCap,p=e.southCap,_=m,A=2,o=0,g=4;h&&(A-=1,_-=1,o+=1,g-=2),p&&(A-=1,_-=1,o+=1,g-=2),o+=A*s+2*_-g;let n=new Float64Array(o*3),l=0,f=0,a,r=K;if(h)C.computePosition(e,i,!1,f,0,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;else for(a=0;a<s;a++)C.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;for(a=s-1,f=1;f<m;f++)C.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;if(f=m-1,!p)for(a=s-2;a>=0;a--)C.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;for(a=0,f=m-2;f>0;f--)C.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;let u=n.length/3*2,c=O.createTypedArray(n.length/3,u),H=0;for(let D=0;D<n.length/3-1;D++)c[H++]=D,c[H++]=D+1;c[H++]=n.length/3-1,c[H++]=0;let d=new q({attributes:new Y,primitiveType:B.LINES});return d.attributes.position=new y({componentDatatype:T.DOUBLE,componentsPerAttribute:3,values:n}),d.indices=c,d}function X(t,e){let i=t._surfaceHeight,m=t._extrudedHeight,s=t._ellipsoid,h=F(t,e),p=e.height,_=e.width,A=z.scaleToGeodeticHeight(h.attributes.position.values,i,s,!1),o=A.length,g=new Float64Array(o*2);g.set(A);let n=z.scaleToGeodeticHeight(h.attributes.position.values,m,s);g.set(n,o),h.attributes.position.values=g;let l=e.northCap,f=e.southCap,a=4;l&&(a-=1),f&&(a-=1);let r=(g.length/3+a)*2,u=O.createTypedArray(g.length/3,r);o=g.length/6;let c=0;for(let d=0;d<o-1;d++)u[c++]=d,u[c++]=d+1,u[c++]=d+o,u[c++]=d+o+1;u[c++]=o-1,u[c++]=0,u[c++]=o+o-1,u[c++]=o,u[c++]=0,u[c++]=o;let H;if(l)H=p-1;else{let d=_-1;u[c++]=d,u[c++]=d+o,H=_+p-2}if(u[c++]=H,u[c++]=H+o,!f){let d=_+H-1;u[c++]=d,u[c]=d+o}return h.indices=u,h}function L(t){t=E(t,E.EMPTY_OBJECT);let e=t.rectangle,i=E(t.granularity,P.RADIANS_PER_DEGREE),m=E(t.ellipsoid,w.WGS84),s=E(t.rotation,0);if(!S(e))throw new N("rectangle is required.");if(b.validate(e),e.north<e.south)throw new N("options.rectangle.north must be greater than options.rectangle.south");let h=E(t.height,0),p=E(t.extrudedHeight,h);this._rectangle=b.clone(e),this._granularity=i,this._ellipsoid=m,this._surfaceHeight=Math.max(h,p),this._rotation=s,this._extrudedHeight=Math.min(h,p),this._offsetAttribute=t.offsetAttribute,this._workerName="createRectangleOutlineGeometry"}L.packedLength=b.packedLength+w.packedLength+5;L.pack=function(t,e,i){if(!S(t))throw new N("value is required");if(!S(e))throw new N("array is required");return i=E(i,0),b.pack(t._rectangle,e,i),i+=b.packedLength,w.pack(t._ellipsoid,e,i),i+=w.packedLength,e[i++]=t._granularity,e[i++]=t._surfaceHeight,e[i++]=t._rotation,e[i++]=t._extrudedHeight,e[i]=E(t._offsetAttribute,-1),e};var V=new b,J=w.clone(w.UNIT_SPHERE),k={rectangle:V,ellipsoid:J,granularity:void 0,height:void 0,rotation:void 0,extrudedHeight:void 0,offsetAttribute:void 0};L.unpack=function(t,e,i){if(!S(t))throw new N("array is required");e=E(e,0);let m=b.unpack(t,e,V);e+=b.packedLength;let s=w.unpack(t,e,J);e+=w.packedLength;let h=t[e++],p=t[e++],_=t[e++],A=t[e++],o=t[e];return S(i)?(i._rectangle=b.clone(m,i._rectangle),i._ellipsoid=w.clone(s,i._ellipsoid),i._surfaceHeight=p,i._rotation=_,i._extrudedHeight=A,i._offsetAttribute=o===-1?void 0:o,i):(k.granularity=h,k.height=p,k.rotation=_,k.extrudedHeight=A,k.offsetAttribute=o===-1?void 0:o,new L(k))};var Z=new M;L.createGeometry=function(t){let e=t._rectangle,i=t._ellipsoid,m=C.computeOptions(e,t._granularity,t._rotation,0,Q,Z),s,h;if(P.equalsEpsilon(e.north,e.south,P.EPSILON10)||P.equalsEpsilon(e.east,e.west,P.EPSILON10))return;let p=t._surfaceHeight,_=t._extrudedHeight,A=!P.equalsEpsilon(p,_,0,P.EPSILON2),o;if(A){if(s=X(t,m),S(t._offsetAttribute)){let l=s.attributes.position.values.length/3,f=new Uint8Array(l);t._offsetAttribute===v.TOP?f=f.fill(1,0,l/2):(o=t._offsetAttribute===v.NONE?0:1,f=f.fill(o)),s.attributes.applyOffset=new y({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:f})}let g=R.fromRectangle3D(e,i,p,j),n=R.fromRectangle3D(e,i,_,W);h=R.union(g,n)}else{if(s=F(t,m),s.attributes.position.values=z.scaleToGeodeticHeight(s.attributes.position.values,p,i,!1),S(t._offsetAttribute)){let g=s.attributes.position.values.length;o=t._offsetAttribute===v.NONE?0:1;let n=new Uint8Array(g/3).fill(o);s.attributes.applyOffset=new y({componentDatatype:T.UNSIGNED_BYTE,componentsPerAttribute:1,values:n})}h=R.fromRectangle3D(e,i,p)}return new q({attributes:s.attributes,indices:s.indices,primitiveType:B.LINES,boundingSphere:h,offsetAttribute:t._offsetAttribute})};var x=L;function $(t,e){return S(e)&&(t=x.unpack(t,e)),t._ellipsoid=w.clone(t._ellipsoid),t._rectangle=b.clone(t._rectangle),x.createGeometry(t)}var Et=$;export{Et as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as r}from"./chunk-HPBHKP5S.js";import{a as L}from"./chunk-FK5KFB6H.js";import{a as E}from"./chunk-LDCAXLGS.js";import"./chunk-NUSW5B6A.js";import"./chunk-QPOPEH3M.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as X}from"./chunk-JEWHFDAA.js";import{a as Q}from"./chunk-YPDO7SPO.js";import{b as j,c as K,d as Y}from"./chunk-7VJK3KHI.js";import{d as W}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import{a as H}from"./chunk-B2SKQ7LU.js";import{a as k,d as b}from"./chunk-CUOR5F7T.js";import{a as q}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as w}from"./chunk-NPBZI5YA.js";import{a as D}from"./chunk-7X2YQ6I4.js";import{e as u}from"./chunk-R2AN7EKC.js";function Z(t,e,o,i,s,c,p){let g=E.numberOfPoints(t,e,s),f,n=o.red,m=o.green,d=o.blue,T=o.alpha,l=i.red,h=i.green,y=i.blue,V=i.alpha;if(r.equals(o,i)){for(f=0;f<g;f++)c[p++]=r.floatToByte(n),c[p++]=r.floatToByte(m),c[p++]=r.floatToByte(d),c[p++]=r.floatToByte(T);return p}let M=(l-n)/g,C=(h-m)/g,G=(y-d)/g,_=(V-T)/g,a=p;for(f=0;f<g;f++)c[a++]=r.floatToByte(n+f*M),c[a++]=r.floatToByte(m+f*C),c[a++]=r.floatToByte(d+f*G),c[a++]=r.floatToByte(T+f*_);return a}function R(t){t=w(t,w.EMPTY_OBJECT);let e=t.positions,o=t.colors,i=w(t.colorsPerVertex,!1);if(!u(e)||e.length<2)throw new D("At least two positions are required.");if(u(o)&&(i&&o.length<e.length||!i&&o.length<e.length-1))throw new D("colors has an invalid length.");this._positions=e,this._colors=o,this._colorsPerVertex=i,this._arcType=w(t.arcType,L.GEODESIC),this._granularity=w(t.granularity,q.RADIANS_PER_DEGREE),this._ellipsoid=w(t.ellipsoid,b.WGS84),this._workerName="createSimplePolylineGeometry";let s=1+e.length*k.packedLength;s+=u(o)?1+o.length*r.packedLength:1,this.packedLength=s+b.packedLength+3}R.pack=function(t,e,o){if(!u(t))throw new D("value is required");if(!u(e))throw new D("array is required");o=w(o,0);let i,s=t._positions,c=s.length;for(e[o++]=c,i=0;i<c;++i,o+=k.packedLength)k.pack(s[i],e,o);let p=t._colors;for(c=u(p)?p.length:0,e[o++]=c,i=0;i<c;++i,o+=r.packedLength)r.pack(p[i],e,o);return b.pack(t._ellipsoid,e,o),o+=b.packedLength,e[o++]=t._colorsPerVertex?1:0,e[o++]=t._arcType,e[o]=t._granularity,e};R.unpack=function(t,e,o){if(!u(t))throw new D("array is required");e=w(e,0);let i,s=t[e++],c=new Array(s);for(i=0;i<s;++i,e+=k.packedLength)c[i]=k.unpack(t,e);s=t[e++];let p=s>0?new Array(s):void 0;for(i=0;i<s;++i,e+=r.packedLength)p[i]=r.unpack(t,e);let g=b.unpack(t,e);e+=b.packedLength;let f=t[e++]===1,n=t[e++],m=t[e];return u(o)?(o._positions=c,o._colors=p,o._ellipsoid=g,o._colorsPerVertex=f,o._arcType=n,o._granularity=m,o):new R({positions:c,colors:p,ellipsoid:g,colorsPerVertex:f,arcType:n,granularity:m})};var F=new Array(2),N=new Array(2),$={positions:F,height:N,ellipsoid:void 0,minDistance:void 0,granularity:void 0};R.createGeometry=function(t){let e=t._positions,o=t._colors,i=t._colorsPerVertex,s=t._arcType,c=t._granularity,p=t._ellipsoid,g=q.chordLength(c,p.maximumRadius),f=u(o)&&!i,n,m=e.length,d,T,l,h,y=0;if(s===L.GEODESIC||s===L.RHUMB){let _,a,P;s===L.GEODESIC?(_=q.chordLength(c,p.maximumRadius),a=E.numberOfPoints,P=E.generateArc):(_=c,a=E.numberOfPointsRhumbLine,P=E.generateRhumbArc);let v=E.extractHeights(e,p),B=$;if(s===L.GEODESIC?B.minDistance=g:B.granularity=c,B.ellipsoid=p,f){let A=0;for(n=0;n<m-1;n++)A+=a(e[n],e[n+1],_)+1;d=new Float64Array(A*3),l=new Uint8Array(A*4),B.positions=F,B.height=N;let S=0;for(n=0;n<m-1;++n){F[0]=e[n],F[1]=e[n+1],N[0]=v[n],N[1]=v[n+1];let O=P(B);if(u(o)){let z=O.length/3;h=o[n];for(let U=0;U<z;++U)l[S++]=r.floatToByte(h.red),l[S++]=r.floatToByte(h.green),l[S++]=r.floatToByte(h.blue),l[S++]=r.floatToByte(h.alpha)}d.set(O,y),y+=O.length}}else if(B.positions=e,B.height=v,d=new Float64Array(P(B)),u(o)){for(l=new Uint8Array(d.length/3*4),n=0;n<m-1;++n){let S=e[n],O=e[n+1],z=o[n],U=o[n+1];y=Z(S,O,z,U,g,l,y)}let A=o[m-1];l[y++]=r.floatToByte(A.red),l[y++]=r.floatToByte(A.green),l[y++]=r.floatToByte(A.blue),l[y++]=r.floatToByte(A.alpha)}}else{T=f?m*2-2:m,d=new Float64Array(T*3),l=u(o)?new Uint8Array(T*4):void 0;let _=0,a=0;for(n=0;n<m;++n){let P=e[n];if(f&&n>0&&(k.pack(P,d,_),_+=3,h=o[n-1],l[a++]=r.floatToByte(h.red),l[a++]=r.floatToByte(h.green),l[a++]=r.floatToByte(h.blue),l[a++]=r.floatToByte(h.alpha)),f&&n===m-1)break;k.pack(P,d,_),_+=3,u(o)&&(h=o[n],l[a++]=r.floatToByte(h.red),l[a++]=r.floatToByte(h.green),l[a++]=r.floatToByte(h.blue),l[a++]=r.floatToByte(h.alpha))}}let V=new Q;V.position=new Y({componentDatatype:H.DOUBLE,componentsPerAttribute:3,values:d}),u(o)&&(V.color=new Y({componentDatatype:H.UNSIGNED_BYTE,componentsPerAttribute:4,values:l,normalize:!0})),T=d.length/3;let M=(T-1)*2,C=X.createTypedArray(T,M),G=0;for(n=0;n<T-1;++n)C[G++]=n,C[G++]=n+1;return new K({attributes:V,indices:C,primitiveType:j.LINES,boundingSphere:W.fromPoints(e)})};var J=R;function x(t,e){return u(e)&&(t=J.unpack(t,e)),t._ellipsoid=b.clone(t._ellipsoid),J.createGeometry(t)}var _e=x;export{_e as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as r}from"./chunk-MDLPQIMP.js";import"./chunk-3C74MLG3.js";import{a as m}from"./chunk-4N7SRDH5.js";import"./chunk-JEWHFDAA.js";import"./chunk-YPDO7SPO.js";import"./chunk-7VJK3KHI.js";import"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as s}from"./chunk-CUOR5F7T.js";import"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as l}from"./chunk-NPBZI5YA.js";import{b as p}from"./chunk-7X2YQ6I4.js";import{e as c}from"./chunk-R2AN7EKC.js";function n(e){let t=l(e.radius,1),o={radii:new s(t,t,t),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,vertexFormat:e.vertexFormat};this._ellipsoidGeometry=new r(o),this._workerName="createSphereGeometry"}n.packedLength=r.packedLength;n.pack=function(e,t,a){return p.typeOf.object("value",e),r.pack(e._ellipsoidGeometry,t,a)};var f=new r,i={radius:void 0,radii:new s,vertexFormat:new m,stackPartitions:void 0,slicePartitions:void 0};n.unpack=function(e,t,a){let o=r.unpack(e,t,f);return i.vertexFormat=m.clone(o._vertexFormat,i.vertexFormat),i.stackPartitions=o._stackPartitions,i.slicePartitions=o._slicePartitions,c(a)?(s.clone(o._radii,i.radii),a._ellipsoidGeometry=new r(i),a):(i.radius=o._radii.x,new n(i))};n.createGeometry=function(e){return r.createGeometry(e._ellipsoidGeometry)};var d=n;function u(e,t){return c(t)&&(e=d.unpack(e,t)),d.createGeometry(e)}var v=u;export{v as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as t}from"./chunk-4T6AS6BZ.js";import"./chunk-3C74MLG3.js";import"./chunk-JEWHFDAA.js";import"./chunk-YPDO7SPO.js";import"./chunk-7VJK3KHI.js";import"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as d}from"./chunk-CUOR5F7T.js";import"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import{a as l}from"./chunk-NPBZI5YA.js";import{b as u}from"./chunk-7X2YQ6I4.js";import{e as a}from"./chunk-R2AN7EKC.js";function s(i){let e=l(i.radius,1),r={radii:new d(e,e,e),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,subdivisions:i.subdivisions};this._ellipsoidGeometry=new t(r),this._workerName="createSphereOutlineGeometry"}s.packedLength=t.packedLength;s.pack=function(i,e,o){return u.typeOf.object("value",i),t.pack(i._ellipsoidGeometry,e,o)};var m=new t,n={radius:void 0,radii:new d,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};s.unpack=function(i,e,o){let r=t.unpack(i,e,m);return n.stackPartitions=r._stackPartitions,n.slicePartitions=r._slicePartitions,n.subdivisions=r._subdivisions,a(o)?(d.clone(r._radii,n.radii),o._ellipsoidGeometry=new t(n),o):(n.radius=r._radii.x,new s(n))};s.createGeometry=function(i){return t.createGeometry(i._ellipsoidGeometry)};var c=s;function p(i,e){return a(e)&&(i=c.unpack(i,e)),c.createGeometry(i)}var w=p;export{w as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a}from"./chunk-SUQM3OSW.js";import"./chunk-R2AN7EKC.js";export{a as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as J}from"./chunk-SUQM3OSW.js";import{a as Y}from"./chunk-C6DMEJQ7.js";import{a as B}from"./chunk-JEWHFDAA.js";import{a as X}from"./chunk-VKV642QV.js";import{c as W}from"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as t,b as k,d as _}from"./chunk-CUOR5F7T.js";import{a as v}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import"./chunk-NPBZI5YA.js";import"./chunk-7X2YQ6I4.js";import"./chunk-R2AN7EKC.js";var V=32767,it=Math.cos(v.toRadians(150)),ct=new k,rt=new t;function at(e,o,c,i,s,A,h){let g=e.length,f=new Float64Array(g*3);for(let d=0;d<g;++d){let l=e[d],r=o[d],E=c[d],n=v.lerp(i.west,i.east,l/V),p=v.lerp(i.south,i.north,r/V),w=v.lerp(s,A,E/V),x=k.fromRadians(n,p,w,ct),P=h.cartographicToCartesian(x,rt);t.pack(P,f,d*3)}return f}function dt(e){let o=e.length,c=new Uint32Array(o+1),i=0;for(let s=0;s<o;++s)c[s]=i,i+=e[s];return c[o]=i,c}var lt=new k,ht=new k;function ft(e,o,c,i){let s=i.length,A=e.length,h=new Uint8Array(A),g=lt,f=ht,d=0;for(let r=0;r<s;r++){let E=i[r],n=E;for(let p=1;p<E;p++){let w=d+p,x=w-1;f.longitude=e[w],f.latitude=o[w],g.longitude=e[x],g.latitude=o[x],k.equals(f,g)&&(n--,h[x]=1)}i[r]=n,d+=E}let l=0;for(let r=0;r<A;r++)h[r]!==1&&(e[l]=e[r],o[l]=o[r],c[l]=c[r],l++)}function ot(e){let o=e*8,c=o*3,i=o*4;this.startEllipsoidNormals=new Float32Array(c),this.endEllipsoidNormals=new Float32Array(c),this.startPositionAndHeights=new Float32Array(i),this.startFaceNormalAndVertexCornerIds=new Float32Array(i),this.endPositionAndHeights=new Float32Array(i),this.endFaceNormalAndHalfWidths=new Float32Array(i),this.vertexBatchIds=new Uint16Array(o),this.indices=B.createTypedArray(o,36*e),this.vec3Offset=0,this.vec4Offset=0,this.batchIdOffset=0,this.indexOffset=0,this.volumeStartIndex=0}var Q=new t,pt=new t;function $(e,o,c,i,s){let A=t.subtract(c,o,pt),h=t.subtract(o,e,Q);return t.normalize(A,A),t.normalize(h,h),t.dot(A,h)<it&&(h=t.multiplyByScalar(h,-1,Q)),t.add(A,h,s),t.equals(s,t.ZERO)&&(s=t.subtract(e,o)),t.cross(s,i,s),t.cross(i,s,s),t.normalize(s,s),s}var st=[0,2,6,0,6,4,0,1,3,0,3,2,0,4,5,0,5,1,5,3,1,5,7,3,7,5,4,7,4,6,7,6,2,7,2,3],j=st.length,tt=new t,ut=new t,mt=new t,At=new t,Nt=new t;ot.prototype.addVolume=function(e,o,c,i,s,A,h,g,f,d){let l=t.add(o,f,tt),r=d.geodeticSurfaceNormal(l,ut);l=t.add(c,f,tt);let E=d.geodeticSurfaceNormal(l,At),n=$(e,o,c,r,mt),p=$(i,c,o,E,Nt),w=this.startEllipsoidNormals,x=this.endEllipsoidNormals,P=this.startPositionAndHeights,H=this.startFaceNormalAndVertexCornerIds,b=this.endPositionAndHeights,a=this.endFaceNormalAndHalfWidths,F=this.vertexBatchIds,m=this.batchIdOffset,I=this.vec3Offset,u=this.vec4Offset,N;for(N=0;N<8;N++)t.pack(r,w,I),t.pack(E,x,I),t.pack(o,P,u),P[u+3]=s,t.pack(c,b,u),b[u+3]=A,t.pack(n,H,u),H[u+3]=N,t.pack(p,a,u),a[u+3]=h,F[m++]=g,I+=3,u+=4;this.batchIdOffset=m,this.vec3Offset=I,this.vec4Offset=u;let C=this.indices,y=this.volumeStartIndex,z=this.indexOffset;for(N=0;N<j;N++)C[z+N]=st[N]+y;this.volumeStartIndex+=8,this.indexOffset+=j};var gt=new W,Et=new _,wt=new t,M=new t,It=new t,xt=new t,T=new t;function Pt(e,o){let c=new Uint16Array(e.positions),i=new Uint16Array(e.widths),s=new Uint32Array(e.counts),A=new Uint16Array(e.batchIds),h=gt,g=Et,f=wt,d=new Float64Array(e.packedBuffer),l=0,r=d[l++],E=d[l++];W.unpack(d,l,h),l+=W.packedLength,_.unpack(d,l,g),l+=_.packedLength,t.unpack(d,l,f);let n,p=c.length/3,w=c.subarray(0,p),x=c.subarray(p,2*p),P=c.subarray(2*p,3*p);Y.zigZagDeltaDecode(w,x,P),ft(w,x,P,s);let H=s.length,b=0;for(n=0;n<H;n++){let y=s[n];b+=y-1}let a=new ot(b),F=at(w,x,P,h,r,E,g,f);p=w.length;let m=new Float32Array(p*3);for(n=0;n<p;++n)m[n*3]=F[n*3]-f.x,m[n*3+1]=F[n*3+1]-f.y,m[n*3+2]=F[n*3+2]-f.z;let I=0,u=0;for(n=0;n<H;n++){let y=s[n]-1,z=i[n]*.5,et=A[n],q=I;for(let D=0;D<y;D++){let S=t.unpack(m,I,It),O=t.unpack(m,I+3,xt),G=P[u],Z=P[u+1];G=v.lerp(r,E,G/V),Z=v.lerp(r,E,Z/V),u++;let L=M,R=T;if(D===0){let U=q+y*3,K=t.unpack(m,U,M);if(t.equals(K,S))t.unpack(m,U-3,L);else{let nt=t.subtract(S,O,M);L=t.add(nt,S,M)}}else t.unpack(m,I-3,L);if(D===y-1){let U=t.unpack(m,q,T);if(t.equals(U,O))t.unpack(m,q+3,R);else{let K=t.subtract(O,S,T);R=t.add(K,O,T)}}else t.unpack(m,I+6,R);a.addVolume(L,S,O,R,G,Z,z,et,f,g),I+=3}I+=3,u++}let N=a.indices;o.push(a.startEllipsoidNormals.buffer),o.push(a.endEllipsoidNormals.buffer),o.push(a.startPositionAndHeights.buffer),o.push(a.startFaceNormalAndVertexCornerIds.buffer),o.push(a.endPositionAndHeights.buffer),o.push(a.endFaceNormalAndHalfWidths.buffer),o.push(a.vertexBatchIds.buffer),o.push(N.buffer);let C={indexDatatype:N.BYTES_PER_ELEMENT===2?B.UNSIGNED_SHORT:B.UNSIGNED_INT,startEllipsoidNormals:a.startEllipsoidNormals.buffer,endEllipsoidNormals:a.endEllipsoidNormals.buffer,startPositionAndHeights:a.startPositionAndHeights.buffer,startFaceNormalAndVertexCornerIds:a.startFaceNormalAndVertexCornerIds.buffer,endPositionAndHeights:a.endPositionAndHeights.buffer,endFaceNormalAndHalfWidths:a.endFaceNormalAndHalfWidths.buffer,vertexBatchIds:a.vertexBatchIds.buffer,indices:N.buffer};if(e.keepDecodedPositions){let y=dt(s);o.push(F.buffer,y.buffer),C=X(C,{decodedPositions:F.buffer,decodedPositionOffsets:y.buffer})}return C}var Vt=J(Pt);export{Vt as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as P}from"./chunk-HPBHKP5S.js";import{a as z}from"./chunk-2ED5WI77.js";import"./chunk-2MBPFWCP.js";import{a as H}from"./chunk-MDLPQIMP.js";import{a as Y}from"./chunk-SUQM3OSW.js";import{a as j}from"./chunk-OUXRUXNB.js";import"./chunk-3C74MLG3.js";import"./chunk-4N7SRDH5.js";import{a as W}from"./chunk-JEWHFDAA.js";import"./chunk-YPDO7SPO.js";import"./chunk-7VJK3KHI.js";import{d as E}from"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import{b as d}from"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as o}from"./chunk-CUOR5F7T.js";import"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import"./chunk-NPBZI5YA.js";import"./chunk-7X2YQ6I4.js";import{e as l}from"./chunk-R2AN7EKC.js";function X(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var J=X;var S=new o,$=d.packedLength+o.packedLength,ee=d.packedLength+2,ne=d.packedLength+o.packedLength,te=o.packedLength+1,u={modelMatrix:new d,boundingVolume:new E};function oe(e,c){let n=c*$,i=o.unpack(e,n,S);n+=o.packedLength;let r=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(r,i,r);let t=u.boundingVolume;return o.clone(o.ZERO,t.center),t.radius=Math.sqrt(3),u}function ce(e,c){let n=c*ee,i=e[n++],r=e[n++],t=o.fromElements(i,i,r,S),s=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(s,t,s);let h=u.boundingVolume;return o.clone(o.ZERO,h.center),h.radius=Math.sqrt(2),u}function se(e,c){let n=c*ne,i=o.unpack(e,n,S);n+=o.packedLength;let r=d.unpack(e,n,u.modelMatrix);d.multiplyByScale(r,i,r);let t=u.boundingVolume;return o.clone(o.ZERO,t.center),t.radius=1,u}function ie(e,c){let n=c*te,i=e[n++],r=o.unpack(e,n,S),t=d.fromTranslation(r,u.modelMatrix);d.multiplyByUniformScale(t,i,t);let s=u.boundingVolume;return o.clone(o.ZERO,s.center),s.radius=1,u}var de=new o;function R(e,c,n,i,r){if(!l(c))return;let t=n.length,s=i.attributes.position.values,h=i.indices,a=e.positions,x=e.vertexBatchIds,y=e.indices,I=e.batchIds,p=e.batchTableColors,T=e.batchedIndices,U=e.indexOffsets,v=e.indexCounts,L=e.boundingVolumes,F=e.modelMatrix,Z=e.center,V=e.positionOffset,B=e.batchIdIndex,O=e.indexOffset,D=e.batchedIndicesOffset;for(let w=0;w<t;++w){let C=r(c,w),k=C.modelMatrix;d.multiply(F,k,k);let M=n[w],A=s.length;for(let f=0;f<A;f+=3){let m=o.unpack(s,f,de);d.multiplyByPoint(k,m,m),o.subtract(m,Z,m),o.pack(m,a,V*3+f),x[B++]=M}let b=h.length;for(let f=0;f<b;++f)y[O+f]=h[f]+V;let g=w+D;T[g]=new J({offset:O,count:b,color:P.fromRgba(p[M]),batchIds:[M]}),I[g]=M,U[g]=O,v[g]=b,L[g]=E.transform(C.boundingVolume,k),V+=A/3,O+=b}e.positionOffset=V,e.batchIdIndex=B,e.indexOffset=O,e.batchedIndicesOffset+=t}var K=new o,Q=new d;function re(e){let c=new Float64Array(e),n=0;o.unpack(c,n,K),n+=o.packedLength,d.unpack(c,n,Q)}function le(e){let c=e.length,n=0;for(let i=0;i<c;++i)n+=P.packedLength+3+e[i].batchIds.length;return n}function ae(e,c,n){let i=n.length,r=2+i*E.packedLength+1+le(c),t=new Float64Array(r),s=0;t[s++]=e,t[s++]=i;for(let a=0;a<i;++a)E.pack(n[a],t,s),s+=E.packedLength;let h=c.length;t[s++]=h;for(let a=0;a<h;++a){let x=c[a];P.pack(x.color,t,s),s+=P.packedLength,t[s++]=x.offset,t[s++]=x.count;let y=x.batchIds,I=y.length;t[s++]=I;for(let p=0;p<I;++p)t[s++]=y[p]}return t}function fe(e,c){let n=l(e.boxes)?new Float32Array(e.boxes):void 0,i=l(e.boxBatchIds)?new Uint16Array(e.boxBatchIds):void 0,r=l(e.cylinders)?new Float32Array(e.cylinders):void 0,t=l(e.cylinderBatchIds)?new Uint16Array(e.cylinderBatchIds):void 0,s=l(e.ellipsoids)?new Float32Array(e.ellipsoids):void 0,h=l(e.ellipsoidBatchIds)?new Uint16Array(e.ellipsoidBatchIds):void 0,a=l(e.spheres)?new Float32Array(e.spheres):void 0,x=l(e.sphereBatchIds)?new Uint16Array(e.sphereBatchIds):void 0,y=l(n)?i.length:0,I=l(r)?t.length:0,p=l(s)?h.length:0,T=l(a)?x.length:0,U=j.getUnitBox(),v=z.getUnitCylinder(),L=H.getUnitEllipsoid(),F=U.attributes.position.values,Z=v.attributes.position.values,V=L.attributes.position.values,B=F.length*y;B+=Z.length*I,B+=V.length*(p+T);let O=U.indices,D=v.indices,w=L.indices,C=O.length*y;C+=D.length*I,C+=w.length*(p+T);let k=new Float32Array(B),M=new Uint16Array(B/3),A=W.createTypedArray(B/3,C),b=y+I+p+T,g=new Uint16Array(b),f=new Array(b),m=new Uint32Array(b),q=new Uint32Array(b),_=new Array(b);re(e.packedBuffer);let G={batchTableColors:new Uint32Array(e.batchTableColors),positions:k,vertexBatchIds:M,indices:A,batchIds:g,batchedIndices:f,indexOffsets:m,indexCounts:q,boundingVolumes:_,positionOffset:0,batchIdIndex:0,indexOffset:0,batchedIndicesOffset:0,modelMatrix:Q,center:K};R(G,n,i,U,oe),R(G,r,t,v,ce),R(G,s,h,L,se),R(G,a,x,L,ie);let N=ae(A.BYTES_PER_ELEMENT,f,_);return c.push(k.buffer,M.buffer,A.buffer),c.push(g.buffer,m.buffer,q.buffer),c.push(N.buffer),{positions:k.buffer,vertexBatchIds:M.buffer,indices:A.buffer,indexOffsets:m.buffer,indexCounts:q.buffer,batchIds:g.buffer,packedBuffer:N.buffer}}var Oe=Y(fe);export{Oe as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as x}from"./chunk-SUQM3OSW.js";import{a as w}from"./chunk-C6DMEJQ7.js";import{c}from"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as h,b as l,d as p}from"./chunk-CUOR5F7T.js";import{a as i}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import"./chunk-NPBZI5YA.js";import"./chunk-7X2YQ6I4.js";import"./chunk-R2AN7EKC.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(t){t=new Float64Array(t);let o=0;a.min=t[o++],a.max=t[o++],c.unpack(t,o,b),o+=c.packedLength,p.unpack(t,o,y)}function z(t,o){let s=new Uint16Array(t.positions);V(t.packedBuffer);let e=b,C=y,A=a.min,P=a.max,n=s.length/3,f=s.subarray(0,n),g=s.subarray(n,2*n),d=s.subarray(2*n,3*n);w.zigZagDeltaDecode(f,g,d);let m=new Float64Array(s.length);for(let r=0;r<n;++r){let k=f[r],E=g[r],H=d[r],M=i.lerp(e.west,e.east,k/u),R=i.lerp(e.south,e.north,E/u),T=i.lerp(A,P,H/u),v=l.fromRadians(M,R,T,F),D=C.cartographicToCartesian(v,L);h.pack(D,m,r*3)}return o.push(m.buffer),{positions:m.buffer}}var G=x(z);export{G as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.116
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
+ */
25
+
26
+ import{a as R}from"./chunk-HPBHKP5S.js";import{a as It}from"./chunk-SUQM3OSW.js";import{a as M}from"./chunk-UBIRX2SP.js";import{a as bt}from"./chunk-C6DMEJQ7.js";import"./chunk-VMSXG4OA.js";import"./chunk-7VZHIB6P.js";import"./chunk-6AUUBDOF.js";import"./chunk-BOPB43LN.js";import{a as W}from"./chunk-JEWHFDAA.js";import"./chunk-DXEZYE3K.js";import"./chunk-VAKC5J5C.js";import"./chunk-VKV642QV.js";import{c as z}from"./chunk-DGCK3LD2.js";import"./chunk-B2SKQ7LU.js";import{a as o,b as nt,d as j}from"./chunk-CUOR5F7T.js";import{a as et}from"./chunk-74N6MC2V.js";import"./chunk-CSISXEG7.js";import"./chunk-VHNZBQTR.js";import"./chunk-NPBZI5YA.js";import"./chunk-7X2YQ6I4.js";import{e as A}from"./chunk-R2AN7EKC.js";var kt=new o,Bt=new j,Nt=new z,E={min:void 0,max:void 0,indexBytesPerElement:void 0};function Pt(s){let u=new Float64Array(s),n=0;E.indexBytesPerElement=u[n++],E.min=u[n++],E.max=u[n++],o.unpack(u,n,kt),n+=o.packedLength,j.unpack(u,n,Bt),n+=j.packedLength,z.unpack(u,n,Nt)}function Tt(s){let u=s.length,n=0;for(let y=0;y<u;++y)n+=R.packedLength+3+s[y].batchIds.length;return n}function Ct(s,u,n){let y=u.length,O=2+y*M.packedLength+1+Tt(n),c=new Float64Array(O),i=0;c[i++]=s,c[i++]=y;for(let x=0;x<y;++x)M.pack(u[x],c,i),i+=M.packedLength;let V=n.length;c[i++]=V;for(let x=0;x<V;++x){let B=n[x];R.pack(B.color,c,i),i+=R.packedLength,c[i++]=B.offset,c[i++]=B.count;let P=B.batchIds,w=P.length;c[i++]=w;for(let h=0;h<w;++h)c[i++]=P[h]}return c}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(s,u){Pt(s.packedBuffer);let n;E.indexBytesPerElement===2?n=new Uint16Array(s.indices):n=new Uint32Array(s.indices);let O=new Uint16Array(s.positions),c=new Uint32Array(s.counts),i=new Uint32Array(s.indexCounts),V=new Uint32Array(s.batchIds),x=new Uint32Array(s.batchTableColors),B=new Array(c.length),P=kt,w=Bt,h=Nt,ot=E.min,st=E.max,T=s.minimumHeights,C=s.maximumHeights;A(T)&&A(C)&&(T=new Float32Array(T),C=new Float32Array(C));let t,f,l,N=O.length/2,ct=O.subarray(0,N),it=O.subarray(N,2*N);bt.zigZagDeltaDecode(ct,it);let rt=new Float64Array(N*3);for(t=0;t<N;++t){let e=ct[t],p=it[t],L=et.lerp(h.west,h.east,e/yt),k=et.lerp(h.south,h.north,p/yt),b=nt.fromRadians(L,k,0,Lt),Y=w.cartographicToCartesian(b,wt);o.pack(Y,rt,t*3)}let H=c.length,at=new Array(H),Z=new Array(H),ft=0,lt=0;for(t=0;t<H;++t)at[t]=ft,Z[t]=lt,ft+=c[t],lt+=i[t];let S=new Float32Array(N*3*2),_=new Uint16Array(N*2),D=new Uint32Array(Z.length),G=new Uint32Array(i.length),r=[],g={};for(t=0;t<H;++t)l=x[t],A(g[l])?(g[l].positionLength+=c[t],g[l].indexLength+=i[t],g[l].batchIds.push(t)):g[l]={positionLength:c[t],indexLength:i[t],offset:0,indexOffset:0,batchIds:[t]};let a,dt=0,ht=0;for(l in g)if(g.hasOwnProperty(l)){a=g[l],a.offset=dt,a.indexOffset=ht;let e=a.positionLength*2,p=a.indexLength*2+a.positionLength*6;dt+=e,ht+=p,a.indexLength=p}let U=[];for(l in g)g.hasOwnProperty(l)&&(a=g[l],U.push({color:R.fromRgba(parseInt(l)),offset:a.indexOffset,count:a.indexLength,batchIds:a.batchIds}));for(t=0;t<H;++t){l=x[t],a=g[l];let e=a.offset,p=e*3,L=e,k=at[t],b=c[t],Y=V[t],mt=ot,gt=st;A(T)&&A(C)&&(mt=T[t],gt=C[t]);let q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,K=Number.POSITIVE_INFINITY,Q=Number.NEGATIVE_INFINITY;for(f=0;f<b;++f){let m=o.unpack(rt,k*3+f*3,wt);w.scaleToGeodeticSurface(m,m);let I=w.cartesianToCartographic(m,Lt),F=I.latitude,pt=I.longitude;q=Math.min(F,q),J=Math.max(F,J),K=Math.min(pt,K),Q=Math.max(pt,Q);let xt=w.geodeticSurfaceNormal(m,Ht),v=o.multiplyByScalar(xt,mt,St),$=o.add(m,v,Ut);v=o.multiplyByScalar(xt,gt,v);let tt=o.add(m,v,Ft);o.subtract(tt,P,tt),o.subtract($,P,$),o.pack(tt,S,p),o.pack($,S,p+3),_[L]=Y,_[L+1]=Y,p+=6,L+=2}h=Mt,h.west=K,h.east=Q,h.south=q,h.north=J,B[t]=M.fromRectangle(h,ot,st,w);let d=a.indexOffset,X=Z[t],Ot=i[t];for(D[t]=d,f=0;f<Ot;f+=3){let m=n[X+f]-k,I=n[X+f+1]-k,F=n[X+f+2]-k;r[d++]=m*2+e,r[d++]=I*2+e,r[d++]=F*2+e,r[d++]=F*2+1+e,r[d++]=I*2+1+e,r[d++]=m*2+1+e}for(f=0;f<b;++f){let m=f,I=(f+1)%b;r[d++]=m*2+1+e,r[d++]=I*2+e,r[d++]=m*2+e,r[d++]=m*2+1+e,r[d++]=I*2+1+e,r[d++]=I*2+e}a.offset+=b*2,a.indexOffset=d,G[t]=d-D[t]}r=W.createTypedArray(S.length/3,r);let At=U.length;for(let e=0;e<At;++e){let p=U[e].batchIds,L=0,k=p.length;for(let b=0;b<k;++b)L+=G[p[b]];U[e].count=L}let Et=r.BYTES_PER_ELEMENT===2?W.UNSIGNED_SHORT:W.UNSIGNED_INT,ut=Ct(Et,B,U);return u.push(S.buffer,r.buffer,D.buffer,G.buffer,_.buffer,ut.buffer),{positions:S.buffer,indices:r.buffer,indexOffsets:D.buffer,indexCounts:G.buffer,batchIds:_.buffer,packedBuffer:ut.buffer}}var Jt=It(Rt);export{Jt as default};