create-swdg-frontend 0.1.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 (427) hide show
  1. package/README.md +39 -0
  2. package/bin/index.js +248 -0
  3. package/package.json +29 -0
  4. package/template/.husky/commit-msg +42 -0
  5. package/template/.husky/pre-commit +2 -0
  6. package/template/.husky/prepare-commit-msg +1 -0
  7. package/template/.lintstagedrc +5 -0
  8. package/template/.prettierignore +26 -0
  9. package/template/.prettierrc.cjs +10 -0
  10. package/template/.stylelintignore +1 -0
  11. package/template/.stylelintrc.json +6 -0
  12. package/template/README.md +36 -0
  13. package/template/commitlint.config.cjs +64 -0
  14. package/template/eslint.config.js +96 -0
  15. package/template/index.html +17 -0
  16. package/template/interface/user.ts +5 -0
  17. package/template/package.json +84 -0
  18. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1012 -0
  19. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1012 -0
  20. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1012 -0
  21. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1012 -0
  22. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1012 -0
  23. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1012 -0
  24. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1012 -0
  25. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1012 -0
  26. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1012 -0
  27. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1012 -0
  28. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1012 -0
  29. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1012 -0
  30. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1012 -0
  31. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1012 -0
  32. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1012 -0
  33. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1012 -0
  34. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1012 -0
  35. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1012 -0
  36. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1012 -0
  37. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1012 -0
  38. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_27.json +438 -0
  39. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1012 -0
  40. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1012 -0
  41. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1012 -0
  42. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1012 -0
  43. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1012 -0
  44. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1012 -0
  45. package/template/public/Cesium1.119/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1012 -0
  46. package/template/public/Cesium1.119/Assets/Images/bing_maps_credit.png +0 -0
  47. package/template/public/Cesium1.119/Assets/Images/cesium_credit.png +0 -0
  48. package/template/public/Cesium1.119/Assets/Images/google_earth_credit.png +0 -0
  49. package/template/public/Cesium1.119/Assets/Images/ion-credit.png +0 -0
  50. package/template/public/Cesium1.119/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
  51. package/template/public/Cesium1.119/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
  52. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
  53. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
  54. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
  55. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
  56. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
  57. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
  58. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
  59. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
  60. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
  61. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
  62. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
  63. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
  64. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
  65. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
  66. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
  67. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
  68. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
  69. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
  70. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
  71. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
  72. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
  73. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
  74. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
  75. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
  76. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
  77. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
  78. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
  79. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
  80. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
  81. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
  82. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
  83. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
  84. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
  85. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
  86. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
  87. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
  88. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
  89. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
  90. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
  91. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
  92. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
  93. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
  94. package/template/public/Cesium1.119/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
  95. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
  96. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
  97. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
  98. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
  99. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
  100. package/template/public/Cesium1.119/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
  101. package/template/public/Cesium1.119/Assets/Textures/maki/airfield.png +0 -0
  102. package/template/public/Cesium1.119/Assets/Textures/maki/airport.png +0 -0
  103. package/template/public/Cesium1.119/Assets/Textures/maki/alcohol-shop.png +0 -0
  104. package/template/public/Cesium1.119/Assets/Textures/maki/america-football.png +0 -0
  105. package/template/public/Cesium1.119/Assets/Textures/maki/art-gallery.png +0 -0
  106. package/template/public/Cesium1.119/Assets/Textures/maki/bakery.png +0 -0
  107. package/template/public/Cesium1.119/Assets/Textures/maki/bank.png +0 -0
  108. package/template/public/Cesium1.119/Assets/Textures/maki/bar.png +0 -0
  109. package/template/public/Cesium1.119/Assets/Textures/maki/baseball.png +0 -0
  110. package/template/public/Cesium1.119/Assets/Textures/maki/basketball.png +0 -0
  111. package/template/public/Cesium1.119/Assets/Textures/maki/beer.png +0 -0
  112. package/template/public/Cesium1.119/Assets/Textures/maki/bicycle.png +0 -0
  113. package/template/public/Cesium1.119/Assets/Textures/maki/building.png +0 -0
  114. package/template/public/Cesium1.119/Assets/Textures/maki/bus.png +0 -0
  115. package/template/public/Cesium1.119/Assets/Textures/maki/cafe.png +0 -0
  116. package/template/public/Cesium1.119/Assets/Textures/maki/camera.png +0 -0
  117. package/template/public/Cesium1.119/Assets/Textures/maki/campsite.png +0 -0
  118. package/template/public/Cesium1.119/Assets/Textures/maki/car.png +0 -0
  119. package/template/public/Cesium1.119/Assets/Textures/maki/cemetery.png +0 -0
  120. package/template/public/Cesium1.119/Assets/Textures/maki/cesium.png +0 -0
  121. package/template/public/Cesium1.119/Assets/Textures/maki/chemist.png +0 -0
  122. package/template/public/Cesium1.119/Assets/Textures/maki/cinema.png +0 -0
  123. package/template/public/Cesium1.119/Assets/Textures/maki/circle-stroked.png +0 -0
  124. package/template/public/Cesium1.119/Assets/Textures/maki/circle.png +0 -0
  125. package/template/public/Cesium1.119/Assets/Textures/maki/city.png +0 -0
  126. package/template/public/Cesium1.119/Assets/Textures/maki/clothing-store.png +0 -0
  127. package/template/public/Cesium1.119/Assets/Textures/maki/college.png +0 -0
  128. package/template/public/Cesium1.119/Assets/Textures/maki/commercial.png +0 -0
  129. package/template/public/Cesium1.119/Assets/Textures/maki/cricket.png +0 -0
  130. package/template/public/Cesium1.119/Assets/Textures/maki/cross.png +0 -0
  131. package/template/public/Cesium1.119/Assets/Textures/maki/dam.png +0 -0
  132. package/template/public/Cesium1.119/Assets/Textures/maki/danger.png +0 -0
  133. package/template/public/Cesium1.119/Assets/Textures/maki/disability.png +0 -0
  134. package/template/public/Cesium1.119/Assets/Textures/maki/dog-park.png +0 -0
  135. package/template/public/Cesium1.119/Assets/Textures/maki/embassy.png +0 -0
  136. package/template/public/Cesium1.119/Assets/Textures/maki/emergency-telephone.png +0 -0
  137. package/template/public/Cesium1.119/Assets/Textures/maki/entrance.png +0 -0
  138. package/template/public/Cesium1.119/Assets/Textures/maki/farm.png +0 -0
  139. package/template/public/Cesium1.119/Assets/Textures/maki/fast-food.png +0 -0
  140. package/template/public/Cesium1.119/Assets/Textures/maki/ferry.png +0 -0
  141. package/template/public/Cesium1.119/Assets/Textures/maki/fire-station.png +0 -0
  142. package/template/public/Cesium1.119/Assets/Textures/maki/fuel.png +0 -0
  143. package/template/public/Cesium1.119/Assets/Textures/maki/garden.png +0 -0
  144. package/template/public/Cesium1.119/Assets/Textures/maki/gift.png +0 -0
  145. package/template/public/Cesium1.119/Assets/Textures/maki/golf.png +0 -0
  146. package/template/public/Cesium1.119/Assets/Textures/maki/grocery.png +0 -0
  147. package/template/public/Cesium1.119/Assets/Textures/maki/hairdresser.png +0 -0
  148. package/template/public/Cesium1.119/Assets/Textures/maki/harbor.png +0 -0
  149. package/template/public/Cesium1.119/Assets/Textures/maki/heart.png +0 -0
  150. package/template/public/Cesium1.119/Assets/Textures/maki/heliport.png +0 -0
  151. package/template/public/Cesium1.119/Assets/Textures/maki/hospital.png +0 -0
  152. package/template/public/Cesium1.119/Assets/Textures/maki/ice-cream.png +0 -0
  153. package/template/public/Cesium1.119/Assets/Textures/maki/industrial.png +0 -0
  154. package/template/public/Cesium1.119/Assets/Textures/maki/land-use.png +0 -0
  155. package/template/public/Cesium1.119/Assets/Textures/maki/laundry.png +0 -0
  156. package/template/public/Cesium1.119/Assets/Textures/maki/library.png +0 -0
  157. package/template/public/Cesium1.119/Assets/Textures/maki/lighthouse.png +0 -0
  158. package/template/public/Cesium1.119/Assets/Textures/maki/lodging.png +0 -0
  159. package/template/public/Cesium1.119/Assets/Textures/maki/logging.png +0 -0
  160. package/template/public/Cesium1.119/Assets/Textures/maki/london-underground.png +0 -0
  161. package/template/public/Cesium1.119/Assets/Textures/maki/marker-stroked.png +0 -0
  162. package/template/public/Cesium1.119/Assets/Textures/maki/marker.png +0 -0
  163. package/template/public/Cesium1.119/Assets/Textures/maki/minefield.png +0 -0
  164. package/template/public/Cesium1.119/Assets/Textures/maki/mobilephone.png +0 -0
  165. package/template/public/Cesium1.119/Assets/Textures/maki/monument.png +0 -0
  166. package/template/public/Cesium1.119/Assets/Textures/maki/museum.png +0 -0
  167. package/template/public/Cesium1.119/Assets/Textures/maki/music.png +0 -0
  168. package/template/public/Cesium1.119/Assets/Textures/maki/oil-well.png +0 -0
  169. package/template/public/Cesium1.119/Assets/Textures/maki/park.png +0 -0
  170. package/template/public/Cesium1.119/Assets/Textures/maki/park2.png +0 -0
  171. package/template/public/Cesium1.119/Assets/Textures/maki/parking-garage.png +0 -0
  172. package/template/public/Cesium1.119/Assets/Textures/maki/parking.png +0 -0
  173. package/template/public/Cesium1.119/Assets/Textures/maki/pharmacy.png +0 -0
  174. package/template/public/Cesium1.119/Assets/Textures/maki/pitch.png +0 -0
  175. package/template/public/Cesium1.119/Assets/Textures/maki/place-of-worship.png +0 -0
  176. package/template/public/Cesium1.119/Assets/Textures/maki/playground.png +0 -0
  177. package/template/public/Cesium1.119/Assets/Textures/maki/police.png +0 -0
  178. package/template/public/Cesium1.119/Assets/Textures/maki/polling-place.png +0 -0
  179. package/template/public/Cesium1.119/Assets/Textures/maki/post.png +0 -0
  180. package/template/public/Cesium1.119/Assets/Textures/maki/prison.png +0 -0
  181. package/template/public/Cesium1.119/Assets/Textures/maki/rail-above.png +0 -0
  182. package/template/public/Cesium1.119/Assets/Textures/maki/rail-light.png +0 -0
  183. package/template/public/Cesium1.119/Assets/Textures/maki/rail-metro.png +0 -0
  184. package/template/public/Cesium1.119/Assets/Textures/maki/rail-underground.png +0 -0
  185. package/template/public/Cesium1.119/Assets/Textures/maki/rail.png +0 -0
  186. package/template/public/Cesium1.119/Assets/Textures/maki/religious-christian.png +0 -0
  187. package/template/public/Cesium1.119/Assets/Textures/maki/religious-jewish.png +0 -0
  188. package/template/public/Cesium1.119/Assets/Textures/maki/religious-muslim.png +0 -0
  189. package/template/public/Cesium1.119/Assets/Textures/maki/restaurant.png +0 -0
  190. package/template/public/Cesium1.119/Assets/Textures/maki/roadblock.png +0 -0
  191. package/template/public/Cesium1.119/Assets/Textures/maki/rocket.png +0 -0
  192. package/template/public/Cesium1.119/Assets/Textures/maki/school.png +0 -0
  193. package/template/public/Cesium1.119/Assets/Textures/maki/scooter.png +0 -0
  194. package/template/public/Cesium1.119/Assets/Textures/maki/shop.png +0 -0
  195. package/template/public/Cesium1.119/Assets/Textures/maki/skiing.png +0 -0
  196. package/template/public/Cesium1.119/Assets/Textures/maki/slaughterhouse.png +0 -0
  197. package/template/public/Cesium1.119/Assets/Textures/maki/soccer.png +0 -0
  198. package/template/public/Cesium1.119/Assets/Textures/maki/square-stroked.png +0 -0
  199. package/template/public/Cesium1.119/Assets/Textures/maki/square.png +0 -0
  200. package/template/public/Cesium1.119/Assets/Textures/maki/star-stroked.png +0 -0
  201. package/template/public/Cesium1.119/Assets/Textures/maki/star.png +0 -0
  202. package/template/public/Cesium1.119/Assets/Textures/maki/suitcase.png +0 -0
  203. package/template/public/Cesium1.119/Assets/Textures/maki/swimming.png +0 -0
  204. package/template/public/Cesium1.119/Assets/Textures/maki/telephone.png +0 -0
  205. package/template/public/Cesium1.119/Assets/Textures/maki/tennis.png +0 -0
  206. package/template/public/Cesium1.119/Assets/Textures/maki/theatre.png +0 -0
  207. package/template/public/Cesium1.119/Assets/Textures/maki/toilets.png +0 -0
  208. package/template/public/Cesium1.119/Assets/Textures/maki/town-hall.png +0 -0
  209. package/template/public/Cesium1.119/Assets/Textures/maki/town.png +0 -0
  210. package/template/public/Cesium1.119/Assets/Textures/maki/triangle-stroked.png +0 -0
  211. package/template/public/Cesium1.119/Assets/Textures/maki/triangle.png +0 -0
  212. package/template/public/Cesium1.119/Assets/Textures/maki/village.png +0 -0
  213. package/template/public/Cesium1.119/Assets/Textures/maki/warehouse.png +0 -0
  214. package/template/public/Cesium1.119/Assets/Textures/maki/waste-basket.png +0 -0
  215. package/template/public/Cesium1.119/Assets/Textures/maki/water.png +0 -0
  216. package/template/public/Cesium1.119/Assets/Textures/maki/wetland.png +0 -0
  217. package/template/public/Cesium1.119/Assets/Textures/maki/zoo.png +0 -0
  218. package/template/public/Cesium1.119/Assets/Textures/moonSmall.jpg +0 -0
  219. package/template/public/Cesium1.119/Assets/Textures/pin.svg +1 -0
  220. package/template/public/Cesium1.119/Assets/Textures/waterNormals.jpg +0 -0
  221. package/template/public/Cesium1.119/Assets/Textures/waterNormalsSmall.jpg +0 -0
  222. package/template/public/Cesium1.119/Assets/approximateTerrainHeights.json +10924 -0
  223. package/template/public/Cesium1.119/Cesium.js +185772 -0
  224. package/template/public/Cesium1.119/ThirdParty/Workers/package.json +3 -0
  225. package/template/public/Cesium1.119/ThirdParty/Workers/pako_deflate.min.js +1681 -0
  226. package/template/public/Cesium1.119/ThirdParty/Workers/pako_inflate.min.js +1489 -0
  227. package/template/public/Cesium1.119/ThirdParty/Workers/z-worker-pako.js +1070 -0
  228. package/template/public/Cesium1.119/ThirdParty/basis_transcoder.wasm +0 -0
  229. package/template/public/Cesium1.119/ThirdParty/draco_decoder.wasm +0 -0
  230. package/template/public/Cesium1.119/ThirdParty/google-earth-dbroot-parser.js +11424 -0
  231. package/template/public/Cesium1.119/Widgets/Animation/Animation.css +127 -0
  232. package/template/public/Cesium1.119/Widgets/Animation/lighter.css +78 -0
  233. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/BaseLayerPicker.css +112 -0
  234. package/template/public/Cesium1.119/Widgets/BaseLayerPicker/lighter.css +28 -0
  235. package/template/public/Cesium1.119/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +104 -0
  236. package/template/public/Cesium1.119/Widgets/CesiumInspector/CesiumInspector.css +115 -0
  237. package/template/public/Cesium1.119/Widgets/CesiumWidget/CesiumWidget.css +119 -0
  238. package/template/public/Cesium1.119/Widgets/CesiumWidget/lighter.css +14 -0
  239. package/template/public/Cesium1.119/Widgets/FullscreenButton/FullscreenButton.css +8 -0
  240. package/template/public/Cesium1.119/Widgets/Geocoder/Geocoder.css +72 -0
  241. package/template/public/Cesium1.119/Widgets/Geocoder/lighter.css +17 -0
  242. package/template/public/Cesium1.119/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
  243. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
  244. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
  245. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
  246. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
  247. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
  248. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
  249. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
  250. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
  251. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
  252. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
  253. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
  254. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
  255. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
  256. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
  257. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
  258. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
  259. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
  260. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
  261. package/template/public/Cesium1.119/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
  262. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
  263. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
  264. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
  265. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
  266. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/Touch.svg +120 -0
  267. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
  268. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
  269. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
  270. package/template/public/Cesium1.119/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
  271. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
  272. package/template/public/Cesium1.119/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
  273. package/template/public/Cesium1.119/Widgets/Images/TimelineIcons.png +0 -0
  274. package/template/public/Cesium1.119/Widgets/Images/info-loading.gif +0 -0
  275. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBox.css +94 -0
  276. package/template/public/Cesium1.119/Widgets/InfoBox/InfoBoxDescription.css +178 -0
  277. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/NavigationHelpButton.css +95 -0
  278. package/template/public/Cesium1.119/Widgets/NavigationHelpButton/lighter.css +38 -0
  279. package/template/public/Cesium1.119/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
  280. package/template/public/Cesium1.119/Widgets/ProjectionPicker/ProjectionPicker.css +46 -0
  281. package/template/public/Cesium1.119/Widgets/SceneModePicker/SceneModePicker.css +72 -0
  282. package/template/public/Cesium1.119/Widgets/SelectionIndicator/SelectionIndicator.css +22 -0
  283. package/template/public/Cesium1.119/Widgets/Timeline/Timeline.css +103 -0
  284. package/template/public/Cesium1.119/Widgets/Timeline/lighter.css +18 -0
  285. package/template/public/Cesium1.119/Widgets/VRButton/VRButton.css +8 -0
  286. package/template/public/Cesium1.119/Widgets/Viewer/Viewer.css +107 -0
  287. package/template/public/Cesium1.119/Widgets/VoxelInspector/VoxelInspector.css +18 -0
  288. package/template/public/Cesium1.119/Widgets/lighter.css +246 -0
  289. package/template/public/Cesium1.119/Widgets/lighterShared.css +46 -0
  290. package/template/public/Cesium1.119/Widgets/shared.css +103 -0
  291. package/template/public/Cesium1.119/Widgets/widgets.css +1376 -0
  292. package/template/public/Cesium1.119/Workers/chunk-3C7WC463.js +611 -0
  293. package/template/public/Cesium1.119/Workers/chunk-3JW36LZF.js +166 -0
  294. package/template/public/Cesium1.119/Workers/chunk-4BTGX3WJ.js +264 -0
  295. package/template/public/Cesium1.119/Workers/chunk-4WRMLZA7.js +128 -0
  296. package/template/public/Cesium1.119/Workers/chunk-7Z5IIKOJ.js +8046 -0
  297. package/template/public/Cesium1.119/Workers/chunk-ABGXSJNX.js +341 -0
  298. package/template/public/Cesium1.119/Workers/chunk-AMQUWUD4.js +269 -0
  299. package/template/public/Cesium1.119/Workers/chunk-ATPDRNKI.js +28 -0
  300. package/template/public/Cesium1.119/Workers/chunk-BMHPVZ4H.js +199 -0
  301. package/template/public/Cesium1.119/Workers/chunk-CBEO3SHS.js +1102 -0
  302. package/template/public/Cesium1.119/Workers/chunk-CV7DLCWG.js +485 -0
  303. package/template/public/Cesium1.119/Workers/chunk-DQO6B4EQ.js +76 -0
  304. package/template/public/Cesium1.119/Workers/chunk-ED3TLP6D.js +91 -0
  305. package/template/public/Cesium1.119/Workers/chunk-EFZKO5RU.js +42 -0
  306. package/template/public/Cesium1.119/Workers/chunk-F5IHREXR.js +2678 -0
  307. package/template/public/Cesium1.119/Workers/chunk-FKRG4HDY.js +516 -0
  308. package/template/public/Cesium1.119/Workers/chunk-FYOYUPXG.js +399 -0
  309. package/template/public/Cesium1.119/Workers/chunk-GFN7NNSJ.js +65 -0
  310. package/template/public/Cesium1.119/Workers/chunk-HEEMUCG6.js +92 -0
  311. package/template/public/Cesium1.119/Workers/chunk-HSWA4OEL.js +672 -0
  312. package/template/public/Cesium1.119/Workers/chunk-IAC5XVZV.js +287 -0
  313. package/template/public/Cesium1.119/Workers/chunk-II4VNKYR.js +50 -0
  314. package/template/public/Cesium1.119/Workers/chunk-ILGBPNP6.js +28 -0
  315. package/template/public/Cesium1.119/Workers/chunk-IRH46BDL.js +124 -0
  316. package/template/public/Cesium1.119/Workers/chunk-IUA6FAOZ.js +31 -0
  317. package/template/public/Cesium1.119/Workers/chunk-K4ASOM65.js +331 -0
  318. package/template/public/Cesium1.119/Workers/chunk-KCIZBVXL.js +258 -0
  319. package/template/public/Cesium1.119/Workers/chunk-KF5NF354.js +162 -0
  320. package/template/public/Cesium1.119/Workers/chunk-KRKI6AAO.js +773 -0
  321. package/template/public/Cesium1.119/Workers/chunk-KZNJOCYU.js +162 -0
  322. package/template/public/Cesium1.119/Workers/chunk-O5IJ3OGP.js +857 -0
  323. package/template/public/Cesium1.119/Workers/chunk-OO23RBLX.js +183 -0
  324. package/template/public/Cesium1.119/Workers/chunk-P37AI2DW.js +85 -0
  325. package/template/public/Cesium1.119/Workers/chunk-PDMQLSBL.js +108 -0
  326. package/template/public/Cesium1.119/Workers/chunk-PEYJTJPE.js +73 -0
  327. package/template/public/Cesium1.119/Workers/chunk-POASMU2N.js +2372 -0
  328. package/template/public/Cesium1.119/Workers/chunk-PXCJYT2S.js +73 -0
  329. package/template/public/Cesium1.119/Workers/chunk-Q6L7X3LP.js +538 -0
  330. package/template/public/Cesium1.119/Workers/chunk-QB3MDM4J.js +1670 -0
  331. package/template/public/Cesium1.119/Workers/chunk-R6KGAEF6.js +392 -0
  332. package/template/public/Cesium1.119/Workers/chunk-RXTBM4OI.js +57 -0
  333. package/template/public/Cesium1.119/Workers/chunk-SB224QGV.js +72 -0
  334. package/template/public/Cesium1.119/Workers/chunk-T6BE4RZK.js +37 -0
  335. package/template/public/Cesium1.119/Workers/chunk-TAMCUKAR.js +814 -0
  336. package/template/public/Cesium1.119/Workers/chunk-TMSETF7M.js +579 -0
  337. package/template/public/Cesium1.119/Workers/chunk-TOGHF3VN.js +376 -0
  338. package/template/public/Cesium1.119/Workers/chunk-UH2WFNTA.js +111 -0
  339. package/template/public/Cesium1.119/Workers/chunk-V7JEDBOE.js +573 -0
  340. package/template/public/Cesium1.119/Workers/chunk-VBIROZR5.js +633 -0
  341. package/template/public/Cesium1.119/Workers/chunk-W23CU777.js +271 -0
  342. package/template/public/Cesium1.119/Workers/chunk-X5IHHI6X.js +173 -0
  343. package/template/public/Cesium1.119/Workers/chunk-XHX2UPDO.js +217 -0
  344. package/template/public/Cesium1.119/Workers/combineGeometry.js +53 -0
  345. package/template/public/Cesium1.119/Workers/createBoxGeometry.js +45 -0
  346. package/template/public/Cesium1.119/Workers/createBoxOutlineGeometry.js +189 -0
  347. package/template/public/Cesium1.119/Workers/createCircleGeometry.js +148 -0
  348. package/template/public/Cesium1.119/Workers/createCircleOutlineGeometry.js +105 -0
  349. package/template/public/Cesium1.119/Workers/createCoplanarPolygonGeometry.js +293 -0
  350. package/template/public/Cesium1.119/Workers/createCoplanarPolygonOutlineGeometry.js +143 -0
  351. package/template/public/Cesium1.119/Workers/createCorridorGeometry.js +830 -0
  352. package/template/public/Cesium1.119/Workers/createCorridorOutlineGeometry.js +417 -0
  353. package/template/public/Cesium1.119/Workers/createCylinderGeometry.js +47 -0
  354. package/template/public/Cesium1.119/Workers/createCylinderOutlineGeometry.js +170 -0
  355. package/template/public/Cesium1.119/Workers/createEllipseGeometry.js +58 -0
  356. package/template/public/Cesium1.119/Workers/createEllipseOutlineGeometry.js +51 -0
  357. package/template/public/Cesium1.119/Workers/createEllipsoidGeometry.js +46 -0
  358. package/template/public/Cesium1.119/Workers/createEllipsoidOutlineGeometry.js +45 -0
  359. package/template/public/Cesium1.119/Workers/createFrustumGeometry.js +45 -0
  360. package/template/public/Cesium1.119/Workers/createFrustumOutlineGeometry.js +164 -0
  361. package/template/public/Cesium1.119/Workers/createGeometry.js +159 -0
  362. package/template/public/Cesium1.119/Workers/createGroundPolylineGeometry.js +911 -0
  363. package/template/public/Cesium1.119/Workers/createPlaneGeometry.js +185 -0
  364. package/template/public/Cesium1.119/Workers/createPlaneOutlineGeometry.js +93 -0
  365. package/template/public/Cesium1.119/Workers/createPolygonGeometry.js +884 -0
  366. package/template/public/Cesium1.119/Workers/createPolygonOutlineGeometry.js +359 -0
  367. package/template/public/Cesium1.119/Workers/createPolylineGeometry.js +349 -0
  368. package/template/public/Cesium1.119/Workers/createPolylineVolumeGeometry.js +262 -0
  369. package/template/public/Cesium1.119/Workers/createPolylineVolumeOutlineGeometry.js +177 -0
  370. package/template/public/Cesium1.119/Workers/createRectangleGeometry.js +787 -0
  371. package/template/public/Cesium1.119/Workers/createRectangleOutlineGeometry.js +299 -0
  372. package/template/public/Cesium1.119/Workers/createSimplePolylineGeometry.js +294 -0
  373. package/template/public/Cesium1.119/Workers/createSphereGeometry.js +84 -0
  374. package/template/public/Cesium1.119/Workers/createSphereOutlineGeometry.js +83 -0
  375. package/template/public/Cesium1.119/Workers/createTaskProcessorWorker.js +28 -0
  376. package/template/public/Cesium1.119/Workers/createVectorTileClampedPolylines.js +289 -0
  377. package/template/public/Cesium1.119/Workers/createVectorTileGeometries.js +258 -0
  378. package/template/public/Cesium1.119/Workers/createVectorTilePoints.js +79 -0
  379. package/template/public/Cesium1.119/Workers/createVectorTilePolygons.js +275 -0
  380. package/template/public/Cesium1.119/Workers/createVectorTilePolylines.js +176 -0
  381. package/template/public/Cesium1.119/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +375 -0
  382. package/template/public/Cesium1.119/Workers/createVerticesFromHeightmap.js +1772 -0
  383. package/template/public/Cesium1.119/Workers/createVerticesFromQuantizedTerrainMesh.js +425 -0
  384. package/template/public/Cesium1.119/Workers/createWallGeometry.js +320 -0
  385. package/template/public/Cesium1.119/Workers/createWallOutlineGeometry.js +229 -0
  386. package/template/public/Cesium1.119/Workers/decodeDraco.js +227 -0
  387. package/template/public/Cesium1.119/Workers/decodeGoogleEarthEnterprisePacket.js +1836 -0
  388. package/template/public/Cesium1.119/Workers/decodeI3S.js +924 -0
  389. package/template/public/Cesium1.119/Workers/transcodeKTX2.js +3180 -0
  390. package/template/public/Cesium1.119/Workers/transferTypedArrayTest.js +34 -0
  391. package/template/public/Cesium1.119/Workers/upsampleQuantizedTerrainMesh.js +534 -0
  392. package/template/public/Cesium1.119/index.cjs +185632 -0
  393. package/template/public/Cesium1.119/index.js +182874 -0
  394. package/template/public/vite.svg +1 -0
  395. package/template/scripts/gen-api.cjs +178 -0
  396. package/template/src/App.vue +6 -0
  397. package/template/src/api/README.md +3 -0
  398. package/template/src/assets/favicon.svg +49 -0
  399. package/template/src/components/Body/index.vue +16 -0
  400. package/template/src/components/Header/index.vue +8 -0
  401. package/template/src/directive/focus.ts +9 -0
  402. package/template/src/layout/BasicLayout.vue +28 -0
  403. package/template/src/main.ts +33 -0
  404. package/template/src/router/index.ts +24 -0
  405. package/template/src/stores/README.md +3 -0
  406. package/template/src/stores/useCounter.ts +12 -0
  407. package/template/src/styles/alerts.less +85 -0
  408. package/template/src/styles/global.css +326 -0
  409. package/template/src/utils/alert.ts +58 -0
  410. package/template/src/utils/components.ts +21 -0
  411. package/template/src/utils/composables/useAlert.ts +14 -0
  412. package/template/src/views/Test/index.vue +23 -0
  413. package/template/src/views/index.vue +9 -0
  414. package/template/src/vite-env.d.ts +1 -0
  415. package/template/swdg/bin/index.js +23 -0
  416. package/template/swdg/package.json +27 -0
  417. package/template/tests/README.md +6 -0
  418. package/template/tests/e2e/README.md +3 -0
  419. package/template/tests/setup.ts +1 -0
  420. package/template/tests/unit/example.test.ts +7 -0
  421. package/template/tests/utils/helpers.ts +1 -0
  422. package/template/tsconfig.json +51 -0
  423. package/template/tsconfig.node.json +11 -0
  424. package/template/types/README.md +3 -0
  425. package/template/types/global.d.ts +9 -0
  426. package/template/vite.config.ts +75 -0
  427. package/template/vitest.config.ts +9 -0
