@cveo/dsh-digital-earth 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +13 -0
  4. package/README.en.md +124 -0
  5. package/README.md +124 -3
  6. package/client.js +2297 -0
  7. package/cordis.patch.yml +3 -0
  8. package/icon.svg +7 -0
  9. package/index.js +590 -0
  10. package/locale/en.json +6 -0
  11. package/locale/zh.json +6 -0
  12. package/package.json +74 -6
  13. package/preview.png +0 -0
  14. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
  15. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
  16. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
  17. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
  18. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
  19. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
  20. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
  21. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
  22. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
  23. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
  24. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
  25. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
  26. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
  27. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
  28. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
  29. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
  30. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
  31. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
  32. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
  33. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
  34. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
  35. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
  36. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
  37. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
  38. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
  39. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
  40. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
  41. package/vendor/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
  42. package/vendor/cesium/Assets/Images/bing_maps_credit.png +0 -0
  43. package/vendor/cesium/Assets/Images/cesium_credit.png +0 -0
  44. package/vendor/cesium/Assets/Images/google_earth_credit.png +0 -0
  45. package/vendor/cesium/Assets/Images/ion-credit.png +0 -0
  46. package/vendor/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  47. package/vendor/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  48. package/vendor/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  49. package/vendor/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  50. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  51. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  52. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  53. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  54. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  55. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  56. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  57. package/vendor/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  58. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  59. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  60. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  61. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  62. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  63. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  64. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  65. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  66. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  67. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  68. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  69. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  70. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  71. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  72. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  73. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  74. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  75. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  76. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  77. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  78. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  79. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  80. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  81. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  82. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  83. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  84. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  85. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  86. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  87. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  88. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  89. package/vendor/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  90. package/vendor/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  91. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  92. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  93. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  94. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  95. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  96. package/vendor/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  97. package/vendor/cesium/Assets/Textures/maki/airfield.png +0 -0
  98. package/vendor/cesium/Assets/Textures/maki/airport.png +0 -0
  99. package/vendor/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
  100. package/vendor/cesium/Assets/Textures/maki/america-football.png +0 -0
  101. package/vendor/cesium/Assets/Textures/maki/art-gallery.png +0 -0
  102. package/vendor/cesium/Assets/Textures/maki/bakery.png +0 -0
  103. package/vendor/cesium/Assets/Textures/maki/bank.png +0 -0
  104. package/vendor/cesium/Assets/Textures/maki/bar.png +0 -0
  105. package/vendor/cesium/Assets/Textures/maki/baseball.png +0 -0
  106. package/vendor/cesium/Assets/Textures/maki/basketball.png +0 -0
  107. package/vendor/cesium/Assets/Textures/maki/beer.png +0 -0
  108. package/vendor/cesium/Assets/Textures/maki/bicycle.png +0 -0
  109. package/vendor/cesium/Assets/Textures/maki/building.png +0 -0
  110. package/vendor/cesium/Assets/Textures/maki/bus.png +0 -0
  111. package/vendor/cesium/Assets/Textures/maki/cafe.png +0 -0
  112. package/vendor/cesium/Assets/Textures/maki/camera.png +0 -0
  113. package/vendor/cesium/Assets/Textures/maki/campsite.png +0 -0
  114. package/vendor/cesium/Assets/Textures/maki/car.png +0 -0
  115. package/vendor/cesium/Assets/Textures/maki/cemetery.png +0 -0
  116. package/vendor/cesium/Assets/Textures/maki/cesium.png +0 -0
  117. package/vendor/cesium/Assets/Textures/maki/chemist.png +0 -0
  118. package/vendor/cesium/Assets/Textures/maki/cinema.png +0 -0
  119. package/vendor/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
  120. package/vendor/cesium/Assets/Textures/maki/circle.png +0 -0
  121. package/vendor/cesium/Assets/Textures/maki/city.png +0 -0
  122. package/vendor/cesium/Assets/Textures/maki/clothing-store.png +0 -0
  123. package/vendor/cesium/Assets/Textures/maki/college.png +0 -0
  124. package/vendor/cesium/Assets/Textures/maki/commercial.png +0 -0
  125. package/vendor/cesium/Assets/Textures/maki/cricket.png +0 -0
  126. package/vendor/cesium/Assets/Textures/maki/cross.png +0 -0
  127. package/vendor/cesium/Assets/Textures/maki/dam.png +0 -0
  128. package/vendor/cesium/Assets/Textures/maki/danger.png +0 -0
  129. package/vendor/cesium/Assets/Textures/maki/disability.png +0 -0
  130. package/vendor/cesium/Assets/Textures/maki/dog-park.png +0 -0
  131. package/vendor/cesium/Assets/Textures/maki/embassy.png +0 -0
  132. package/vendor/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
  133. package/vendor/cesium/Assets/Textures/maki/entrance.png +0 -0
  134. package/vendor/cesium/Assets/Textures/maki/farm.png +0 -0
  135. package/vendor/cesium/Assets/Textures/maki/fast-food.png +0 -0
  136. package/vendor/cesium/Assets/Textures/maki/ferry.png +0 -0
  137. package/vendor/cesium/Assets/Textures/maki/fire-station.png +0 -0
  138. package/vendor/cesium/Assets/Textures/maki/fuel.png +0 -0
  139. package/vendor/cesium/Assets/Textures/maki/garden.png +0 -0
  140. package/vendor/cesium/Assets/Textures/maki/gift.png +0 -0
  141. package/vendor/cesium/Assets/Textures/maki/golf.png +0 -0
  142. package/vendor/cesium/Assets/Textures/maki/grocery.png +0 -0
  143. package/vendor/cesium/Assets/Textures/maki/hairdresser.png +0 -0
  144. package/vendor/cesium/Assets/Textures/maki/harbor.png +0 -0
  145. package/vendor/cesium/Assets/Textures/maki/heart.png +0 -0
  146. package/vendor/cesium/Assets/Textures/maki/heliport.png +0 -0
  147. package/vendor/cesium/Assets/Textures/maki/hospital.png +0 -0
  148. package/vendor/cesium/Assets/Textures/maki/ice-cream.png +0 -0
  149. package/vendor/cesium/Assets/Textures/maki/industrial.png +0 -0
  150. package/vendor/cesium/Assets/Textures/maki/land-use.png +0 -0
  151. package/vendor/cesium/Assets/Textures/maki/laundry.png +0 -0
  152. package/vendor/cesium/Assets/Textures/maki/library.png +0 -0
  153. package/vendor/cesium/Assets/Textures/maki/lighthouse.png +0 -0
  154. package/vendor/cesium/Assets/Textures/maki/lodging.png +0 -0
  155. package/vendor/cesium/Assets/Textures/maki/logging.png +0 -0
  156. package/vendor/cesium/Assets/Textures/maki/london-underground.png +0 -0
  157. package/vendor/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
  158. package/vendor/cesium/Assets/Textures/maki/marker.png +0 -0
  159. package/vendor/cesium/Assets/Textures/maki/minefield.png +0 -0
  160. package/vendor/cesium/Assets/Textures/maki/mobilephone.png +0 -0
  161. package/vendor/cesium/Assets/Textures/maki/monument.png +0 -0
  162. package/vendor/cesium/Assets/Textures/maki/museum.png +0 -0
  163. package/vendor/cesium/Assets/Textures/maki/music.png +0 -0
  164. package/vendor/cesium/Assets/Textures/maki/oil-well.png +0 -0
  165. package/vendor/cesium/Assets/Textures/maki/park.png +0 -0
  166. package/vendor/cesium/Assets/Textures/maki/park2.png +0 -0
  167. package/vendor/cesium/Assets/Textures/maki/parking-garage.png +0 -0
  168. package/vendor/cesium/Assets/Textures/maki/parking.png +0 -0
  169. package/vendor/cesium/Assets/Textures/maki/pharmacy.png +0 -0
  170. package/vendor/cesium/Assets/Textures/maki/pitch.png +0 -0
  171. package/vendor/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
  172. package/vendor/cesium/Assets/Textures/maki/playground.png +0 -0
  173. package/vendor/cesium/Assets/Textures/maki/police.png +0 -0
  174. package/vendor/cesium/Assets/Textures/maki/polling-place.png +0 -0
  175. package/vendor/cesium/Assets/Textures/maki/post.png +0 -0
  176. package/vendor/cesium/Assets/Textures/maki/prison.png +0 -0
  177. package/vendor/cesium/Assets/Textures/maki/rail-above.png +0 -0
  178. package/vendor/cesium/Assets/Textures/maki/rail-light.png +0 -0
  179. package/vendor/cesium/Assets/Textures/maki/rail-metro.png +0 -0
  180. package/vendor/cesium/Assets/Textures/maki/rail-underground.png +0 -0
  181. package/vendor/cesium/Assets/Textures/maki/rail.png +0 -0
  182. package/vendor/cesium/Assets/Textures/maki/religious-christian.png +0 -0
  183. package/vendor/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
  184. package/vendor/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
  185. package/vendor/cesium/Assets/Textures/maki/restaurant.png +0 -0
  186. package/vendor/cesium/Assets/Textures/maki/roadblock.png +0 -0
  187. package/vendor/cesium/Assets/Textures/maki/rocket.png +0 -0
  188. package/vendor/cesium/Assets/Textures/maki/school.png +0 -0
  189. package/vendor/cesium/Assets/Textures/maki/scooter.png +0 -0
  190. package/vendor/cesium/Assets/Textures/maki/shop.png +0 -0
  191. package/vendor/cesium/Assets/Textures/maki/skiing.png +0 -0
  192. package/vendor/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
  193. package/vendor/cesium/Assets/Textures/maki/soccer.png +0 -0
  194. package/vendor/cesium/Assets/Textures/maki/square-stroked.png +0 -0
  195. package/vendor/cesium/Assets/Textures/maki/square.png +0 -0
  196. package/vendor/cesium/Assets/Textures/maki/star-stroked.png +0 -0
  197. package/vendor/cesium/Assets/Textures/maki/star.png +0 -0
  198. package/vendor/cesium/Assets/Textures/maki/suitcase.png +0 -0
  199. package/vendor/cesium/Assets/Textures/maki/swimming.png +0 -0
  200. package/vendor/cesium/Assets/Textures/maki/telephone.png +0 -0
  201. package/vendor/cesium/Assets/Textures/maki/tennis.png +0 -0
  202. package/vendor/cesium/Assets/Textures/maki/theatre.png +0 -0
  203. package/vendor/cesium/Assets/Textures/maki/toilets.png +0 -0
  204. package/vendor/cesium/Assets/Textures/maki/town-hall.png +0 -0
  205. package/vendor/cesium/Assets/Textures/maki/town.png +0 -0
  206. package/vendor/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
  207. package/vendor/cesium/Assets/Textures/maki/triangle.png +0 -0
  208. package/vendor/cesium/Assets/Textures/maki/village.png +0 -0
  209. package/vendor/cesium/Assets/Textures/maki/warehouse.png +0 -0
  210. package/vendor/cesium/Assets/Textures/maki/waste-basket.png +0 -0
  211. package/vendor/cesium/Assets/Textures/maki/water.png +0 -0
  212. package/vendor/cesium/Assets/Textures/maki/wetland.png +0 -0
  213. package/vendor/cesium/Assets/Textures/maki/zoo.png +0 -0
  214. package/vendor/cesium/Assets/Textures/moonSmall.jpg +0 -0
  215. package/vendor/cesium/Assets/Textures/pin.svg +1 -0
  216. package/vendor/cesium/Assets/Textures/waterNormals.jpg +0 -0
  217. package/vendor/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
  218. package/vendor/cesium/Assets/approximateTerrainHeights.json +1 -0
  219. package/vendor/cesium/Cesium.js +18348 -0
  220. package/vendor/cesium/LICENSE.md +1068 -0
  221. package/vendor/cesium/ThirdParty/Workers/package.json +1 -0
  222. package/vendor/cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
  223. package/vendor/cesium/ThirdParty/basis_transcoder.wasm +0 -0
  224. package/vendor/cesium/ThirdParty/draco_decoder.wasm +0 -0
  225. package/vendor/cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
  226. package/vendor/cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
  227. package/vendor/cesium/ThirdParty/zip-module.wasm +0 -0
  228. package/vendor/cesium/Widgets/Animation/Animation.css +127 -0
  229. package/vendor/cesium/Widgets/Animation/lighter.css +70 -0
  230. package/vendor/cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
  231. package/vendor/cesium/Widgets/BaseLayerPicker/lighter.css +22 -0
  232. package/vendor/cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
  233. package/vendor/cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -0
  234. package/vendor/cesium/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  235. package/vendor/cesium/Widgets/CesiumWidget/lighter.css +14 -0
  236. package/vendor/cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  237. package/vendor/cesium/Widgets/Geocoder/Geocoder.css +70 -0
  238. package/vendor/cesium/Widgets/Geocoder/lighter.css +17 -0
  239. package/vendor/cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  240. package/vendor/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  241. package/vendor/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  242. package/vendor/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  243. package/vendor/cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
  244. package/vendor/cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
  245. package/vendor/cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  246. package/vendor/cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  247. package/vendor/cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  248. package/vendor/cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  249. package/vendor/cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  250. package/vendor/cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
  251. package/vendor/cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
  252. package/vendor/cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
  253. package/vendor/cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
  254. package/vendor/cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  255. package/vendor/cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  256. package/vendor/cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  257. package/vendor/cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  258. package/vendor/cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  259. package/vendor/cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  260. package/vendor/cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  261. package/vendor/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  262. package/vendor/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  263. package/vendor/cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  264. package/vendor/cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  265. package/vendor/cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  266. package/vendor/cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  267. package/vendor/cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  268. package/vendor/cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  269. package/vendor/cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  270. package/vendor/cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  271. package/vendor/cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  272. package/vendor/cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  273. package/vendor/cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  274. package/vendor/cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  275. package/vendor/cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  276. package/vendor/cesium/Widgets/Images/TimelineIcons.png +0 -0
  277. package/vendor/cesium/Widgets/Images/info-loading.gif +0 -0
  278. package/vendor/cesium/Widgets/InfoBox/InfoBox.css +92 -0
  279. package/vendor/cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  280. package/vendor/cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
  281. package/vendor/cesium/Widgets/NavigationHelpButton/lighter.css +38 -0
  282. package/vendor/cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  283. package/vendor/cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
  284. package/vendor/cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -0
  285. package/vendor/cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
  286. package/vendor/cesium/Widgets/Timeline/Timeline.css +103 -0
  287. package/vendor/cesium/Widgets/Timeline/lighter.css +23 -0
  288. package/vendor/cesium/Widgets/VRButton/VRButton.css +8 -0
  289. package/vendor/cesium/Widgets/Viewer/Viewer.css +107 -0
  290. package/vendor/cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
  291. package/vendor/cesium/Widgets/lighter.css +237 -0
  292. package/vendor/cesium/Widgets/lighterShared.css +46 -0
  293. package/vendor/cesium/Widgets/shared.css +103 -0
  294. package/vendor/cesium/Widgets/widgets.css +1342 -0
  295. package/vendor/cesium/Workers/chunk-3XZ3CL24.js +26 -0
  296. package/vendor/cesium/Workers/chunk-674HC7OA.js +26 -0
  297. package/vendor/cesium/Workers/chunk-6LO6MWK3.js +26 -0
  298. package/vendor/cesium/Workers/chunk-F6M5ZWO4.js +29 -0
  299. package/vendor/cesium/Workers/chunk-FZYUOFLY.js +70 -0
  300. package/vendor/cesium/Workers/chunk-GACOCTFW.js +26 -0
  301. package/vendor/cesium/Workers/chunk-MDI2T7LJ.js +27 -0
  302. package/vendor/cesium/Workers/chunk-P6X455E3.js +27 -0
  303. package/vendor/cesium/Workers/chunk-SOIWLLGP.js +26 -0
  304. package/vendor/cesium/Workers/chunk-UBKFZE5C.js +26 -0
  305. package/vendor/cesium/Workers/combineGeometry.js +26 -0
  306. package/vendor/cesium/Workers/createBoxGeometry.js +26 -0
  307. package/vendor/cesium/Workers/createBoxOutlineGeometry.js +26 -0
  308. package/vendor/cesium/Workers/createCircleGeometry.js +26 -0
  309. package/vendor/cesium/Workers/createCircleOutlineGeometry.js +26 -0
  310. package/vendor/cesium/Workers/createCoplanarPolygonGeometry.js +26 -0
  311. package/vendor/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
  312. package/vendor/cesium/Workers/createCorridorGeometry.js +26 -0
  313. package/vendor/cesium/Workers/createCorridorOutlineGeometry.js +26 -0
  314. package/vendor/cesium/Workers/createCylinderGeometry.js +26 -0
  315. package/vendor/cesium/Workers/createCylinderOutlineGeometry.js +26 -0
  316. package/vendor/cesium/Workers/createEllipseGeometry.js +26 -0
  317. package/vendor/cesium/Workers/createEllipseOutlineGeometry.js +26 -0
  318. package/vendor/cesium/Workers/createEllipsoidGeometry.js +26 -0
  319. package/vendor/cesium/Workers/createEllipsoidOutlineGeometry.js +26 -0
  320. package/vendor/cesium/Workers/createFrustumGeometry.js +26 -0
  321. package/vendor/cesium/Workers/createFrustumOutlineGeometry.js +26 -0
  322. package/vendor/cesium/Workers/createGeometry.js +26 -0
  323. package/vendor/cesium/Workers/createGroundPolylineGeometry.js +26 -0
  324. package/vendor/cesium/Workers/createPlaneGeometry.js +26 -0
  325. package/vendor/cesium/Workers/createPlaneOutlineGeometry.js +26 -0
  326. package/vendor/cesium/Workers/createPolygonGeometry.js +26 -0
  327. package/vendor/cesium/Workers/createPolygonOutlineGeometry.js +26 -0
  328. package/vendor/cesium/Workers/createPolylineGeometry.js +26 -0
  329. package/vendor/cesium/Workers/createPolylineVolumeGeometry.js +26 -0
  330. package/vendor/cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
  331. package/vendor/cesium/Workers/createRectangleGeometry.js +26 -0
  332. package/vendor/cesium/Workers/createRectangleOutlineGeometry.js +26 -0
  333. package/vendor/cesium/Workers/createSimplePolylineGeometry.js +26 -0
  334. package/vendor/cesium/Workers/createSphereGeometry.js +26 -0
  335. package/vendor/cesium/Workers/createSphereOutlineGeometry.js +26 -0
  336. package/vendor/cesium/Workers/createTaskProcessorWorker.js +26 -0
  337. package/vendor/cesium/Workers/createVectorTileClampedPolylines.js +26 -0
  338. package/vendor/cesium/Workers/createVectorTileGeometries.js +26 -0
  339. package/vendor/cesium/Workers/createVectorTilePoints.js +26 -0
  340. package/vendor/cesium/Workers/createVectorTilePolygons.js +26 -0
  341. package/vendor/cesium/Workers/createVectorTilePolylines.js +26 -0
  342. package/vendor/cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
  343. package/vendor/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
  344. package/vendor/cesium/Workers/createVerticesFromHeightmap.js +26 -0
  345. package/vendor/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
  346. package/vendor/cesium/Workers/createWallGeometry.js +26 -0
  347. package/vendor/cesium/Workers/createWallOutlineGeometry.js +26 -0
  348. package/vendor/cesium/Workers/decodeDraco.js +26 -0
  349. package/vendor/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
  350. package/vendor/cesium/Workers/decodeI3S.js +26 -0
  351. package/vendor/cesium/Workers/gaussianSplatSorter.js +26 -0
  352. package/vendor/cesium/Workers/gaussianSplatTextureGenerator.js +26 -0
  353. package/vendor/cesium/Workers/incrementallyBuildTerrainPicker.js +26 -0
  354. package/vendor/cesium/Workers/transcodeKTX2.js +56 -0
  355. package/vendor/cesium/Workers/transferTypedArrayTest.js +26 -0
  356. package/vendor/cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
  357. package/vendor/cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
  358. package/vendor/cesium/index.cjs +18348 -0
  359. package/vendor/cesium/index.js +18348 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 It}from"./chunk-MDI2T7LJ.js";import{K as W,V as F,X as R,g as A,j as et,l as o,s as bt,u as nt,v as j,z}from"./chunk-FZYUOFLY.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+=F.packedLength+3+s[y].batchIds.length;return n}function Ct(s,u,n){let y=u.length,O=2+y*R.packedLength+1+Tt(n),c=new Float64Array(O),i=0;c[i++]=s,c[i++]=y;for(let x=0;x<y;++x)R.pack(u[x],c,i),i+=R.packedLength;let V=n.length;c[i++]=V;for(let x=0;x<V;++x){let B=n[x];F.pack(B.color,c,i),i+=F.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,Mt=new o,Lt=new nt,Ft=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],m=it[t],L=et.lerp(h.west,h.east,e/yt),k=et.lerp(h.south,h.north,m/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=[],p={};for(t=0;t<H;++t)l=x[t],A(p[l])?(p[l].positionLength+=c[t],p[l].indexLength+=i[t],p[l].batchIds.push(t)):p[l]={positionLength:c[t],indexLength:i[t],offset:0,indexOffset:0,batchIds:[t]};let a,dt=0,ht=0;for(l in p)if(p.hasOwnProperty(l)){a=p[l],a.offset=dt,a.indexOffset=ht;let e=a.positionLength*2,m=a.indexLength*2+a.positionLength*6;dt+=e,ht+=m,a.indexLength=m}let U=[];for(l in p)p.hasOwnProperty(l)&&(a=p[l],U.push({color:F.fromRgba(parseInt(l)),offset:a.indexOffset,count:a.indexLength,batchIds:a.batchIds}));for(t=0;t<H;++t){l=x[t],a=p[l];let e=a.offset,m=e*3,L=e,k=at[t],b=c[t],Y=V[t],gt=ot,pt=st;A(T)&&A(C)&&(gt=T[t],pt=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 g=o.unpack(rt,k*3+f*3,wt);w.scaleToGeodeticSurface(g,g);let I=w.cartesianToCartographic(g,Lt),M=I.latitude,mt=I.longitude;q=Math.min(M,q),J=Math.max(M,J),K=Math.min(mt,K),Q=Math.max(mt,Q);let xt=w.geodeticSurfaceNormal(g,Ht),v=o.multiplyByScalar(xt,gt,St),$=o.add(g,v,Ut);v=o.multiplyByScalar(xt,pt,v);let tt=o.add(g,v,Mt);o.subtract(tt,P,tt),o.subtract($,P,$),o.pack(tt,S,m),o.pack($,S,m+3),_[L]=Y,_[L+1]=Y,m+=6,L+=2}h=Ft,h.west=K,h.east=Q,h.south=q,h.north=J,B[t]=R.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 g=n[X+f]-k,I=n[X+f+1]-k,M=n[X+f+2]-k;r[d++]=g*2+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++]=g*2+1+e}for(f=0;f<b;++f){let g=f,I=(f+1)%b;r[d++]=g*2+1+e,r[d++]=I*2+e,r[d++]=g*2+e,r[d++]=g*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 m=U[e].batchIds,L=0,k=m.length;for(let b=0;b<k;++b)L+=G[m[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 Dt=It(Rt);export{Dt as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 K}from"./chunk-MDI2T7LJ.js";import{Da as G,K as R,j as F,l as t,s as B,u as _,v as L,z as M}from"./chunk-FZYUOFLY.js";var O=32767,ct=new _,rt=new t;function it(n,o,p,b,s){let u=n.length/3,U=n.subarray(0,u),v=n.subarray(u,2*u),g=n.subarray(2*u,3*u);B.zigZagDeltaDecode(U,v,g);let D=new Float64Array(n.length);for(let f=0;f<u;++f){let e=U[f],A=v[f],h=g[f],k=F.lerp(o.west,o.east,e/O),I=F.lerp(o.south,o.north,A/O),E=F.lerp(p,b,h/O),y=_.fromRadians(k,I,E,ct),C=s.cartographicToCartesian(y,rt);t.pack(C,D,f*3)}return D}var Y=it;var X=new M,$=new L,j=new t,S={min:void 0,max:void 0};function at(n){n=new Float64Array(n);let o=0;S.min=n[o++],S.max=n[o++],M.unpack(n,o,X),o+=M.packedLength,L.unpack(n,o,$),o+=L.packedLength,t.unpack(n,o,j)}function dt(n){let o=n.length,p=new Uint32Array(o+1),b=0;for(let s=0;s<o;++s)p[s]=b,b+=n[s];return p[o]=b,p}var Z=new t,q=new t,J=new t,ut=new t,Q=new t;function ft(n,o){let p=new Uint16Array(n.positions),b=new Uint16Array(n.widths),s=new Uint32Array(n.counts),u=new Uint16Array(n.batchIds);at(n.packedBuffer);let U=X,v=$,g=j,D=S.min,f=S.max,e=Y(p,U,D,f,v),A=e.length/3,h=A*4-4,k=new Float32Array(h*3),I=new Float32Array(h*3),E=new Float32Array(h*3),y=new Float32Array(h*2),C=new Uint16Array(h),N=0,z=0,tt=0,r,l=0,H=s.length;for(r=0;r<H;++r){let a=s[r],nt=b[r],ot=u[r];for(let d=0;d<a;++d){let x;if(d===0){let c=t.unpack(e,l*3,Z),T=t.unpack(e,(l+1)*3,q);x=t.subtract(c,T,J),t.add(c,x,x)}else x=t.unpack(e,(l+d-1)*3,J);let W=t.unpack(e,(l+d)*3,ut),P;if(d===a-1){let c=t.unpack(e,(l+a-1)*3,Z),T=t.unpack(e,(l+a-2)*3,q);P=t.subtract(c,T,Q),t.add(c,P,P)}else P=t.unpack(e,(l+d+1)*3,Q);t.subtract(x,g,x),t.subtract(W,g,W),t.subtract(P,g,P);let et=d===0?2:0,st=d===a-1?2:4;for(let c=et;c<st;++c){t.pack(W,k,N),t.pack(x,I,N),t.pack(P,E,N),N+=3;let T=c-2<0?-1:1;y[z++]=2*(c%2)-1,y[z++]=T*nt,C[tt++]=ot}}l+=a}let i=R.createTypedArray(h,A*6-6),w=0,m=0;for(H=A-1,r=0;r<H;++r)i[m++]=w,i[m++]=w+2,i[m++]=w+1,i[m++]=w+1,i[m++]=w+2,i[m++]=w+3,w+=4;o.push(k.buffer,I.buffer,E.buffer),o.push(y.buffer,C.buffer,i.buffer);let V={indexDatatype:i.BYTES_PER_ELEMENT===2?R.UNSIGNED_SHORT:R.UNSIGNED_INT,currentPositions:k.buffer,previousPositions:I.buffer,nextPositions:E.buffer,expandAndWidth:y.buffer,batchIds:C.buffer,indices:i.buffer};if(n.keepDecodedPositions){let a=dt(s);o.push(e.buffer,a.buffer),V=G(V,{decodedPositions:e.buffer,decodedPositionOffsets:a.buffer})}return V}var xt=K(ft);export{xt as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 u}from"./chunk-F6M5ZWO4.js";import"./chunk-3XZ3CL24.js";import"./chunk-GACOCTFW.js";import"./chunk-P6X455E3.js";import{a as f}from"./chunk-MDI2T7LJ.js";import"./chunk-FZYUOFLY.js";function a(c,d){return u.createMesh(c).then(function(e){let t=e.vertices.buffer,r=e.indices.buffer,s=e.westIndicesSouthToNorth.buffer,o=e.southIndicesEastToWest.buffer,i=e.eastIndicesNorthToSouth.buffer,n=e.northIndicesWestToEast.buffer;return d.push(t,r,s,o,i,n),{verticesBuffer:t,indicesBuffer:r,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,encoding:e.encoding,westIndicesBuffer:s,southIndicesBuffer:o,eastIndicesBuffer:i,northIndicesBuffer:n}})}var T=f(a);export{T as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 Gt}from"./chunk-GACOCTFW.js";import{a as Dt}from"./chunk-MDI2T7LJ.js";import{B as Lt,Ba as lt,X as kt,g as ht,ga as qt,j as s,k as wt,l as P,q as Ut,r as $,t as Ht,u as N,v as Ot,y as Vt,z as zt}from"./chunk-FZYUOFLY.js";var $t=Uint16Array.BYTES_PER_ELEMENT,gt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(o,l,e){e=e??s;let i=o.length;for(let c=0;c<i;++c)if(e.equalsEpsilon(o[c],l,s.EPSILON12))return c;return-1}function ee(o,l){o.ellipsoid=Ot.clone(o.ellipsoid),o.rectangle=zt.clone(o.rectangle);let e=se(o.buffer,o.relativeToCenter,o.ellipsoid,o.rectangle,o.nativeRectangle,o.exaggeration,o.exaggerationRelativeHeight,o.skirtHeight,o.includeWebMercatorT,o.negativeAltitudeExponentBias,o.negativeElevationThreshold),i=e.vertices;l.push(i.buffer);let c=e.indices;return l.push(c.buffer),{vertices:i.buffer,indices:c.buffer,numberOfAttributes:e.encoding.stride,minimumHeight:e.minimumHeight,maximumHeight:e.maximumHeight,boundingSphere3D:e.boundingSphere3D,orientedBoundingBox:e.orientedBoundingBox,occludeePointInScaledSpace:e.occludeePointInScaledSpace,encoding:e.encoding,vertexCountWithoutSkirts:e.vertexCountWithoutSkirts,indexCountWithoutSkirts:e.indexCountWithoutSkirts,westIndicesSouthToNorth:e.westIndicesSouthToNorth,southIndicesEastToWest:e.southIndicesEastToWest,eastIndicesNorthToSouth:e.eastIndicesNorthToSouth,northIndicesWestToEast:e.northIndicesWestToEast}}var u=new N,G=new P,ne=new P,oe=new P,ie=new $;function se(o,l,e,i,c,et,g,nt,T,ot,it){let E,h,p,m,x,I;ht(i)?(E=i.west,h=i.south,p=i.east,m=i.north,x=i.width,I=i.height):(E=s.toRadians(c.west),h=s.toRadians(c.south),p=s.toRadians(c.east),m=s.toRadians(c.north),x=s.toRadians(i.width),I=s.toRadians(i.height));let X=[h,m],A=[E,p],O=Vt.eastNorthUpToFixedFrame(l,e),j=$.inverseTransformation(O,ie),V,Q;T&&(V=lt.geodeticLatitudeToMercatorAngle(h),Q=1/(lt.geodeticLatitudeToMercatorAngle(m)-V));let y=et!==1,a=new DataView(o),z=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,b=ne;b.x=Number.POSITIVE_INFINITY,b.y=Number.POSITIVE_INFINITY,b.z=Number.POSITIVE_INFINITY;let F=oe;F.x=Number.NEGATIVE_INFINITY,F.y=Number.NEGATIVE_INFINITY,F.z=Number.NEGATIVE_INFINITY;let n=0,S=0,At=0,st,L;for(L=0;L<4;++L){let t=n;st=a.getUint32(t,!0),t+=Pt;let d=s.toRadians(a.getFloat64(t,!0)*180);t+=H,tt(A,d)===-1&&A.push(d);let Y=s.toRadians(a.getFloat64(t,!0)*180);t+=H,tt(X,Y)===-1&&X.push(Y),t+=2*H;let B=a.getInt32(t,!0);t+=gt,S+=B,B=a.getInt32(t,!0),At+=B*3,n+=st+Pt}let yt=[],bt=[],f=new Array(S),M=new Array(S),R=new Array(S),_=T?new Array(S):[],C=y?new Array(S):[],v=new Array(At),k=[],rt=[],ct=[],W=[],r=0,It=0;for(n=0,L=0;L<4;++L){st=a.getUint32(n,!0),n+=Pt;let t=n,d=s.toRadians(a.getFloat64(n,!0)*180);n+=H;let Y=s.toRadians(a.getFloat64(n,!0)*180);n+=H;let B=s.toRadians(a.getFloat64(n,!0)*180),Ct=B*.5;n+=H;let vt=s.toRadians(a.getFloat64(n,!0)*180),Wt=vt*.5;n+=H;let Yt=a.getInt32(n,!0);n+=gt;let Kt=a.getInt32(n,!0);n+=gt,n+=gt;let St=new Array(Yt);for(let U=0;U<Yt;++U){let Z=d+a.getUint8(n++)*B;u.longitude=Z;let D=Y+a.getUint8(n++)*vt;u.latitude=D;let w=a.getFloat32(n,!0);if(n+=te,w!==0&&w<it&&(w*=-Math.pow(2,ot)),w*=6371010,u.height=w,tt(A,Z)!==-1||tt(X,D)!==-1){let dt=tt(yt,u,N);if(dt===-1)yt.push(N.clone(u)),bt.push(r);else{St[U]=bt[dt];continue}}St[U]=r,Math.abs(Z-E)<Ct?k.push({index:r,cartographic:N.clone(u)}):Math.abs(Z-p)<Ct?ct.push({index:r,cartographic:N.clone(u)}):Math.abs(D-h)<Wt?rt.push({index:r,cartographic:N.clone(u)}):Math.abs(D-m)<Wt&&W.push({index:r,cartographic:N.clone(u)}),z=Math.min(w,z),J=Math.max(w,J),R[r]=w;let Nt=e.cartographicToCartesian(u);if(f[r]=Nt,T&&(_[r]=(lt.geodeticLatitudeToMercatorAngle(D)-V)*Q),y){let dt=e.geodeticSurfaceNormal(Nt);C[r]=dt}$.multiplyByPoint(j,Nt,G),P.minimumByComponent(G,b,b),P.maximumByComponent(G,F,F);let Tt=(Z-E)/(p-E);Tt=s.clamp(Tt,0,1);let Bt=(D-h)/(m-h);Bt=s.clamp(Bt,0,1),M[r]=new wt(Tt,Bt),++r}let Zt=Kt*3;for(let U=0;U<Zt;++U,++It)v[It]=St[a.getUint16(n,!0)],n+=$t;if(st!==n-t)throw new Ut("Invalid terrain tile.")}f.length=r,M.length=r,R.length=r,T&&(_.length=r),y&&(C.length=r);let Ft=r,Xt=It,K={hMin:z,lastBorderPoint:void 0,skirtHeight:nt,toENU:j,ellipsoid:e,minimum:b,maximum:F};k.sort(function(t,d){return d.cartographic.latitude-t.cartographic.latitude}),rt.sort(function(t,d){return t.cartographic.longitude-d.cartographic.longitude}),ct.sort(function(t,d){return t.cartographic.latitude-d.cartographic.latitude}),W.sort(function(t,d){return d.cartographic.longitude-t.cartographic.longitude});let q=1e-5;if(ft(f,R,M,_,C,v,K,k,-q*x,!0,-q*I),ft(f,R,M,_,C,v,K,rt,-q*I,!1),ft(f,R,M,_,C,v,K,ct,q*x,!0,q*I),ft(f,R,M,_,C,v,K,W,q*I,!1),k.length>0&&W.length>0){let t=k[0].index,d=Ft,Y=W[W.length-1].index,B=f.length-1;v.push(Y,B,d,d,t,Y)}S=f.length;let jt=Lt.fromPoints(f),Mt;ht(i)&&(Mt=kt.fromRectangle(i,z,J,e));let Qt=new qt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,f,z),Jt=new Ht(b,F,l),Et=new Gt(l,Jt,K.hMin,J,O,!1,T,y,et,g),Rt=new Float32Array(S*Et.stride),_t=0;for(let t=0;t<S;++t)_t=Et.encode(Rt,_t,f[t],M[t],R[t],void 0,_[t],C[t]);let at=k.map(function(t){return t.index}).reverse(),pt=rt.map(function(t){return t.index}).reverse(),ut=ct.map(function(t){return t.index}).reverse(),xt=W.map(function(t){return t.index}).reverse();return pt.unshift(ut[ut.length-1]),pt.push(at[0]),xt.unshift(at[at.length-1]),xt.push(ut[0]),{vertices:Rt,indices:new Uint16Array(v),maximumHeight:J,minimumHeight:z,encoding:Et,boundingSphere3D:jt,orientedBoundingBox:Mt,occludeePointInScaledSpace:Qt,vertexCountWithoutSkirts:Ft,indexCountWithoutSkirts:Xt,westIndicesSouthToNorth:at,southIndicesEastToWest:pt,eastIndicesNorthToSouth:ut,northIndicesWestToEast:xt}}function ft(o,l,e,i,c,et,g,nt,T,ot,it){let E=nt.length;for(let h=0;h<E;++h){let p=nt[h],m=p.cartographic,x=p.index,I=o.length,X=m.longitude,A=m.latitude;A=s.clamp(A,-s.PI_OVER_TWO,s.PI_OVER_TWO);let O=m.height-g.skirtHeight;g.hMin=Math.min(g.hMin,O),N.fromRadians(X,A,O,u),ot&&(u.longitude+=T),ot?h===E-1?u.latitude+=it:h===0&&(u.latitude-=it):u.latitude+=T;let j=g.ellipsoid.cartographicToCartesian(u);o.push(j),l.push(O),e.push(wt.clone(e[x])),i.length>0&&i.push(i[x]),c.length>0&&c.push(c[x]),$.multiplyByPoint(g.toENU,j,G);let V=g.minimum,Q=g.maximum;P.minimumByComponent(G,V,V),P.maximumByComponent(G,Q,Q);let mt=g.lastBorderPoint;if(ht(mt)){let y=mt.index;et.push(y,I-1,I,I,x,y)}g.lastBorderPoint=p}}var de=Dt(ee);export{de as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 sr}from"./chunk-GACOCTFW.js";import{a as ar}from"./chunk-MDI2T7LJ.js";import{B as ir,Ba as xe,X as nr,c as Ir,d as xr,g as W,ga as tr,h as he,j as me,k as Pe,l as re,q as Re,r as pe,t as er,v as Ie,y as rr,z as te}from"./chunk-FZYUOFLY.js";var ur=Ir((Lr,Ue)=>{/* Copyright 2015-2018 Esri. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @preserve */(function(){var D=(function(){var A={};A.defaultNoDataValue=-34027999387901484e22,A.decode=function(r,a){a=a||{};var n=a.encodedMaskData||a.encodedMaskData===null,i=t(r,a.inputOffset||0,n),o=a.noDataValue!==null?a.noDataValue:A.defaultNoDataValue,s=V(i,a.pixelType||Float32Array,a.encodedMaskData,o,a.returnMask),u={width:i.width,height:i.height,pixelData:s.resultPixels,minValue:s.minValue,maxValue:i.pixels.maxValue,noDataValue:o};return s.resultMask&&(u.maskData=s.resultMask),a.returnEncodedMask&&i.mask&&(u.encodedMaskData=i.mask.bitset?i.mask.bitset:null),a.returnFileInfo&&(u.fileInfo=b(i),a.computeUsedBitDepths&&(u.fileInfo.bitDepths=Y(i))),u};var V=function(r,a,n,i,o){var s=0,u=r.pixels.numBlocksX,h=r.pixels.numBlocksY,l=Math.floor(r.width/u),f=Math.floor(r.height/h),m=2*r.maxZError,c=Number.MAX_VALUE,g;n=n||(r.mask?r.mask.bitset:null);var v,U;v=new a(r.width*r.height),o&&n&&(U=new Uint8Array(r.width*r.height));for(var M=new Float32Array(l*f),S,I,k=0;k<=h;k++){var w=k!==h?f:r.height%h;if(w!==0)for(var d=0;d<=u;d++){var x=d!==u?l:r.width%u;if(x!==0){var T=k*r.width*f+d*l,y=r.width-x,p=r.pixels.blocks[s],L,B,E;p.encoding<2?(p.encoding===0?L=p.rawData:(e(p.stuffedData,p.bitsPerPixel,p.numValidPixels,p.offset,m,M,r.pixels.maxValue),L=M),B=0):p.encoding===2?E=0:E=p.offset;var O;if(n)for(I=0;I<w;I++){for(T&7&&(O=n[T>>3],O<<=T&7),S=0;S<x;S++)T&7||(O=n[T>>3]),O&128?(U&&(U[T]=1),g=p.encoding<2?L[B++]:E,c=c>g?g:c,v[T++]=g):(U&&(U[T]=0),v[T++]=i),O<<=1;T+=y}else if(p.encoding<2)for(I=0;I<w;I++){for(S=0;S<x;S++)g=L[B++],c=c>g?g:c,v[T++]=g;T+=y}else for(c=c>E?E:c,I=0;I<w;I++){for(S=0;S<x;S++)v[T++]=E;T+=y}if(p.encoding===1&&B!==p.numValidPixels)throw"Block and Mask do not match";s++}}}return{resultPixels:v,resultMask:U,minValue:c}},b=function(r){return{fileIdentifierString:r.fileIdentifierString,fileVersion:r.fileVersion,imageType:r.imageType,height:r.height,width:r.width,maxZError:r.maxZError,eofOffset:r.eofOffset,mask:r.mask?{numBlocksX:r.mask.numBlocksX,numBlocksY:r.mask.numBlocksY,numBytes:r.mask.numBytes,maxValue:r.mask.maxValue}:null,pixels:{numBlocksX:r.pixels.numBlocksX,numBlocksY:r.pixels.numBlocksY,numBytes:r.pixels.numBytes,maxValue:r.pixels.maxValue,noDataValue:r.noDataValue}}},Y=function(r){for(var a=r.pixels.numBlocksX*r.pixels.numBlocksY,n={},i=0;i<a;i++){var o=r.pixels.blocks[i];o.encoding===0?n.float32=!0:o.encoding===1?n[o.bitsPerPixel]=!0:n[0]=!0}return Object.keys(n)},t=function(r,a,n){var i={},o=new Uint8Array(r,a,10);if(i.fileIdentifierString=String.fromCharCode.apply(null,o),i.fileIdentifierString.trim()!=="CntZImage")throw"Unexpected file identifier string: "+i.fileIdentifierString;a+=10;var s=new DataView(r,a,24);if(i.fileVersion=s.getInt32(0,!0),i.imageType=s.getInt32(4,!0),i.height=s.getUint32(8,!0),i.width=s.getUint32(12,!0),i.maxZError=s.getFloat64(16,!0),a+=24,!n)if(s=new DataView(r,a,16),i.mask={},i.mask.numBlocksY=s.getUint32(0,!0),i.mask.numBlocksX=s.getUint32(4,!0),i.mask.numBytes=s.getUint32(8,!0),i.mask.maxValue=s.getFloat32(12,!0),a+=16,i.mask.numBytes>0){var u=new Uint8Array(Math.ceil(i.width*i.height/8));s=new DataView(r,a,i.mask.numBytes);var h=s.getInt16(0,!0),l=2,f=0;do{if(h>0)for(;h--;)u[f++]=s.getUint8(l++);else{var m=s.getUint8(l++);for(h=-h;h--;)u[f++]=m}h=s.getInt16(l,!0),l+=2}while(l<i.mask.numBytes);if(h!==-32768||f<u.length)throw"Unexpected end of mask RLE encoding";i.mask.bitset=u,a+=i.mask.numBytes}else(i.mask.numBytes|i.mask.numBlocksY|i.mask.maxValue)===0&&(i.mask.bitset=new Uint8Array(Math.ceil(i.width*i.height/8)));s=new DataView(r,a,16),i.pixels={},i.pixels.numBlocksY=s.getUint32(0,!0),i.pixels.numBlocksX=s.getUint32(4,!0),i.pixels.numBytes=s.getUint32(8,!0),i.pixels.maxValue=s.getFloat32(12,!0),a+=16;var c=i.pixels.numBlocksX,g=i.pixels.numBlocksY,v=c+(i.width%c>0?1:0),U=g+(i.height%g>0?1:0);i.pixels.blocks=new Array(v*U);for(var M=0,S=0;S<U;S++)for(var I=0;I<v;I++){var k=0,w=r.byteLength-a;s=new DataView(r,a,Math.min(10,w));var d={};i.pixels.blocks[M++]=d;var x=s.getUint8(0);if(k++,d.encoding=x&63,d.encoding>3)throw"Invalid block encoding ("+d.encoding+")";if(d.encoding===2){a++;continue}if(x!==0&&x!==2){if(x>>=6,d.offsetType=x,x===2)d.offset=s.getInt8(1),k++;else if(x===1)d.offset=s.getInt16(1,!0),k+=2;else if(x===0)d.offset=s.getFloat32(1,!0),k+=4;else throw"Invalid block offset type";if(d.encoding===1)if(x=s.getUint8(k),k++,d.bitsPerPixel=x&63,x>>=6,d.numValidPixelsType=x,x===2)d.numValidPixels=s.getUint8(k),k++;else if(x===1)d.numValidPixels=s.getUint16(k,!0),k+=2;else if(x===0)d.numValidPixels=s.getUint32(k,!0),k+=4;else throw"Invalid valid pixel count type"}if(a+=k,d.encoding!==3){var T,y;if(d.encoding===0){var p=(i.pixels.numBytes-1)/4;if(p!==Math.floor(p))throw"uncompressed block has invalid length";T=new ArrayBuffer(p*4),y=new Uint8Array(T),y.set(new Uint8Array(r,a,p*4));var L=new Float32Array(T);d.rawData=L,a+=p*4}else if(d.encoding===1){var B=Math.ceil(d.numValidPixels*d.bitsPerPixel/8),E=Math.ceil(B/4);T=new ArrayBuffer(E*4),y=new Uint8Array(T),y.set(new Uint8Array(r,a,B)),d.stuffedData=new Uint32Array(T),a+=B}}}return i.eofOffset=a,i},e=function(r,a,n,i,o,s,u){var h=(1<<a)-1,l=0,f,m=0,c,g,v=Math.ceil((u-i)/o),U=r.length*4-Math.ceil(a*n/8);for(r[r.length-1]<<=8*U,f=0;f<n;f++){if(m===0&&(g=r[l++],m=32),m>=a)c=g>>>m-a&h,m-=a;else{var M=a-m;c=(g&h)<<M&h,g=r[l++],m=32-M,c+=g>>>m}s[f]=c<v?i+c*o:u}return s};return A})(),ae=(function(){"use strict";var A={unstuff:function(t,e,r,a,n,i,o,s){var u=(1<<r)-1,h=0,l,f=0,m,c,g,v,U=t.length*4-Math.ceil(r*a/8);if(t[t.length-1]<<=8*U,n)for(l=0;l<a;l++)f===0&&(c=t[h++],f=32),f>=r?(m=c>>>f-r&u,f-=r):(g=r-f,m=(c&u)<<g&u,c=t[h++],f=32-g,m+=c>>>f),e[l]=n[m];else for(v=Math.ceil((s-i)/o),l=0;l<a;l++)f===0&&(c=t[h++],f=32),f>=r?(m=c>>>f-r&u,f-=r):(g=r-f,m=(c&u)<<g&u,c=t[h++],f=32-g,m+=c>>>f),e[l]=m<v?i+m*o:s},unstuffLUT:function(t,e,r,a,n,i){var o=(1<<e)-1,s=0,u=0,h=0,l=0,f=0,m,c=[],g=t.length*4-Math.ceil(e*r/8);t[t.length-1]<<=8*g;var v=Math.ceil((i-a)/n);for(u=0;u<r;u++)l===0&&(m=t[s++],l=32),l>=e?(f=m>>>l-e&o,l-=e):(h=e-l,f=(m&o)<<h&o,m=t[s++],l=32-h,f+=m>>>l),c[u]=f<v?a+f*n:i;return c.unshift(a),c},unstuff2:function(t,e,r,a,n,i,o,s){var u=(1<<r)-1,h=0,l,f=0,m=0,c,g,v;if(n)for(l=0;l<a;l++)f===0&&(g=t[h++],f=32,m=0),f>=r?(c=g>>>m&u,f-=r,m+=r):(v=r-f,c=g>>>m&u,g=t[h++],f=32-v,c|=(g&(1<<v)-1)<<r-v,m=v),e[l]=n[c];else{var U=Math.ceil((s-i)/o);for(l=0;l<a;l++)f===0&&(g=t[h++],f=32,m=0),f>=r?(c=g>>>m&u,f-=r,m+=r):(v=r-f,c=g>>>m&u,g=t[h++],f=32-v,c|=(g&(1<<v)-1)<<r-v,m=v),e[l]=c<U?i+c*o:s}return e},unstuffLUT2:function(t,e,r,a,n,i){var o=(1<<e)-1,s=0,u=0,h=0,l=0,f=0,m=0,c,g=[],v=Math.ceil((i-a)/n);for(u=0;u<r;u++)l===0&&(c=t[s++],l=32,m=0),l>=e?(f=c>>>m&o,l-=e,m+=e):(h=e-l,f=c>>>m&o,c=t[s++],l=32-h,f|=(c&(1<<h)-1)<<e-h,m=h),g[u]=f<v?a+f*n:i;return g.unshift(a),g},originalUnstuff:function(t,e,r,a){var n=(1<<r)-1,i=0,o,s=0,u,h,l,f=t.length*4-Math.ceil(r*a/8);for(t[t.length-1]<<=8*f,o=0;o<a;o++)s===0&&(h=t[i++],s=32),s>=r?(u=h>>>s-r&n,s-=r):(l=r-s,u=(h&n)<<l&n,h=t[i++],s=32-l,u+=h>>>s),e[o]=u;return e},originalUnstuff2:function(t,e,r,a){var n=(1<<r)-1,i=0,o,s=0,u=0,h,l,f;for(o=0;o<a;o++)s===0&&(l=t[i++],s=32,u=0),s>=r?(h=l>>>u&n,s-=r,u+=r):(f=r-s,h=l>>>u&n,l=t[i++],s=32-f,h|=(l&(1<<f)-1)<<r-f,u=f),e[o]=h;return e}},V={HUFFMAN_LUT_BITS_MAX:12,computeChecksumFletcher32:function(t){for(var e=65535,r=65535,a=t.length,n=Math.floor(a/2),i=0;n;){var o=n>=359?359:n;n-=o;do e+=t[i++]<<8,r+=e+=t[i++];while(--o);e=(e&65535)+(e>>>16),r=(r&65535)+(r>>>16)}return a&1&&(r+=e+=t[i]<<8),e=(e&65535)+(e>>>16),r=(r&65535)+(r>>>16),(r<<16|e)>>>0},readHeaderInfo:function(t,e){var r=e.ptr,a=new Uint8Array(t,r,6),n={};if(n.fileIdentifierString=String.fromCharCode.apply(null,a),n.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+n.fileIdentifierString;r+=6;var i=new DataView(t,r,8),o=i.getInt32(0,!0);n.fileVersion=o,r+=4,o>=3&&(n.checksum=i.getUint32(4,!0),r+=4),i=new DataView(t,r,12),n.height=i.getUint32(0,!0),n.width=i.getUint32(4,!0),r+=8,o>=4?(n.numDims=i.getUint32(8,!0),r+=4):n.numDims=1,i=new DataView(t,r,40),n.numValidPixel=i.getUint32(0,!0),n.microBlockSize=i.getInt32(4,!0),n.blobSize=i.getInt32(8,!0),n.imageType=i.getInt32(12,!0),n.maxZError=i.getFloat64(16,!0),n.zMin=i.getFloat64(24,!0),n.zMax=i.getFloat64(32,!0),r+=40,e.headerInfo=n,e.ptr=r;var s,u;if(o>=3&&(u=o>=4?52:48,s=this.computeChecksumFletcher32(new Uint8Array(t,r-u,n.blobSize-14)),s!==n.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(t,e){var r=e.headerInfo,a=this.getDataTypeArray(r.imageType),n=r.numDims*this.getDataTypeSize(r.imageType),i=this.readSubArray(t,e.ptr,a,n),o=this.readSubArray(t,e.ptr+n,a,n);e.ptr+=2*n;var s,u=!0;for(s=0;s<r.numDims;s++)if(i[s]!==o[s]){u=!1;break}return r.minValues=i,r.maxValues=o,u},readSubArray:function(t,e,r,a){var n;if(r===Uint8Array)n=new Uint8Array(t,e,a);else{var i=new ArrayBuffer(a),o=new Uint8Array(i);o.set(new Uint8Array(t,e,a)),n=new r(i)}return n},readMask:function(t,e){var r=e.ptr,a=e.headerInfo,n=a.width*a.height,i=a.numValidPixel,o=new DataView(t,r,4),s={};if(s.numBytes=o.getUint32(0,!0),r+=4,(i===0||n===i)&&s.numBytes!==0)throw"invalid mask";var u,h;if(i===0)u=new Uint8Array(Math.ceil(n/8)),s.bitset=u,h=new Uint8Array(n),e.pixels.resultMask=h,r+=s.numBytes;else if(s.numBytes>0){u=new Uint8Array(Math.ceil(n/8)),o=new DataView(t,r,s.numBytes);var l=o.getInt16(0,!0),f=2,m=0,c=0;do{if(l>0)for(;l--;)u[m++]=o.getUint8(f++);else for(c=o.getUint8(f++),l=-l;l--;)u[m++]=c;l=o.getInt16(f,!0),f+=2}while(f<s.numBytes);if(l!==-32768||m<u.length)throw"Unexpected end of mask RLE encoding";h=new Uint8Array(n);var g=0,v=0;for(v=0;v<n;v++)v&7?(g=u[v>>3],g<<=v&7):g=u[v>>3],g&128&&(h[v]=1);e.pixels.resultMask=h,s.bitset=u,r+=s.numBytes}return e.ptr=r,e.mask=s,!0},readDataOneSweep:function(t,e,r){var a=e.ptr,n=e.headerInfo,i=n.numDims,o=n.width*n.height,s=n.imageType,u=n.numValidPixel*V.getDataTypeSize(s)*i,h,l=e.pixels.resultMask;if(r===Uint8Array)h=new Uint8Array(t,a,u);else{var f=new ArrayBuffer(u),m=new Uint8Array(f);m.set(new Uint8Array(t,a,u)),h=new r(f)}if(h.length===o*i)e.pixels.resultPixels=h;else{e.pixels.resultPixels=new r(o*i);var c=0,g=0,v=0,U=0;if(i>1)for(v=0;v<i;v++)for(U=v*o,g=0;g<o;g++)l[g]&&(e.pixels.resultPixels[U+g]=h[c++]);else for(g=0;g<o;g++)l[g]&&(e.pixels.resultPixels[g]=h[c++])}return a+=u,e.ptr=a,!0},readHuffmanTree:function(t,e){var r=this.HUFFMAN_LUT_BITS_MAX,a=new DataView(t,e.ptr,16);e.ptr+=16;var n=a.getInt32(0,!0);if(n<2)throw"unsupported Huffman version";var i=a.getInt32(4,!0),o=a.getInt32(8,!0),s=a.getInt32(12,!0);if(o>=s)return!1;var u=new Uint32Array(s-o);V.decodeBits(t,e,u);var h=[],l,f,m,c;for(l=o;l<s;l++)f=l-(l<i?0:i),h[f]={first:u[l-o],second:null};var g=t.byteLength-e.ptr,v=Math.ceil(g/4),U=new ArrayBuffer(v*4),M=new Uint8Array(U);M.set(new Uint8Array(t,e.ptr,g));var S=new Uint32Array(U),I=0,k,w=0;for(k=S[0],l=o;l<s;l++)f=l-(l<i?0:i),c=h[f].first,c>0&&(h[f].second=k<<I>>>32-c,32-I>=c?(I+=c,I===32&&(I=0,w++,k=S[w])):(I+=c-32,w++,k=S[w],h[f].second|=k>>>32-I));var d=0,x=0,T=new b;for(l=0;l<h.length;l++)h[l]!==void 0&&(d=Math.max(d,h[l].first));d>=r?x=r:x=d,d>=30&&console.log("WARning, large NUM LUT BITS IS "+d);var y=[],p,L,B,E,O,F;for(l=o;l<s;l++)if(f=l-(l<i?0:i),c=h[f].first,c>0)if(p=[c,f],c<=x)for(L=h[f].second<<x-c,B=1<<x-c,m=0;m<B;m++)y[L|m]=p;else for(L=h[f].second,F=T,E=c-1;E>=0;E--)O=L>>>E&1,O?(F.right||(F.right=new b),F=F.right):(F.left||(F.left=new b),F=F.left),E===0&&!F.val&&(F.val=p[1]);return{decodeLut:y,numBitsLUTQick:x,numBitsLUT:d,tree:T,stuffedData:S,srcPtr:w,bitPos:I}},readHuffman:function(t,e,r){var a=e.headerInfo,n=a.numDims,i=e.headerInfo.height,o=e.headerInfo.width,s=o*i,u=this.readHuffmanTree(t,e),h=u.decodeLut,l=u.tree,f=u.stuffedData,m=u.srcPtr,c=u.bitPos,g=u.numBitsLUTQick,v=u.numBitsLUT,U=e.headerInfo.imageType===0?128:0,M,S,I,k=e.pixels.resultMask,w,d,x,T,y,p,L,B=0;c>0&&(m++,c=0);var E=f[m],O=e.encodeMode===1,F=new r(s*n),N=F,_;for(_=0;_<a.numDims;_++){if(n>1&&(N=new r(F.buffer,s*_,s),B=0),e.headerInfo.numValidPixel===o*i)for(p=0,T=0;T<i;T++)for(y=0;y<o;y++,p++){if(S=0,w=E<<c>>>32-g,d=w,32-c<g&&(w|=f[m+1]>>>64-c-g,d=w),h[d])S=h[d][1],c+=h[d][0];else for(w=E<<c>>>32-v,d=w,32-c<v&&(w|=f[m+1]>>>64-c-v,d=w),M=l,L=0;L<v;L++)if(x=w>>>v-L-1&1,M=x?M.right:M.left,!(M.left||M.right)){S=M.val,c=c+L+1;break}c>=32&&(c-=32,m++,E=f[m]),I=S-U,O?(y>0?I+=B:T>0?I+=N[p-o]:I+=B,I&=255,N[p]=I,B=I):N[p]=I}else for(p=0,T=0;T<i;T++)for(y=0;y<o;y++,p++)if(k[p]){if(S=0,w=E<<c>>>32-g,d=w,32-c<g&&(w|=f[m+1]>>>64-c-g,d=w),h[d])S=h[d][1],c+=h[d][0];else for(w=E<<c>>>32-v,d=w,32-c<v&&(w|=f[m+1]>>>64-c-v,d=w),M=l,L=0;L<v;L++)if(x=w>>>v-L-1&1,M=x?M.right:M.left,!(M.left||M.right)){S=M.val,c=c+L+1;break}c>=32&&(c-=32,m++,E=f[m]),I=S-U,O?(y>0&&k[p-1]?I+=B:T>0&&k[p-o]?I+=N[p-o]:I+=B,I&=255,N[p]=I,B=I):N[p]=I}e.ptr=e.ptr+(m+1)*4+(c>0?4:0)}e.pixels.resultPixels=F},decodeBits:function(t,e,r,a,n){{var i=e.headerInfo,o=i.fileVersion,s=0,u=new DataView(t,e.ptr,5),h=u.getUint8(0);s++;var l=h>>6,f=l===0?4:3-l,m=(h&32)>0,c=h&31,g=0;if(f===1)g=u.getUint8(s),s++;else if(f===2)g=u.getUint16(s,!0),s+=2;else if(f===4)g=u.getUint32(s,!0),s+=4;else throw"Invalid valid pixel count type";var v=2*i.maxZError,U,M,S,I,k,w,d,x,T,y,p=i.numDims>1?i.maxValues[n]:i.zMax;if(m){for(e.counter.lut++,x=u.getUint8(s),T=c,s++,I=Math.ceil((x-1)*c/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),e.ptr+=s,S.set(new Uint8Array(t,e.ptr,I)),d=new Uint32Array(M),e.ptr+=I,y=0;x-1>>>y;)y++;I=Math.ceil(g*y/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),S.set(new Uint8Array(t,e.ptr,I)),U=new Uint32Array(M),e.ptr+=I,o>=3?w=A.unstuffLUT2(d,c,x-1,a,v,p):w=A.unstuffLUT(d,c,x-1,a,v,p),o>=3?A.unstuff2(U,r,y,g,w):A.unstuff(U,r,y,g,w)}else e.counter.bitstuffer++,y=c,e.ptr+=s,y>0&&(I=Math.ceil(g*y/8),k=Math.ceil(I/4),M=new ArrayBuffer(k*4),S=new Uint8Array(M),S.set(new Uint8Array(t,e.ptr,I)),U=new Uint32Array(M),e.ptr+=I,o>=3?a==null?A.originalUnstuff2(U,r,y,g):A.unstuff2(U,r,y,g,!1,a,v,p):a==null?A.originalUnstuff(U,r,y,g):A.unstuff(U,r,y,g,!1,a,v,p))}},readTiles:function(t,e,r){var a=e.headerInfo,n=a.width,i=a.height,o=a.microBlockSize,s=a.imageType,u=V.getDataTypeSize(s),h=Math.ceil(n/o),l=Math.ceil(i/o);e.pixels.numBlocksY=l,e.pixels.numBlocksX=h,e.pixels.ptr=0;var f=0,m=0,c=0,g=0,v=0,U=0,M=0,S=0,I=0,k=0,w=0,d=0,x=0,T=0,y=0,p=0,L,B,E,O,F,N,_=new r(o*o),Te=i%o||o,ke=n%o||o,Q,z,le=a.numDims,ie,Z=e.pixels.resultMask,j=e.pixels.resultPixels;for(c=0;c<l;c++)for(v=c!==l-1?o:Te,g=0;g<h;g++)for(U=g!==h-1?o:ke,w=c*n*o+g*o,d=n-U,ie=0;ie<le;ie++){if(le>1&&(j=new r(e.pixels.resultPixels.buffer,n*i*ie*u,n*i)),M=t.byteLength-e.ptr,L=new DataView(t,e.ptr,Math.min(10,M)),B={},p=0,S=L.getUint8(0),p++,I=S>>6&255,k=S>>2&15,k!==(g*o>>3&15))throw"integrity issue";if(N=S&3,N>3)throw e.ptr+=p,"Invalid block encoding ("+N+")";if(N===2){e.counter.constant++,e.ptr+=p;continue}else if(N===0){if(e.counter.uncompressed++,e.ptr+=p,x=v*U*u,T=t.byteLength-e.ptr,x=x<T?x:T,E=new ArrayBuffer(x%u===0?x:x+u-x%u),O=new Uint8Array(E),O.set(new Uint8Array(t,e.ptr,x)),F=new r(E),y=0,Z)for(f=0;f<v;f++){for(m=0;m<U;m++)Z[w]&&(j[w]=F[y++]),w++;w+=d}else for(f=0;f<v;f++){for(m=0;m<U;m++)j[w++]=F[y++];w+=d}e.ptr+=y*u}else if(Q=V.getDataTypeUsed(s,I),z=V.getOnePixel(B,p,Q,L),p+=V.getDataTypeSize(Q),N===3)if(e.ptr+=p,e.counter.constantoffset++,Z)for(f=0;f<v;f++){for(m=0;m<U;m++)Z[w]&&(j[w]=z),w++;w+=d}else for(f=0;f<v;f++){for(m=0;m<U;m++)j[w++]=z;w+=d}else if(e.ptr+=p,V.decodeBits(t,e,_,z,ie),p=0,Z)for(f=0;f<v;f++){for(m=0;m<U;m++)Z[w]&&(j[w]=_[p++]),w++;w+=d}else for(f=0;f<v;f++){for(m=0;m<U;m++)j[w++]=_[p++];w+=d}}},formatFileInfo:function(t){return{fileIdentifierString:t.headerInfo.fileIdentifierString,fileVersion:t.headerInfo.fileVersion,imageType:t.headerInfo.imageType,height:t.headerInfo.height,width:t.headerInfo.width,numValidPixel:t.headerInfo.numValidPixel,microBlockSize:t.headerInfo.microBlockSize,blobSize:t.headerInfo.blobSize,maxZError:t.headerInfo.maxZError,pixelType:V.getPixelType(t.headerInfo.imageType),eofOffset:t.eofOffset,mask:t.mask?{numBytes:t.mask.numBytes}:null,pixels:{numBlocksX:t.pixels.numBlocksX,numBlocksY:t.pixels.numBlocksY,maxValue:t.headerInfo.zMax,minValue:t.headerInfo.zMin,noDataValue:t.noDataValue}}},constructConstantSurface:function(t){var e=t.headerInfo.zMax,r=t.headerInfo.numDims,a=t.headerInfo.height*t.headerInfo.width,n=a*r,i=0,o=0,s=0,u=t.pixels.resultMask;if(u)if(r>1)for(i=0;i<r;i++)for(s=i*a,o=0;o<a;o++)u[o]&&(t.pixels.resultPixels[s+o]=e);else for(o=0;o<a;o++)u[o]&&(t.pixels.resultPixels[o]=e);else if(t.pixels.resultPixels.fill)t.pixels.resultPixels.fill(e);else for(o=0;o<n;o++)t.pixels.resultPixels[o]=e},getDataTypeArray:function(t){var e;switch(t){case 0:e=Int8Array;break;case 1:e=Uint8Array;break;case 2:e=Int16Array;break;case 3:e=Uint16Array;break;case 4:e=Int32Array;break;case 5:e=Uint32Array;break;case 6:e=Float32Array;break;case 7:e=Float64Array;break;default:e=Float32Array}return e},getPixelType:function(t){var e;switch(t){case 0:e="S8";break;case 1:e="U8";break;case 2:e="S16";break;case 3:e="U16";break;case 4:e="S32";break;case 5:e="U32";break;case 6:e="F32";break;case 7:e="F64";break;default:e="F32"}return e},isValidPixelValue:function(t,e){if(e==null)return!1;var r;switch(t){case 0:r=e>=-128&&e<=127;break;case 1:r=e>=0&&e<=255;break;case 2:r=e>=-32768&&e<=32767;break;case 3:r=e>=0&&e<=65536;break;case 4:r=e>=-2147483648&&e<=2147483647;break;case 5:r=e>=0&&e<=4294967296;break;case 6:r=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:r=e>=5e-324&&e<=17976931348623157e292;break;default:r=!1}return r},getDataTypeSize:function(t){var e=0;switch(t){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=t}return e},getDataTypeUsed:function(t,e){var r=t;switch(t){case 2:case 4:r=t-e;break;case 3:case 5:r=t-2*e;break;case 6:e===0?r=t:e===1?r=2:r=1;break;case 7:e===0?r=t:r=t-2*e+1;break;default:r=t;break}return r},getOnePixel:function(t,e,r,a){var n=0;switch(r){case 0:n=a.getInt8(e);break;case 1:n=a.getUint8(e);break;case 2:n=a.getInt16(e,!0);break;case 3:n=a.getUint16(e,!0);break;case 4:n=a.getInt32(e,!0);break;case 5:n=a.getUInt32(e,!0);break;case 6:n=a.getFloat32(e,!0);break;case 7:n=a.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return n}},b=function(t,e,r){this.val=t,this.left=e,this.right=r},Y={decode:function(t,e){e=e||{};var r=e.noDataValue,a=0,n={};if(n.ptr=e.inputOffset||0,n.pixels={},!!V.readHeaderInfo(t,n)){var i=n.headerInfo,o=i.fileVersion,s=V.getDataTypeArray(i.imageType);V.readMask(t,n),i.numValidPixel!==i.width*i.height&&!n.pixels.resultMask&&(n.pixels.resultMask=e.maskData);var u=i.width*i.height;if(n.pixels.resultPixels=new s(u*i.numDims),n.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0},i.numValidPixel!==0)if(i.zMax===i.zMin)V.constructConstantSurface(n);else if(o>=4&&V.checkMinMaxRanges(t,n))V.constructConstantSurface(n);else{var h=new DataView(t,n.ptr,2),l=h.getUint8(0);if(n.ptr++,l)V.readDataOneSweep(t,n,s);else if(o>1&&i.imageType<=1&&Math.abs(i.maxZError-.5)<1e-5){var f=h.getUint8(1);if(n.ptr++,n.encodeMode=f,f>2||o<4&&f>1)throw"Invalid Huffman flag "+f;f?V.readHuffman(t,n,s):V.readTiles(t,n,s)}else V.readTiles(t,n,s)}n.eofOffset=n.ptr;var m;e.inputOffset?(m=n.headerInfo.blobSize+e.inputOffset-n.ptr,Math.abs(m)>=1&&(n.eofOffset=e.inputOffset+n.headerInfo.blobSize)):(m=n.headerInfo.blobSize-n.ptr,Math.abs(m)>=1&&(n.eofOffset=n.headerInfo.blobSize));var c={width:i.width,height:i.height,pixelData:n.pixels.resultPixels,minValue:i.zMin,maxValue:i.zMax,validPixelCount:i.numValidPixel,dimCount:i.numDims,dimStats:{minValues:i.minValues,maxValues:i.maxValues},maskData:n.pixels.resultMask};if(n.pixels.resultMask&&V.isValidPixelValue(i.imageType,r)){var g=n.pixels.resultMask;for(a=0;a<u;a++)g[a]||(c.pixelData[a]=r);c.noDataValue=r}return n.noDataValue=r,e.returnFileInfo&&(c.fileInfo=V.formatFileInfo(n)),c}},getBandCount:function(t){var e=0,r=0,a={};for(a.ptr=0,a.pixels={};r<t.byteLength-58;)V.readHeaderInfo(t,a),r+=a.headerInfo.blobSize,e++,a.ptr=r;return e}};return Y})(),C=(function(){var A=new ArrayBuffer(4),V=new Uint8Array(A),b=new Uint32Array(A);return b[0]=1,V[0]===1})(),ee={decode:function(A,V){if(!C)throw"Big endian system is not supported.";V=V||{};var b=V.inputOffset||0,Y=new Uint8Array(A,b,10),t=String.fromCharCode.apply(null,Y),e,r;if(t.trim()==="CntZImage")e=D,r=1;else if(t.substring(0,5)==="Lerc2")e=ae,r=2;else throw"Unexpected file identifier string: "+t;for(var a=0,n=A.byteLength-10,i,o=[],s,u,h={width:0,height:0,pixels:[],pixelType:V.pixelType,mask:null,statistics:[]};b<n;){var l=e.decode(A,{inputOffset:b,encodedMaskData:i,maskData:u,returnMask:a===0,returnEncodedMask:a===0,returnFileInfo:!0,pixelType:V.pixelType||null,noDataValue:V.noDataValue||null});b=l.fileInfo.eofOffset,a===0&&(i=l.encodedMaskData,u=l.maskData,h.width=l.width,h.height=l.height,h.dimCount=l.dimCount||1,h.pixelType=l.pixelType||l.fileInfo.pixelType,h.mask=l.maskData),r>1&&l.fileInfo.mask&&l.fileInfo.mask.numBytes>0&&o.push(l.maskData),a++,h.pixels.push(l.pixelData),h.statistics.push({minValue:l.minValue,maxValue:l.maxValue,noDataValue:l.noDataValue,dimStats:l.dimStats})}var f,m,c;if(r>1&&o.length>1){for(c=h.width*h.height,h.bandMasks=o,u=new Uint8Array(c),u.set(o[0]),f=1;f<o.length;f++)for(s=o[f],m=0;m<c;m++)u[m]=u[m]&s[m];h.maskData=u}return h}};typeof define=="function"&&define.amd?define([],function(){return ee}):typeof Ue<"u"&&Ue.exports?Ue.exports=ee:this.Lerc=ee})()});var fr={NONE:0,LERC:1};Object.freeze(fr);var or=fr;var G={};G.DEFAULT_STRUCTURE=Object.freeze({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});var He=new re,Ur=new pe,Tr=new re,kr=new re;G.computeVertices=function(D){if(!W(D)||!W(D.heightmap))throw new he("options.heightmap is required.");if(!W(D.width)||!W(D.height))throw new he("options.width and options.height are required.");if(!W(D.nativeRectangle))throw new he("options.nativeRectangle is required.");if(!W(D.skirtHeight))throw new he("options.skirtHeight is required.");let ae=Math.cos,C=Math.sin,ee=Math.sqrt,A=Math.atan,V=Math.exp,b=me.PI_OVER_TWO,Y=me.toRadians,t=D.heightmap,e=D.width,r=D.height,a=D.skirtHeight,n=a>0,i=D.isGeographic??!0,o=D.ellipsoid??Ie.default,s=1/o.maximumRadius,u=te.clone(D.nativeRectangle),h=te.clone(D.rectangle),l,f,m,c;W(h)?(l=h.west,f=h.south,m=h.east,c=h.north):i?(l=Y(u.west),f=Y(u.south),m=Y(u.east),c=Y(u.north)):(l=u.west*s,f=b-2*A(V(-u.south*s)),m=u.east*s,c=b-2*A(V(-u.north*s)));let g=D.relativeToCenter,v=W(g);g=v?g:re.ZERO;let U=D.includeWebMercatorT??!1,M=D.exaggeration??1,S=D.exaggerationRelativeHeight??0,k=M!==1,w=D.structure??G.DEFAULT_STRUCTURE,d=w.heightScale??G.DEFAULT_STRUCTURE.heightScale,x=w.heightOffset??G.DEFAULT_STRUCTURE.heightOffset,T=w.elementsPerHeight??G.DEFAULT_STRUCTURE.elementsPerHeight,y=w.stride??G.DEFAULT_STRUCTURE.stride,p=w.elementMultiplier??G.DEFAULT_STRUCTURE.elementMultiplier,L=w.isBigEndian??G.DEFAULT_STRUCTURE.isBigEndian,B=te.computeWidth(u),E=te.computeHeight(u),O=B/(e-1),F=E/(r-1);i||(B*=s,E*=s);let N=o.radiiSquared,_=N.x,Te=N.y,ke=N.z,Q=65536,z=-65536,le=rr.eastNorthUpToFixedFrame(g,o),ie=pe.inverseTransformation(le,Ur),Z,j;U&&(Z=xe.geodeticLatitudeToMercatorAngle(f),j=1/(xe.geodeticLatitudeToMercatorAngle(c)-Z));let se=Tr;se.x=Number.POSITIVE_INFINITY,se.y=Number.POSITIVE_INFINITY,se.z=Number.POSITIVE_INFINITY;let fe=kr;fe.x=Number.NEGATIVE_INFINITY,fe.y=Number.NEGATIVE_INFINITY,fe.z=Number.NEGATIVE_INFINITY;let ye=Number.POSITIVE_INFINITY,ue=e*r,hr=a>0?e*2+r*2:0,ne=ue+hr,ge=new Array(ne),Ye=new Array(ne),Xe=new Array(ne),_e=U?new Array(ne):[],ze=k?new Array(ne):[],Me=0,Se=r,Ve=0,De=e;n&&(--Me,++Se,--Ve,++De);let ve=1e-5;for(let H=Me;H<Se;++H){let J=H;J<0&&(J=0),J>=r&&(J=r-1);let q=u.north-F*J;i?q=Y(q):q=b-2*A(V(-q*s));let Ee=(q-f)/(c-f);Ee=me.clamp(Ee,0,1);let de=H===Me,we=H===Se-1;a>0&&(de?q+=ve*E:we&&(q-=ve*E));let Ge=ae(q),Le=C(q),Qe=ke*Le,Je;U&&(Je=(xe.geodeticLatitudeToMercatorAngle(q)-Z)*j);for(let ce=Ve;ce<De;++ce){let K=ce;K<0&&(K=0),K>=e&&(K=e-1);let Be=J*(e*y)+K*y,R;if(T===1)R=t[Be];else{R=0;let X;if(L)for(X=0;X<T;++X)R=R*p+t[Be+X];else for(X=T-1;X>=0;--X)R=R*p+t[Be+X]}R=R*d+x,z=Math.max(z,R),Q=Math.min(Q,R);let $=u.west+O*K;i?$=Y($):$=$*s;let Fe=($-l)/(m-l);Fe=me.clamp(Fe,0,1);let P=J*e+K;if(a>0){let X=ce===Ve,Oe=ce===De-1,pr=de||we||X||Oe;if((de||we)&&(X||Oe))continue;pr&&(R-=a,X?(P=ue+(r-J-1),$-=ve*B):we?P=ue+r+(e-K-1):Oe?(P=ue+r+e+J,$+=ve*B):de&&(P=ue+r+e+r+K))}let be=Ge*ae($),Ne=Ge*C($),Ke=_*be,$e=Te*Ne,Ce=1/ee(Ke*be+$e*Ne+Qe*Le),vr=Ke*Ce,dr=$e*Ce,wr=Qe*Ce,oe=new re;oe.x=vr+be*R,oe.y=dr+Ne*R,oe.z=wr+Le*R,pe.multiplyByPoint(ie,oe,He),re.minimumByComponent(He,se,se),re.maximumByComponent(He,fe,fe),ye=Math.min(ye,R),ge[P]=oe,Xe[P]=new Pe(Fe,Ee),Ye[P]=R,U&&(_e[P]=Je),k&&(ze[P]=o.geodeticSurfaceNormal(oe))}}let mr=ir.fromPoints(ge),Ze;W(h)&&(Ze=nr.fromRectangle(h,Q,z,o));let je;v&&(je=new tr(o).computeHorizonCullingPointPossiblyUnderEllipsoid(g,ge,Q));let gr=new er(se,fe,g),Ae=new sr(g,gr,ye,z,le,!1,U,k,M,S),qe=new Float32Array(ne*Ae.stride),We=0;for(let H=0;H<ne;++H)We=Ae.encode(qe,We,ge[H],Xe[H],Ye[H],void 0,_e[H],ze[H]);return{vertices:qe,maximumHeight:z,minimumHeight:Q,encoding:Ae,boundingSphere3D:mr,orientedBoundingBox:Ze,occludeePointInScaledSpace:je}};var lr=G;var cr=xr(ur(),1);function yr(D,ae){if(D.encoding===or.LERC){let A;try{A=cr.default.decode(D.heightmap)}catch(b){throw new Re(b)}if(A.statistics[0].minValue===Number.MAX_VALUE)throw new Re("Invalid tile data");D.heightmap=A.pixels[0],D.width=A.width,D.height=A.height}D.ellipsoid=Ie.clone(D.ellipsoid),D.rectangle=te.clone(D.rectangle);let C=lr.computeVertices(D),ee=C.vertices;return ae.push(ee.buffer),{vertices:ee.buffer,numberOfAttributes:C.encoding.stride,minimumHeight:C.minimumHeight,maximumHeight:C.maximumHeight,gridWidth:D.width,gridHeight:D.height,boundingSphere3D:C.boundingSphere3D,orientedBoundingBox:C.orientedBoundingBox,occludeePointInScaledSpace:C.occludeePointInScaledSpace,encoding:C.encoding,westIndicesSouthToNorth:C.westIndicesSouthToNorth,southIndicesEastToWest:C.southIndicesEastToWest,eastIndicesNorthToSouth:C.eastIndicesNorthToSouth,northIndicesWestToEast:C.northIndicesWestToEast}}var Cr=ar(yr);export{Cr as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 Ht}from"./chunk-3XZ3CL24.js";import{a as At}from"./chunk-GACOCTFW.js";import{a as Ot}from"./chunk-MDI2T7LJ.js";import{Ba as p,K as Et,g as D,ga as bt,j as T,k as rt,l as O,r as z,t as xt,u as St,v as wt,y as yt,z as Mt}from"./chunk-FZYUOFLY.js";var ut=32767,G=new O,Gt=new O,Ut=new O,o=new St,_=new rt;function qt(t,M){let c=t.quantizedVertices,n=c.length/3,u=t.octEncodedNormals,A=t.westIndices.length+t.eastIndices.length+t.southIndices.length+t.northIndices.length,l=t.includeWebMercatorT,E=t.exaggeration,N=t.exaggerationRelativeHeight,H=E!==1,r=Mt.clone(t.rectangle),P=r.west,V=r.south,W=r.east,b=r.north,s=wt.clone(t.ellipsoid),a=t.minimumHeight,x=t.maximumHeight,h=t.relativeToCenter,B=yt.eastNorthUpToFixedFrame(h,s),S=z.inverseTransformation(B,new z),w,f;l&&(w=p.geodeticLatitudeToMercatorAngle(V),f=1/(p.geodeticLatitudeToMercatorAngle(b)-w));let U=c.subarray(0,n),q=c.subarray(n,2*n),R=c.subarray(n*2,3*n),Y=D(u),i=new Array(n),g=new Array(n),X=new Array(n),ht=l?new Array(n):[],dt=H?new Array(n):[],I=Gt;I.x=Number.POSITIVE_INFINITY,I.y=Number.POSITIVE_INFINITY,I.z=Number.POSITIVE_INFINITY;let m=Ut;m.x=Number.NEGATIVE_INFINITY,m.y=Number.NEGATIVE_INFINITY,m.z=Number.NEGATIVE_INFINITY;let Z=Number.POSITIVE_INFINITY,$=Number.NEGATIVE_INFINITY,tt=Number.POSITIVE_INFINITY,et=Number.NEGATIVE_INFINITY;for(let e=0;e<n;++e){let d=U[e],pt=q[e],mt=d/ut,Tt=pt/ut,Nt=T.lerp(a,x,R[e]/ut);o.longitude=T.lerp(P,W,mt),o.latitude=T.lerp(V,b,Tt),o.height=Nt,Z=Math.min(o.longitude,Z),$=Math.max(o.longitude,$),tt=Math.min(o.latitude,tt),et=Math.max(o.latitude,et);let st=s.cartographicToCartesian(o);i[e]=new rt(mt,Tt),g[e]=Nt,X[e]=st,l&&(ht[e]=(p.geodeticLatitudeToMercatorAngle(o.latitude)-w)*f),H&&(dt[e]=s.geodeticSurfaceNormal(st)),z.multiplyByPoint(S,st,G),O.minimumByComponent(G,I,I),O.maximumByComponent(G,m,m)}let nt=K(t.westIndices,function(e,d){return i[e].y-i[d].y}),ot=K(t.eastIndices,function(e,d){return i[d].y-i[e].y}),it=K(t.southIndices,function(e,d){return i[d].x-i[e].x}),ct=K(t.northIndices,function(e,d){return i[e].x-i[d].x}),at;a<0&&(at=new bt(s).computeHorizonCullingPointPossiblyUnderEllipsoid(h,X,a));let y=a;y=Math.min(y,Q(t.westIndices,t.westSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.southIndices,t.southSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.eastIndices,t.eastSkirtHeight,g,i,r,s,S,I,m)),y=Math.min(y,Q(t.northIndices,t.northSkirtHeight,g,i,r,s,S,I,m));let Pt=new xt(I,m,h),C=new At(h,Pt,y,x,B,Y,l,H,E,N),F=C.stride,Vt=n*F+A*F,L=new Float32Array(Vt),lt=0;for(let e=0;e<n;++e){if(Y){let d=e*2;_.x=u[d],_.y=u[d+1]}lt=C.encode(L,lt,X[e],i[e],g[e],_,ht[e],dt[e])}let Ct=Math.max(0,(A-4)*2),Ft=t.indices.length+Ct*3,j=Et.createTypedArray(n+A,Ft);j.set(t.indices,0);let ft=1e-4,gt=($-Z)*ft,It=(et-tt)*ft,Lt=-gt,kt=0,vt=gt,Bt=0,_t=0,Wt=It,Yt=0,zt=-It,k=n*F;return J(L,k,nt,C,g,i,u,s,r,t.westSkirtHeight,w,f,Lt,kt),k+=t.westIndices.length*F,J(L,k,it,C,g,i,u,s,r,t.southSkirtHeight,w,f,Yt,zt),k+=t.southIndices.length*F,J(L,k,ot,C,g,i,u,s,r,t.eastSkirtHeight,w,f,vt,Bt),k+=t.eastIndices.length*F,J(L,k,ct,C,g,i,u,s,r,t.northSkirtHeight,w,f,_t,Wt),Ht.addSkirtIndices(nt,it,ot,ct,n,j,t.indices.length),M.push(L.buffer,j.buffer),{vertices:L.buffer,indices:j.buffer,westIndicesSouthToNorth:nt,southIndicesEastToWest:it,eastIndicesNorthToSouth:ot,northIndicesWestToEast:ct,vertexStride:F,center:h,minimumHeight:a,maximumHeight:x,occludeePointInScaledSpace:at,encoding:C,indexCountWithoutSkirts:t.indices.length}}function Q(t,M,c,n,u,A,l,E,N){let v=Number.POSITIVE_INFINITY,H=u.north,r=u.south,P=u.east,V=u.west;P<V&&(P+=T.TWO_PI);let W=t.length;for(let b=0;b<W;++b){let s=t[b],a=c[s],x=n[s];o.longitude=T.lerp(V,P,x.x),o.latitude=T.lerp(r,H,x.y),o.height=a-M;let h=A.cartographicToCartesian(o,G);z.multiplyByPoint(l,h,h),O.minimumByComponent(h,E,E),O.maximumByComponent(h,N,N),v=Math.min(v,o.height)}return v}function J(t,M,c,n,u,A,l,E,N,v,H,r,P,V){let W=D(l),b=N.north,s=N.south,a=N.east,x=N.west;a<x&&(a+=T.TWO_PI);let h=c.length;for(let B=0;B<h;++B){let S=c[B],w=u[S],f=A[S];o.longitude=T.lerp(x,a,f.x)+P,o.latitude=T.lerp(s,b,f.y)+V,o.height=w-v;let U=E.cartographicToCartesian(o,G);if(W){let Y=S*2;_.x=l[Y],_.y=l[Y+1]}let q;n.hasWebMercatorT&&(q=(p.geodeticLatitudeToMercatorAngle(o.latitude)-H)*r);let R;n.hasGeodeticSurfaceNormals&&(R=E.geodeticSurfaceNormal(U)),M=n.encode(t,M,U,f,o.height,_,q,R)}}function K(t,M){let c;return typeof t.slice=="function"&&(c=t.slice(),typeof c.sort!="function"&&(c=void 0)),D(c)||(c=Array.prototype.slice.call(t)),c.sort(M),c}var Jt=Ot(qt);export{Jt as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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{g as n,v as o,za as e}from"./chunk-FZYUOFLY.js";function p(i,d){return n(d)&&(i=e.unpack(i,d)),i._ellipsoid=o.clone(i._ellipsoid),e.createGeometry(i)}var c=p;export{c as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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{Aa as e,g as t,v as d}from"./chunk-FZYUOFLY.js";function l(i,n){return t(n)&&(i=e.unpack(i,n)),i._ellipsoid=d.clone(i._ellipsoid),e.createGeometry(i)}var p=l;export{p as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 D}from"./chunk-6LO6MWK3.js";import{a as m}from"./chunk-MDI2T7LJ.js";import{K as I,d as P,g as d,m as w,q as A}from"./chunk-FZYUOFLY.js";var b=P(D(),1),r;function F(t,n){let o=t.num_points(),a=t.num_faces(),i=new r.DracoInt32Array,e=a*3,s=I.createTypedArray(o,e),u=0;for(let c=0;c<a;++c)n.GetFaceFromMesh(t,c,i),s[u+0]=i.GetValue(0),s[u+1]=i.GetValue(1),s[u+2]=i.GetValue(2),u+=3;return r.destroy(i),{typedArray:s,numberOfIndices:e}}function U(t,n,o,a,i){let e,s;a.quantizationBits<=8?(s=new r.DracoUInt8Array,e=new Uint8Array(i),n.GetAttributeUInt8ForAllPoints(t,o,s)):a.quantizationBits<=16?(s=new r.DracoUInt16Array,e=new Uint16Array(i),n.GetAttributeUInt16ForAllPoints(t,o,s)):(s=new r.DracoFloat32Array,e=new Float32Array(i),n.GetAttributeFloatForAllPoints(t,o,s));for(let u=0;u<i;++u)e[u]=s.GetValue(u);return r.destroy(s),e}function k(t,n,o,a){let i,e;switch(o.data_type()){case 1:case 11:e=new r.DracoInt8Array,i=new Int8Array(a),n.GetAttributeInt8ForAllPoints(t,o,e);break;case 2:e=new r.DracoUInt8Array,i=new Uint8Array(a),n.GetAttributeUInt8ForAllPoints(t,o,e);break;case 3:e=new r.DracoInt16Array,i=new Int16Array(a),n.GetAttributeInt16ForAllPoints(t,o,e);break;case 4:e=new r.DracoUInt16Array,i=new Uint16Array(a),n.GetAttributeUInt16ForAllPoints(t,o,e);break;case 5:case 7:e=new r.DracoInt32Array,i=new Int32Array(a),n.GetAttributeInt32ForAllPoints(t,o,e);break;case 6:case 8:e=new r.DracoUInt32Array,i=new Uint32Array(a),n.GetAttributeUInt32ForAllPoints(t,o,e);break;case 9:case 10:e=new r.DracoFloat32Array,i=new Float32Array(a),n.GetAttributeFloatForAllPoints(t,o,e);break}for(let s=0;s<a;++s)i[s]=e.GetValue(s);return r.destroy(e),i}function p(t,n,o){let a=t.num_points(),i=o.num_components(),e,s=new r.AttributeQuantizationTransform;if(s.InitFromAttribute(o)){let f=new Array(i);for(let y=0;y<i;++y)f[y]=s.min_value(y);e={quantizationBits:s.quantization_bits(),minValues:f,range:s.range(),octEncoded:!1}}r.destroy(s),s=new r.AttributeOctahedronTransform,s.InitFromAttribute(o)&&(e={quantizationBits:s.quantization_bits(),octEncoded:!0}),r.destroy(s);let u=a*i,c;d(e)?c=U(t,n,o,e,u):c=k(t,n,o,u);let l=w.fromTypedArray(c);return{array:c,data:{componentsPerAttribute:i,componentDatatype:l,byteOffset:o.byte_offset(),byteStride:w.getSizeInBytes(l)*i,normalized:o.normalized(),quantization:e}}}function O(t){let n=new r.Decoder;t.dequantizeInShader&&(n.SkipAttributeTransform(r.POSITION),n.SkipAttributeTransform(r.NORMAL));let o=new r.DecoderBuffer;if(o.Init(t.buffer,t.buffer.length),n.GetEncodedGeometryType(o)!==r.POINT_CLOUD)throw new A("Draco geometry type must be POINT_CLOUD.");let i=new r.PointCloud,e=n.DecodeBufferToPointCloud(o,i);if(!e.ok()||i.ptr===0)throw new A(`Error decoding draco point cloud: ${e.error_msg()}`);r.destroy(o);let s={},u=t.properties;for(let c in u)if(u.hasOwnProperty(c)){let l;if(c==="POSITION"||c==="NORMAL"){let f=n.GetAttributeId(i,r[c]);l=n.GetAttribute(i,f)}else{let f=u[c];l=n.GetAttributeByUniqueId(i,f)}s[c]=p(i,n,l)}return r.destroy(i),r.destroy(n),s}function g(t){let n=new r.Decoder;if(t.dequantizeInShader)for(let f=0;f<t.attributesToSkipTransform.length;++f)n.SkipAttributeTransform(r[t.attributesToSkipTransform[f]]);let o=t.bufferView,a=new r.DecoderBuffer;if(a.Init(t.array,o.byteLength),n.GetEncodedGeometryType(a)!==r.TRIANGULAR_MESH)throw new A("Unsupported draco mesh geometry type.");let e=new r.Mesh,s=n.DecodeBufferToMesh(a,e);if(!s.ok()||e.ptr===0)throw new A(`Error decoding draco mesh geometry: ${s.error_msg()}`);r.destroy(a);let u={},c=t.compressedAttributes;for(let f in c)if(c.hasOwnProperty(f)){let y=c[f],T=n.GetAttributeByUniqueId(e,y);u[f]=p(e,n,T)}let l={indexArray:F(e,n),attributeData:u};return r.destroy(e),r.destroy(n),l}async function z(t,n){return d(t.bufferView)?g(t):O(t)}async function G(t,n){let o=t.webAssemblyConfig;return d(o)&&d(o.wasmBinaryFile)?r=await(0,b.default)(o):r=await(0,b.default)(),!0}async function S(t,n){let o=t.webAssemblyConfig;return d(o)?G(t,n):z(t,n)}var C=m(S);export{C as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 Ct}from"./chunk-MDI2T7LJ.js";import{g as Rt,i as ht,q as O}from"./chunk-FZYUOFLY.js";var Jr=1953029805,Kr=2917034100;function ct(t,a){if(ct.passThroughDataForTesting)return a;ht.typeOf.object("key",t),ht.typeOf.object("data",a);let r=t.byteLength;if(r===0||r%4!==0)throw new O("The length of key must be greater than 0 and a multiple of 4.");let e=new DataView(a),i=e.getUint32(0,!0);if(i===Jr||i===Kr)return a;let s=new DataView(t),d=0,l=a.byteLength,_=l-l%8,n=r,o,p=8;for(;d<_;)for(p=(p+8)%24,o=p;d<_&&o<n;)e.setUint32(d,e.getUint32(d,!0)^s.getUint32(o,!0),!0),e.setUint32(d+4,e.getUint32(d+4,!0)^s.getUint32(o+4,!0),!0),d+=8,o+=24;if(d<l)for(o>=n&&(p=(p+8)%24,o=p);d<l;)e.setUint8(d,e.getUint8(d)^s.getUint8(o)),d++,o++}ct.passThroughDataForTesting=!1;var Lt=ct;function Xr(t,a){return(t&a)!==0}var F=Xr;var Zr=[1,2,4,8],Nt=15,$r=16,ta=64,ra=128;function I(t,a,r,e,i,s){this._bits=t,this.cnodeVersion=a,this.imageryVersion=r,this.terrainVersion=e,this.imageryProvider=i,this.terrainProvider=s,this.ancestorHasTerrain=!1,this.terrainState=void 0}I.clone=function(t,a){return Rt(a)?(a._bits=t._bits,a.cnodeVersion=t.cnodeVersion,a.imageryVersion=t.imageryVersion,a.terrainVersion=t.terrainVersion,a.imageryProvider=t.imageryProvider,a.terrainProvider=t.terrainProvider):a=new I(t._bits,t.cnodeVersion,t.imageryVersion,t.terrainVersion,t.imageryProvider,t.terrainProvider),a.ancestorHasTerrain=t.ancestorHasTerrain,a.terrainState=t.terrainState,a};I.prototype.setParent=function(t){this.ancestorHasTerrain=t.ancestorHasTerrain||this.hasTerrain()};I.prototype.hasSubtree=function(){return F(this._bits,$r)};I.prototype.hasImagery=function(){return F(this._bits,ta)};I.prototype.hasTerrain=function(){return F(this._bits,ra)};I.prototype.hasChildren=function(){return F(this._bits,Nt)};I.prototype.hasChild=function(t){return F(this._bits,Zr[t])};I.prototype.getChildBitmask=function(){return this._bits&Nt};var Gt=I;var Ht=4,Ft=0,Yt=1;function q(t){let a=t.length;for(;--a>=0;)t[a]=0}var aa=29,Bt=256,Ot=30,Ur=19,Tr=573,Er=15,ft=16,Sr=256,Br=16,Or=17,Pr=18,ia=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ea=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);var Ir=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),na=512,Dr=Array(288*2);q(Dr);var Vr=Array(Ot*2);q(Vr);var zt=Array(na);q(zt);var Pt=Array(256);q(Pt);var Mr=Array(aa);q(Mr);var jr=Array(Ot);q(jr);var Rr=t=>t<256?zt[t]:zt[256+(t>>>7)],st=(t,a)=>{t.pending_buf[t.pending++]=a&255,t.pending_buf[t.pending++]=a>>>8&255},B=(t,a,r)=>{t.bi_valid>ft-r?(t.bi_buf|=a<<t.bi_valid&65535,st(t,t.bi_buf),t.bi_buf=a>>ft-t.bi_valid,t.bi_valid+=r-ft):(t.bi_buf|=a<<t.bi_valid&65535,t.bi_valid+=r)},j=(t,a,r)=>{B(t,r[a*2],r[a*2+1])},sa=(t,a)=>{let r=0;do r|=t&1,t>>>=1,r<<=1;while(--a>0);return r>>>1},oa=(t,a)=>{let r=a.dyn_tree,e=a.max_code,i=a.stat_desc.static_tree,s=a.stat_desc.has_stree,d=a.stat_desc.extra_bits,l=a.stat_desc.extra_base,_=a.stat_desc.max_length,n,o,p,c,h,z,A=0;for(c=0;c<=Er;c++)t.bl_count[c]=0;for(r[t.heap[t.heap_max]*2+1]=0,n=t.heap_max+1;n<Tr;n++)o=t.heap[n],c=r[r[o*2+1]*2+1]+1,c>_&&(c=_,A++),r[o*2+1]=c,!(o>e)&&(t.bl_count[c]++,h=0,o>=l&&(h=d[o-l]),z=r[o*2],t.opt_len+=z*(c+h),s&&(t.static_len+=z*(i[o*2+1]+h)));if(A!==0){do{for(c=_-1;t.bl_count[c]===0;)c--;t.bl_count[c]--,t.bl_count[c+1]+=2,t.bl_count[_]--,A-=2}while(A>0);for(c=_;c!==0;c--)for(o=t.bl_count[c];o!==0;)p=t.heap[--n],!(p>e)&&(r[p*2+1]!==c&&(t.opt_len+=(c-r[p*2+1])*r[p*2],r[p*2+1]=c),o--)}},la=(t,a,r)=>{let e=Array(16),i=0,s,d;for(s=1;s<=Er;s++)i=i+r[s-1]<<1,e[s]=i;for(d=0;d<=a;d++){let l=t[d*2+1];l!==0&&(t[d*2]=sa(e[l]++,l))}},da=t=>{let a;for(a=0;a<286;a++)t.dyn_ltree[a*2]=0;for(a=0;a<Ot;a++)t.dyn_dtree[a*2]=0;for(a=0;a<Ur;a++)t.bl_tree[a*2]=0;t.dyn_ltree[Sr*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Cr=t=>{t.bi_valid>8?st(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Qt=(t,a,r,e)=>{let i=a*2,s=r*2;return t[i]<t[s]||t[i]===t[s]&&e[a]<=e[r]},_t=(t,a,r)=>{let e=t.heap[r],i=r<<1;for(;i<=t.heap_len&&(i<t.heap_len&&Qt(a,t.heap[i+1],t.heap[i],t.depth)&&i++,!Qt(a,e,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=e},qt=(t,a,r)=>{let e,i,s=0,d,l;if(t.sym_next!==0)do e=t.pending_buf[t.sym_buf+s++]&255,e+=(t.pending_buf[t.sym_buf+s++]&255)<<8,i=t.pending_buf[t.sym_buf+s++],e===0?j(t,i,a):(d=Pt[i],j(t,d+Bt+1,a),l=ia[d],l!==0&&(i-=Mr[d],B(t,i,l)),e--,d=Rr(e),j(t,d,r),l=ea[d],l!==0&&(e-=jr[d],B(t,e,l)));while(s<t.sym_next);j(t,Sr,a)},At=(t,a)=>{let r=a.dyn_tree,e=a.stat_desc.static_tree,i=a.stat_desc.has_stree,s=a.stat_desc.elems,d,l,_=-1,n;for(t.heap_len=0,t.heap_max=Tr,d=0;d<s;d++)r[d*2]===0?r[d*2+1]=0:(t.heap[++t.heap_len]=_=d,t.depth[d]=0);for(;t.heap_len<2;)n=t.heap[++t.heap_len]=_<2?++_:0,r[n*2]=1,t.depth[n]=0,t.opt_len--,i&&(t.static_len-=e[n*2+1]);for(a.max_code=_,d=t.heap_len>>1;d>=1;d--)_t(t,r,d);n=s;do d=t.heap[1],t.heap[1]=t.heap[t.heap_len--],_t(t,r,1),l=t.heap[1],t.heap[--t.heap_max]=d,t.heap[--t.heap_max]=l,r[n*2]=r[d*2]+r[l*2],t.depth[n]=(t.depth[d]>=t.depth[l]?t.depth[d]:t.depth[l])+1,r[d*2+1]=r[l*2+1]=n,t.heap[1]=n++,_t(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],oa(t,a),la(r,_,t.bl_count)},Wt=(t,a,r)=>{let e,i=-1,s,d=a[1],l=0,_=7,n=4;for(d===0&&(_=138,n=3),a[(r+1)*2+1]=65535,e=0;e<=r;e++)s=d,d=a[(e+1)*2+1],!(++l<_&&s===d)&&(l<n?t.bl_tree[s*2]+=l:s===0?l<=10?t.bl_tree[Or*2]++:t.bl_tree[Pr*2]++:(s!==i&&t.bl_tree[s*2]++,t.bl_tree[Br*2]++),l=0,i=s,d===0?(_=138,n=3):s===d?(_=6,n=3):(_=7,n=4))},Jt=(t,a,r)=>{let e,i=-1,s,d=a[1],l=0,_=7,n=4;for(d===0&&(_=138,n=3),e=0;e<=r;e++)if(s=d,d=a[(e+1)*2+1],!(++l<_&&s===d)){if(l<n)do j(t,s,t.bl_tree);while(--l!==0);else s===0?l<=10?(j(t,Or,t.bl_tree),B(t,l-3,3)):(j(t,Pr,t.bl_tree),B(t,l-11,7)):(s!==i&&(j(t,s,t.bl_tree),l--),j(t,Br,t.bl_tree),B(t,l-3,2));l=0,i=s,d===0?(_=138,n=3):s===d?(_=6,n=3):(_=7,n=4)}},ha=t=>{let a;for(Wt(t,t.dyn_ltree,t.l_desc.max_code),Wt(t,t.dyn_dtree,t.d_desc.max_code),At(t,t.bl_desc),a=Ur-1;a>=3&&t.bl_tree[Ir[a]*2+1]===0;a--);return t.opt_len+=3*(a+1)+5+5+4,a},ca=(t,a,r,e)=>{let i;for(B(t,a-257,5),B(t,r-1,5),B(t,e-4,4),i=0;i<e;i++)B(t,t.bl_tree[Ir[i]*2+1],3);Jt(t,t.dyn_ltree,a-1),Jt(t,t.dyn_dtree,r-1)},fa=t=>{let a=4093624447,r;for(r=0;r<=31;r++,a>>>=1)if(a&1&&t.dyn_ltree[r*2]!==0)return Ft;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return Yt;for(r=32;r<Bt;r++)if(t.dyn_ltree[r*2]!==0)return Yt;return Ft},Ut=(t,a,r,e)=>{B(t,0+ +!!e,3),Cr(t),st(t,r),st(t,~r),r&&t.pending_buf.set(t.window.subarray(a,a+r),t.pending),t.pending+=r},_a=(t,a,r,e)=>{let i,s,d=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=fa(t)),At(t,t.l_desc),At(t,t.d_desc),d=ha(t),i=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,(s<=i||t.strategy===Ht)&&(i=s)):i=s=r+5,r+4<=i&&a!==-1?Ut(t,a,r,e):t.strategy===Ht||s===i?(B(t,2+ +!!e,3),qt(t,Dr,Vr)):(B(t,4+ +!!e,3),ca(t,t.l_desc.max_code+1,t.d_desc.max_code+1,d+1),qt(t,t.dyn_ltree,t.dyn_dtree)),da(t),e&&Cr(t)},X=(t,a,r)=>(t.pending_buf[t.sym_buf+t.sym_next++]=a,t.pending_buf[t.sym_buf+t.sym_next++]=a>>8,t.pending_buf[t.sym_buf+t.sym_next++]=r,a===0?t.dyn_ltree[r*2]++:(t.matches++,a--,t.dyn_ltree[(Pt[r]+Bt+1)*2]++,t.dyn_dtree[Rr(a)*2]++),t.sym_next===t.sym_end),ot=(t,a,r,e)=>{let i=t&65535|0,s=t>>>16&65535|0,d=0;for(;r!==0;){d=r>2e3?2e3:r,r-=d;do i=i+a[e++]|0,s=s+i|0;while(--d);i%=65521,s%=65521}return i|s<<16|0},ua=(()=>{let t=new Uint32Array(2048),a;for(let r=0;r<256;r++){a=r;for(let e=0;e<8;e++)a=a&1?3988292384^a>>>1:a>>>1;t[r]=a}for(let r=0;r<256;r++){a=t[r];for(let e=256;e<256*8;e+=256)a=t[a&255]^a>>>8,t[e+r]=a}return t})(),P=(t,a,r,e)=>{let i=ua,s=e+r,d=e;t^=-1;for(let l=s-7;d<l;d+=8)t^=a[d]|a[d+1]<<8|a[d+2]<<16|a[d+3]<<24,t=i[1792+(t&255)]^i[1536+(t>>>8&255)]^i[1280+(t>>>16&255)]^i[1024+(t>>>24)]^i[768+a[d+4]]^i[512+a[d+5]]^i[256+a[d+6]]^i[a[d+7]];for(;d<s;d++)t=t>>>8^i[(t^a[d])&255];return t^-1},ut={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},E=3,mt=258,V=262,C=1,It=2,Dt=3,Vt=4,ma=t=>{let a,r,e,i=t.w_size;a=t.hash_size,e=a;do r=t.head[--e],t.head[e]=r>=i?r-i:0;while(--a);a=i,e=a;do r=t.prev[--e],t.prev[e]=r>=i?r-i:0;while(--a)},Mt=(t,a,r)=>(a<<t.hash_shift^r)&t.hash_mask,Q=(t,a)=>{let r;if(t.legacy_hash)r=t.ins_h=Mt(t,t.ins_h,t.window[a+E-1]);else{let i=t.window,s=i[a]|i[a+1]<<8|i[a+2]<<16|i[a+3]<<24;r=t.ins_h=Math.imul(s,66521)+66521>>>16&t.hash_mask}let e=t.prev[a&t.w_mask]=t.head[r];return t.head[r]=a,e},Tt=t=>{let a=t.state,r=a.pending;r>t.avail_out&&(r=t.avail_out),r!==0&&(t.output.set(a.pending_buf.subarray(a.pending_out,a.pending_out+r),t.next_out),t.next_out+=r,a.pending_out+=r,t.total_out+=r,t.avail_out-=r,a.pending-=r,a.pending===0&&(a.pending_out=0))},G=(t,a)=>{_a(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,a),t.block_start=t.strstart,Tt(t.strm)},Et=(t,a,r,e)=>{let i=t.avail_in;return i>e&&(i=e),i===0?0:(t.avail_in-=i,a.set(t.input.subarray(t.next_in,t.next_in+i),r),t.state.wrap===1?t.adler=ot(t.adler,a,i,r):t.state.wrap===2&&(t.adler=P(t.adler,a,i,r)),t.next_in+=i,t.total_in+=i,i)},Lr=(t,a)=>{let r=t.max_chain_length,e=t.strstart,i,s,d=t.prev_length,l=t.nice_match,_=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,n=t.window,o=t.w_mask,p=t.prev,c=t.strstart+mt,h=n[e+d-1],z=n[e+d];t.prev_length>=t.good_match&&(r>>=2),l>t.lookahead&&(l=t.lookahead);do if(i=a,!(n[i+d]!==z||n[i+d-1]!==h||n[i]!==n[e]||n[++i]!==n[e+1])){e+=2,i++;do;while(n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&n[++e]===n[++i]&&e<c);if(s=mt-(c-e),e=c-mt,s>d){if(t.match_start=a,d=s,s>=l)break;h=n[e+d-1],z=n[e+d]}}while((a=p[a&o])>_&&--r!==0);return d<=t.lookahead?d:t.lookahead},Nr=t=>{let a=t.w_size,r,e,i;do{if(e=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-V)&&(t.window.set(t.window.subarray(a,a+a-e),0),t.match_start-=a,t.strstart-=a,t.block_start-=a,t.insert>t.strstart&&(t.insert=t.strstart),ma(t),e+=a),t.strm.avail_in===0)break;if(r=Et(t.strm,t.window,t.strstart+t.lookahead,e),t.lookahead+=r,!t.legacy_hash){if(t.lookahead+t.insert>E)for(i=t.strstart-t.insert;t.insert&&(Q(t,i),i++,t.insert--,!(t.lookahead+t.insert<=E)););}else if(t.lookahead+t.insert>=E)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=Mt(t,t.ins_h,t.window[i+1]);t.insert&&(Q(t,i),i++,t.insert--,!(t.lookahead+t.insert<E)););}while(t.lookahead<V&&t.strm.avail_in!==0)},wa=(t,a)=>{let r=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,e,i,s,d=0,l=t.strm.avail_in;do{if(e=65535,s=t.bi_valid+42>>3,t.strm.avail_out<s||(s=t.strm.avail_out-s,i=t.strstart-t.block_start,e>i+t.strm.avail_in&&(e=i+t.strm.avail_in),e>s&&(e=s),e<r&&(e===0&&a!==4||a===0||e!==i+t.strm.avail_in)))break;d=+(a===4&&e===i+t.strm.avail_in),Ut(t,0,0,d),t.pending_buf[t.pending-4]=e,t.pending_buf[t.pending-3]=e>>8,t.pending_buf[t.pending-2]=~e,t.pending_buf[t.pending-1]=~e>>8,Tt(t.strm),i&&(i>e&&(i=e),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,e-=i),e&&(Et(t.strm,t.strm.output,t.strm.next_out,e),t.strm.next_out+=e,t.strm.avail_out-=e,t.strm.total_out+=e)}while(d===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),d?Vt:a!==0&&a!==4&&t.strm.avail_in===0&&t.strstart===t.block_start?It:(s=t.window_size-t.strstart,t.strm.avail_in>s&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(Et(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water<t.strstart&&(t.high_water=t.strstart),s=t.bi_valid+42>>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,r=s>t.w_size?t.w_size:s,i=t.strstart-t.block_start,(i>=r||(i||a===4)&&a!==0&&t.strm.avail_in===0&&i<=s)&&(e=i>s?s:i,d=+(a===4&&t.strm.avail_in===0&&e===i),Ut(t,t.block_start,e,d),t.block_start+=e,Tt(t.strm)),d?Dt:C)},wt=(t,a)=>{let r,e;for(;;){if(t.lookahead<V){if(Nr(t),t.lookahead<V&&a===0)return C;if(t.lookahead===0)break}if(r=0,t.lookahead>=E&&(r=Q(t,t.strstart)),r!==0&&t.strstart-r<=t.w_size-V&&(t.match_length=Lr(t,r)),t.match_length>=E)if(e=X(t,t.strstart-t.match_start,t.match_length-E),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=E){t.match_length--;do t.strstart++,r=Q(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=Mt(t,t.ins_h,t.window[t.strstart+1]));else e=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(e&&(G(t,!1),t.strm.avail_out===0))return C}return t.insert=t.strstart<E-1?t.strstart:E-1,a===4?(G(t,!0),t.strm.avail_out===0?Dt:Vt):t.sym_next&&(G(t,!1),t.strm.avail_out===0)?C:It},Y=(t,a)=>{let r,e,i;for(;;){if(t.lookahead<V){if(Nr(t),t.lookahead<V&&a===0)return C;if(t.lookahead===0)break}if(r=0,t.lookahead>=E&&(r=Q(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=E-1,r!==0&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-V&&(t.match_length=Lr(t,r),t.match_length<=5&&(t.strategy===1||t.match_length===E&&t.strstart-t.match_start>4096)&&(t.match_length=E-1)),t.prev_length>=E&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-E,e=X(t,t.strstart-1-t.prev_match,t.prev_length-E),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(r=Q(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=E-1,t.strstart++,e&&(G(t,!1),t.strm.avail_out===0))return C}else if(t.match_available){if(e=X(t,0,t.window[t.strstart-1]),e&&G(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return C}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(e=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<E-1?t.strstart:E-1,a===4?(G(t,!0),t.strm.avail_out===0?Dt:Vt):t.sym_next&&(G(t,!1),t.strm.avail_out===0)?C:It},D=class{constructor(t,a,r,e,i){this.good_length=t,this.max_lazy=a,this.nice_length=r,this.max_chain=e,this.func=i}};new D(0,0,0,0,wa),new D(4,4,8,4,wt),new D(4,5,16,8,wt),new D(4,6,32,32,wt),new D(4,4,16,16,Y),new D(8,16,32,32,Y),new D(8,16,128,128,Y),new D(8,32,128,256,Y),new D(32,128,258,1024,Y),new D(32,258,258,4096,Y);var at=16209,ba=16191;function ga(t,a){let r,e,i,s,d,l,_,n,o,p,c,h,z,A,y,b,w,f,m,U,v,g,x,u,k=t.state;r=t.next_in,x=t.input,e=r+(t.avail_in-5),i=t.next_out,u=t.output,s=i-(a-t.avail_out),d=i+(t.avail_out-257),l=k.dmax,_=k.wsize,n=k.whave,o=k.wnext,p=k.window,c=k.hold,h=k.bits,z=k.lencode,A=k.distcode,y=(1<<k.lenbits)-1,b=(1<<k.distbits)-1;t:do{h<15&&(c+=x[r++]<<h,h+=8,c+=x[r++]<<h,h+=8),w=z[c&y];r:for(;;){if(f=w>>>24,c>>>=f,h-=f,f=w>>>16&255,f===0)u[i++]=w&65535;else if(f&16){m=w&65535,f&=15,f&&(h<f&&(c+=x[r++]<<h,h+=8),m+=c&(1<<f)-1,c>>>=f,h-=f),h<15&&(c+=x[r++]<<h,h+=8,c+=x[r++]<<h,h+=8),w=A[c&b];a:for(;;){if(f=w>>>24,c>>>=f,h-=f,f=w>>>16&255,f&16){if(U=w&65535,f&=15,h<f&&(c+=x[r++]<<h,h+=8,h<f&&(c+=x[r++]<<h,h+=8)),U+=c&(1<<f)-1,U>l){t.msg="invalid distance too far back",k.mode=at;break t}if(c>>>=f,h-=f,f=i-s,U>f){if(f=U-f,f>n&&k.sane){t.msg="invalid distance too far back",k.mode=at;break t}if(v=0,g=p,o===0){if(v+=_-f,f<m){m-=f;do u[i++]=p[v++];while(--f);v=i-U,g=u}}else if(o<f){if(v+=_+o-f,f-=o,f<m){m-=f;do u[i++]=p[v++];while(--f);if(v=0,o<m){f=o,m-=f;do u[i++]=p[v++];while(--f);v=i-U,g=u}}}else if(v+=o-f,f<m){m-=f;do u[i++]=p[v++];while(--f);v=i-U,g=u}for(;m>2;)u[i++]=g[v++],u[i++]=g[v++],u[i++]=g[v++],m-=3;m&&(u[i++]=g[v++],m>1&&(u[i++]=g[v++]))}else{v=i-U;do u[i++]=u[v++],u[i++]=u[v++],u[i++]=u[v++],m-=3;while(m>2);m&&(u[i++]=u[v++],m>1&&(u[i++]=u[v++]))}}else if(f&64){t.msg="invalid distance code",k.mode=at;break t}else{w=A[(w&65535)+(c&(1<<f)-1)];continue a}break}}else if(f&64)if(f&32){k.mode=ba;break t}else{t.msg="invalid literal/length code",k.mode=at;break t}else{w=z[(w&65535)+(c&(1<<f)-1)];continue r}break}}while(r<e&&i<d);m=h>>3,r-=m,h-=m<<3,c&=(1<<h)-1,t.next_in=r,t.next_out=i,t.avail_in=r<e?5+(e-r):5-(r-e),t.avail_out=i<d?257+(d-i):257-(i-d),k.hold=c,k.bits=h}var it=15,Kt=852,Xt=592,Zt=0,bt=1,$t=2,pa=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ka=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),va=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ya=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Z=(t,a,r,e,i,s,d,l)=>{let _=l.bits,n=0,o=0,p=0,c=0,h=0,z=0,A=0,y=0,b=0,w=0,f,m,U,v,g,x=null,u,k=new Uint16Array(16),S=new Uint16Array(16),N=null,jt,tt,rt;for(n=0;n<=it;n++)k[n]=0;for(o=0;o<e;o++)k[a[r+o]]++;for(h=_,c=it;c>=1&&k[c]===0;c--);if(h>c&&(h=c),c===0)return i[s++]=20971520,i[s++]=20971520,l.bits=1,0;for(p=1;p<c&&k[p]===0;p++);for(h<p&&(h=p),y=1,n=1;n<=it;n++)if(y<<=1,y-=k[n],y<0)return-1;if(y>0&&(t===Zt||c!==1))return-1;for(S[1]=0,n=1;n<it;n++)S[n+1]=S[n]+k[n];for(o=0;o<e;o++)a[r+o]!==0&&(d[S[a[r+o]]++]=o);if(t===Zt?(x=N=d,u=20):t===bt?(x=pa,N=ka,u=257):(x=va,N=ya,u=0),w=0,o=0,n=p,g=s,z=h,A=0,U=-1,b=1<<h,v=b-1,t===bt&&b>Kt||t===$t&&b>Xt)return 1;for(;;){jt=n-A,d[o]+1<u?(tt=0,rt=d[o]):d[o]>=u?(tt=N[d[o]-u],rt=x[d[o]-u]):(tt=96,rt=0),f=1<<n-A,m=1<<z,p=m;do m-=f,i[g+(w>>A)+m]=jt<<24|tt<<16|rt|0;while(m!==0);for(f=1<<n-1;w&f;)f>>=1;if(f===0?w=0:(w&=f-1,w+=f),o++,--k[n]===0){if(n===c)break;n=a[r+d[o]]}if(n>h&&(w&v)!==U){for(A===0&&(A=h),g+=p,z=n-A,y=1<<z;z+A<c&&(y-=k[z+A],!(y<=0));)z++,y<<=1;if(b+=1<<z,t===bt&&b>Kt||t===$t&&b>Xt)return 1;U=w&v,i[U]=h<<24|z<<16|g-s|0}}return w!==0&&(i[g+w]=n-A<<24|4194304),l.bits=h,0},xa=0,Gr=1,Hr=2,dt=16180,tr=16181,rr=16182,ar=16183,ir=16184,er=16185,nr=16186,sr=16187,or=16188,lr=16189,lt=16190,M=16191,gt=16192,dr=16193,pt=16194,hr=16195,cr=16196,fr=16197,_r=16198,et=16199,nt=16200,ur=16201,mr=16202,wr=16203,br=16204,gr=16205,kt=16206,pr=16207,kr=16208,T=16209,St=16210,Fr=16211,za=852,Aa=592,vr=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24),Ua=class{constructor(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}},W=t=>{if(!t)return 1;let a=t.state;return+(!a||a.strm!==t||a.mode<dt||a.mode>Fr)},Ta=t=>{if(W(t))return-2;let a=t.state;return t.total_in=t.total_out=a.total=0,t.msg="",a.wrap&&(t.adler=a.wrap&1),a.mode=dt,a.last=0,a.havedict=0,a.flags=-1,a.dmax=32768,a.head=null,a.hold=0,a.bits=0,a.lencode=a.lendyn=new Int32Array(za),a.distcode=a.distdyn=new Int32Array(Aa),a.sane=1,a.back=-1,0},Yr=t=>{if(W(t))return-2;let a=t.state;return a.wsize=0,a.whave=0,a.wnext=0,Ta(t)},Ea=(t,a)=>{let r;if(W(t))return-2;let e=t.state;return a<0?(r=0,a=-a):(r=(a>>4)+5,a<48&&(a&=15)),a&&(a<8||a>15)?-2:(e.window!==null&&e.wbits!==a&&(e.window=null),e.wrap=r,e.wbits=a,Yr(t))},Sa=(t,a)=>{if(!t)return-2;let r=new Ua;t.state=r,r.strm=t,r.window=null,r.mode=dt;let e=Ea(t,a);return e!==0&&(t.state=null),e},yr=!0,vt,yt,Ba=t=>{if(yr){vt=new Int32Array(512),yt=new Int32Array(32);let a=0;for(;a<144;)t.lens[a++]=8;for(;a<256;)t.lens[a++]=9;for(;a<280;)t.lens[a++]=7;for(;a<288;)t.lens[a++]=8;for(Z(Gr,t.lens,0,288,vt,0,t.work,{bits:9}),a=0;a<32;)t.lens[a++]=5;Z(Hr,t.lens,0,32,yt,0,t.work,{bits:5}),yr=!1}t.lencode=vt,t.lenbits=9,t.distcode=yt,t.distbits=5},Qr=(t,a,r,e)=>{let i,s=t.state;return s.window===null&&(s.window=new Uint8Array(1<<s.wbits)),s.wsize===0&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0),e>=s.wsize?(s.window.set(a.subarray(r-s.wsize,r),0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>e&&(i=e),s.window.set(a.subarray(r-e,r-e+i),s.wnext),e-=i,e?(s.window.set(a.subarray(r-e,r),0),s.wnext=e,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0},xt=(t,a)=>{let r,e,i,s,d,l,_,n,o,p,c,h,z,A,y=0,b,w,f,m,U,v,g,x,u=new Uint8Array(4),k,S,N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(W(t)||!t.output||!t.input&&t.avail_in!==0)return-2;r=t.state,r.mode===M&&(r.mode=gt),d=t.next_out,i=t.output,_=t.avail_out,s=t.next_in,e=t.input,l=t.avail_in,n=r.hold,o=r.bits,p=l,c=_,x=0;t:for(;;)switch(r.mode){case dt:if(r.wrap===0){r.mode=gt;break}for(;o<16;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(r.wrap&2&&n===35615){r.wbits===0&&(r.wbits=15),r.check=0,u[0]=n&255,u[1]=n>>>8&255,r.check=P(r.check,u,2,0),n=0,o=0,r.mode=tr;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((n&255)<<8)+(n>>8))%31){t.msg="incorrect header check",r.mode=T;break}if((n&15)!=8){t.msg="unknown compression method",r.mode=T;break}if(n>>>=4,o-=4,g=(n&15)+8,r.wbits===0&&(r.wbits=g),g>15||g>r.wbits){t.msg="invalid window size",r.mode=T;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=n&512?lr:M,n=0,o=0;break;case tr:for(;o<16;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(r.flags=n,(r.flags&255)!=8){t.msg="unknown compression method",r.mode=T;break}if(r.flags&57344){t.msg="unknown header flags set",r.mode=T;break}r.head&&(r.head.text=n>>8&1),r.flags&512&&r.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,r.check=P(r.check,u,2,0)),n=0,o=0,r.mode=rr;case rr:for(;o<32;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.head&&(r.head.time=n>>>0),r.flags&512&&r.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,u[2]=n>>>16&255,u[3]=n>>>24&255,r.check=P(r.check,u,4,0)),n=0,o=0,r.mode=ar;case ar:for(;o<16;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.head&&(r.head.xflags=n&255,r.head.os=n>>8),r.flags&512&&r.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,r.check=P(r.check,u,2,0)),n=0,o=0,r.mode=ir;case ir:if(r.flags&1024){for(;o<16;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.length=n,r.head&&(r.head.extra_len=n),r.flags&512&&r.wrap&4&&(u[0]=n&255,u[1]=n>>>8&255,r.check=P(r.check,u,2,0)),n=0,o=0}else r.head&&(r.head.extra=null);r.mode=er;case er:if(r.flags&1024&&(h=r.length,h>l&&(h=l),h&&(r.head&&(g=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(e.subarray(s,s+h),g)),r.flags&512&&r.wrap&4&&(r.check=P(r.check,e,h,s)),l-=h,s+=h,r.length-=h),r.length))break t;r.length=0,r.mode=nr;case nr:if(r.flags&2048){if(l===0)break t;h=0;do g=e[s+h++],r.head&&g&&r.length<65536&&(r.head.name+=String.fromCharCode(g),r.length++);while(g&&h<l);if(r.flags&512&&r.wrap&4&&(r.check=P(r.check,e,h,s)),l-=h,s+=h,g)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=sr;case sr:if(r.flags&4096){if(l===0)break t;h=0;do g=e[s+h++],r.head&&g&&r.length<65536&&(r.head.comment+=String.fromCharCode(g),r.length++);while(g&&h<l);if(r.flags&512&&r.wrap&4&&(r.check=P(r.check,e,h,s)),l-=h,s+=h,g)break t}else r.head&&(r.head.comment=null);r.mode=or;case or:if(r.flags&512){for(;o<16;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(r.wrap&4&&n!==(r.check&65535)){t.msg="header crc mismatch",r.mode=T;break}n=0,o=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=M;break;case lr:for(;o<32;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}t.adler=r.check=vr(n),n=0,o=0,r.mode=lt;case lt:if(r.havedict===0)return t.next_out=d,t.avail_out=_,t.next_in=s,t.avail_in=l,r.hold=n,r.bits=o,2;t.adler=r.check=1,r.mode=M;case M:if(a===5||a===6)break t;case gt:if(r.last){n>>>=o&7,o-=o&7,r.mode=kt;break}for(;o<3;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}switch(r.last=n&1,n>>>=1,--o,n&3){case 0:r.mode=dr;break;case 1:if(Ba(r),r.mode=et,a===6){n>>>=2,o-=2;break t}break;case 2:r.mode=cr;break;case 3:t.msg="invalid block type",r.mode=T}n>>>=2,o-=2;break;case dr:for(n>>>=o&7,o-=o&7;o<32;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if((n&65535)!=(n>>>16^65535)){t.msg="invalid stored block lengths",r.mode=T;break}if(r.length=n&65535,n=0,o=0,r.mode=pt,a===6)break t;case pt:r.mode=hr;case hr:if(h=r.length,h){if(h>l&&(h=l),h>_&&(h=_),h===0)break t;i.set(e.subarray(s,s+h),d),l-=h,s+=h,_-=h,d+=h,r.length-=h;break}r.mode=M;break;case cr:for(;o<14;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(r.nlen=(n&31)+257,n>>>=5,o-=5,r.ndist=(n&31)+1,n>>>=5,o-=5,r.ncode=(n&15)+4,n>>>=4,o-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=T;break}r.have=0,r.mode=fr;case fr:for(;r.have<r.ncode;){for(;o<3;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.lens[N[r.have++]]=n&7,n>>>=3,o-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},x=Z(xa,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,x){t.msg="invalid code lengths set",r.mode=T;break}r.have=0,r.mode=_r;case _r:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[n&(1<<r.lenbits)-1],b=y>>>24,w=y>>>16&255,f=y&65535,!(b<=o);){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(f<16)n>>>=b,o-=b,r.lens[r.have++]=f;else{if(f===16){for(S=b+2;o<S;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(n>>>=b,o-=b,r.have===0){t.msg="invalid bit length repeat",r.mode=T;break}g=r.lens[r.have-1],h=3+(n&3),n>>>=2,o-=2}else if(f===17){for(S=b+3;o<S;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}n>>>=b,o-=b,g=0,h=3+(n&7),n>>>=3,o-=3}else{for(S=b+7;o<S;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}n>>>=b,o-=b,g=0,h=11+(n&127),n>>>=7,o-=7}if(r.have+h>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=T;break}for(;h--;)r.lens[r.have++]=g}}if(r.mode===T)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=T;break}if(r.lenbits=9,k={bits:r.lenbits},x=Z(Gr,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,x){t.msg="invalid literal/lengths set",r.mode=T;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},x=Z(Hr,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,x){t.msg="invalid distances set",r.mode=T;break}if(r.mode=et,a===6)break t;case et:r.mode=nt;case nt:if(l>=6&&_>=258){t.next_out=d,t.avail_out=_,t.next_in=s,t.avail_in=l,r.hold=n,r.bits=o,ga(t,c),d=t.next_out,i=t.output,_=t.avail_out,s=t.next_in,e=t.input,l=t.avail_in,n=r.hold,o=r.bits,r.mode===M&&(r.back=-1);break}for(r.back=0;y=r.lencode[n&(1<<r.lenbits)-1],b=y>>>24,w=y>>>16&255,f=y&65535,!(b<=o);){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(w&&!(w&240)){for(m=b,U=w,v=f;y=r.lencode[v+((n&(1<<m+U)-1)>>m)],b=y>>>24,w=y>>>16&255,f=y&65535,!(m+b<=o);){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}n>>>=m,o-=m,r.back+=m}if(n>>>=b,o-=b,r.back+=b,r.length=f,w===0){r.mode=gr;break}if(w&32){r.back=-1,r.mode=M;break}if(w&64){t.msg="invalid literal/length code",r.mode=T;break}r.extra=w&15,r.mode=ur;case ur:if(r.extra){for(S=r.extra;o<S;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.length+=n&(1<<r.extra)-1,n>>>=r.extra,o-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=mr;case mr:for(;y=r.distcode[n&(1<<r.distbits)-1],b=y>>>24,w=y>>>16&255,f=y&65535,!(b<=o);){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(!(w&240)){for(m=b,U=w,v=f;y=r.distcode[v+((n&(1<<m+U)-1)>>m)],b=y>>>24,w=y>>>16&255,f=y&65535,!(m+b<=o);){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}n>>>=m,o-=m,r.back+=m}if(n>>>=b,o-=b,r.back+=b,w&64){t.msg="invalid distance code",r.mode=T;break}r.offset=f,r.extra=w&15,r.mode=wr;case wr:if(r.extra){for(S=r.extra;o<S;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}r.offset+=n&(1<<r.extra)-1,n>>>=r.extra,o-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=T;break}r.mode=br;case br:if(_===0)break t;if(h=c-_,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=T;break}h>r.wnext?(h-=r.wnext,z=r.wsize-h):z=r.wnext-h,h>r.length&&(h=r.length),A=r.window}else A=i,z=d-r.offset,h=r.length;h>_&&(h=_),_-=h,r.length-=h;do i[d++]=A[z++];while(--h);r.length===0&&(r.mode=nt);break;case gr:if(_===0)break t;i[d++]=r.length,_--,r.mode=nt;break;case kt:if(r.wrap){for(;o<32;){if(l===0)break t;l--,n|=e[s++]<<o,o+=8}if(c-=_,t.total_out+=c,r.total+=c,r.wrap&4&&c&&(t.adler=r.check=r.flags?P(r.check,i,c,d-c):ot(r.check,i,c,d-c)),c=_,r.wrap&4&&(r.flags?n:vr(n))!==r.check){t.msg="incorrect data check",r.mode=T;break}n=0,o=0}r.mode=pr;case pr:if(r.wrap&&r.flags){for(;o<32;){if(l===0)break t;l--,n+=e[s++]<<o,o+=8}if(r.wrap&4&&n!==(r.total&4294967295)){t.msg="incorrect length check",r.mode=T;break}n=0,o=0}r.mode=kr;case kr:x=1;break t;case T:x=-3;break t;case St:return-4;case Fr:default:return-2}return t.next_out=d,t.avail_out=_,t.next_in=s,t.avail_in=l,r.hold=n,r.bits=o,(r.wsize||c!==t.avail_out&&r.mode<T&&(r.mode<kt||a!==4))&&Qr(t,t.output,t.next_out,c-t.avail_out)?(r.mode=St,-4):(p-=t.avail_in,c-=t.avail_out,t.total_in+=p,t.total_out+=c,r.total+=c,r.wrap&4&&c&&(t.adler=r.check=r.flags?P(r.check,i,c,t.next_out-c):ot(r.check,i,c,t.next_out-c)),t.data_type=r.bits+(r.last?64:0)+(r.mode===M?128:0)+(r.mode===et||r.mode===pt?256:0),(p===0&&c===0||a===4)&&x===0&&(x=-5),x)},xr=t=>{if(W(t))return-2;let a=t.state;return a.window&&(a.window=null),t.state=null,0},zr=(t,a)=>{let r=a.length,e,i,s;return W(t)||(e=t.state,e.wrap!==0&&e.mode!==lt)?-2:e.mode===lt&&(i=1,i=ot(i,a,r,0),i!==e.check)?-3:(s=Qr(t,a,r,r),s?(e.mode=St,-4):(e.havedict=1,0))},Oa=class{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},Pa=t=>{let a=new Uint8Array(t.reduce((e,i)=>e+i.length,0)),r=0;for(let e of t)a.set(e,r),r+=e.length;return a};function $(t){"@babel/helpers - typeof";return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},$(t)}function Ia(t,a){if($(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var e=r.call(t,a||"default");if($(e)!="object")return e;throw TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}function Da(t){var a=Ia(t,"string");return $(a)=="symbol"?a:a+""}function R(t,a,r){return(a=Da(a))in t?Object.defineProperty(t,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[a]=r,t}var Ar=Object.prototype.toString,Va={chunkSize:1024*64,windowBits:15,raw:!1,dictionary:new Uint8Array},Ma=class{constructor(t={}){R(this,"options",void 0),R(this,"err",void 0),R(this,"msg",void 0),R(this,"ended",void 0),R(this,"started",void 0),R(this,"chunks",void 0),R(this,"strm",void 0),R(this,"result",void 0),this.options=Object.assign({},Va,t);let a=this.options;a.raw&&a.windowBits>=0&&a.windowBits<16&&(a.windowBits=-a.windowBits,a.windowBits===0&&(a.windowBits=-15)),a.windowBits>=0&&a.windowBits<16&&!t.windowBits&&(a.windowBits+=32),a.windowBits>15&&a.windowBits<48&&(a.windowBits&15||(a.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.started=!1,this.chunks=[],this.result=new Uint8Array,this.strm=new Oa,this.strm.avail_out=0;let r=Sa(this.strm,a.windowBits);if(r!==0)throw Error(ut[r]);Ar.call(a.dictionary)==="[object ArrayBuffer]"&&(a.dictionary=new Uint8Array(a.dictionary));let e=a.dictionary;if(a.raw&&e.length&&(r=zr(this.strm,e),r!==0))throw Error(ut[r])}push(t,a=!1){let r=this.strm,e=this.options.chunkSize,i,s,d;if(this.ended)return this.err===0;for(s=typeof a=="number"?a:a===!0?4:0,Ar.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length,this.started||(this.started=!0,this.onStart(r));;){if(r.avail_out===0&&(r.output=new Uint8Array(e),r.next_out=0,r.avail_out=e),i=xt(r,s),i===2){let l=this.options.dictionary;l.length&&(i=zr(r,l),i===0?i=xt(r,s):i===-3&&(i=2))}for(;r.avail_in>0&&i===1&&r.state.wrap&2&&r.state.flags!==0&&r.input[r.next_in]!==0;)Yr(r),i=xt(r,s);if(i===-2||i===-3||i===2||i===-4)break;if(d=r.avail_out,r.next_out&&(r.avail_out===0||i===1||s>0)&&(this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out)),r.avail_out=0,r.next_out=0),!((i===0||i===-5)&&d===0)){if(i===1){i=xr(this.strm);break}if(r.avail_in===0){if(s===4){i=xr(this.strm),i===0&&(i=-5);break}return!0}}}return this.err=i,this.msg=r.msg||ut[i],this.ended=!0,this.onEnd(i),i===0}onStart(t){}onData(t){this.chunks.push(t)}onEnd(t){t===0&&(this.result=Pa(this.chunks)),this.chunks=[]}};function qr(t,a={}){let r=new Ma(a);if(r.push(t,!0),r.err)throw Error(r.msg);let e=r.result;return a.toText?new TextDecoder().decode(e):e}var J=Uint16Array.BYTES_PER_ELEMENT,H=Int32Array.BYTES_PER_ELEMENT,K=Uint32Array.BYTES_PER_ELEMENT,L={METADATA:0,TERRAIN:1,DBROOT:2};L.fromString=function(t){if(t==="Metadata")return L.METADATA;if(t==="Terrain")return L.TERRAIN;if(t==="DbRoot")return L.DBROOT};function ja(t,a){let r=L.fromString(t.type),e=t.buffer;Lt(t.key,e);let i=Fa(e);e=i.buffer;let s=i.length;switch(r){case L.METADATA:return Ca(e,s,t.quadKey);case L.TERRAIN:return Ga(e,s,a);case L.DBROOT:return a.push(e),{buffer:e}}}var Ra=32301;function Ca(t,a,r){let e=new DataView(t),i=0,s=e.getUint32(i,!0);if(i+=K,s!==Ra)throw new O("Invalid magic");let d=e.getUint32(i,!0);if(i+=K,d!==1)throw new O("Invalid data type. Must be 1 for QuadTreePacket");let l=e.getUint32(i,!0);if(i+=K,l!==2)throw new O("Invalid QuadTreePacket version. Only version 2 is supported.");let _=e.getInt32(i,!0);i+=H;let n=e.getInt32(i,!0);if(i+=H,n!==32)throw new O("Invalid instance size.");let o=e.getInt32(i,!0);i+=H;let p=e.getInt32(i,!0);i+=H;let c=e.getInt32(i,!0);if(i+=H,o!==_*n+i)throw new O("Invalid dataBufferOffset");if(o+p+c!==a)throw new O("Invalid packet offsets");let h=[];for(let f=0;f<_;++f){let m=e.getUint8(i);++i,++i;let U=e.getUint16(i,!0);i+=J;let v=e.getUint16(i,!0);i+=J;let g=e.getUint16(i,!0);i+=J,i+=J,i+=J,i+=H,i+=H,i+=8;let x=e.getUint8(i++),u=e.getUint8(i++);i+=J,h.push(new Gt(m,U,v,g,x,u))}let z=[],A=0;function y(f,m,U){let v=!1;if(U===4){if(m.hasSubtree())return;v=!0}for(let g=0;g<4;++g){let x=f+g.toString();if(v)z[x]=null;else if(U<4)if(!m.hasChild(g))z[x]=null;else{if(A===_){console.log("Incorrect number of instances");return}let u=h[A++];z[x]=u,y(x,u,U+1)}}}let b=0,w=h[A++];return r===""?++b:z[r]=w,y(r,w,b),z}var La=5,Na=4;function Ga(t,a,r){let e=new DataView(t),i=function(l){for(let _=0;_<Na;++_){let n=e.getUint32(l,!0);if(l+=K,l+=n,l>a)throw new O("Malformed terrain packet found.")}return l},s=0,d=[];for(;d.length<La;){let l=s;s=i(s);let _=t.slice(l,s);r.push(_),d.push(_)}return d}var Wr=1953029805,Ha=2917034100;function Fa(t){let a=new DataView(t),r=0,e=a.getUint32(r,!0);if(r+=K,e!==Wr&&e!==Ha)throw new O("Invalid magic");let i=a.getUint32(r,e===Wr);r+=K;let s=new Uint8Array(t,r),d=qr(s);if(d.length!==i)throw new O("Size of packet doesn't match header");return d}var oi=Ct(ja);export{oi as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 pt}from"./chunk-6LO6MWK3.js";import{a as ft}from"./chunk-MDI2T7LJ.js";import{Ba as lt,Ma as k,V as P,d as dt,g as h,j as M,l as g,o as ot,u as st,v as it}from"./chunk-FZYUOFLY.js";var at=dt(pt(),1),ut;function mt(n,t,e,o,a,i){let r=e*(1-n)+o*n,s=a*(1-n)+i*n;return r*(1-t)+s*t}function H(n,t,e,o){let a=n+t*e;return o[a]}function xt(n,t,e){let o=e.nativeExtent,a=(n-o.west)/(o.east-o.west)*(e.width-1),i=(t-o.south)/(o.north-o.south)*(e.height-1),r=Math.floor(a),s=Math.floor(i);a-=r,i-=s;let c=r<e.width?r+1:r,u=s<e.height?s+1:s;s=e.height-1-s,u=e.height-1-u;let l=H(r,s,e.width,e.buffer),f=H(c,s,e.width,e.buffer),p=H(r,u,e.width,e.buffer),m=H(c,u,e.width,e.buffer),d=mt(a,i,l,f,p,m);return d=d*e.scale+e.offset,d}function ht(n,t,e){for(let o=0;o<e.length;o++){let a=e[o].nativeExtent,i=new g;if(e[o].projectionType==="WebMercator"){let r=e[o].projection._ellipsoid._radii;i=new lt(new it(r.x,r.y,r.z)).project(new st(n,t,0))}else i.x=n,i.y=t;if(i.x>a.west&&i.x<a.east&&i.y>a.south&&i.y<a.north)return xt(i.x,i.y,e[o])}return 0}function wt(n,t,e,o,a,i,r){if(r)return;let s=ht(a.longitude,a.latitude,i);for(let c=0;c<n;++c){let u=ht(a.longitude+M.toRadians(e*t[c*3]),a.latitude+M.toRadians(o*t[c*3+1]),i);t[c*3+2]+=u-s}}function It(n,t,e,o,a,i,r,s,c){if(n===0||!h(t)||t.length===0)return;let u=new it(Math.sqrt(r.x),Math.sqrt(r.y),Math.sqrt(r.z));for(let l=0;l<n;++l){let f=l*3,p=f+1,m=f+2,d=new st;d.longitude=o.longitude+M.toRadians(s*t[f]),d.latitude=o.latitude+M.toRadians(c*t[p]),d.height=o.height+t[m];let b={};u.cartographicToCartesian(d,b),b.x-=a.x,b.y-=a.y,b.z-=a.z;let x={};if(ot.multiplyByVector(i,b,x),t[f]=x.x,t[p]=x.y,t[m]=x.z,h(e)){let T=new g(e[f],e[p],e[m]),I={};ot.multiplyByVector(i,T,I),e[f]=I.x,e[p]=I.y,e[m]=I.z}}}function At(n,t,e){for(let o=0;o<n;++o){let a=e[o*4]/65535,i=e[o*4+1]/65535,r=(e[o*4+2]-e[o*4])/65535,s=(e[o*4+3]-e[o*4+1])/65535;t[o*2]*=r,t[o*2]+=a,t[o*2+1]*=s,t[o*2+1]+=i}}function Lt(n,t,e,o){let a=new Uint32Array(n),i=h(t)?s=>t[s]:s=>s,r=0;if(o&&h(e)){let s=c=>e[i(c)*4+3]<255;for(let c=0;c<n;c+=3)!s(c)&&!s(c+1)&&!s(c+2)&&(a[r++]=i(c),a[r++]=i(c+1),a[r++]=i(c+2));if(r>0){let c=r;for(let u=0;u<n;u+=3)(s(u)||s(u+1)||s(u+2))&&(a[c++]=i(u),a[c++]=i(u+1),a[c++]=i(u+2))}else for(let c=0;c<n;++c)a[c]=i(c)}else{r=n;for(let s=0;s<n;++s)a[s]=i(s)}return{indexArray:a,transparentVertexOffset:r}}function Ot(n,t,e){let o=t[e];if(h(o))return o;let a=t[e]={positions:{},indices:{},edges:{}},i=n[e]??n.default;return a.hasOutline=h(i?.edges),a}function Tt(n,t,e,o){if(!h(n[e])){let a=e*3,i=t;for(let r=0;r<3;r++){let s=o[a+r];h(i[s])||(i[s]={}),i=i[s]}h(i.index)||(i.index=e),n[e]=i.index}}function Ct(n,t,e,o,a,i){let r,s;o<a?(r=o,s=a):(r=a,s=o);let c=n[r];h(c)||(c=n[r]={});let u=c[s];h(u)||(u=c[s]={normalsIndex:[],outlines:[]}),u.normalsIndex.push(i),(u.outlines.length===0||t!==o||e!==a)&&u.outlines.push(t,e)}function Ft(n,t,e,o){let a=[];for(let i=0;i<e.length;i+=3){let r=h(t)?t[e[i]]:"default",s=Ot(n,a,r);if(!s.hasOutline)continue;let c=s.indices,u=s.positions;for(let f=0;f<3;f++){let p=e[i+f];Tt(c,u,p,o)}let l=s.edges;for(let f=0;f<3;f++){let p=e[i+f],m=e[i+(f+1)%3],d=c[p],b=c[m];Ct(l,p,m,d,b,i)}}return a}var O=new g,X=new g,Y=new g;function yt(n,t,e,o){let a=e[t]*3,i=e[t+1]*3,r=e[t+2]*3;g.fromArray(o,a,O),g.fromArray(o,i,X),g.fromArray(o,r,Y),g.subtract(X,O,X),g.subtract(Y,O,Y),g.cross(X,Y,O);let s=g.magnitude(O);s!==0&&g.divideByScalar(O,s,O);let c=t*3,u=(t+1)*3,l=(t+2)*3;g.pack(O,n,c),g.pack(O,n,u),g.pack(O,n,l)}var z=new g,ct=new g;function Ut(n,t,e){g.fromArray(n,t,z),g.fromArray(n,e,ct);let o=g.dot(z,ct),a=g.magnitude(g.cross(z,ct,z));return Math.atan2(a,o)<.25}function Vt(n,t,e,o,a){if(t.normalsIndex.length>1){let i=o.length===a.length;for(let r=0;r<t.normalsIndex.length;r++){let s=t.normalsIndex[r];if(h(a[s*3])||yt(a,s,e,o),r!==0)for(let c=0;c<r;c++){let u=t.normalsIndex[c],l=i?e[s]*3:s*3,f=i?e[u]*3:u*3;if(Ut(a,l,f))return}}}n.push(...t.outlines)}function Et(n,t,e,o,a){let i=Object.keys(t);for(let r=0;r<i.length;r++){let s=t[i[r]],c=Object.keys(s);for(let u=0;u<c.length;u++){let l=s[c[u]];Vt(n,l,e,o,a)}}}function _t(n,t,e,o){let a=[],i=Object.keys(n);for(let r=0;r<i.length;r++){let s=n[i[r]].edges;Et(a,s,t,e,o)}return a}function Rt(n,t,e,o,a){if(!h(n)||Object.keys(n).length===0)return;let i=Ft(n,t,e,o);(!h(a)||e.length*3!==a.length)&&(a=[]);let r=_t(i,e,o,a);return r.length>0?new Uint32Array(r):void 0}function Nt(n){let t=new Float32Array(n.length);for(let e=0;e<n.length;e+=4)t[e]=k(P.byteToFloat(n[e])),t[e+1]=k(P.byteToFloat(n[e+1])),t[e+2]=k(P.byteToFloat(n[e+2])),t[e+3]=P.byteToFloat(n[e+3]);return t}function Bt(n,t,e,o,a,i,r){let s={normals:void 0,positions:void 0,uv0s:void 0,colors:void 0,featureIndex:void 0,vertexCount:void 0};if(n===0||!h(e)||e.length===0||h(o))return s;if(h(t)){s.vertexCount=t.length,s.positions=new Float32Array(t.length*3),s.uv0s=h(a)?new Float32Array(t.length*2):void 0,s.colors=h(i)?new Uint8Array(t.length*4):void 0,s.featureIndex=h(r)?new Array(t.length):void 0;for(let c=0;c<t.length;c++){let u=t[c];s.positions[c*3]=e[u*3],s.positions[c*3+1]=e[u*3+1],s.positions[c*3+2]=e[u*3+2],h(s.uv0s)&&(s.uv0s[c*2]=a[u*2],s.uv0s[c*2+1]=a[u*2+1]),h(s.colors)&&(s.colors[c*4]=i[u*4],s.colors[c*4+1]=i[u*4+1],s.colors[c*4+2]=i[u*4+2],s.colors[c*4+3]=i[u*4+3]),h(s.featureIndex)&&(s.featureIndex[c]=r[u])}n=t.length,e=s.positions}t=new Array(n);for(let c=0;c<n;c++)t[c]=c;s.normals=new Float32Array(t.length*3);for(let c=0;c<t.length;c+=3)yt(s.normals,c,t,e);return s}function Gt(n,t,e,o,a,i,r,s){if(n===0||!h(e)||e.length===0)return{buffers:[],bufferViews:[],accessors:[],meshes:[],nodes:[],nodesInScene:[]};let c=[],u=[],l=[],f=[],p=[],m=[],d={},b=[];h(t)&&(n=t.length);let{indexArray:x,transparentVertexOffset:T}=Lt(n,t,i,s.splitGeometryByColorTransparency),I=new Blob([x],{type:"application/binary"}),A=URL.createObjectURL(I),w=n,F=s.enableFeatures&&h(r)?new Float32Array(r.length):void 0,C=0;if(h(F))for(let y=0;y<r.length;++y){F[y]=r[y];let E=r[y]+1;C<E&&(C=E)}let U,R=Rt(s.symbologyData,r,x,e,o);if(h(R)){let y=new Blob([R],{type:"application/binary"});U=URL.createObjectURL(y)}let L=e.subarray(0,w*3),bt=new Blob([L],{type:"application/binary"}),gt=URL.createObjectURL(bt),D=Number.POSITIVE_INFINITY,K=Number.NEGATIVE_INFINITY,Q=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,J=Number.POSITIVE_INFINITY,$=Number.NEGATIVE_INFINITY;for(let y=0;y<L.length/3;y++)D=Math.min(D,L[y*3+0]),K=Math.max(K,L[y*3+0]),Q=Math.min(Q,L[y*3+1]),Z=Math.max(Z,L[y*3+1]),J=Math.min(J,L[y*3+2]),$=Math.max($,L[y*3+2]);let N=o?o.subarray(0,w*3):void 0,q;if(h(N)){let y=new Blob([N],{type:"application/binary"});q=URL.createObjectURL(y)}let B=a?a.subarray(0,w*2):void 0,tt;if(h(B)){let y=new Blob([B],{type:"application/binary"});tt=URL.createObjectURL(y)}let G=h(i)?Nt(i.subarray(0,w*4)):void 0,et;if(h(G)){let y=new Blob([G],{type:"application/binary"});et=URL.createObjectURL(y)}let S=h(F)?F.subarray(0,w):void 0,nt;if(h(S)){let y=new Blob([S],{type:"application/binary"});nt=URL.createObjectURL(y)}let _=h(F)?new Float32Array(C):void 0,rt;if(h(_)){for(let E=0;E<_.length;++E)_[E]=E;let y=new Blob([_],{type:"application/binary"});rt=URL.createObjectURL(y)}let V={},j={};V.POSITION=l.length,c.push({uri:gt,byteLength:L.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:L.byteLength,target:34962}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:L.length/3,type:"VEC3",min:[D,Q,J],max:[K,Z,$]}),h(q)&&(V.NORMAL=l.length,c.push({uri:q,byteLength:N.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:N.byteLength,target:34962}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:N.length/3,type:"VEC3"})),h(tt)&&(V.TEXCOORD_0=l.length,c.push({uri:tt,byteLength:B.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:B.byteLength,target:34962}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:B.length/2,type:"VEC2"})),h(et)&&(V.COLOR_0=l.length,c.push({uri:et,byteLength:G.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:G.byteLength,target:34962}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:G.length/4,type:"VEC4"})),h(nt)&&(V._FEATURE_ID_0=l.length,c.push({uri:nt,byteLength:S.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:S.byteLength,target:34963}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5126,count:S.length,type:"SCALAR"}),j.EXT_mesh_features={featureIds:[{attribute:0,propertyTable:0,featureCount:C}]},b.push("EXT_mesh_features")),h(rt)&&(c.push({uri:rt,byteLength:_.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:_.byteLength,target:34963}),d.EXT_structural_metadata={schema:{id:"i3s-metadata-schema-001",name:"I3S metadata schema 001",description:"The schema for I3S metadata",version:"1.0",classes:{feature:{name:"feature",description:"Feature metadata",properties:{index:{description:"The feature index",type:"SCALAR",componentType:"FLOAT32",required:!0}}}}},propertyTables:[{name:"feature-indices-mapping",class:"feature",count:C,properties:{index:{values:u.length-1}}}]},b.push("EXT_structural_metadata")),h(U)&&(c.push({uri:U,byteLength:R.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:R.byteLength,target:34963}),l.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:R.length,type:"SCALAR"}),j.CESIUM_primitive_outline={indices:l.length-1},b.push("CESIUM_primitive_outline")),c.push({uri:A,byteLength:x.byteLength}),u.push({buffer:c.length-1,byteOffset:0,byteLength:x.byteLength,target:34963});let v=[];return T>0&&(l.push({bufferView:u.length-1,byteOffset:0,componentType:5125,count:T,type:"SCALAR"}),v.push({attributes:V,indices:l.length-1,material:v.length,extensions:j})),T<n&&(l.push({bufferView:u.length-1,byteOffset:4*T,componentType:5125,count:n-T,type:"SCALAR"}),v.push({attributes:V,indices:l.length-1,material:v.length,extensions:j,extra:{isTransparent:!0}})),f.push({primitives:v}),m.push(0),p.push({mesh:0}),{buffers:c,bufferViews:u,accessors:l,meshes:f,nodes:p,nodesInScene:m,rootExtensions:d,extensionsUsed:b}}function St(n,t,e,o){let a=new Uint8Array(n,0,5);return a[0]===68&&a[1]===82&&a[2]===65&&a[3]===67&&a[4]===79?vt(n,e):Pt(n,t,e,o)}function vt(n){let t=ut,e=new t.DecoderBuffer,o=new Uint8Array(n);e.Init(o,o.length);let a=new t.Decoder,i=a.GetEncodedGeometryType(e),r=new t.MetadataQuerier,s,c;i===t.TRIANGULAR_MESH&&(s=new t.Mesh,c=a.DecodeBufferToMesh(e,s));let u={vertexCount:[0],featureCount:0};if(h(c)&&c.ok()&&s.ptr!==0){let l=s.num_faces(),f=s.num_attributes(),p=s.num_points();u.indices=new Uint32Array(l*3);let m=u.indices;u.vertexCount[0]=p,u.scale_x=1,u.scale_y=1;let d=new t.DracoInt32Array(3);for(let b=0;b<l;++b)a.GetFaceFromMesh(s,b,d),m[b*3]=d.GetValue(0),m[b*3+1]=d.GetValue(1),m[b*3+2]=d.GetValue(2);t.destroy(d);for(let b=0;b<f;++b){let x=a.GetAttribute(s,b),T=Mt(t,a,s,x,p),I=x.attribute_type(),A="unknown";I===t.POSITION?A="positions":I===t.NORMAL?A="normals":I===t.COLOR?A="colors":I===t.TEX_COORD&&(A="uv0s");let w=a.GetAttributeMetadata(s,b);if(w.ptr!==0){let F=r.NumEntries(w);for(let C=0;C<F;++C){let U=r.GetEntryName(w,C);U==="i3s-scale_x"?u.scale_x=r.GetDoubleEntry(w,"i3s-scale_x"):U==="i3s-scale_y"?u.scale_y=r.GetDoubleEntry(w,"i3s-scale_y"):U==="i3s-attribute-type"&&(A=r.GetStringEntry(w,"i3s-attribute-type"))}}h(u[A])&&console.log("Attribute already exists",A),u[A]=T,A==="feature-index"&&u.featureCount++}t.destroy(s)}return t.destroy(r),t.destroy(a),u}function Mt(n,t,e,o,a){let i=o.num_components()*a,r,c=[function(){},function(){r=new n.DracoInt8Array(i),t.GetAttributeInt8ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Int8Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){r=new n.DracoInt8Array(i),t.GetAttributeUInt8ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Uint8Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){r=new n.DracoInt16Array(i),t.GetAttributeInt16ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Int16Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){r=new n.DracoInt16Array(i),t.GetAttributeUInt16ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Uint16Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){r=new n.DracoInt32Array(i),t.GetAttributeInt32ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Int32Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){r=new n.DracoInt32Array(i),t.GetAttributeUInt32ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Uint32Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){},function(){},function(){r=new n.DracoFloat32Array(i),t.GetAttributeFloatForAllPoints(e,o,r)||console.error("Bad stream");let l=new Float32Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l},function(){},function(){r=new n.DracoUInt8Array(i),t.GetAttributeUInt8ForAllPoints(e,o,r)||console.error("Bad stream");let l=new Uint8Array(i);for(let f=0;f<i;++f)l[f]=r.GetValue(f);return l}][o.data_type()]();return h(r)&&n.destroy(r),c}var W={position:function(n,t,e){let o=n.vertexCount*3;return n.positions=new Float32Array(t,e,o),e+=o*4,e},normal:function(n,t,e){let o=n.vertexCount*3;return n.normals=new Float32Array(t,e,o),e+=o*4,e},uv0:function(n,t,e){let o=n.vertexCount*2;return n.uv0s=new Float32Array(t,e,o),e+=o*4,e},color:function(n,t,e){let o=n.vertexCount*4;return n.colors=new Uint8Array(t,e,o),e+=o,e},featureId:function(n,t,e){let o=n.featureCount;return e+=o*8,e},id:function(n,t,e){let o=n.featureCount;return e+=o*8,e},faceRange:function(n,t,e){let o=n.featureCount*2;return n.faceRange=new Uint32Array(t,e,o),e+=o*4,e},uvRegion:function(n,t,e){let o=n.vertexCount*4;return n["uv-region"]=new Uint16Array(t,e,o),e+=o*2,e},region:function(n,t,e){let o=n.vertexCount*4;return n["uv-region"]=new Uint16Array(t,e,o),e+=o*2,e}};function Pt(n,t,e,o){let a={vertexCount:0},i=new DataView(n);try{let r=0;if(a.vertexCount=i.getUint32(r,1),r+=4,a.featureCount=i.getUint32(r,1),r+=4,h(e))for(let s=0;s<e.attributes.length;s++)h(W[e.attributes[s]])?r=W[e.attributes[s]](a,n,r):console.error("Unknown decoder for",e.attributes[s]);else{let s=t.ordering,c=t.featureAttributeOrder;h(o)&&h(o.geometryData)&&h(o.geometryData[0])&&h(o.geometryData[0].params)&&(s=Object.keys(o.geometryData[0].params.vertexAttributes),c=Object.keys(o.geometryData[0].params.featureAttributes));for(let u=0;u<s.length;u++){let l=W[s[u]];r=l(a,n,r)}for(let u=0;u<c.length;u++){let l=W[c[u]];r=l(a,n,r)}}}catch(r){console.error(r)}return a.scale_x=1,a.scale_y=1,a}function jt(n){let t=St(n.binaryData,n.schema,n.bufferInfo,n.featureData);h(n.geoidDataList)&&n.geoidDataList.length>0&&wt(t.vertexCount,t.positions,t.scale_x,t.scale_y,n.cartographicCenter,n.geoidDataList,!1),It(t.vertexCount,t.positions,t.normals,n.cartographicCenter,n.cartesianCenter,n.parentRotation,n.ellipsoidRadiiSquare,t.scale_x,t.scale_y),h(t.uv0s)&&h(t["uv-region"])&&At(t.vertexCount,t.uv0s,t["uv-region"]);let e;if(h(t["feature-index"]))e=t["feature-index"];else if(h(t.faceRange)){e=new Array(t.vertexCount);for(let r=0;r<t.faceRange.length-1;r+=2){let s=r/2,c=t.faceRange[r],u=t.faceRange[r+1];for(let l=c;l<=u;l++)e[l*3]=s,e[l*3+1]=s,e[l*3+2]=s}}if(n.calculateNormals){let r=Bt(t.vertexCount,t.indices,t.positions,t.normals,t.uv0s,t.colors,e);h(r.normals)&&(t.normals=r.normals,h(r.vertexCount)&&(t.vertexCount=r.vertexCount,t.indices=r.indices,t.positions=r.positions,t.uv0s=r.uv0s,t.colors=r.colors,e=r.featureIndex))}let o=Gt(t.vertexCount,t.indices,t.positions,t.normals,t.uv0s,t.colors,e,n),a={positions:t.positions,indices:t.indices,featureIndex:e,sourceURL:n.url,cartesianCenter:n.cartesianCenter,parentRotation:n.parentRotation};return o._customAttributes=a,{meshData:o}}async function kt(n,t){let e=n.webAssemblyConfig;return h(e)&&h(e.wasmBinaryFile)?ut=await(0,at.default)(e):ut=await(0,at.default)(),!0}function Ht(n,t){let e=n.webAssemblyConfig;return h(e)?kt(n,t):jt(n,t)}var zt=ft(Ht);export{zt as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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{b as t,c as f}from"./chunk-674HC7OA.js";import{a as s}from"./chunk-MDI2T7LJ.js";import{g as o}from"./chunk-FZYUOFLY.js";async function m(i,e){let n=i.webAssemblyConfig;if(o(n)&&o(n.wasmBinary))return f({module:n.wasmBinary}),!0}function c(i,e){let n=i.webAssemblyConfig;if(o(n))return m(i,e);let{primitive:r,sortType:a}=i;if(a==="Index")return t(r.positions,r.modelView,r.count)}var y=s(c);export{y as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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,c}from"./chunk-674HC7OA.js";import{a as i}from"./chunk-MDI2T7LJ.js";import{g as n}from"./chunk-FZYUOFLY.js";async function u(t,s){let e=t.webAssemblyConfig;return n(e)&&n(e.wasmBinary)?(c({module:e.wasmBinary}),!0):!1}async function l(t,s){let e=t.webAssemblyConfig;if(n(e))return u(t,s);let{attributes:r,count:f}=t,o=a(r.positions,r.scales,r.rotations,r.colors,f);return{data:o.data,width:o.width,height:o.height}}var w=i(l);export{w as default};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.147.0
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 y}from"./chunk-MDI2T7LJ.js";import{l as n,r as i,t as o}from"./chunk-FZYUOFLY.js";var b=new n,d=new n,A=[new n,new n,new n],x=new o,f=new n(.5,.5,.5),g=new n(-.5,-.5,-.5);function h(t,r){let s=new Float64Array(t.aabbs),p=Array.from({length:4},(e,a)=>{let c=n.unpack(s,a*6,b),B=n.unpack(s,a*6+3,d);return o.fromCorners(c,B,new o)}),w=new Float64Array(t.inverseTransform),T=i.unpack(w,0,new i),l=new Uint32Array(t.triangleIndices),u=new Float64Array(t.trianglePositions),m=Array.from({length:4},()=>[]);for(let e=0;e<l.length;e++){n.unpack(u,e*9,A[0]),n.unpack(u,e*9+3,A[1]),n.unpack(u,e*9+6,A[2]);let a=k(T,A);for(let c=0;c<4;c++)p[c].intersectAxisAlignedBoundingBox(a)&&m[c].push(l[e])}return{intersectingTrianglesArrays:m.map(e=>{let a=new Uint32Array(e);return r.push(a.buffer),a.buffer})}}function k(t,r){i.multiplyByPoint(t,r[0],r[0]),i.multiplyByPoint(t,r[1],r[1]),i.multiplyByPoint(t,r[2],r[2]);let s=o.fromPoints(r,x);return n.clamp(s.minimum,g,f,s.minimum),n.clamp(s.maximum,g,f,s.maximum),s}var C=y(h);export{C as default};