@@ -0,0 +1,1772 @@
1
+ /**
2
+ * @license
3
+ * Cesium - https://github.com/CesiumGS/cesium
4
+ * Version 1.119
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, b as fr } from "./chunk-CV7DLCWG.js";
27
+ import { a as tr } from "./chunk-PXCJYT2S.js";
28
+ import { a as Ue } from "./chunk-SB224QGV.js";
29
+ import { a as ar } from "./chunk-Q6L7X3LP.js";
30
+ import "./chunk-ABGXSJNX.js";
31
+ import "./chunk-KF5NF354.js";
32
+ import { a as nr } from "./chunk-4WRMLZA7.js";
33
+ import "./chunk-TAMCUKAR.js";
34
+ import "./chunk-PDMQLSBL.js";
35
+ import { d as ir } from "./chunk-TMSETF7M.js";
36
+ import { b as xe, g as rr, h as ae } from "./chunk-7Z5IIKOJ.js";
37
+ import "./chunk-KZNJOCYU.js";
38
+ import { a as ie, c as er, d as Ie } from "./chunk-POASMU2N.js";
39
+ import { a as ge } from "./chunk-R6KGAEF6.js";
40
+ import "./chunk-3C7WC463.js";
41
+ import { a as He } from "./chunk-II4VNKYR.js";
42
+ import { a as Y } from "./chunk-IUA6FAOZ.js";
43
+ import { a as he } from "./chunk-UH2WFNTA.js";
44
+ import { c as Ir, d as xr, e as G } from "./chunk-PEYJTJPE.js";
45
+ var ur = Ir((qr, Te) => {
46
+ /* 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 () {
47
+ var D = (function () {
48
+ var A = {};
49
+ ((A.defaultNoDataValue = -34027999387901484e22),
50
+ (A.decode = function (r, a) {
51
+ a = a || {};
52
+ var t = a.encodedMaskData || a.encodedMaskData === null,
53
+ i = n(r, a.inputOffset || 0, t),
54
+ o = a.noDataValue !== null ? a.noDataValue : A.defaultNoDataValue,
55
+ s = V(
56
+ i,
57
+ a.pixelType || Float32Array,
58
+ a.encodedMaskData,
59
+ o,
60
+ a.returnMask,
61
+ ),
62
+ u = {
63
+ width: i.width,
64
+ height: i.height,
65
+ pixelData: s.resultPixels,
66
+ minValue: s.minValue,
67
+ maxValue: i.pixels.maxValue,
68
+ noDataValue: o,
69
+ };
70
+ return (
71
+ s.resultMask && (u.maskData = s.resultMask),
72
+ a.returnEncodedMask &&
73
+ i.mask &&
74
+ (u.encodedMaskData = i.mask.bitset ? i.mask.bitset : null),
75
+ a.returnFileInfo &&
76
+ ((u.fileInfo = b(i)),
77
+ a.computeUsedBitDepths && (u.fileInfo.bitDepths = X(i))),
78
+ u
79
+ );
80
+ }));
81
+ var V = function (r, a, t, i, o) {
82
+ var s = 0,
83
+ u = r.pixels.numBlocksX,
84
+ m = r.pixels.numBlocksY,
85
+ l = Math.floor(r.width / u),
86
+ f = Math.floor(r.height / m),
87
+ h = 2 * r.maxZError,
88
+ c = Number.MAX_VALUE,
89
+ g;
90
+ t = t || (r.mask ? r.mask.bitset : null);
91
+ var v, U;
92
+ ((v = new a(r.width * r.height)),
93
+ o && t && (U = new Uint8Array(r.width * r.height)));
94
+ for (var M = new Float32Array(l * f), S, I, k = 0; k <= m; k++) {
95
+ var w = k !== m ? f : r.height % m;
96
+ if (w !== 0)
97
+ for (var d = 0; d <= u; d++) {
98
+ var x = d !== u ? l : r.width % u;
99
+ if (x !== 0) {
100
+ var T = k * r.width * f + d * l,
101
+ y = r.width - x,
102
+ p = r.pixels.blocks[s],
103
+ L,
104
+ B,
105
+ E;
106
+ p.encoding < 2
107
+ ? (p.encoding === 0
108
+ ? (L = p.rawData)
109
+ : (e(
110
+ p.stuffedData,
111
+ p.bitsPerPixel,
112
+ p.numValidPixels,
113
+ p.offset,
114
+ h,
115
+ M,
116
+ r.pixels.maxValue,
117
+ ),
118
+ (L = M)),
119
+ (B = 0))
120
+ : p.encoding === 2
121
+ ? (E = 0)
122
+ : (E = p.offset);
123
+ var O;
124
+ if (t)
125
+ for (I = 0; I < w; I++) {
126
+ for (
127
+ T & 7 && ((O = t[T >> 3]), (O <<= T & 7)), S = 0;
128
+ S < x;
129
+ S++
130
+ )
131
+ (T & 7 || (O = t[T >> 3]),
132
+ O & 128
133
+ ? (U && (U[T] = 1),
134
+ (g = p.encoding < 2 ? L[B++] : E),
135
+ (c = c > g ? g : c),
136
+ (v[T++] = g))
137
+ : (U && (U[T] = 0), (v[T++] = i)),
138
+ (O <<= 1));
139
+ T += y;
140
+ }
141
+ else if (p.encoding < 2)
142
+ for (I = 0; I < w; I++) {
143
+ for (S = 0; S < x; S++)
144
+ ((g = L[B++]), (c = c > g ? g : c), (v[T++] = g));
145
+ T += y;
146
+ }
147
+ else
148
+ for (c = c > E ? E : c, I = 0; I < w; I++) {
149
+ for (S = 0; S < x; S++) v[T++] = E;
150
+ T += y;
151
+ }
152
+ if (p.encoding === 1 && B !== p.numValidPixels)
153
+ throw "Block and Mask do not match";
154
+ s++;
155
+ }
156
+ }
157
+ }
158
+ return { resultPixels: v, resultMask: U, minValue: c };
159
+ },
160
+ b = function (r) {
161
+ return {
162
+ fileIdentifierString: r.fileIdentifierString,
163
+ fileVersion: r.fileVersion,
164
+ imageType: r.imageType,
165
+ height: r.height,
166
+ width: r.width,
167
+ maxZError: r.maxZError,
168
+ eofOffset: r.eofOffset,
169
+ mask: r.mask
170
+ ? {
171
+ numBlocksX: r.mask.numBlocksX,
172
+ numBlocksY: r.mask.numBlocksY,
173
+ numBytes: r.mask.numBytes,
174
+ maxValue: r.mask.maxValue,
175
+ }
176
+ : null,
177
+ pixels: {
178
+ numBlocksX: r.pixels.numBlocksX,
179
+ numBlocksY: r.pixels.numBlocksY,
180
+ numBytes: r.pixels.numBytes,
181
+ maxValue: r.pixels.maxValue,
182
+ noDataValue: r.noDataValue,
183
+ },
184
+ };
185
+ },
186
+ X = function (r) {
187
+ for (
188
+ var a = r.pixels.numBlocksX * r.pixels.numBlocksY, t = {}, i = 0;
189
+ i < a;
190
+ i++
191
+ ) {
192
+ var o = r.pixels.blocks[i];
193
+ o.encoding === 0
194
+ ? (t.float32 = !0)
195
+ : o.encoding === 1
196
+ ? (t[o.bitsPerPixel] = !0)
197
+ : (t[0] = !0);
198
+ }
199
+ return Object.keys(t);
200
+ },
201
+ n = function (r, a, t) {
202
+ var i = {},
203
+ o = new Uint8Array(r, a, 10);
204
+ if (
205
+ ((i.fileIdentifierString = String.fromCharCode.apply(null, o)),
206
+ i.fileIdentifierString.trim() !== "CntZImage")
207
+ )
208
+ throw (
209
+ "Unexpected file identifier string: " + i.fileIdentifierString
210
+ );
211
+ a += 10;
212
+ var s = new DataView(r, a, 24);
213
+ if (
214
+ ((i.fileVersion = s.getInt32(0, !0)),
215
+ (i.imageType = s.getInt32(4, !0)),
216
+ (i.height = s.getUint32(8, !0)),
217
+ (i.width = s.getUint32(12, !0)),
218
+ (i.maxZError = s.getFloat64(16, !0)),
219
+ (a += 24),
220
+ !t)
221
+ )
222
+ if (
223
+ ((s = new DataView(r, a, 16)),
224
+ (i.mask = {}),
225
+ (i.mask.numBlocksY = s.getUint32(0, !0)),
226
+ (i.mask.numBlocksX = s.getUint32(4, !0)),
227
+ (i.mask.numBytes = s.getUint32(8, !0)),
228
+ (i.mask.maxValue = s.getFloat32(12, !0)),
229
+ (a += 16),
230
+ i.mask.numBytes > 0)
231
+ ) {
232
+ var u = new Uint8Array(Math.ceil((i.width * i.height) / 8));
233
+ s = new DataView(r, a, i.mask.numBytes);
234
+ var m = s.getInt16(0, !0),
235
+ l = 2,
236
+ f = 0;
237
+ do {
238
+ if (m > 0) for (; m--; ) u[f++] = s.getUint8(l++);
239
+ else {
240
+ var h = s.getUint8(l++);
241
+ for (m = -m; m--; ) u[f++] = h;
242
+ }
243
+ ((m = s.getInt16(l, !0)), (l += 2));
244
+ } while (l < i.mask.numBytes);
245
+ if (m !== -32768 || f < u.length)
246
+ throw "Unexpected end of mask RLE encoding";
247
+ ((i.mask.bitset = u), (a += i.mask.numBytes));
248
+ } else
249
+ i.mask.numBytes | i.mask.numBlocksY | i.mask.maxValue ||
250
+ (i.mask.bitset = new Uint8Array(
251
+ Math.ceil((i.width * i.height) / 8),
252
+ ));
253
+ ((s = new DataView(r, a, 16)),
254
+ (i.pixels = {}),
255
+ (i.pixels.numBlocksY = s.getUint32(0, !0)),
256
+ (i.pixels.numBlocksX = s.getUint32(4, !0)),
257
+ (i.pixels.numBytes = s.getUint32(8, !0)),
258
+ (i.pixels.maxValue = s.getFloat32(12, !0)),
259
+ (a += 16));
260
+ var c = i.pixels.numBlocksX,
261
+ g = i.pixels.numBlocksY,
262
+ v = c + (i.width % c > 0 ? 1 : 0),
263
+ U = g + (i.height % g > 0 ? 1 : 0);
264
+ i.pixels.blocks = new Array(v * U);
265
+ for (var M = 0, S = 0; S < U; S++)
266
+ for (var I = 0; I < v; I++) {
267
+ var k = 0,
268
+ w = r.byteLength - a;
269
+ s = new DataView(r, a, Math.min(10, w));
270
+ var d = {};
271
+ i.pixels.blocks[M++] = d;
272
+ var x = s.getUint8(0);
273
+ if ((k++, (d.encoding = x & 63), d.encoding > 3))
274
+ throw "Invalid block encoding (" + d.encoding + ")";
275
+ if (d.encoding === 2) {
276
+ a++;
277
+ continue;
278
+ }
279
+ if (x !== 0 && x !== 2) {
280
+ if (((x >>= 6), (d.offsetType = x), x === 2))
281
+ ((d.offset = s.getInt8(1)), k++);
282
+ else if (x === 1) ((d.offset = s.getInt16(1, !0)), (k += 2));
283
+ else if (x === 0)
284
+ ((d.offset = s.getFloat32(1, !0)), (k += 4));
285
+ else throw "Invalid block offset type";
286
+ if (d.encoding === 1)
287
+ if (
288
+ ((x = s.getUint8(k)),
289
+ k++,
290
+ (d.bitsPerPixel = x & 63),
291
+ (x >>= 6),
292
+ (d.numValidPixelsType = x),
293
+ x === 2)
294
+ )
295
+ ((d.numValidPixels = s.getUint8(k)), k++);
296
+ else if (x === 1)
297
+ ((d.numValidPixels = s.getUint16(k, !0)), (k += 2));
298
+ else if (x === 0)
299
+ ((d.numValidPixels = s.getUint32(k, !0)), (k += 4));
300
+ else throw "Invalid valid pixel count type";
301
+ }
302
+ if (((a += k), d.encoding !== 3)) {
303
+ var T, y;
304
+ if (d.encoding === 0) {
305
+ var p = (i.pixels.numBytes - 1) / 4;
306
+ if (p !== Math.floor(p))
307
+ throw "uncompressed block has invalid length";
308
+ ((T = new ArrayBuffer(p * 4)),
309
+ (y = new Uint8Array(T)),
310
+ y.set(new Uint8Array(r, a, p * 4)));
311
+ var L = new Float32Array(T);
312
+ ((d.rawData = L), (a += p * 4));
313
+ } else if (d.encoding === 1) {
314
+ var B = Math.ceil((d.numValidPixels * d.bitsPerPixel) / 8),
315
+ E = Math.ceil(B / 4);
316
+ ((T = new ArrayBuffer(E * 4)),
317
+ (y = new Uint8Array(T)),
318
+ y.set(new Uint8Array(r, a, B)),
319
+ (d.stuffedData = new Uint32Array(T)),
320
+ (a += B));
321
+ }
322
+ }
323
+ }
324
+ return ((i.eofOffset = a), i);
325
+ },
326
+ e = function (r, a, t, i, o, s, u) {
327
+ var m = (1 << a) - 1,
328
+ l = 0,
329
+ f,
330
+ h = 0,
331
+ c,
332
+ g,
333
+ v = Math.ceil((u - i) / o),
334
+ U = r.length * 4 - Math.ceil((a * t) / 8);
335
+ for (r[r.length - 1] <<= 8 * U, f = 0; f < t; f++) {
336
+ if ((h === 0 && ((g = r[l++]), (h = 32)), h >= a))
337
+ ((c = (g >>> (h - a)) & m), (h -= a));
338
+ else {
339
+ var M = a - h;
340
+ ((c = ((g & m) << M) & m),
341
+ (g = r[l++]),
342
+ (h = 32 - M),
343
+ (c += g >>> h));
344
+ }
345
+ s[f] = c < v ? i + c * o : u;
346
+ }
347
+ return s;
348
+ };
349
+ return A;
350
+ })(),
351
+ se = (function () {
352
+ "use strict";
353
+ var A = {
354
+ unstuff: function (n, e, r, a, t, i, o, s) {
355
+ var u = (1 << r) - 1,
356
+ m = 0,
357
+ l,
358
+ f = 0,
359
+ h,
360
+ c,
361
+ g,
362
+ v,
363
+ U = n.length * 4 - Math.ceil((r * a) / 8);
364
+ if (((n[n.length - 1] <<= 8 * U), t))
365
+ for (l = 0; l < a; l++)
366
+ (f === 0 && ((c = n[m++]), (f = 32)),
367
+ f >= r
368
+ ? ((h = (c >>> (f - r)) & u), (f -= r))
369
+ : ((g = r - f),
370
+ (h = ((c & u) << g) & u),
371
+ (c = n[m++]),
372
+ (f = 32 - g),
373
+ (h += c >>> f)),
374
+ (e[l] = t[h]));
375
+ else
376
+ for (v = Math.ceil((s - i) / o), l = 0; l < a; l++)
377
+ (f === 0 && ((c = n[m++]), (f = 32)),
378
+ f >= r
379
+ ? ((h = (c >>> (f - r)) & u), (f -= r))
380
+ : ((g = r - f),
381
+ (h = ((c & u) << g) & u),
382
+ (c = n[m++]),
383
+ (f = 32 - g),
384
+ (h += c >>> f)),
385
+ (e[l] = h < v ? i + h * o : s));
386
+ },
387
+ unstuffLUT: function (n, e, r, a, t, i) {
388
+ var o = (1 << e) - 1,
389
+ s = 0,
390
+ u = 0,
391
+ m = 0,
392
+ l = 0,
393
+ f = 0,
394
+ h,
395
+ c = [],
396
+ g = n.length * 4 - Math.ceil((e * r) / 8);
397
+ n[n.length - 1] <<= 8 * g;
398
+ var v = Math.ceil((i - a) / t);
399
+ for (u = 0; u < r; u++)
400
+ (l === 0 && ((h = n[s++]), (l = 32)),
401
+ l >= e
402
+ ? ((f = (h >>> (l - e)) & o), (l -= e))
403
+ : ((m = e - l),
404
+ (f = ((h & o) << m) & o),
405
+ (h = n[s++]),
406
+ (l = 32 - m),
407
+ (f += h >>> l)),
408
+ (c[u] = f < v ? a + f * t : i));
409
+ return (c.unshift(a), c);
410
+ },
411
+ unstuff2: function (n, e, r, a, t, i, o, s) {
412
+ var u = (1 << r) - 1,
413
+ m = 0,
414
+ l,
415
+ f = 0,
416
+ h = 0,
417
+ c,
418
+ g,
419
+ v;
420
+ if (t)
421
+ for (l = 0; l < a; l++)
422
+ (f === 0 && ((g = n[m++]), (f = 32), (h = 0)),
423
+ f >= r
424
+ ? ((c = (g >>> h) & u), (f -= r), (h += r))
425
+ : ((v = r - f),
426
+ (c = (g >>> h) & u),
427
+ (g = n[m++]),
428
+ (f = 32 - v),
429
+ (c |= (g & ((1 << v) - 1)) << (r - v)),
430
+ (h = v)),
431
+ (e[l] = t[c]));
432
+ else {
433
+ var U = Math.ceil((s - i) / o);
434
+ for (l = 0; l < a; l++)
435
+ (f === 0 && ((g = n[m++]), (f = 32), (h = 0)),
436
+ f >= r
437
+ ? ((c = (g >>> h) & u), (f -= r), (h += r))
438
+ : ((v = r - f),
439
+ (c = (g >>> h) & u),
440
+ (g = n[m++]),
441
+ (f = 32 - v),
442
+ (c |= (g & ((1 << v) - 1)) << (r - v)),
443
+ (h = v)),
444
+ (e[l] = c < U ? i + c * o : s));
445
+ }
446
+ return e;
447
+ },
448
+ unstuffLUT2: function (n, e, r, a, t, i) {
449
+ var o = (1 << e) - 1,
450
+ s = 0,
451
+ u = 0,
452
+ m = 0,
453
+ l = 0,
454
+ f = 0,
455
+ h = 0,
456
+ c,
457
+ g = [],
458
+ v = Math.ceil((i - a) / t);
459
+ for (u = 0; u < r; u++)
460
+ (l === 0 && ((c = n[s++]), (l = 32), (h = 0)),
461
+ l >= e
462
+ ? ((f = (c >>> h) & o), (l -= e), (h += e))
463
+ : ((m = e - l),
464
+ (f = (c >>> h) & o),
465
+ (c = n[s++]),
466
+ (l = 32 - m),
467
+ (f |= (c & ((1 << m) - 1)) << (e - m)),
468
+ (h = m)),
469
+ (g[u] = f < v ? a + f * t : i));
470
+ return (g.unshift(a), g);
471
+ },
472
+ originalUnstuff: function (n, e, r, a) {
473
+ var t = (1 << r) - 1,
474
+ i = 0,
475
+ o,
476
+ s = 0,
477
+ u,
478
+ m,
479
+ l,
480
+ f = n.length * 4 - Math.ceil((r * a) / 8);
481
+ for (n[n.length - 1] <<= 8 * f, o = 0; o < a; o++)
482
+ (s === 0 && ((m = n[i++]), (s = 32)),
483
+ s >= r
484
+ ? ((u = (m >>> (s - r)) & t), (s -= r))
485
+ : ((l = r - s),
486
+ (u = ((m & t) << l) & t),
487
+ (m = n[i++]),
488
+ (s = 32 - l),
489
+ (u += m >>> s)),
490
+ (e[o] = u));
491
+ return e;
492
+ },
493
+ originalUnstuff2: function (n, e, r, a) {
494
+ var t = (1 << r) - 1,
495
+ i = 0,
496
+ o,
497
+ s = 0,
498
+ u = 0,
499
+ m,
500
+ l,
501
+ f;
502
+ for (o = 0; o < a; o++)
503
+ (s === 0 && ((l = n[i++]), (s = 32), (u = 0)),
504
+ s >= r
505
+ ? ((m = (l >>> u) & t), (s -= r), (u += r))
506
+ : ((f = r - s),
507
+ (m = (l >>> u) & t),
508
+ (l = n[i++]),
509
+ (s = 32 - f),
510
+ (m |= (l & ((1 << f) - 1)) << (r - f)),
511
+ (u = f)),
512
+ (e[o] = m));
513
+ return e;
514
+ },
515
+ },
516
+ V = {
517
+ HUFFMAN_LUT_BITS_MAX: 12,
518
+ computeChecksumFletcher32: function (n) {
519
+ for (
520
+ var e = 65535,
521
+ r = 65535,
522
+ a = n.length,
523
+ t = Math.floor(a / 2),
524
+ i = 0;
525
+ t;
526
+ ) {
527
+ var o = t >= 359 ? 359 : t;
528
+ t -= o;
529
+ do ((e += n[i++] << 8), (r += e += n[i++]));
530
+ while (--o);
531
+ ((e = (e & 65535) + (e >>> 16)),
532
+ (r = (r & 65535) + (r >>> 16)));
533
+ }
534
+ return (
535
+ a & 1 && (r += e += n[i] << 8),
536
+ (e = (e & 65535) + (e >>> 16)),
537
+ (r = (r & 65535) + (r >>> 16)),
538
+ ((r << 16) | e) >>> 0
539
+ );
540
+ },
541
+ readHeaderInfo: function (n, e) {
542
+ var r = e.ptr,
543
+ a = new Uint8Array(n, r, 6),
544
+ t = {};
545
+ if (
546
+ ((t.fileIdentifierString = String.fromCharCode.apply(null, a)),
547
+ t.fileIdentifierString.lastIndexOf("Lerc2", 0) !== 0)
548
+ )
549
+ throw (
550
+ "Unexpected file identifier string (expect Lerc2 ): " +
551
+ t.fileIdentifierString
552
+ );
553
+ r += 6;
554
+ var i = new DataView(n, r, 8),
555
+ o = i.getInt32(0, !0);
556
+ ((t.fileVersion = o),
557
+ (r += 4),
558
+ o >= 3 && ((t.checksum = i.getUint32(4, !0)), (r += 4)),
559
+ (i = new DataView(n, r, 12)),
560
+ (t.height = i.getUint32(0, !0)),
561
+ (t.width = i.getUint32(4, !0)),
562
+ (r += 8),
563
+ o >= 4
564
+ ? ((t.numDims = i.getUint32(8, !0)), (r += 4))
565
+ : (t.numDims = 1),
566
+ (i = new DataView(n, r, 40)),
567
+ (t.numValidPixel = i.getUint32(0, !0)),
568
+ (t.microBlockSize = i.getInt32(4, !0)),
569
+ (t.blobSize = i.getInt32(8, !0)),
570
+ (t.imageType = i.getInt32(12, !0)),
571
+ (t.maxZError = i.getFloat64(16, !0)),
572
+ (t.zMin = i.getFloat64(24, !0)),
573
+ (t.zMax = i.getFloat64(32, !0)),
574
+ (r += 40),
575
+ (e.headerInfo = t),
576
+ (e.ptr = r));
577
+ var s, u;
578
+ if (
579
+ o >= 3 &&
580
+ ((u = o >= 4 ? 52 : 48),
581
+ (s = this.computeChecksumFletcher32(
582
+ new Uint8Array(n, r - u, t.blobSize - 14),
583
+ )),
584
+ s !== t.checksum)
585
+ )
586
+ throw "Checksum failed.";
587
+ return !0;
588
+ },
589
+ checkMinMaxRanges: function (n, e) {
590
+ var r = e.headerInfo,
591
+ a = this.getDataTypeArray(r.imageType),
592
+ t = r.numDims * this.getDataTypeSize(r.imageType),
593
+ i = this.readSubArray(n, e.ptr, a, t),
594
+ o = this.readSubArray(n, e.ptr + t, a, t);
595
+ e.ptr += 2 * t;
596
+ var s,
597
+ u = !0;
598
+ for (s = 0; s < r.numDims; s++)
599
+ if (i[s] !== o[s]) {
600
+ u = !1;
601
+ break;
602
+ }
603
+ return ((r.minValues = i), (r.maxValues = o), u);
604
+ },
605
+ readSubArray: function (n, e, r, a) {
606
+ var t;
607
+ if (r === Uint8Array) t = new Uint8Array(n, e, a);
608
+ else {
609
+ var i = new ArrayBuffer(a),
610
+ o = new Uint8Array(i);
611
+ (o.set(new Uint8Array(n, e, a)), (t = new r(i)));
612
+ }
613
+ return t;
614
+ },
615
+ readMask: function (n, e) {
616
+ var r = e.ptr,
617
+ a = e.headerInfo,
618
+ t = a.width * a.height,
619
+ i = a.numValidPixel,
620
+ o = new DataView(n, r, 4),
621
+ s = {};
622
+ if (
623
+ ((s.numBytes = o.getUint32(0, !0)),
624
+ (r += 4),
625
+ (i === 0 || t === i) && s.numBytes !== 0)
626
+ )
627
+ throw "invalid mask";
628
+ var u, m;
629
+ if (i === 0)
630
+ ((u = new Uint8Array(Math.ceil(t / 8))),
631
+ (s.bitset = u),
632
+ (m = new Uint8Array(t)),
633
+ (e.pixels.resultMask = m),
634
+ (r += s.numBytes));
635
+ else if (s.numBytes > 0) {
636
+ ((u = new Uint8Array(Math.ceil(t / 8))),
637
+ (o = new DataView(n, r, s.numBytes)));
638
+ var l = o.getInt16(0, !0),
639
+ f = 2,
640
+ h = 0,
641
+ c = 0;
642
+ do {
643
+ if (l > 0) for (; l--; ) u[h++] = o.getUint8(f++);
644
+ else for (c = o.getUint8(f++), l = -l; l--; ) u[h++] = c;
645
+ ((l = o.getInt16(f, !0)), (f += 2));
646
+ } while (f < s.numBytes);
647
+ if (l !== -32768 || h < u.length)
648
+ throw "Unexpected end of mask RLE encoding";
649
+ m = new Uint8Array(t);
650
+ var g = 0,
651
+ v = 0;
652
+ for (v = 0; v < t; v++)
653
+ (v & 7 ? ((g = u[v >> 3]), (g <<= v & 7)) : (g = u[v >> 3]),
654
+ g & 128 && (m[v] = 1));
655
+ ((e.pixels.resultMask = m), (s.bitset = u), (r += s.numBytes));
656
+ }
657
+ return ((e.ptr = r), (e.mask = s), !0);
658
+ },
659
+ readDataOneSweep: function (n, e, r) {
660
+ var a = e.ptr,
661
+ t = e.headerInfo,
662
+ i = t.numDims,
663
+ o = t.width * t.height,
664
+ s = t.imageType,
665
+ u = t.numValidPixel * V.getDataTypeSize(s) * i,
666
+ m,
667
+ l = e.pixels.resultMask;
668
+ if (r === Uint8Array) m = new Uint8Array(n, a, u);
669
+ else {
670
+ var f = new ArrayBuffer(u),
671
+ h = new Uint8Array(f);
672
+ (h.set(new Uint8Array(n, a, u)), (m = new r(f)));
673
+ }
674
+ if (m.length === o * i) e.pixels.resultPixels = m;
675
+ else {
676
+ e.pixels.resultPixels = new r(o * i);
677
+ var c = 0,
678
+ g = 0,
679
+ v = 0,
680
+ U = 0;
681
+ if (i > 1)
682
+ for (v = 0; v < i; v++)
683
+ for (U = v * o, g = 0; g < o; g++)
684
+ l[g] && (e.pixels.resultPixels[U + g] = m[c++]);
685
+ else
686
+ for (g = 0; g < o; g++)
687
+ l[g] && (e.pixels.resultPixels[g] = m[c++]);
688
+ }
689
+ return ((a += u), (e.ptr = a), !0);
690
+ },
691
+ readHuffmanTree: function (n, e) {
692
+ var r = this.HUFFMAN_LUT_BITS_MAX,
693
+ a = new DataView(n, e.ptr, 16);
694
+ e.ptr += 16;
695
+ var t = a.getInt32(0, !0);
696
+ if (t < 2) throw "unsupported Huffman version";
697
+ var i = a.getInt32(4, !0),
698
+ o = a.getInt32(8, !0),
699
+ s = a.getInt32(12, !0);
700
+ if (o >= s) return !1;
701
+ var u = new Uint32Array(s - o);
702
+ V.decodeBits(n, e, u);
703
+ var m = [],
704
+ l,
705
+ f,
706
+ h,
707
+ c;
708
+ for (l = o; l < s; l++)
709
+ ((f = l - (l < i ? 0 : i)),
710
+ (m[f] = { first: u[l - o], second: null }));
711
+ var g = n.byteLength - e.ptr,
712
+ v = Math.ceil(g / 4),
713
+ U = new ArrayBuffer(v * 4),
714
+ M = new Uint8Array(U);
715
+ M.set(new Uint8Array(n, e.ptr, g));
716
+ var S = new Uint32Array(U),
717
+ I = 0,
718
+ k,
719
+ w = 0;
720
+ for (k = S[0], l = o; l < s; l++)
721
+ ((f = l - (l < i ? 0 : i)),
722
+ (c = m[f].first),
723
+ c > 0 &&
724
+ ((m[f].second = (k << I) >>> (32 - c)),
725
+ 32 - I >= c
726
+ ? ((I += c), I === 32 && ((I = 0), w++, (k = S[w])))
727
+ : ((I += c - 32),
728
+ w++,
729
+ (k = S[w]),
730
+ (m[f].second |= k >>> (32 - I)))));
731
+ var d = 0,
732
+ x = 0,
733
+ T = new b();
734
+ for (l = 0; l < m.length; l++)
735
+ m[l] !== void 0 && (d = Math.max(d, m[l].first));
736
+ (d >= r ? (x = r) : (x = d),
737
+ d >= 30 && console.log("WARning, large NUM LUT BITS IS " + d));
738
+ var y = [],
739
+ p,
740
+ L,
741
+ B,
742
+ E,
743
+ O,
744
+ F;
745
+ for (l = o; l < s; l++)
746
+ if (((f = l - (l < i ? 0 : i)), (c = m[f].first), c > 0))
747
+ if (((p = [c, f]), c <= x))
748
+ for (
749
+ L = m[f].second << (x - c), B = 1 << (x - c), h = 0;
750
+ h < B;
751
+ h++
752
+ )
753
+ y[L | h] = p;
754
+ else
755
+ for (L = m[f].second, F = T, E = c - 1; E >= 0; E--)
756
+ ((O = (L >>> E) & 1),
757
+ O
758
+ ? (F.right || (F.right = new b()), (F = F.right))
759
+ : (F.left || (F.left = new b()), (F = F.left)),
760
+ E === 0 && !F.val && (F.val = p[1]));
761
+ return {
762
+ decodeLut: y,
763
+ numBitsLUTQick: x,
764
+ numBitsLUT: d,
765
+ tree: T,
766
+ stuffedData: S,
767
+ srcPtr: w,
768
+ bitPos: I,
769
+ };
770
+ },
771
+ readHuffman: function (n, e, r) {
772
+ var a = e.headerInfo,
773
+ t = a.numDims,
774
+ i = e.headerInfo.height,
775
+ o = e.headerInfo.width,
776
+ s = o * i,
777
+ u = this.readHuffmanTree(n, e),
778
+ m = u.decodeLut,
779
+ l = u.tree,
780
+ f = u.stuffedData,
781
+ h = u.srcPtr,
782
+ c = u.bitPos,
783
+ g = u.numBitsLUTQick,
784
+ v = u.numBitsLUT,
785
+ U = e.headerInfo.imageType === 0 ? 128 : 0,
786
+ M,
787
+ S,
788
+ I,
789
+ k = e.pixels.resultMask,
790
+ w,
791
+ d,
792
+ x,
793
+ T,
794
+ y,
795
+ p,
796
+ L,
797
+ B = 0;
798
+ c > 0 && (h++, (c = 0));
799
+ var E = f[h],
800
+ O = e.encodeMode === 1,
801
+ F = new r(s * t),
802
+ N = F,
803
+ z;
804
+ for (z = 0; z < a.numDims; z++) {
805
+ if (
806
+ (t > 1 && ((N = new r(F.buffer, s * z, s)), (B = 0)),
807
+ e.headerInfo.numValidPixel === o * i)
808
+ )
809
+ for (p = 0, T = 0; T < i; T++)
810
+ for (y = 0; y < o; y++, p++) {
811
+ if (
812
+ ((S = 0),
813
+ (w = (E << c) >>> (32 - g)),
814
+ (d = w),
815
+ 32 - c < g &&
816
+ ((w |= f[h + 1] >>> (64 - c - g)), (d = w)),
817
+ m[d])
818
+ )
819
+ ((S = m[d][1]), (c += m[d][0]));
820
+ else
821
+ for (
822
+ w = (E << c) >>> (32 - v),
823
+ d = w,
824
+ 32 - c < v &&
825
+ ((w |= f[h + 1] >>> (64 - c - v)), (d = w)),
826
+ M = l,
827
+ L = 0;
828
+ L < v;
829
+ L++
830
+ )
831
+ if (
832
+ ((x = (w >>> (v - L - 1)) & 1),
833
+ (M = x ? M.right : M.left),
834
+ !(M.left || M.right))
835
+ ) {
836
+ ((S = M.val), (c = c + L + 1));
837
+ break;
838
+ }
839
+ (c >= 32 && ((c -= 32), h++, (E = f[h])),
840
+ (I = S - U),
841
+ O
842
+ ? (y > 0
843
+ ? (I += B)
844
+ : T > 0
845
+ ? (I += N[p - o])
846
+ : (I += B),
847
+ (I &= 255),
848
+ (N[p] = I),
849
+ (B = I))
850
+ : (N[p] = I));
851
+ }
852
+ else
853
+ for (p = 0, T = 0; T < i; T++)
854
+ for (y = 0; y < o; y++, p++)
855
+ if (k[p]) {
856
+ if (
857
+ ((S = 0),
858
+ (w = (E << c) >>> (32 - g)),
859
+ (d = w),
860
+ 32 - c < g &&
861
+ ((w |= f[h + 1] >>> (64 - c - g)), (d = w)),
862
+ m[d])
863
+ )
864
+ ((S = m[d][1]), (c += m[d][0]));
865
+ else
866
+ for (
867
+ w = (E << c) >>> (32 - v),
868
+ d = w,
869
+ 32 - c < v &&
870
+ ((w |= f[h + 1] >>> (64 - c - v)), (d = w)),
871
+ M = l,
872
+ L = 0;
873
+ L < v;
874
+ L++
875
+ )
876
+ if (
877
+ ((x = (w >>> (v - L - 1)) & 1),
878
+ (M = x ? M.right : M.left),
879
+ !(M.left || M.right))
880
+ ) {
881
+ ((S = M.val), (c = c + L + 1));
882
+ break;
883
+ }
884
+ (c >= 32 && ((c -= 32), h++, (E = f[h])),
885
+ (I = S - U),
886
+ O
887
+ ? (y > 0 && k[p - 1]
888
+ ? (I += B)
889
+ : T > 0 && k[p - o]
890
+ ? (I += N[p - o])
891
+ : (I += B),
892
+ (I &= 255),
893
+ (N[p] = I),
894
+ (B = I))
895
+ : (N[p] = I));
896
+ }
897
+ e.ptr = e.ptr + (h + 1) * 4 + (c > 0 ? 4 : 0);
898
+ }
899
+ e.pixels.resultPixels = F;
900
+ },
901
+ decodeBits: function (n, e, r, a, t) {
902
+ {
903
+ var i = e.headerInfo,
904
+ o = i.fileVersion,
905
+ s = 0,
906
+ u = new DataView(n, e.ptr, 5),
907
+ m = u.getUint8(0);
908
+ s++;
909
+ var l = m >> 6,
910
+ f = l === 0 ? 4 : 3 - l,
911
+ h = (m & 32) > 0,
912
+ c = m & 31,
913
+ g = 0;
914
+ if (f === 1) ((g = u.getUint8(s)), s++);
915
+ else if (f === 2) ((g = u.getUint16(s, !0)), (s += 2));
916
+ else if (f === 4) ((g = u.getUint32(s, !0)), (s += 4));
917
+ else throw "Invalid valid pixel count type";
918
+ var v = 2 * i.maxZError,
919
+ U,
920
+ M,
921
+ S,
922
+ I,
923
+ k,
924
+ w,
925
+ d,
926
+ x,
927
+ T,
928
+ y,
929
+ p = i.numDims > 1 ? i.maxValues[t] : i.zMax;
930
+ if (h) {
931
+ for (
932
+ e.counter.lut++,
933
+ x = u.getUint8(s),
934
+ T = c,
935
+ s++,
936
+ I = Math.ceil(((x - 1) * c) / 8),
937
+ k = Math.ceil(I / 4),
938
+ M = new ArrayBuffer(k * 4),
939
+ S = new Uint8Array(M),
940
+ e.ptr += s,
941
+ S.set(new Uint8Array(n, e.ptr, I)),
942
+ d = new Uint32Array(M),
943
+ e.ptr += I,
944
+ y = 0;
945
+ (x - 1) >>> y;
946
+ )
947
+ y++;
948
+ ((I = Math.ceil((g * y) / 8)),
949
+ (k = Math.ceil(I / 4)),
950
+ (M = new ArrayBuffer(k * 4)),
951
+ (S = new Uint8Array(M)),
952
+ S.set(new Uint8Array(n, e.ptr, I)),
953
+ (U = new Uint32Array(M)),
954
+ (e.ptr += I),
955
+ o >= 3
956
+ ? (w = A.unstuffLUT2(d, c, x - 1, a, v, p))
957
+ : (w = A.unstuffLUT(d, c, x - 1, a, v, p)),
958
+ o >= 3
959
+ ? A.unstuff2(U, r, y, g, w)
960
+ : A.unstuff(U, r, y, g, w));
961
+ } else
962
+ (e.counter.bitstuffer++,
963
+ (y = c),
964
+ (e.ptr += s),
965
+ y > 0 &&
966
+ ((I = Math.ceil((g * y) / 8)),
967
+ (k = Math.ceil(I / 4)),
968
+ (M = new ArrayBuffer(k * 4)),
969
+ (S = new Uint8Array(M)),
970
+ S.set(new Uint8Array(n, e.ptr, I)),
971
+ (U = new Uint32Array(M)),
972
+ (e.ptr += I),
973
+ o >= 3
974
+ ? a == null
975
+ ? A.originalUnstuff2(U, r, y, g)
976
+ : A.unstuff2(U, r, y, g, !1, a, v, p)
977
+ : a == null
978
+ ? A.originalUnstuff(U, r, y, g)
979
+ : A.unstuff(U, r, y, g, !1, a, v, p)));
980
+ }
981
+ },
982
+ readTiles: function (n, e, r) {
983
+ var a = e.headerInfo,
984
+ t = a.width,
985
+ i = a.height,
986
+ o = a.microBlockSize,
987
+ s = a.imageType,
988
+ u = V.getDataTypeSize(s),
989
+ m = Math.ceil(t / o),
990
+ l = Math.ceil(i / o);
991
+ ((e.pixels.numBlocksY = l),
992
+ (e.pixels.numBlocksX = m),
993
+ (e.pixels.ptr = 0));
994
+ var f = 0,
995
+ h = 0,
996
+ c = 0,
997
+ g = 0,
998
+ v = 0,
999
+ U = 0,
1000
+ M = 0,
1001
+ S = 0,
1002
+ I = 0,
1003
+ k = 0,
1004
+ w = 0,
1005
+ d = 0,
1006
+ x = 0,
1007
+ T = 0,
1008
+ y = 0,
1009
+ p = 0,
1010
+ L,
1011
+ B,
1012
+ E,
1013
+ O,
1014
+ F,
1015
+ N,
1016
+ z = new r(o * o),
1017
+ ke = i % o || o,
1018
+ ye = t % o || o,
1019
+ J,
1020
+ Z,
1021
+ ue = a.numDims,
1022
+ te,
1023
+ j = e.pixels.resultMask,
1024
+ q = e.pixels.resultPixels;
1025
+ for (c = 0; c < l; c++)
1026
+ for (v = c !== l - 1 ? o : ke, g = 0; g < m; g++)
1027
+ for (
1028
+ U = g !== m - 1 ? o : ye,
1029
+ w = c * t * o + g * o,
1030
+ d = t - U,
1031
+ te = 0;
1032
+ te < ue;
1033
+ te++
1034
+ ) {
1035
+ if (
1036
+ (ue > 1 &&
1037
+ (q = new r(
1038
+ e.pixels.resultPixels.buffer,
1039
+ t * i * te * u,
1040
+ t * i,
1041
+ )),
1042
+ (M = n.byteLength - e.ptr),
1043
+ (L = new DataView(n, e.ptr, Math.min(10, M))),
1044
+ (B = {}),
1045
+ (p = 0),
1046
+ (S = L.getUint8(0)),
1047
+ p++,
1048
+ (I = (S >> 6) & 255),
1049
+ (k = (S >> 2) & 15),
1050
+ k !== (((g * o) >> 3) & 15))
1051
+ )
1052
+ throw "integrity issue";
1053
+ if (((N = S & 3), N > 3))
1054
+ throw (
1055
+ (e.ptr += p),
1056
+ "Invalid block encoding (" + N + ")"
1057
+ );
1058
+ if (N === 2) {
1059
+ (e.counter.constant++, (e.ptr += p));
1060
+ continue;
1061
+ } else if (N === 0) {
1062
+ if (
1063
+ (e.counter.uncompressed++,
1064
+ (e.ptr += p),
1065
+ (x = v * U * u),
1066
+ (T = n.byteLength - e.ptr),
1067
+ (x = x < T ? x : T),
1068
+ (E = new ArrayBuffer(
1069
+ x % u === 0 ? x : x + u - (x % u),
1070
+ )),
1071
+ (O = new Uint8Array(E)),
1072
+ O.set(new Uint8Array(n, e.ptr, x)),
1073
+ (F = new r(E)),
1074
+ (y = 0),
1075
+ j)
1076
+ )
1077
+ for (f = 0; f < v; f++) {
1078
+ for (h = 0; h < U; h++)
1079
+ (j[w] && (q[w] = F[y++]), w++);
1080
+ w += d;
1081
+ }
1082
+ else
1083
+ for (f = 0; f < v; f++) {
1084
+ for (h = 0; h < U; h++) q[w++] = F[y++];
1085
+ w += d;
1086
+ }
1087
+ e.ptr += y * u;
1088
+ } else if (
1089
+ ((J = V.getDataTypeUsed(s, I)),
1090
+ (Z = V.getOnePixel(B, p, J, L)),
1091
+ (p += V.getDataTypeSize(J)),
1092
+ N === 3)
1093
+ )
1094
+ if (((e.ptr += p), e.counter.constantoffset++, j))
1095
+ for (f = 0; f < v; f++) {
1096
+ for (h = 0; h < U; h++) (j[w] && (q[w] = Z), w++);
1097
+ w += d;
1098
+ }
1099
+ else
1100
+ for (f = 0; f < v; f++) {
1101
+ for (h = 0; h < U; h++) q[w++] = Z;
1102
+ w += d;
1103
+ }
1104
+ else if (
1105
+ ((e.ptr += p), V.decodeBits(n, e, z, Z, te), (p = 0), j)
1106
+ )
1107
+ for (f = 0; f < v; f++) {
1108
+ for (h = 0; h < U; h++) (j[w] && (q[w] = z[p++]), w++);
1109
+ w += d;
1110
+ }
1111
+ else
1112
+ for (f = 0; f < v; f++) {
1113
+ for (h = 0; h < U; h++) q[w++] = z[p++];
1114
+ w += d;
1115
+ }
1116
+ }
1117
+ },
1118
+ formatFileInfo: function (n) {
1119
+ return {
1120
+ fileIdentifierString: n.headerInfo.fileIdentifierString,
1121
+ fileVersion: n.headerInfo.fileVersion,
1122
+ imageType: n.headerInfo.imageType,
1123
+ height: n.headerInfo.height,
1124
+ width: n.headerInfo.width,
1125
+ numValidPixel: n.headerInfo.numValidPixel,
1126
+ microBlockSize: n.headerInfo.microBlockSize,
1127
+ blobSize: n.headerInfo.blobSize,
1128
+ maxZError: n.headerInfo.maxZError,
1129
+ pixelType: V.getPixelType(n.headerInfo.imageType),
1130
+ eofOffset: n.eofOffset,
1131
+ mask: n.mask ? { numBytes: n.mask.numBytes } : null,
1132
+ pixels: {
1133
+ numBlocksX: n.pixels.numBlocksX,
1134
+ numBlocksY: n.pixels.numBlocksY,
1135
+ maxValue: n.headerInfo.zMax,
1136
+ minValue: n.headerInfo.zMin,
1137
+ noDataValue: n.noDataValue,
1138
+ },
1139
+ };
1140
+ },
1141
+ constructConstantSurface: function (n) {
1142
+ var e = n.headerInfo.zMax,
1143
+ r = n.headerInfo.numDims,
1144
+ a = n.headerInfo.height * n.headerInfo.width,
1145
+ t = a * r,
1146
+ i = 0,
1147
+ o = 0,
1148
+ s = 0,
1149
+ u = n.pixels.resultMask;
1150
+ if (u)
1151
+ if (r > 1)
1152
+ for (i = 0; i < r; i++)
1153
+ for (s = i * a, o = 0; o < a; o++)
1154
+ u[o] && (n.pixels.resultPixels[s + o] = e);
1155
+ else
1156
+ for (o = 0; o < a; o++)
1157
+ u[o] && (n.pixels.resultPixels[o] = e);
1158
+ else if (n.pixels.resultPixels.fill)
1159
+ n.pixels.resultPixels.fill(e);
1160
+ else for (o = 0; o < t; o++) n.pixels.resultPixels[o] = e;
1161
+ },
1162
+ getDataTypeArray: function (n) {
1163
+ var e;
1164
+ switch (n) {
1165
+ case 0:
1166
+ e = Int8Array;
1167
+ break;
1168
+ case 1:
1169
+ e = Uint8Array;
1170
+ break;
1171
+ case 2:
1172
+ e = Int16Array;
1173
+ break;
1174
+ case 3:
1175
+ e = Uint16Array;
1176
+ break;
1177
+ case 4:
1178
+ e = Int32Array;
1179
+ break;
1180
+ case 5:
1181
+ e = Uint32Array;
1182
+ break;
1183
+ case 6:
1184
+ e = Float32Array;
1185
+ break;
1186
+ case 7:
1187
+ e = Float64Array;
1188
+ break;
1189
+ default:
1190
+ e = Float32Array;
1191
+ }
1192
+ return e;
1193
+ },
1194
+ getPixelType: function (n) {
1195
+ var e;
1196
+ switch (n) {
1197
+ case 0:
1198
+ e = "S8";
1199
+ break;
1200
+ case 1:
1201
+ e = "U8";
1202
+ break;
1203
+ case 2:
1204
+ e = "S16";
1205
+ break;
1206
+ case 3:
1207
+ e = "U16";
1208
+ break;
1209
+ case 4:
1210
+ e = "S32";
1211
+ break;
1212
+ case 5:
1213
+ e = "U32";
1214
+ break;
1215
+ case 6:
1216
+ e = "F32";
1217
+ break;
1218
+ case 7:
1219
+ e = "F64";
1220
+ break;
1221
+ default:
1222
+ e = "F32";
1223
+ }
1224
+ return e;
1225
+ },
1226
+ isValidPixelValue: function (n, e) {
1227
+ if (e == null) return !1;
1228
+ var r;
1229
+ switch (n) {
1230
+ case 0:
1231
+ r = e >= -128 && e <= 127;
1232
+ break;
1233
+ case 1:
1234
+ r = e >= 0 && e <= 255;
1235
+ break;
1236
+ case 2:
1237
+ r = e >= -32768 && e <= 32767;
1238
+ break;
1239
+ case 3:
1240
+ r = e >= 0 && e <= 65536;
1241
+ break;
1242
+ case 4:
1243
+ r = e >= -2147483648 && e <= 2147483647;
1244
+ break;
1245
+ case 5:
1246
+ r = e >= 0 && e <= 4294967296;
1247
+ break;
1248
+ case 6:
1249
+ r = e >= -34027999387901484e22 && e <= 34027999387901484e22;
1250
+ break;
1251
+ case 7:
1252
+ r = e >= 5e-324 && e <= 17976931348623157e292;
1253
+ break;
1254
+ default:
1255
+ r = !1;
1256
+ }
1257
+ return r;
1258
+ },
1259
+ getDataTypeSize: function (n) {
1260
+ var e = 0;
1261
+ switch (n) {
1262
+ case 0:
1263
+ case 1:
1264
+ e = 1;
1265
+ break;
1266
+ case 2:
1267
+ case 3:
1268
+ e = 2;
1269
+ break;
1270
+ case 4:
1271
+ case 5:
1272
+ case 6:
1273
+ e = 4;
1274
+ break;
1275
+ case 7:
1276
+ e = 8;
1277
+ break;
1278
+ default:
1279
+ e = n;
1280
+ }
1281
+ return e;
1282
+ },
1283
+ getDataTypeUsed: function (n, e) {
1284
+ var r = n;
1285
+ switch (n) {
1286
+ case 2:
1287
+ case 4:
1288
+ r = n - e;
1289
+ break;
1290
+ case 3:
1291
+ case 5:
1292
+ r = n - 2 * e;
1293
+ break;
1294
+ case 6:
1295
+ e === 0 ? (r = n) : e === 1 ? (r = 2) : (r = 1);
1296
+ break;
1297
+ case 7:
1298
+ e === 0 ? (r = n) : (r = n - 2 * e + 1);
1299
+ break;
1300
+ default:
1301
+ r = n;
1302
+ break;
1303
+ }
1304
+ return r;
1305
+ },
1306
+ getOnePixel: function (n, e, r, a) {
1307
+ var t = 0;
1308
+ switch (r) {
1309
+ case 0:
1310
+ t = a.getInt8(e);
1311
+ break;
1312
+ case 1:
1313
+ t = a.getUint8(e);
1314
+ break;
1315
+ case 2:
1316
+ t = a.getInt16(e, !0);
1317
+ break;
1318
+ case 3:
1319
+ t = a.getUint16(e, !0);
1320
+ break;
1321
+ case 4:
1322
+ t = a.getInt32(e, !0);
1323
+ break;
1324
+ case 5:
1325
+ t = a.getUInt32(e, !0);
1326
+ break;
1327
+ case 6:
1328
+ t = a.getFloat32(e, !0);
1329
+ break;
1330
+ case 7:
1331
+ t = a.getFloat64(e, !0);
1332
+ break;
1333
+ default:
1334
+ throw "the decoder does not understand this pixel type";
1335
+ }
1336
+ return t;
1337
+ },
1338
+ },
1339
+ b = function (n, e, r) {
1340
+ ((this.val = n), (this.left = e), (this.right = r));
1341
+ },
1342
+ X = {
1343
+ decode: function (n, e) {
1344
+ e = e || {};
1345
+ var r = e.noDataValue,
1346
+ a = 0,
1347
+ t = {};
1348
+ if (
1349
+ ((t.ptr = e.inputOffset || 0),
1350
+ (t.pixels = {}),
1351
+ !!V.readHeaderInfo(n, t))
1352
+ ) {
1353
+ var i = t.headerInfo,
1354
+ o = i.fileVersion,
1355
+ s = V.getDataTypeArray(i.imageType);
1356
+ (V.readMask(n, t),
1357
+ i.numValidPixel !== i.width * i.height &&
1358
+ !t.pixels.resultMask &&
1359
+ (t.pixels.resultMask = e.maskData));
1360
+ var u = i.width * i.height;
1361
+ if (
1362
+ ((t.pixels.resultPixels = new s(u * i.numDims)),
1363
+ (t.counter = {
1364
+ onesweep: 0,
1365
+ uncompressed: 0,
1366
+ lut: 0,
1367
+ bitstuffer: 0,
1368
+ constant: 0,
1369
+ constantoffset: 0,
1370
+ }),
1371
+ i.numValidPixel !== 0)
1372
+ )
1373
+ if (i.zMax === i.zMin) V.constructConstantSurface(t);
1374
+ else if (o >= 4 && V.checkMinMaxRanges(n, t))
1375
+ V.constructConstantSurface(t);
1376
+ else {
1377
+ var m = new DataView(n, t.ptr, 2),
1378
+ l = m.getUint8(0);
1379
+ if ((t.ptr++, l)) V.readDataOneSweep(n, t, s);
1380
+ else if (
1381
+ o > 1 &&
1382
+ i.imageType <= 1 &&
1383
+ Math.abs(i.maxZError - 0.5) < 1e-5
1384
+ ) {
1385
+ var f = m.getUint8(1);
1386
+ if (
1387
+ (t.ptr++, (t.encodeMode = f), f > 2 || (o < 4 && f > 1))
1388
+ )
1389
+ throw "Invalid Huffman flag " + f;
1390
+ f ? V.readHuffman(n, t, s) : V.readTiles(n, t, s);
1391
+ } else V.readTiles(n, t, s);
1392
+ }
1393
+ t.eofOffset = t.ptr;
1394
+ var h;
1395
+ e.inputOffset
1396
+ ? ((h = t.headerInfo.blobSize + e.inputOffset - t.ptr),
1397
+ Math.abs(h) >= 1 &&
1398
+ (t.eofOffset = e.inputOffset + t.headerInfo.blobSize))
1399
+ : ((h = t.headerInfo.blobSize - t.ptr),
1400
+ Math.abs(h) >= 1 && (t.eofOffset = t.headerInfo.blobSize));
1401
+ var c = {
1402
+ width: i.width,
1403
+ height: i.height,
1404
+ pixelData: t.pixels.resultPixels,
1405
+ minValue: i.zMin,
1406
+ maxValue: i.zMax,
1407
+ validPixelCount: i.numValidPixel,
1408
+ dimCount: i.numDims,
1409
+ dimStats: { minValues: i.minValues, maxValues: i.maxValues },
1410
+ maskData: t.pixels.resultMask,
1411
+ };
1412
+ if (
1413
+ t.pixels.resultMask &&
1414
+ V.isValidPixelValue(i.imageType, r)
1415
+ ) {
1416
+ var g = t.pixels.resultMask;
1417
+ for (a = 0; a < u; a++) g[a] || (c.pixelData[a] = r);
1418
+ c.noDataValue = r;
1419
+ }
1420
+ return (
1421
+ (t.noDataValue = r),
1422
+ e.returnFileInfo && (c.fileInfo = V.formatFileInfo(t)),
1423
+ c
1424
+ );
1425
+ }
1426
+ },
1427
+ getBandCount: function (n) {
1428
+ var e = 0,
1429
+ r = 0,
1430
+ a = {};
1431
+ for (a.ptr = 0, a.pixels = {}; r < n.byteLength - 58; )
1432
+ (V.readHeaderInfo(n, a),
1433
+ (r += a.headerInfo.blobSize),
1434
+ e++,
1435
+ (a.ptr = r));
1436
+ return e;
1437
+ },
1438
+ };
1439
+ return X;
1440
+ })(),
1441
+ C = (function () {
1442
+ var A = new ArrayBuffer(4),
1443
+ V = new Uint8Array(A),
1444
+ b = new Uint32Array(A);
1445
+ return ((b[0] = 1), V[0] === 1);
1446
+ })(),
1447
+ re = {
1448
+ decode: function (A, V) {
1449
+ if (!C) throw "Big endian system is not supported.";
1450
+ V = V || {};
1451
+ var b = V.inputOffset || 0,
1452
+ X = new Uint8Array(A, b, 10),
1453
+ n = String.fromCharCode.apply(null, X),
1454
+ e,
1455
+ r;
1456
+ if (n.trim() === "CntZImage") ((e = D), (r = 1));
1457
+ else if (n.substring(0, 5) === "Lerc2") ((e = se), (r = 2));
1458
+ else throw "Unexpected file identifier string: " + n;
1459
+ for (
1460
+ var a = 0,
1461
+ t = A.byteLength - 10,
1462
+ i,
1463
+ o = [],
1464
+ s,
1465
+ u,
1466
+ m = {
1467
+ width: 0,
1468
+ height: 0,
1469
+ pixels: [],
1470
+ pixelType: V.pixelType,
1471
+ mask: null,
1472
+ statistics: [],
1473
+ };
1474
+ b < t;
1475
+ ) {
1476
+ var l = e.decode(A, {
1477
+ inputOffset: b,
1478
+ encodedMaskData: i,
1479
+ maskData: u,
1480
+ returnMask: a === 0,
1481
+ returnEncodedMask: a === 0,
1482
+ returnFileInfo: !0,
1483
+ pixelType: V.pixelType || null,
1484
+ noDataValue: V.noDataValue || null,
1485
+ });
1486
+ ((b = l.fileInfo.eofOffset),
1487
+ a === 0 &&
1488
+ ((i = l.encodedMaskData),
1489
+ (u = l.maskData),
1490
+ (m.width = l.width),
1491
+ (m.height = l.height),
1492
+ (m.dimCount = l.dimCount || 1),
1493
+ (m.pixelType = l.pixelType || l.fileInfo.pixelType),
1494
+ (m.mask = l.maskData)),
1495
+ r > 1 &&
1496
+ l.fileInfo.mask &&
1497
+ l.fileInfo.mask.numBytes > 0 &&
1498
+ o.push(l.maskData),
1499
+ a++,
1500
+ m.pixels.push(l.pixelData),
1501
+ m.statistics.push({
1502
+ minValue: l.minValue,
1503
+ maxValue: l.maxValue,
1504
+ noDataValue: l.noDataValue,
1505
+ dimStats: l.dimStats,
1506
+ }));
1507
+ }
1508
+ var f, h, c;
1509
+ if (r > 1 && o.length > 1) {
1510
+ for (
1511
+ c = m.width * m.height,
1512
+ m.bandMasks = o,
1513
+ u = new Uint8Array(c),
1514
+ u.set(o[0]),
1515
+ f = 1;
1516
+ f < o.length;
1517
+ f++
1518
+ )
1519
+ for (s = o[f], h = 0; h < c; h++) u[h] = u[h] & s[h];
1520
+ m.maskData = u;
1521
+ }
1522
+ return m;
1523
+ },
1524
+ };
1525
+ typeof define == "function" && define.amd
1526
+ ? define([], function () {
1527
+ return re;
1528
+ })
1529
+ : typeof Te < "u" && Te.exports
1530
+ ? (Te.exports = re)
1531
+ : (this.Lerc = re);
1532
+ })();
1533
+ });
1534
+ var Ur = { NONE: 0, LERC: 1 },
1535
+ or = Object.freeze(Ur);
1536
+ var Q = {};
1537
+ Q.DEFAULT_STRUCTURE = Object.freeze({
1538
+ heightScale: 1,
1539
+ heightOffset: 0,
1540
+ elementsPerHeight: 1,
1541
+ stride: 1,
1542
+ elementMultiplier: 256,
1543
+ isBigEndian: !1,
1544
+ });
1545
+ var Ye = new ie(),
1546
+ Tr = new xe(),
1547
+ kr = new ie(),
1548
+ yr = new ie();
1549
+ Q.computeVertices = function (D) {
1550
+ if (!G(D) || !G(D.heightmap)) throw new he("options.heightmap is required.");
1551
+ if (!G(D.width) || !G(D.height))
1552
+ throw new he("options.width and options.height are required.");
1553
+ if (!G(D.nativeRectangle))
1554
+ throw new he("options.nativeRectangle is required.");
1555
+ if (!G(D.skirtHeight)) throw new he("options.skirtHeight is required.");
1556
+ let se = Math.cos,
1557
+ C = Math.sin,
1558
+ re = Math.sqrt,
1559
+ A = Math.atan,
1560
+ V = Math.exp,
1561
+ b = ge.PI_OVER_TWO,
1562
+ X = ge.toRadians,
1563
+ n = D.heightmap,
1564
+ e = D.width,
1565
+ r = D.height,
1566
+ a = D.skirtHeight,
1567
+ t = a > 0,
1568
+ i = Y(D.isGeographic, !0),
1569
+ o = Y(D.ellipsoid, Ie.default),
1570
+ s = 1 / o.maximumRadius,
1571
+ u = ae.clone(D.nativeRectangle),
1572
+ m = ae.clone(D.rectangle),
1573
+ l,
1574
+ f,
1575
+ h,
1576
+ c;
1577
+ G(m)
1578
+ ? ((l = m.west), (f = m.south), (h = m.east), (c = m.north))
1579
+ : i
1580
+ ? ((l = X(u.west)), (f = X(u.south)), (h = X(u.east)), (c = X(u.north)))
1581
+ : ((l = u.west * s),
1582
+ (f = b - 2 * A(V(-u.south * s))),
1583
+ (h = u.east * s),
1584
+ (c = b - 2 * A(V(-u.north * s))));
1585
+ let g = D.relativeToCenter,
1586
+ v = G(g);
1587
+ g = v ? g : ie.ZERO;
1588
+ let U = Y(D.includeWebMercatorT, !1),
1589
+ M = Y(D.exaggeration, 1),
1590
+ S = Y(D.exaggerationRelativeHeight, 0),
1591
+ k = M !== 1,
1592
+ w = Y(D.structure, Q.DEFAULT_STRUCTURE),
1593
+ d = Y(w.heightScale, Q.DEFAULT_STRUCTURE.heightScale),
1594
+ x = Y(w.heightOffset, Q.DEFAULT_STRUCTURE.heightOffset),
1595
+ T = Y(w.elementsPerHeight, Q.DEFAULT_STRUCTURE.elementsPerHeight),
1596
+ y = Y(w.stride, Q.DEFAULT_STRUCTURE.stride),
1597
+ p = Y(w.elementMultiplier, Q.DEFAULT_STRUCTURE.elementMultiplier),
1598
+ L = Y(w.isBigEndian, Q.DEFAULT_STRUCTURE.isBigEndian),
1599
+ B = ae.computeWidth(u),
1600
+ E = ae.computeHeight(u),
1601
+ O = B / (e - 1),
1602
+ F = E / (r - 1);
1603
+ i || ((B *= s), (E *= s));
1604
+ let N = o.radiiSquared,
1605
+ z = N.x,
1606
+ ke = N.y,
1607
+ ye = N.z,
1608
+ J = 65536,
1609
+ Z = -65536,
1610
+ ue = rr.eastNorthUpToFixedFrame(g, o),
1611
+ te = xe.inverseTransformation(ue, Tr),
1612
+ j,
1613
+ q;
1614
+ U &&
1615
+ ((j = Ue.geodeticLatitudeToMercatorAngle(f)),
1616
+ (q = 1 / (Ue.geodeticLatitudeToMercatorAngle(c) - j)));
1617
+ let fe = kr;
1618
+ ((fe.x = Number.POSITIVE_INFINITY),
1619
+ (fe.y = Number.POSITIVE_INFINITY),
1620
+ (fe.z = Number.POSITIVE_INFINITY));
1621
+ let oe = yr;
1622
+ ((oe.x = Number.NEGATIVE_INFINITY),
1623
+ (oe.y = Number.NEGATIVE_INFINITY),
1624
+ (oe.z = Number.NEGATIVE_INFINITY));
1625
+ let Me = Number.POSITIVE_INFINITY,
1626
+ ce = e * r,
1627
+ mr = a > 0 ? e * 2 + r * 2 : 0,
1628
+ ne = ce + mr,
1629
+ ve = new Array(ne),
1630
+ Xe = new Array(ne),
1631
+ _e = new Array(ne),
1632
+ ze = U ? new Array(ne) : [],
1633
+ Ze = k ? new Array(ne) : [],
1634
+ Se = 0,
1635
+ Ve = r,
1636
+ De = 0,
1637
+ Ae = e;
1638
+ t && (--Se, ++Ve, --De, ++Ae);
1639
+ let de = 1e-5;
1640
+ for (let H = Se; H < Ve; ++H) {
1641
+ let K = H;
1642
+ (K < 0 && (K = 0), K >= r && (K = r - 1));
1643
+ let W = u.north - F * K;
1644
+ i ? (W = X(W)) : (W = b - 2 * A(V(-W * s)));
1645
+ let Le = (W - f) / (c - f);
1646
+ Le = ge.clamp(Le, 0, 1);
1647
+ let we = H === Se,
1648
+ pe = H === Ve - 1;
1649
+ a > 0 && (we ? (W += de * E) : pe && (W -= de * E));
1650
+ let Qe = se(W),
1651
+ Be = C(W),
1652
+ Je = ye * Be,
1653
+ Ke;
1654
+ U && (Ke = (Ue.geodeticLatitudeToMercatorAngle(W) - j) * q);
1655
+ for (let me = De; me < Ae; ++me) {
1656
+ let $ = me;
1657
+ ($ < 0 && ($ = 0), $ >= e && ($ = e - 1));
1658
+ let Fe = K * (e * y) + $ * y,
1659
+ R;
1660
+ if (T === 1) R = n[Fe];
1661
+ else {
1662
+ R = 0;
1663
+ let _;
1664
+ if (L) for (_ = 0; _ < T; ++_) R = R * p + n[Fe + _];
1665
+ else for (_ = T - 1; _ >= 0; --_) R = R * p + n[Fe + _];
1666
+ }
1667
+ ((R = R * d + x), (Z = Math.max(Z, R)), (J = Math.min(J, R)));
1668
+ let P = u.west + O * $;
1669
+ i ? (P = X(P)) : (P = P * s);
1670
+ let be = (P - l) / (h - l);
1671
+ be = ge.clamp(be, 0, 1);
1672
+ let ee = K * e + $;
1673
+ if (a > 0) {
1674
+ let _ = me === De,
1675
+ Re = me === Ae - 1,
1676
+ pr = we || pe || _ || Re;
1677
+ if ((we || pe) && (_ || Re)) continue;
1678
+ pr &&
1679
+ ((R -= a),
1680
+ _
1681
+ ? ((ee = ce + (r - K - 1)), (P -= de * B))
1682
+ : pe
1683
+ ? (ee = ce + r + (e - $ - 1))
1684
+ : Re
1685
+ ? ((ee = ce + r + e + K), (P += de * B))
1686
+ : we && (ee = ce + r + e + r + $));
1687
+ }
1688
+ let Ne = Qe * se(P),
1689
+ Ce = Qe * C(P),
1690
+ $e = z * Ne,
1691
+ Pe = ke * Ce,
1692
+ Oe = 1 / re($e * Ne + Pe * Ce + Je * Be),
1693
+ vr = $e * Oe,
1694
+ dr = Pe * Oe,
1695
+ wr = Je * Oe,
1696
+ le = new ie();
1697
+ ((le.x = vr + Ne * R),
1698
+ (le.y = dr + Ce * R),
1699
+ (le.z = wr + Be * R),
1700
+ xe.multiplyByPoint(te, le, Ye),
1701
+ ie.minimumByComponent(Ye, fe, fe),
1702
+ ie.maximumByComponent(Ye, oe, oe),
1703
+ (Me = Math.min(Me, R)),
1704
+ (ve[ee] = le),
1705
+ (_e[ee] = new er(be, Le)),
1706
+ (Xe[ee] = R),
1707
+ U && (ze[ee] = Ke),
1708
+ k && (Ze[ee] = o.geodeticSurfaceNormal(le)));
1709
+ }
1710
+ }
1711
+ let hr = ir.fromPoints(ve),
1712
+ je;
1713
+ G(m) && (je = ar.fromRectangle(m, J, Z, o));
1714
+ let qe;
1715
+ v &&
1716
+ (qe = new sr(o).computeHorizonCullingPointPossiblyUnderEllipsoid(g, ve, J));
1717
+ let gr = new nr(fe, oe, g),
1718
+ Ee = new fr(g, gr, Me, Z, ue, !1, U, k, M, S),
1719
+ We = new Float32Array(ne * Ee.stride),
1720
+ Ge = 0;
1721
+ for (let H = 0; H < ne; ++H)
1722
+ Ge = Ee.encode(We, Ge, ve[H], _e[H], Xe[H], void 0, ze[H], Ze[H]);
1723
+ return {
1724
+ vertices: We,
1725
+ maximumHeight: Z,
1726
+ minimumHeight: J,
1727
+ encoding: Ee,
1728
+ boundingSphere3D: hr,
1729
+ orientedBoundingBox: je,
1730
+ occludeePointInScaledSpace: qe,
1731
+ };
1732
+ };
1733
+ var lr = Q;
1734
+ var cr = xr(ur(), 1);
1735
+ function Mr(D, se) {
1736
+ if (D.encoding === or.LERC) {
1737
+ let A;
1738
+ try {
1739
+ A = cr.default.decode(D.heightmap);
1740
+ } catch (b) {
1741
+ throw new He(b);
1742
+ }
1743
+ if (A.statistics[0].minValue === Number.MAX_VALUE)
1744
+ throw new He("Invalid tile data");
1745
+ ((D.heightmap = A.pixels[0]), (D.width = A.width), (D.height = A.height));
1746
+ }
1747
+ ((D.ellipsoid = Ie.clone(D.ellipsoid)),
1748
+ (D.rectangle = ae.clone(D.rectangle)));
1749
+ let C = lr.computeVertices(D),
1750
+ re = C.vertices;
1751
+ return (
1752
+ se.push(re.buffer),
1753
+ {
1754
+ vertices: re.buffer,
1755
+ numberOfAttributes: C.encoding.stride,
1756
+ minimumHeight: C.minimumHeight,
1757
+ maximumHeight: C.maximumHeight,
1758
+ gridWidth: D.width,
1759
+ gridHeight: D.height,
1760
+ boundingSphere3D: C.boundingSphere3D,
1761
+ orientedBoundingBox: C.orientedBoundingBox,
1762
+ occludeePointInScaledSpace: C.occludeePointInScaledSpace,
1763
+ encoding: C.encoding,
1764
+ westIndicesSouthToNorth: C.westIndicesSouthToNorth,
1765
+ southIndicesEastToWest: C.southIndicesEastToWest,
1766
+ eastIndicesNorthToSouth: C.eastIndicesNorthToSouth,
1767
+ northIndicesWestToEast: C.northIndicesWestToEast,
1768
+ }
1769
+ );
1770
+ }
1771
+ var Pr = tr(Mr);
1772
+ export { Pr as default };