@arcgis/core 6.0.0-next.33 → 6.0.0-next.35

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 (317) hide show
  1. package/Basemap.d.ts +2 -2
  2. package/README.md +2 -2
  3. package/analysis/ShadowCastAnalysis.d.ts +11 -5
  4. package/applications/Urban/meshUtils.d.ts +1 -0
  5. package/applications/Urban/meshUtils.js +1 -1
  6. package/arcgisGlobal.d.ts +1 -0
  7. package/assets/esri/core/libs/libtess/libtess-f32.wasm +0 -0
  8. package/assets/esri/core/libs/libtess/libtess-f64.wasm +0 -0
  9. package/assets/esri/core/workers/RemoteClient.js +1 -1
  10. package/assets/esri/core/workers/chunks/01f55004d64309f8538b.js +1 -0
  11. package/assets/esri/core/workers/chunks/0202eb8c2b2865f99981.js +1 -0
  12. package/assets/esri/core/workers/chunks/{67e533748435253aaba6.js → 0284f608d25c654fcc11.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{f3dc0bc0e00635855a7a.js → 03daf6f235c6edef6268.js} +1 -1
  14. package/assets/esri/core/workers/chunks/04a1d08c3b5b1dc7628f.js +1 -0
  15. package/assets/esri/core/workers/chunks/{1eaf8bfdd3765a90ccc2.js → 0523f893870a1546d7d9.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{1ee4df0fd61440cb5f02.js → 06102715e9a8f218e07c.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{6029773458ab98600f67.js → 07e5482e1fc69be5de09.js} +1 -1
  18. package/assets/esri/core/workers/chunks/08140725277de5d2e41a.js +1 -0
  19. package/assets/esri/core/workers/chunks/{72d20d3957d612f86431.js → 0a508e25ec05363e1f04.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{2d9a1f23ec6ce90723ac.js → 0d99bfb75dcb9fa29080.js} +1 -1
  21. package/assets/esri/core/workers/chunks/10ad7b35b6800d40444e.js +1 -0
  22. package/assets/esri/core/workers/chunks/1132e28aaa5825b10b6e.js +1 -0
  23. package/assets/esri/core/workers/chunks/{84038dd85005fea413eb.js → 139e753d95cfc9470e74.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{dd30b02c5978c1c5f511.js → 155861fbd0e5fc2db80c.js} +1 -1
  25. package/assets/esri/core/workers/chunks/15950c2fb173b62ee0ec.js +1 -0
  26. package/assets/esri/core/workers/chunks/165ca7a97b611c8f26c4.js +1 -0
  27. package/assets/esri/core/workers/chunks/{418addce122dbb8897b4.js → 1a614bac5db42c6263f8.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{0cc7fba402a93e6d2455.js → 1ae0c9345626e70affd3.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{58c3ae6030def2ed5f31.js → 1b17f5f720f6cf3f6d73.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{cd355baab983033c3ef0.js → 1ec772eaa63eb6937231.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{f9dc38761b314d33890f.js → 1f51567f47c2e2fc8a23.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{5c04835b0b52461183cd.js → 1fd82fcba2758741996a.js} +1 -1
  33. package/assets/esri/core/workers/chunks/21e1d423ee33f916547e.js +1 -0
  34. package/assets/esri/core/workers/chunks/2211ff0a1f1ae8100231.js +1 -0
  35. package/assets/esri/core/workers/chunks/{096b2bf1c0d69d27f20c.js → 247617c0dbae2386ab3b.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97ec46605f16333144b7.js → 26ea39dfdf887f357fce.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{85de980c5b296ec69323.js → 279089a6a3f08022c678.js} +1 -1
  38. package/assets/esri/core/workers/chunks/29c610ce1c81ebb84a6b.js +1 -0
  39. package/assets/esri/core/workers/chunks/2b4dd42920d37b1ff0a9.js +2 -0
  40. package/assets/esri/core/workers/chunks/{8da2a10318f49d0dc73a.js → 31ef7b7074b3e3829763.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{b657363113f4a37e634b.js → 3223f9fbc76ba9ef8d13.js} +1 -1
  42. package/assets/esri/core/workers/chunks/322b22a5d54e404bebd5.js +1 -0
  43. package/assets/esri/core/workers/chunks/{122e75b21699a4e83b15.js → 338d800d4efcc91cead1.js} +1 -1
  44. package/assets/esri/core/workers/chunks/3537fe95b83a13b156cc.js +1 -0
  45. package/assets/esri/core/workers/chunks/{360c944c610efa2051fc.js → 379db67f78161ebd5468.js} +2 -2
  46. package/assets/esri/core/workers/chunks/{f09bc86cd52224febfcb.js → 3b380e64566a6cce59e2.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{be55771758e4bcef0976.js → 3e406043a374ee17475b.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{e3b212f8af448ec29eef.js → 3fe4c89acd325d36618d.js} +1 -1
  49. package/assets/esri/core/workers/chunks/449a2dee17b54946f245.js +1 -0
  50. package/assets/esri/core/workers/chunks/46c290108a90518ef695.js +1 -0
  51. package/assets/esri/core/workers/chunks/{a596779eaeec7310671d.js → 478a89317a12e9b4d146.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{fcc3902d6d9eda6f09f5.js → 48b8b57f559a53c6c513.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{55a9eaeb152a3abada67.js → 4e5405134d079bdf9b7a.js} +1 -1
  54. package/assets/esri/core/workers/chunks/4f3e0d583cfa9d1d6727.js +2 -0
  55. package/assets/esri/core/workers/chunks/{d070fcb73ce274ab80e4.js → 5504ec9bd9ee4d10af07.js} +1 -1
  56. package/assets/esri/core/workers/chunks/552c36b40e5a5ec117fb.js +1 -0
  57. package/assets/esri/core/workers/chunks/5622f3faa59434772857.js +1 -0
  58. package/assets/esri/core/workers/chunks/{bd46a04a9ee4ea9e6ef1.js → 5864bce1498a13ee5b7e.js} +2 -2
  59. package/assets/esri/core/workers/chunks/59a1b637d2c107504a04.js +1 -0
  60. package/assets/esri/core/workers/chunks/59a88dd53f8806bbec06.js +1 -0
  61. package/assets/esri/core/workers/chunks/{f4d91d470ca5fea0bd26.js → 5bd1414220e42cb8ebcf.js} +1 -1
  62. package/assets/esri/core/workers/chunks/5c2fe67527c9d7b4dba3.js +1 -0
  63. package/assets/esri/core/workers/chunks/5c3aa8386705c5e40358.js +1 -0
  64. package/assets/esri/core/workers/chunks/5d781c2c6204cffffd0d.js +1 -0
  65. package/assets/esri/core/workers/chunks/{176d75e76318bfc25a53.js → 60c8eedd06080edab3e3.js} +1 -1
  66. package/assets/esri/core/workers/chunks/61d36730564c5ac5edab.js +1 -0
  67. package/assets/esri/core/workers/chunks/6604272ef6fe85279032.js +1 -0
  68. package/assets/esri/core/workers/chunks/{29cc6b1705418b1be5d7.js → 687deb918eb48a963c8f.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{0694c7bcfe71692e2ccf.js → 723df53cfa0189837d01.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{90c1d10eae7ae71889b0.js → 7400b8c454b47ee4fb3c.js} +1 -1
  71. package/assets/esri/core/workers/chunks/796c6195b6bf59dcc9bd.js +1 -0
  72. package/assets/esri/core/workers/chunks/7b45ac83e279fe9516a5.js +1 -0
  73. package/assets/esri/core/workers/chunks/{2de077c7b971f2c215a6.js → 7ddbde8fdd1cf3c53f50.js} +1 -1
  74. package/assets/esri/core/workers/chunks/804606b194dc9e71d088.js +1 -0
  75. package/assets/esri/core/workers/chunks/8102f0bf5707c3be3310.js +1 -0
  76. package/assets/esri/core/workers/chunks/{1a8d8274df292d65f82e.js → 81bcc495e6eaf2cf7474.js} +1 -1
  77. package/assets/esri/core/workers/chunks/90360c0bd053d3e3fd77.js +1 -0
  78. package/assets/esri/core/workers/chunks/{d1d6154b4af1c9cc497b.js → 934e1f2153e6fad6ed23.js} +1 -1
  79. package/assets/esri/core/workers/chunks/{e096c1d9d53af74d3207.js → 990e96139b5a1dccb061.js} +1 -1
  80. package/assets/esri/core/workers/chunks/9c3de54513bf8619271c.js +1 -0
  81. package/assets/esri/core/workers/chunks/{f28b63c1179366dac8a2.js → 9e2c30b67bab5795306e.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{9184c947cdefe06bf551.js → a18c3cbe505a19d29569.js} +1 -1
  83. package/assets/esri/core/workers/chunks/aa6ee2aa4ff6e6d41efb.js +1 -0
  84. package/assets/esri/core/workers/chunks/{3fd5c3cd8457ddc68798.js → aa779896fd9e5c341349.js} +1 -1
  85. package/assets/esri/core/workers/chunks/ac10c7d2c4829a150037.js +1 -0
  86. package/assets/esri/core/workers/chunks/{fe6dcb21570395e46ce8.js → afc8a9847f31bb66b13b.js} +1 -1
  87. package/assets/esri/core/workers/chunks/c5bf19da62a3d31009fe.js +2 -0
  88. package/assets/esri/core/workers/chunks/{2226c20c38e20713bcb5.js.LICENSE.txt → c5bf19da62a3d31009fe.js.LICENSE.txt} +1 -1
  89. package/assets/esri/core/workers/chunks/c7adb7b77721c75891f4.js +1 -0
  90. package/assets/esri/core/workers/chunks/cd55cad81accf51d2989.js +1 -0
  91. package/assets/esri/core/workers/chunks/{bead830a677690eeb6fb.js → ce8ef2eec290e1df6b2a.js} +1 -1
  92. package/assets/esri/core/workers/chunks/d3369ffed19f4c264dcd.js +1 -0
  93. package/assets/esri/core/workers/chunks/d3412518a7b518860fbb.js +1 -0
  94. package/assets/esri/core/workers/chunks/{3048e74e6246324ce6fc.js → d5916500514a41a4758f.js} +1 -1
  95. package/assets/esri/core/workers/chunks/{89dc49e784f7ba3b93ea.js → dac69c0047488fdf986d.js} +1 -1
  96. package/assets/esri/core/workers/chunks/db1f7b2562de495b3401.js +2 -0
  97. package/assets/esri/core/workers/chunks/dcc782e4bf9e8a8202f9.js +1 -0
  98. package/assets/esri/core/workers/chunks/dcdf837a452dc0cac582.js +1 -0
  99. package/assets/esri/core/workers/chunks/e0a37d3bcb9a944e53dd.js +1 -0
  100. package/assets/esri/core/workers/chunks/{19a4fa965b70fc6f78f6.js → e209cb1f3f14bf576ebe.js} +1 -1
  101. package/assets/esri/core/workers/chunks/e67ea2f1714e5abeae44.js +1 -0
  102. package/assets/esri/core/workers/chunks/e8fb2ba7b7a4f0916325.js +1 -0
  103. package/assets/esri/core/workers/chunks/{636e9c4ac1f9ae98f9d1.js → ea81f9d71b0842a4be26.js} +1 -1
  104. package/assets/esri/core/workers/chunks/{164c8eeefa8232b2b191.js → eaa0e906b46ae4c84d72.js} +2 -2
  105. package/assets/esri/core/workers/chunks/efcd38aad9aa667001b2.js +1 -0
  106. package/assets/esri/core/workers/chunks/{3aafdb905c697bc9b1ad.js → f372f4eb5527238c46f5.js} +1 -1
  107. package/assets/esri/core/workers/chunks/f497968055af459c5da4.js +1 -0
  108. package/assets/esri/core/workers/chunks/f7123ba1286f64e13e91.js +1 -0
  109. package/assets/esri/core/workers/chunks/fcb4707c2e95099b9f30.js +1 -0
  110. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  111. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  112. package/chunks/BlurEmission.glsl.js +9 -4
  113. package/chunks/GlobalIllumination.glsl.js +55 -46
  114. package/chunks/GlobalIlluminationBlur.glsl.js +13 -9
  115. package/chunks/RibbonLine.glsl.js +90 -88
  116. package/chunks/Terrain.glsl.js +9 -9
  117. package/chunks/libtess-f32.js +1 -1
  118. package/chunks/libtess-f64.js +1 -1
  119. package/chunks/lyr3DMain.js +1 -1
  120. package/chunks/lyr3DWorker.js +2 -2
  121. package/config.d.ts +3 -3
  122. package/config.js +1 -1
  123. package/core/has.js +1 -1
  124. package/core/mathUtils.js +1 -1
  125. package/core/workers.d.ts +1 -0
  126. package/form/FormTemplate.d.ts +1 -1
  127. package/geometry/libtess.js +1 -1
  128. package/geometry/projection/projectors.js +1 -1
  129. package/geometry/support/MeshLocalVertexSpace.d.ts +3 -3
  130. package/geometry/support/aaBoundingRect.js +1 -1
  131. package/geometry/support/meshUtils/convertMeshVertexSpace.js +1 -1
  132. package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
  133. package/identity/Credential.d.ts +1 -1
  134. package/identity/IdentityManager.d.ts +1 -1
  135. package/identity/IdentityManagerBase.js +1 -1
  136. package/identity/OAuthInfo.d.ts +1 -1
  137. package/identity/ServerInfo.d.ts +1 -1
  138. package/kernel.d.ts +3 -3
  139. package/kernel.js +1 -1
  140. package/layers/CSVLayer.js +1 -1
  141. package/layers/GaussianSplatLayer.js +1 -1
  142. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  143. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  144. package/layers/VectorTileLayer.d.ts +2 -2
  145. package/layers/VideoLayer.js +1 -1
  146. package/layers/VoxelWasmPerSceneView.js +1 -1
  147. package/layers/WFSLayer.d.ts +8 -4
  148. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  149. package/layers/graphics/sources/CSVSource.js +1 -1
  150. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  151. package/layers/graphics/sources/MemorySource.js +2 -2
  152. package/layers/graphics/sources/WFSSource.js +1 -1
  153. package/layers/graphics/sources/geojson/geojson.js +1 -1
  154. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  155. package/layers/graphics/sources/support/QueryTask.js +1 -1
  156. package/layers/graphics/sources/support/timeQueryUtils.js +2 -0
  157. package/layers/mixins/APIKeyMixin.d.ts +1 -1
  158. package/layers/mixins/ArcGISMapService.d.ts +17 -0
  159. package/layers/mixins/ArcGISMapService.js +1 -1
  160. package/layers/ogc/types.d.ts +1 -1
  161. package/layers/ogc/wfsUtils.d.ts +7 -2
  162. package/layers/ogc/wfsUtils.js +1 -1
  163. package/layers/ogc/xmlUtils.js +1 -1
  164. package/layers/support/TelemetryData.d.ts +28 -4
  165. package/layers/support/TimeInformation.js +1 -1
  166. package/layers/support/tiles3DUtils.js +1 -1
  167. package/layers/support/timeInfoUtils.js +2 -0
  168. package/layers/video/videoUtils.js +1 -1
  169. package/package.json +4 -4
  170. package/rest/query/executeAttributeBinsQuery.js +1 -1
  171. package/rest/query/executeForExtent.js +1 -1
  172. package/rest/query/executeForTopCount.js +1 -1
  173. package/rest/query/executeForTopExtents.js +1 -1
  174. package/rest/query/executeForTopIds.js +1 -1
  175. package/rest/query/executeTopFeaturesQuery.js +1 -1
  176. package/rest/query/operations/query.js +1 -1
  177. package/rest/query/operations/queryAttributeBins.js +1 -1
  178. package/rest/query/operations/queryTopFeatures.js +1 -1
  179. package/rest/route.d.ts +1 -1
  180. package/rest/support/AreasAndLengthsParameters.d.ts +1 -1
  181. package/rest/support/LengthsParameters.d.ts +1 -1
  182. package/rest/support/timeUtils.js +1 -1
  183. package/symbols/TextSymbol.d.ts +0 -1
  184. package/views/2d/engine/webgl/FeatureDisplayList.js +1 -1
  185. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  186. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  187. package/views/2d/engine/webgl/TextureManager.js +1 -1
  188. package/views/2d/engine/webgl/materialKeyUtils.js +2 -0
  189. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  190. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  191. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  192. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  193. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillMeshWriter.js +1 -1
  194. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillMeshWriter.js +1 -1
  195. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillMeshWriter.js +1 -1
  196. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillMeshWriter.js +1 -1
  197. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  198. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeMeshWriter.js +1 -1
  199. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineMeshWriter.js +1 -1
  200. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  202. package/views/2d/layers/VideoLayerView2D.js +1 -1
  203. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  204. package/views/3d/FocusAreasView.js +1 -1
  205. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
  206. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementVisualization.js +1 -1
  207. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  208. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  209. package/views/3d/analysis/ShadowCast/ShadowCastError.d.ts +40 -0
  210. package/views/3d/analysis/ShadowCast/ShadowCastError.js +2 -0
  211. package/views/3d/analysis/ShadowCast/sunlightUtils.js +2 -0
  212. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +16 -1
  213. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  214. package/views/3d/camera/constraintUtils/surfaceCollision.js +1 -1
  215. package/views/3d/camera/intersectionUtils.js +1 -1
  216. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  217. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  218. package/views/3d/layers/Lyr3DWorker.js +1 -1
  219. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  220. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  221. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  222. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  223. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  224. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  225. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  226. package/views/3d/layers/graphics/MeshFastUpdateProcessor.js +1 -1
  227. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  228. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  229. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  230. package/views/3d/layers/support/FeatureMemory.js +1 -1
  231. package/views/3d/layers/support/FeatureTile.js +1 -1
  232. package/views/3d/navigation/modes/GroundNavigationMode3D.js +1 -1
  233. package/views/3d/state/Constraints.js +1 -1
  234. package/views/3d/state/NearFarHeuristic.js +1 -1
  235. package/views/3d/state/ScreenSizePerspective.js +1 -1
  236. package/views/3d/state/ViewStateManager.js +1 -1
  237. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  238. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  239. package/views/3d/support/RenderCoordsHelper.js +1 -1
  240. package/views/3d/support/orientedBoundingBox.js +1 -1
  241. package/views/3d/support/sphereExtentUtils.js +1 -1
  242. package/views/3d/terrain/TerrainRenderer.js +1 -1
  243. package/views/3d/terrain/TerrainSurface.js +1 -1
  244. package/views/3d/terrain/TileRenderer.js +1 -1
  245. package/views/3d/terrain/tileUtils.js +1 -1
  246. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  247. package/views/3d/webgl-engine/lib/NavigationDepthCache.js +1 -1
  248. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  249. package/views/3d/webgl-engine/lib/RibbonLineVertexInfo.js +1 -1
  250. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  251. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  252. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  253. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  254. package/views/3d/webgl.d.ts +1 -1
  255. package/views/SceneView.js +1 -1
  256. package/views/support/Scheduler.js +1 -1
  257. package/views/webgl/BufferObject.js +1 -1
  258. package/views/webgl/FramebufferObject.js +1 -1
  259. package/widgets/Directions.d.ts +1 -1
  260. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  261. package/widgets/HistogramRangeSlider.d.ts +1 -1
  262. package/assets/esri/core/workers/chunks/0e445ec3523de9f2dfa2.js +0 -1
  263. package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +0 -1
  264. package/assets/esri/core/workers/chunks/131185d26343a997495e.js +0 -1
  265. package/assets/esri/core/workers/chunks/176d0a06ebff5a29dedf.js +0 -1
  266. package/assets/esri/core/workers/chunks/18776a130d96879a68b1.js +0 -1
  267. package/assets/esri/core/workers/chunks/1a3f71c4d97c36050030.js +0 -1
  268. package/assets/esri/core/workers/chunks/20a698709c3c11ff2c16.js +0 -1
  269. package/assets/esri/core/workers/chunks/2226c20c38e20713bcb5.js +0 -2
  270. package/assets/esri/core/workers/chunks/277263466837e1673f56.js +0 -1
  271. package/assets/esri/core/workers/chunks/2981e904ab62f3ed80d0.js +0 -2
  272. package/assets/esri/core/workers/chunks/32cc59e126df8c96a0cf.js +0 -2
  273. package/assets/esri/core/workers/chunks/379ef56f6b32494832a6.js +0 -1
  274. package/assets/esri/core/workers/chunks/38d852676677e5697864.js +0 -1
  275. package/assets/esri/core/workers/chunks/46453ebfee17b5421d9d.js +0 -1
  276. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +0 -1
  277. package/assets/esri/core/workers/chunks/5bb6c255bdc8aa9ba23e.js +0 -1
  278. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +0 -1
  279. package/assets/esri/core/workers/chunks/654f5441227579d2b6b4.js +0 -1
  280. package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +0 -1
  281. package/assets/esri/core/workers/chunks/6bb191b19ce43a27f205.js +0 -1
  282. package/assets/esri/core/workers/chunks/6ddc29a144640acb1192.js +0 -1
  283. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +0 -1
  284. package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +0 -1
  285. package/assets/esri/core/workers/chunks/7084dd6e10c6c1393e92.js +0 -1
  286. package/assets/esri/core/workers/chunks/7566321c6a2913f2852b.js +0 -1
  287. package/assets/esri/core/workers/chunks/7b5cd150a4d0139850be.js +0 -1
  288. package/assets/esri/core/workers/chunks/7cc9d7a88b64e25fce14.js +0 -1
  289. package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +0 -1
  290. package/assets/esri/core/workers/chunks/844eedda8f749972f707.js +0 -2
  291. package/assets/esri/core/workers/chunks/849f446c718e892f39ce.js +0 -1
  292. package/assets/esri/core/workers/chunks/87177e0f82e8a6ae3189.js +0 -1
  293. package/assets/esri/core/workers/chunks/9976eaa81085c0d17e14.js +0 -1
  294. package/assets/esri/core/workers/chunks/a2196a49f89d57a0a1c7.js +0 -1
  295. package/assets/esri/core/workers/chunks/a504a5e06cb89a620799.js +0 -1
  296. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +0 -1
  297. package/assets/esri/core/workers/chunks/aba259a70bee68d2edb7.js +0 -1
  298. package/assets/esri/core/workers/chunks/b8fd7c3b36981261378b.js +0 -1
  299. package/assets/esri/core/workers/chunks/b9cb92858a576eb6aa06.js +0 -1
  300. package/assets/esri/core/workers/chunks/c33a9635c294c8774977.js +0 -1
  301. package/assets/esri/core/workers/chunks/c570b90995c65bbb2e14.js +0 -1
  302. package/assets/esri/core/workers/chunks/c576bef77e34920af188.js +0 -1
  303. package/assets/esri/core/workers/chunks/cf1ec61eb2ad147bb931.js +0 -1
  304. package/assets/esri/core/workers/chunks/daae21cf77864f3293ef.js +0 -1
  305. package/assets/esri/core/workers/chunks/dc2f93453dfa40f623ab.js +0 -1
  306. package/assets/esri/core/workers/chunks/e81173724e8de8c1e65b.js +0 -1
  307. package/assets/esri/core/workers/chunks/e83f9abee611c5b80009.js +0 -1
  308. package/assets/esri/core/workers/chunks/f39c700f3db7db52b522.js +0 -1
  309. package/assets/esri/core/workers/chunks/f45064066e1ab041a0b2.js +0 -1
  310. package/assets/esri/core/workers/chunks/ffe49d9e7df081bef4a5.js +0 -1
  311. package/views/2d/engine/webgl/hashMosaic.js +0 -2
  312. /package/assets/esri/core/workers/chunks/{0cc7fba402a93e6d2455.js.LICENSE.txt → 1ae0c9345626e70affd3.js.LICENSE.txt} +0 -0
  313. /package/assets/esri/core/workers/chunks/{844eedda8f749972f707.js.LICENSE.txt → 2b4dd42920d37b1ff0a9.js.LICENSE.txt} +0 -0
  314. /package/assets/esri/core/workers/chunks/{32cc59e126df8c96a0cf.js.LICENSE.txt → 4f3e0d583cfa9d1d6727.js.LICENSE.txt} +0 -0
  315. /package/assets/esri/core/workers/chunks/{bd46a04a9ee4ea9e6ef1.js.LICENSE.txt → 5864bce1498a13ee5b7e.js.LICENSE.txt} +0 -0
  316. /package/assets/esri/core/workers/chunks/{2981e904ab62f3ed80d0.js.LICENSE.txt → db1f7b2562de495b3401.js.LICENSE.txt} +0 -0
  317. /package/assets/esri/core/workers/chunks/{164c8eeefa8232b2b191.js.LICENSE.txt → eaa0e906b46ae4c84d72.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8331],{83349(e,t,r){r.d(t,{e:()=>o});const n=new Set;let i=!1;function o(e,t,r=2){let i=t&&t.length,o=i?t[0]*r:e.length;n.size&&n.clear();let l=s(e,0,o,r,!0),u=[];if(!l||l.next===l.prev)return u;let c=0,f=0,p=0;if(i&&(l=g(e,t,l,r)),e.length>80*r){c=e[0],f=e[1];let t=c,n=f;for(let i=r;i<o;i+=r){let r=e[i],o=e[i+1];r<c&&(c=r),o<f&&(f=o),r>t&&(t=r),o>n&&(n=o)}p=Math.max(t-c,n-f),p=0===p?0:32767/p}return a(l,u,c,f,p),u}function s(e,t,r,n,i){let o=null;if(i===k(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=$(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=$(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(F(o),o=o.next),o}function l(e,t=e){let r,o=t===e,s=e;do{r=!1,s===s.next||0!==n.size&&n.has(s)||!O(s,s.next)&&0!==L(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,F(s),s=s.prev,r=!0)}while(r||s!==t);return t}function a(e,t,r,n,o){o&&function(e,t,r,n){let i=e,o=0;do{i.z=_(i.x,i.y,t,r,n),T[o++]=i,i=i.next}while(i!==e);!function(e){if(e<=32)for(let t=1;t<e;t++){let e=T[t],r=e.z,n=t-1;for(;n>=0&&T[n].z>r;)T[n+1]=T[n],n--;T[n+1]=e}else{R.length<e&&(R=new Uint32Array(e),Z=new Uint32Array(e),S=Array(e));for(let t=0;t<e;t++)R[t]=T[t].z;N(e,T,R,S,Z,0),N(e,S,Z,T,R,8),N(e,T,R,S,Z,16),N(e,S,Z,T,R,24)}}(o);let s=null;for(let e=0;e<o;e++){let t=T[e];t.prevZ=s,s&&(s.nextZ=t),s=t}s.nextZ=null,T.fill(null,0,o),S.fill(null,0,o)}(e,r,n,o);let s=e,a=!1;for(;e.prev!==e.next;){let h=e.prev,g=e.next;if(L(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),F(e),e=g,s=g;else if((e=g)===s){if(i=!1,e=l(e),i){s=e;continue}if(!a){s=e=f(e,t),a=!0;continue}p(e,t,r,n,o);break}}}function u(e){let t=e.prev,r=e,n=e.next,i=t.x,o=r.x,s=n.x,l=t.y,a=r.y,u=n.y,c=Math.min(i,o,s),f=Math.min(l,a,u),p=Math.max(i,o,s),h=Math.max(l,a,u),g=n.next;for(;g!==t;){if(g.x>=c&&g.x<=p&&g.y>=f&&g.y<=h&&(i!==g.x||l!==g.y)&&j(i,l,o,a,s,u,g.x,g.y)&&L(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function c(e,t,r,n){let i=e.prev,o=e,s=e.next,l=i.x,a=o.x,u=s.x,c=i.y,f=o.y,p=s.y,h=Math.min(l,a,u),g=Math.min(c,f,p),y=Math.max(l,a,u),d=Math.max(c,f,p),m=_(h,g,t,r,n),x=_(y,d,t,r,n),v=e.prevZ;for(;v&&v.z>=m;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=d&&v!==s&&(l!==v.x||c!==v.y)&&j(l,c,a,f,u,p,v.x,v.y)&&L(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let w=e.nextZ;for(;w&&w.z<=x;){if(w.x>=h&&w.x<=y&&w.y>=g&&w.y<=d&&w!==s&&(l!==w.x||c!==w.y)&&j(l,c,a,f,u,p,w.x,w.y)&&L(w.prev,w,w.next)>=0)return!1;w=w.nextZ}return!0}function f(e,t){let r=e,n=!1;do{let i=r.prev,o=r.next.next;z(i,r,r.next,o,!1)&&D(i,o)&&D(o,i)&&(t.push(i.i,r.i,o.i),F(r),F(r.next),r=e=o,n=!0),r=r.next}while(r!==e);return n?l(r):r}function p(e,t,r,n,i){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&E(o,e)){let s=I(o,e);return o=l(o,o.next),s=l(s,s.next),a(o,t,r,n,i),void a(s,t,r,n,i)}e=e.next}o=o.next}while(o!==e)}let h=!1;function g(e,t,r,i){let o=[];for(let r=0,l=t.length;r<l;r++){let a=s(e,t[r]*i,r<l-1?t[r+1]*i:e.length,i,!1);a===a.next&&n.add(a),o.push(B(a))}o.sort(y),function(e,t){let r=Math.ceil((e+2*t)/16)+t+2;m.length<4*r&&(m=new Float64Array(4*r)),x=0}(e.length/i,t.length),A(r,r),h=!0;for(let e=0;e<o.length;e++)r=d(o[e],r);return h=!1,l(r)}function y(e,t){return e.x-t.x||e.y-t.y||(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)}function d(e,t){let r=function(e,t){let r,n=t,i=e.x,o=e.y,s=-1/0;if(O(e,n))return n;for(let t=0,l=0;t<x;t++,l+=4){if(o<m[l+1]||o>m[l+3]||m[l]>i||m[l+2]<=s)continue;let a=b(t);n=M(t);do{if(n.prev.next===n){if(O(e,n.next))return n.next;if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){let e=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(e<=i&&e>s&&(s=e,r=n.x<n.next.x?n:n.next,e===i))return r}}n=n.next}while(n!==a)}if(!r)return null;let l=r.x,a=r.y,u=Math.min(o,a),c=Math.max(o,a),f=1/0;for(let t=0,p=0;t<x;t++,p+=4){if(m[p+2]<l||m[p]>i||m[p+3]<u||m[p+1]>c)continue;let h=b(t);n=M(t);do{if(n.prev.next===n&&i>=n.x&&n.x>=l&&i!==n.x&&j(o<a?i:s,o,l,a,o<a?s:i,o,n.x,n.y)){let t=Math.abs(o-n.y)/(i-n.x);(D(n,e)||n.y===o&&n.next.y===o&&n.next.x>i)&&(t<f||t===f&&(n.x>r.x||n.x===r.x&&C(r,n)))&&(r=n,f=t)}n=n.next}while(n!==h)}return r}(e,t);if(!r)return t;let n=I(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let m=new Float64Array,x=0;const v=[],w=[];function A(e,t){let r=e;do{let e=x++;v[e]=r;let n=1/0,i=1/0,o=-1/0,s=-1/0,l=0;do{let t=r.next;r.z=e,r.x<n&&(n=r.x),r.x>o&&(o=r.x),r.y<i&&(i=r.y),r.y>s&&(s=r.y),t.x<n&&(n=t.x),t.x>o&&(o=t.x),t.y<i&&(i=t.y),t.y>s&&(s=t.y),r=t}while(++l<16&&r!==t);w[e]=r;let a=4*e;m[a]=n,m[a+1]=i,m[a+2]=o,m[a+3]=s}while(r!==t)}function b(e){let t=w[e];for(;t.prev.next!==t;)t=t.next;return w[e]=t,t}function M(e){let t=v[e];for(;t.prev.next!==t;)t=t.next;return v[e]=t,t}function C(e,t){return L(e.prev,e,t.prev)<0&&L(t.next,e,e.next)<0}const T=[];let S=[],R=new Uint32Array,Z=new Uint32Array;const U=new Uint32Array(256);function N(e,t,r,n,i,o){U.fill(0);for(let t=0;t<e;t++)U[r[t]>>>o&255]++;let s=0;for(let e=0;e<256;e++){let t=U[e];U[e]=s,s+=t}for(let s=0;s<e;s++){let e=r[s],l=U[e>>>o&255]++;n[l]=t[s],i[l]=e}}function _(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function B(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function j(e,t,r,n,i,o,s,l){return(i-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(n-l)>=(r-s)*(t-l)&&(r-s)*(o-l)>=(i-s)*(n-l)}function E(e,t){let r=O(e,t)&&L(e.prev,e,e.next)>0&&L(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||D(e,t)&&D(t,e)&&(0!==L(e.prev,e,t.prev)||0!==L(e,t.prev,t)))&&!function(e,t){let r=Math.min(e.x,t.x),n=Math.max(e.x,t.x),i=Math.min(e.y,t.y),o=Math.max(e.y,t.y),s=e;do{let l=s.next;if(s.x>n&&l.x>n||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<i&&l.y<i)s=l;else{if(s.i!==e.i&&l.i!==e.i&&s.i!==t.i&&l.i!==t.i&&z(s,l,e,t))return!0;s=l}}while(s!==e);return!1}(e,t)&&(r||function(e,t){let r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{let e=r.next;r.y>o!=e.y>o&&i<(e.x-r.x)*(o-r.y)/(e.y-r.y)+r.x&&(n=!n),r=e}while(r!==e);return n}(e,t))}function L(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function z(e,t,r,n,i=!0){let o=L(e,t,r),s=L(e,t,n),l=L(r,n,e),a=L(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&P(e,r,t)||0===s&&P(e,n,t)||0===l&&P(r,e,n)||0===a&&P(r,t,n))}function P(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function D(e,t){return L(e.prev,e,e.next)<0?L(e,t,e.next)>=0&&L(e,e.prev,t)>=0:L(e,t,e.prev)<0||L(e,e.next,t)<0}function I(e,t){let r=H(e.i,e.x,e.y),n=H(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function $(e,t,r,n){let i=H(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function F(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),h&&function(e,t){let r=4*e.z;t.x<m[r]&&(m[r]=t.x),t.y<m[r+1]&&(m[r+1]=t.y),t.x>m[r+2]&&(m[r+2]=t.x),t.y>m[r+3]&&(m[r+3]=t.y)}(e.prev,e.next)}function H(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function k(e,t,r,n){let i=0;for(let o=t,s=r-n;o<r;o+=n)i+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return i}let K,W,q,V,G,Y=0,J=0;function Q(e,t,r,n,i,o){return(r-e)*(o-t)-(n-t)*(i-e)}function X(e,t,r,n,i,o,s,l){let a=e-s,u=t-l,c=r-s,f=n-l,p=i-s,h=o-l,g=a*a+u*u,y=c*c+f*f,d=p*p+h*h,m=g+y+d;return a*(f*d-y*h)-u*(c*d-y*p)+g*(c*h-f*p)<=1e-13*m*m}function ee(e){return e-e%3+(e+1)%3}o.deviation=function(e,t,r,n){let i=t&&t.length,o=i?t[0]*r:e.length,s=Math.abs(k(e,0,o,r));if(i)for(let n=0,i=t.length;n<i;n++){let o=t[n]*r,l=n<i-1?t[n+1]*r:e.length;s-=Math.abs(k(e,o,l,r))}let l=0;for(let t=0;t<n.length;t+=3){let i=n[t]*r,o=n[t+1]*r,s=n[t+2]*r;l+=Math.abs((e[i]-e[s])*(e[o+1]-e[i+1])-(e[i]-e[o])*(e[s+1]-e[i+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},o.flatten=function(e){let t=[],r=[],n=e[0][0].length,i=0,o=0;for(let s of e){for(let e of s)for(let r=0;r<n;r++)t.push(e[r]);o&&(i+=o,r.push(i)),o=s.length}return{vertices:t,holes:r,dimensions:n}},o.refine=function(e,t,r=2){let n=e,i=n.length;if(i<6)return;(function(e){(!K||K.length<e)&&(K=new Int32Array(e)),(!W||W.length<e)&&(W=new Int32Array(e)),(!G||G.length<e)&&(G=new Uint8Array(e));let t=1;for(;t<4*e;)t<<=1;(!q||q.length<t)&&(q=new Int32Array(t),V=new Uint32Array(t)),Y=t-1})(i),J++,W.fill(-1,0,i);let o=0;for(let e=0;e<i;e++){let t=n[e],r=n[ee(e)],i=t<r?t:r,s=t<r?r:t,l=(Math.imul(i,2654435761)^Math.imul(s,2246822507))&Y;for(;V[l]===J;){let t=q[l];if(-1!==t){let r=n[t],a=n[ee(t)];if(r===i&&a===s||r===s&&a===i){W[e]=t,W[t]=e,q[l]=-1,G[t]=1,K[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=K[--o];G[e]=0;let i=W[e];if(-1===i)continue;let s=e-e%3,l=i-i%3,a=s+(e+2)%3,u=s+(e+1)%3,c=l+(i+2)%3,f=l+(i+1)%3,p=n[a],h=n[e],g=n[u],y=n[c],d=t[p*r],m=t[p*r+1],x=t[h*r],v=t[h*r+1],w=t[g*r],A=t[g*r+1],b=t[y*r],M=t[y*r+1];if(!X(d,m,x,v,w,A,b,M)&&Q(d,m,x,v,b,M)>0&&Q(d,m,b,M,w,A)>0){n[e]=y,n[i]=p;let t=W[c],r=W[a];W[e]=t,-1!==t&&(W[t]=e),W[i]=r,-1!==r&&(W[r]=i),W[a]=c,W[c]=a,-1!==t&&0===G[e]&&(G[e]=1,K[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,K[o++]=i),-1!==W[u]&&0===G[u]&&(G[u]=1,K[o++]=u),-1!==W[f]&&0===G[f]&&(G[f]=1,K[o++]=f)}}}},73354(e,t,r){r.d(t,{a:()=>f,b:()=>l,c:()=>i,d:()=>s,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>o}),r(44208);var n=r(72727);function i(e,t,r){o(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[4],h=r[5],g=r[6],y=r[8],d=r[9],m=r[10],x=r[12],v=r[13],w=r[14],A=0,b=0;for(let r=0;r<a;r++){let r=t[A],n=t[A+1],s=t[A+2];e[b]=u*r+p*n+y*s+x,e[b+1]=c*r+h*n+d*s+v,e[b+2]=f*r+g*n+m*s+w,A+=o,b+=i}return e}function s(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=r[0],c=r[1],f=r[2],p=r[3],h=r[4],g=r[5],y=r[6],d=r[7],m=r[8],x=0,v=0;for(let r=0;r<a;r++){let r=t[x],n=t[x+1],s=t[x+2];e[v]=u*r+p*n+y*s,e[v+1]=c*r+h*n+d*s,e[v+2]=f*r+g*n+m*s,x+=o,v+=i}}function a(e,t,r,n=3,i=n){let o=Math.min(e.length/n,t.length/i),s=0,l=0;for(let a=0;a<o;a++)e[l]=r*t[s],e[l+1]=r*t[s+1],e[l+2]=r*t[s+2],s+=i,l+=n;return e}function u(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,n,i=3,o=i){let s=Math.min(e.length/i,t.length/o),l=0,a=0,u=1/2.2;for(let c=0;c<s;c++)e[a]=n*(r*t[l])**u,e[a+1]=n*(r*t[l+1])**u,e[a+2]=n*(r*t[l+2])**u,l+=o,a+=i}function f(e,t,r,i=3,o=i){let s=(0,n.k)(e.length,i,3),l=(0,n.k)(t.length,o,3),a=Math.min(s,l),u=0,c=0;for(let n=0;n<a;n++)e[c]=t[u]+r[0],e[c+1]=t[u+1]+r[1],e[c+2]=t[u+2]+r[2],u+=o,c+=i;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,r=3,n=r){let i=Math.min(e.length/r,t.length/n),o=0,s=0;for(let l=0;l<i;l++){let i=t[o],l=t[o+1],a=t[o+2],u=i*i+l*l+a*a;if(u>0){let t=1/Math.sqrt(u);e[s]=t*i,e[s+1]=t*l,e[s+2]=t*a}o+=n,s+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:a,scaleView:function(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){let n=Math.min(e.count,t.count),i=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,l=t.typedBufferStride,a=0,u=0;for(let e=0;e<n;e++)i[u]=s[a]>>r,i[u+1]=s[a+1]>>r,i[u+2]=s[a+2]>>r,a+=l,u+=o},transformMat3:l,transformMat3View:s,transformMat4:o,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},21287(e,t,r){r.d(t,{M5:()=>f,eV:()=>c});var n=r(56507),i=r(49186),o=r(17676),s=r(84952),l=r(26306);let a=null,u=!0;function c(e,t,r,n){if(!t||!r)throw Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,r)}catch{u=!1}let i=function(e,t,r){return r||=(a||(a=document.createElement("canvas"),a.width=1,a.height=1),a),r.getContext("2d").createImageData(e,t)}(t,r,n);return i.data.set(e,0),i}async function f(e,t){let{arrayBuffer:a,mediaType:u}=await async function(e,t){let r=(0,s.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,l.M)(r.data),mediaType:r.mediaType};let i=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(10820));if(e(a))return n(a,t)}if(c){let{isAnimatedPNG:e,parseApng:n}=await r.e(2390).then(()=>r(22390));if(e(a))return n(a,t)}return async function(e,t){let r=window.URL.createObjectURL(e);try{let{data:e}=await(0,n.A)(r,{...t,responseType:"image"});return e}catch(e){throw(0,o.zf)(e)?e:new i.A("invalid-image",`Could not fetch requested image at ${r}`)}finally{window.URL.revokeObjectURL(r)}}(new Blob([a],{type:u}),t)}},83300(e,t,r){r.d(t,{A:()=>Me});var n=r(32198),i=r(69540),o=r(92474),s=r(53966),l=r(61893),a=r(17676),u=r(36708),c=r(91429),f=r(51850),p=r(91075),h=r(86738),g=r(70328),y=r(24770),d=r(16939),m=r(95696),x=r(18251),v=r(73836),w=r(1193),A=r(27615),b=r(35522),M=r(65806);function C(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var T=r(22141),S=r(72258);const R=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const Z=(0,f.vt)(),U=(0,f.vt)(),N=(0,f.vt)();var _=r(9093),B=r(5443),j=r(99917),E=r(98764),L=r(48353),O=r(9762),z=r(4197),P=r(73354);const D=(0,_.vt)(),I=(0,z.jh)(24);var $=r(49186),F=r(84952);function H(e){let t=(0,F.nM)(e.url);return r=>{let n=(0,F.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return J.fromBlob(e,Q(e.name,e.type))}const K=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,q=/\.gltf$/i,V=/\.glb$/i;function G({mimeType:e,source:t,name:r}){return K.test(e)||q.test(r)?{url:t.url,type:"gltf"}:W.test(e)||V.test(r)?{url:t.url,type:"glb"}:null}function Y(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=G(i),"ESRI3DO_NORM.glb"===o&&(n=G(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new $.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new J(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class J{constructor(e,t=()=>{},r=new Map,n){this.url=e,this.dispose=t,this.files=r,this.type=n}static fromBlob(e,t){let r=URL.createObjectURL(e);return new J(r,()=>URL.revokeObjectURL(r),void 0,t)}}function Q(e,t){return K.test(t)||q.test(e)?"gltf":W.test(t)||q.test(e)?"glb":void 0}var X=r(66895),ee=r(29461),te=r(77690),re=r(29242),ne=r(58083),ie=r(67026),oe=r(82534);const se=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function le(e,t,r,n=f.uY){if(null!=e){(0,ne.$0)(fe,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)ae[r]=e[t+r]-n[r];(0,b.Z0)(ae,ae,fe);for(let r=0;r<3;r++)e[t+r]=ae[r]+n[r]}}}const ae=(0,f.vt)(),ue=(0,_.vt)(),ce=(0,y.vt)(),fe=(0,_.vt)(),pe=(0,re.vt)(),he=(0,f.vt)(),ge=(0,oe.vt)(),ye=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function de(e,t,r=f.uY){if(e)for(let n=0;n<e.length;n+=3){for(let t=0;t<3;t++)me[t]=e[n+t]-r[t];(0,b.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,f.vt)(),xe=(0,f.vt)(),ve=(0,_.vt)(),we=(0,f.vt)();var Ae;const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:m.A,local:x.A}};let Me=Ae=class extends((0,i.OU)((0,o.WV)((0,l.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new m.A,this.transform=null,this.metadata=new ee.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new w.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))}).catch(()=>{})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){let{spatialReference:e,vertexSpace:t}=this,r=this;return function(e){let{spatialReference:t,vertexSpace:r,untransformedBounds:n}=e,i=(0,g.gE)(n,I);if((0,A.Hq)(r)&&e.transform&&(0,P.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,P.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,E.lO)(t),s=r.origin;if(!(0,j.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new B.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,L.l)(t,s,D,o),(0,P.t)(i,i,D),(0,O.projectBuffer)(i,o,0,i,t,0),(0,g.w1)((0,g.vY)(i),t)}({get transform(){return r.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){let{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,g.vt)(g.v_):(0,g.vY)(e)}get origin(){let e=(0,A.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;let{center:t,zmin:r}=this._transformedExtent;return new h.A({x:t.x,y:t.y,z:r,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||=[],this.components.push(d.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){let t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,r,n){return(0,y.AU)(e,t,r,Ce),function(e,t,r){if(!e.vertexAttributes?.position||0===t[3])return;let{spatialReference:n,vertexSpace:i}=e,o=r?.origin??e.origin;(0,A.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[s,l,a]=n.origin,u=new h.A({x:s,y:l,z:a,spatialReference:o}),c=ae;if(u.equals(r))(0,b.hZ)(c,0,0,0);else if(!(0,S.p5)(c,r,e))return void(0,T.CN)(se(),r.spatialReference,o,T.JP);(0,ie.x8)(ge,(0,y.yo)(t),(0,y.$I)(t));let p=(0,ne.O7)(ue,ge,f.uY,f.Un,c),{localMatrix:g}=i,d=(0,ne.lw)(ue,p,g);i.scale=(0,ne.X_)((0,f.vt)(),d),(0,ne.hs)(d,d,(0,b.DI)(ae,i.scale));let m=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=m),i.translation=(0,ne.sC)((0,f.vt)(),d)}(e,t,o):C(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,E.lO)(n),o=he;if(!(0,M.g)(r,o,i)&&((0,T.CN)(se(),r.spatialReference,i,"Falling back to mesh origin"),!(0,M.g)(e.origin,o,i)))return void(0,T.CN)(se(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,L.l)(i,o,fe,i),(0,te.z0)(pe,fe);let p=ce;(0,b.ei)((0,y.yo)(ce),(0,y.yo)(t),pe),p[3]=t[3],(0,T.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,T.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,T.xA)(a,s,n,u,i,f)?(0,T.CN)(se(),n,i):(le(u,p,3,o),(0,T.$5)(u,i,s,n)?null!=l&&null!=c&&(le(c,p,3),!(0,T.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(le(f,p,4),!(0,T.Mv)(f,s,n,u,i,a))?(0,T.CN)(se(),i,n):e.vertexAttributesChanged():(0,T.CN)(se(),i,n)):(0,T.CN)(se(),n,i)}(e,t,o):function(e,t,r){let n=he;if((0,M.g)(r,n,e.spatialReference))le(e.vertexAttributes.position,t,3,n),le(e.vertexAttributes.normal,t,3),le(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,T.CN)(se(),r.spatialReference,e.spatialReference,T.JP)}}(e,t,o)}(this,Ce,n),this}offset(e,t,r){if(!this._checkIfLoaded("offset()"))return this;let{vertexSpace:n,vertexAttributes:i}=this,o=i?.position;if(!o)return this;if((0,A.Hq)(n)){let[i,o,s]=n.origin;n.origin=(0,f.fA)(i+e,o+t,s+r)}else{for(let n=0;n<o.length;n+=3)o[n]+=e,o[n+1]+=t,o[n+2]+=r;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n,spatialReference:i}=e,o=r?.origin??e.origin;(0,A.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[s,l,a]=n.origin,u=new h.A({x:s,y:l,z:a,spatialReference:o}),c=me;if(u.equals(r))(0,b.hZ)(c,0,0,0);else if(!(0,S.p5)(c,r,e))return void(0,T.CN)(ye(),r.spatialReference,o,T.JP);let p=(0,b.hZ)(xe,t,t,t),g=(0,ne.O7)(ve,oe.zK,f.uY,p,c),{localMatrix:d}=i,m=(0,ne.lw)(ve,g,d);i.scale=(0,ne.X_)((0,f.vt)(),m),(0,ne.hs)(m,m,(0,b.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,ne.sC)((0,f.vt)(),m)}(e,t,o):C(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,E.lO)(n),o=we;if(!(0,M.g)(r,o,i)&&((0,T.CN)(ye(),r.spatialReference,i,"Falling back to mesh origin"),!(0,M.g)(e.origin,o,i)))return void(0,T.CN)(ye(),e.origin.spatialReference,i);let s=e.vertexAttributes.position,l=e.vertexAttributes.normal,a=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null==l?null:new Float32Array(l.length),f=null==a?null:new Float32Array(a.length);(0,T.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,T.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,T.xA)(a,s,n,u,i,f)?(0,T.CN)(ye(),n,i):(de(u,t,o),(0,T.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,T.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,T.Mv)(f,s,n,u,i,a)?(0,T.CN)(ye(),i,n):e.vertexAttributesChanged():(0,T.CN)(ye(),i,n)):(0,T.CN)(ye(),n,i)}(e,t,o):function(e,t,r){let n=we;if((0,M.g)(r,n,e.spatialReference))de(e.vertexAttributes.position,t,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,T.CN)(ye(),r.spatialReference,e.spatialReference,T.JP)}}(e,t,o)}(this,e,t),this}centerAt(e,t){return this._checkIfLoaded("centerAt()")&&function(e,t,r){if(!e.vertexAttributes?.position)return;let{vertexSpace:n}=e,i=r?.origin??e.origin;(0,A.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,A.Hq)(n))return;let i=U,o=Z;if(!(0,M.g)(t,o,e.spatialReference))return void(0,T.CN)(R(),t.spatialReference,e.spatialReference,T.JP);if(!(0,M.g)(r,i,e.spatialReference))return void(0,T.CN)(R(),r.spatialReference,e.spatialReference,T.JP);let s=(0,b.Re)(N,o,i);n.origin=(0,b.WQ)((0,f.vt)(),n.origin,s)}(e,t,i):C(n,i.spatialReference)?function(e,t,r){let n=(0,f.fA)(r.x,r.y,r.z??0),i=(0,S.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,f.fA)(t.x,t.y,t.z??0),s=(0,S.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},m.A.absolute);if(!s)return;let{position:l,normal:a,tangent:u}=s;e.vertexAttributes.position=l,e.vertexAttributes.normal=a,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=U,i=Z;if((0,M.g)(t,i,e.spatialReference))if((0,M.g)(r,n,e.spatialReference))(function(e,t,r){if(e)for(let n=0;n<e.length;n+=3)for(let i=0;i<3;i++)e[n+i]+=t[i]-r[i]})(e.vertexAttributes.position,i,n),e.vertexAttributesChanged();else{let t=e.origin;n[0]=t.x,n[1]=t.y,n[2]=t.z,(0,T.CN)(R(),r.spatialReference,e.spatialReference,T.JP)}else(0,T.CN)(R(),t.spatialReference,e.spatialReference,T.JP)}(e,t,i)}(this,e,t),this}load(e){let{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,n){switch(t.source.type){case"client":case"service":return async function(e,t,n){let{source:i}=t,{loadGLTFMesh:o}=await(0,a.qr)(r.e(5841).then(()=>r(35841)),n),s=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new $.A("mesh-load-external:missing-assets","There must be at least one file to load");return Y(e.map(e=>({name:e.name,mimeType:e.type,source:k(e)})))}(e.files):k(e.files);case"service":return async function(e,t){if(!e.length)throw new $.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,a.nA)(e.map(async e=>{let r=await async function(e,t){let{parts:r,assetMimeType:n,assetName:i}=e;if(1===r.length)return new J(r[0].partUrl);let o=await e.toBlob(t);return(0,a.Te)(t),J.fromBlob(o,Q(i,n))}(e);return(0,a.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,a.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,a.NK)();return Y(r)}(e.assets,t);default:throw new $.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,a.Te)(n);let{mesh:{vertexAttributes:l,components:u},meta:{isDracoDecompressed:c}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:H(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(c)throw new $.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=u}(e,t,n);case"loadable":return t.source.load(e,n);default:t.source}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(e){return super.clone((0,X.WO)((0,X.QN)(e)))}cloneShallow(){return new Ae({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){let[{toBinaryGLTF:t}]=await Promise.all([r.e(4038).then(()=>r(84038)),this.load(e)]);return(0,a.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(s.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,c.MZ)({type:[d.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,c.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,X.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,c.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,X.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,c.MZ)({constructOnly:!0,type:ee.O,clonable:(e,t)=>(0,X.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,c.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,c.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,c.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,c.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,c.MZ)({type:w.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,X.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=Ae=(0,n.Cg)([(0,c.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>u,QT:()=>c});var n=r(32198),i=r(2741),o=r(49186),s=r(44208);r(34727);let l=null,a=null;async function u(){return l??=async function(){a=await(await r.e(2997).then(()=>r(42997))).default({locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`)})}(),l}function c(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=a;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let u=(0,n.mS)(i,h.from(l,e),!1),c=(0,n.mS)(i,g.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new h(l,f*r),!1),y=l.triangulate(u.ptr,c.ptr,c.size,r,p.ptr,f);if((0,s.A)("esri-tessellation-debug")){let e=l.getError();0!==e&&console.warn("libtess:triangulation",function(e){switch(e){case 100903:return"Insufficient output buffer";case 100902:return"Out of memory";case 100151:return"Missing begin polygon";case 100152:return"Missing begin contour";case 100153:return"Missing end polygon";case 100154:return"Missing end countour";case 100155:return"Coordinates too large";case 100156:return"Missing combine callback";default:return`Unknown: ${e}`}}(e))}return{buffer:p.slice(0,y*r),vertexCount:y}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}function f(e){return e.HEAPF32}function p(e){return e.HEAP32}new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class h{static from(e,t){let r=new h(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateCoordinateArray(t)}destroy(){this._libtess.destroyCoordinateArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Float32Array.BYTES_PER_ELEMENT}set(e){f(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return f(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class g{static from(e,t){let r=new g(e,t.length);return r.set(t),r}constructor(e,t){this._libtess=e,this.size=t,this.ptr=e.allocateLengthsArray(t)}destroy(){this._libtess.destroyLengthsArray(this.ptr)}[Symbol.dispose](){this.destroy()}get bytesPerCoordinate(){return Int32Array.BYTES_PER_ELEMENT}set(e){p(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=p(e);return new Uint32Array(t.buffer,t.byteOffset,t.length)}(this._libtess).slice(r+e,r+t)}}},97146(e,t,r){r.d(t,{Dg:()=>o,lc:()=>f,my:()=>s,tM:()=>p,uW:()=>i});var n=r(34275);function i(e){return o(e,!0)}function o(e,t){if(Array.isArray(e)){if(e.length<1024)return e}else if(e.length<1024)return Array.from(e);let r=!0,i=!0;return e.some((e,t)=>(r&&=0===e,i&&=e===t,!r&&!i)),r?function(e){if(1===e)return u;if(e<1024)return Array(e).fill(0);if(e>a.length){let t=Math.max(2*a.length,e);a=new Uint8Array(t)}return new Uint8Array(a.buffer,0,e)}(e.length):i?p(e.length):(0,n.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(let r of e){if(r>=65536)return(0,n.iu)(e)?e:new Uint32Array(e);r>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e,t=e){return e<=1024?Array(e):t<=65536?new Uint16Array(e):new Uint32Array(e)}let l=h(131072),a=new Uint8Array(65536);const u=[0],c=(()=>{let e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function f(e){if(e===u)return!0;if(!(0,n.iu)(e))return!1;let{buffer:t}=e;return t===c.buffer||t===l.buffer||t===a.buffer}function p(e){return 1===e?u:e<1024?function(e){let t=Array(e).fill(0);for(let r=0;r<e;r++)t[r]=r;return t}(e):e<c.length?new Uint16Array(c.buffer,0,e):(e>l.length&&(l=h(Math.max(2*l.length,e))),new Uint32Array(l.buffer,0,e))}function h(e){let t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}},16939(e,t,r){r.d(t,{A:()=>h});var n,i=r(32198),o=r(69540),s=r(25482),l=r(53966),a=r(91429),u=r(78888),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,o.OU)(s.o)){static from(e){return(0,u.PZ)(n,e)}constructor(e){super(e),this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}get faces(){return this._get("faces")??null}set faces(e){this._set("faces",(0,p.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},l.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,u.PZ)(f.A,e):(0,u.PZ)(c.A,e)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,i.Cg)([(0,a.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,a.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,a.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(69540),s=r(25482),l=r(91429),a=r(93223);let u=class extends((0,o.OU)(s.o)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i.Cg)([(0,a.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,l.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(69540),o=r(25482),s=r(91429),l=r(51850),a=r(93223);let u=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.type="local",this.origin=(0,l.vt)()}};(0,n.Cg)([(0,a.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,s.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(69540),s=r(25482),l=r(91429),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.color=null,this.colorTextureTransform=null,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}get colorTexture(){return this._get("colorTexture")}set colorTexture(e){this._set("colorTexture",null==e?null:a.A.from(e))}get normalTexture(){return this._get("normalTexture")}set normalTexture(e){this._set("normalTexture",null==e?null:a.A.from(e))}clone(e){let t=(0,c.hz)(e),r=t?.materialMap?.get(this);if(r)return r;let n=super.clone((0,c.QN)(e));return t?.materialMap?.set(this,n),n}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null==this.color?0:16,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null==this.colorTextureTransform?0:20,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null==this.normalTextureTransform?0:20,e}};(0,n.Cg)([(0,l.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,l.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,l.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,l.$K)("esri.geometry.support.MeshMaterial")],f)},80882(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(68197),o=r(91429),s=r(19211),l=r(35063),a=r(51147);let u=class extends s.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveStrength=null,this.emissiveTextureTransform=void 0,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTextureTransform=void 0,this.unlit=!1}get emissiveTexture(){return this._get("emissiveTexture")}set emissiveTexture(e){this._set("emissiveTexture",null==e?null:l.A.from(e))}get occlusionTexture(){return this._get("occlusionTexture")}set occlusionTexture(e){this._set("occlusionTexture",null==e?null:l.A.from(e))}get metallicRoughnessTexture(){return this._get("metallicRoughnessTexture")}set metallicRoughnessTexture(e){this._set("metallicRoughnessTexture",null==e?null:l.A.from(e))}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null==this.emissiveColor?0:16,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null==this.emissiveTextureTransform?0:20,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null==this.occlusionTextureTransform?0:20,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null==this.metallicRoughnessTextureTransform?0:20,e}};(0,n.Cg)([(0,o.MZ)({type:i.A,json:{write:!0}})],u.prototype,"emissiveColor",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0}})],u.prototype,"emissiveStrength",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"emissiveTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"emissiveTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"occlusionTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"occlusionTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"metallic",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],u.prototype,"roughness",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A,json:{write:!0},value:null})],u.prototype,"metallicRoughnessTexture",null),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0}})],u.prototype,"metallicRoughnessTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,nonNullable:!0,json:{write:!0}})],u.prototype,"unlit",void 0),u=(0,n.Cg)([(0,o.$K)("esri.geometry.support.MeshMaterialMetallicRoughness")],u)},35063(e,t,r){r.d(t,{A:()=>d});var n,i=r(32198),o=r(69540),s=r(21287),l=r(25482),a=r(91429),u=r(78888),c=r(66895),f=r(97159),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,d=class extends((0,o.OU)(l.o)){static{n=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,r,n){e instanceof HTMLImageElement?t[r]={type:"image-element",src:(0,f.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:m(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,f.t)(e.src,n),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload}:e instanceof ImageData&&(t[r]={type:"image-data",imageData:m(e)})}readData(e){switch(e.type){case"image-element":{let t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{let t=x(e.imageData),r=document.createElement("canvas");return r.width=t.width,r.height=t.height,r.getContext("2d").putImageData(t,0,0),r}case"image-data":return x(e.imageData);case"video-element":{let t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){let{data:e,url:t}=this,r=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?v(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?v(e):!!(t&&r(t)||e instanceof HTMLImageElement&&r(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){let e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null==this.url?null==this.data?t():this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(g.has(this.data)||g.set(this.data,++y),t(g.get(this.data))):t(this.url)}get memoryUsage(){let e=0;if(e+=null==this.url?0:this.url.length,null!=this.data){let t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(e){let t=(0,c.$N)(e),r=t?.textureMap?.get(this);if(r)return r;let n=super.clone(e);return t?.textureMap?.set(this,n),n}static from(e){return"string"==typeof e?new n({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new n({data:e}):(0,u.PZ)(n,e)}};function m(e){let t="";for(let r=0;r<e.data.length;r++)t+=String.fromCharCode(e.data[r]);return{data:btoa(t),width:e.width,height:e.height}}function x(e){let t=atob(e.data),r=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return(0,s.eV)(r,e.width,e.height)}function v(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,i.Cg)([(0,a.MZ)({type:String,json:{write:f.w}})],d.prototype,"url",null),(0,i.Cg)([(0,a.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],d.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],d.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],d.prototype,"readData",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],d.prototype,"transparent",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"wrap",void 0),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],d.prototype,"contentHash",null),d=n=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshTexture")],d)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(69540),o=r(25482),s=r(91429);let l=class extends((0,i.OU)(o.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,s.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(69540),s=r(25482),l=r(4718),a=r(53966),u=r(91429),c=r(31199);let f=n=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,c.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,c.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let e={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new n(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,u.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,u.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,u.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,u.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,u.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,u.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,u.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(e,t,r){function n(e,t,r){if(t<=0)return 0;let n=e-r;return n<0?0:Math.floor(n/t)+1}r.d(t,{k:()=>n}),r(53966)},31199(e,t,r){function n(e,t,r,n){let{loggerTag:i,stride:o}=t;return e.length%o===0?e:(n.error(i,`Invalid array length, expected a multiple of ${o}`),new r([]))}function i(e,t,r,i,o){if(!e)return e;if(e instanceof t)return n(e,i,t,o);for(let s of r)if(e instanceof s)return n(new t(e),i,t,o);if(Array.isArray(e))return n(new t(e),i,t,o);{let n=r.map(e=>`'${e.name}'`);return o.error(`Failed to set property, expected one of ${n}, but got ${e.constructor.name}`),new t([])}}function o(e,t,r){t[r]=function(e){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]=e[r];return t}(e)}r.d(t,{B:()=>o,b:()=>i})},98331(e,t,r){r.d(t,{H5:()=>p,createWithExternalSource:()=>f});var n=r(49186),i=(r(17676),r(83300)),o=(r(16939),r(95696),r(73836)),s=(r(1193),r(27615)),l=(r(53966),r(35522),r(51850));r(66895),r(72258);var a=r(29461),u=r(29242);(0,l.vt)(),(0,u.vt)(),r(9762),r(4197),r(77690),r(48353),r(13030),(0,u.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(44208),r(62788);var c=r(95488);function f(e,t,r){let n=r?.extent??null,{spatialReference:l}=e,u=r?.transform?.clone()??new o.A,c=(0,s.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new a.O;return p.externalSources.push(f),new i.A({metadata:p,transform:u,vertexSpace:c,spatialReference:l})}function p(e,t){let{spatialReference:r}=e,l=t?.transform?.clone()??new o.A,a=(0,s.TE)(e,t),u=new i.A({transform:l,vertexSpace:a,spatialReference:r});return u.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),u}r(83349),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new c.I,new WeakSet},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>d,dK:()=>m,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(56507),i=r(4576),o=r(17676),s=r(20557);class l{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,o.Te)(e),new Blob(r)}}class a{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,n.A)(this.partUrl,{responseType:"blob"});return(0,o.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){let{type:t,name:r}=e;return c.test(t)||f.test(r)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function g(e,t){if(e===t)return!0;let{source:r}=e,{source:n}=t;if(r===n)return!0;if("service"===r.type&&"service"===n.type){if(r.assets.length!==n.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...n.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.z$)(e.assetMimeType,e.assetName,t)}function d(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function m(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(69540),o=r(7762),s=r(36708),l=r(91429),a=r(63579);let u=class extends i.Pw{constructor(e){super(e),this.externalSources=new o.A,this._explicitDisplaySource=null,this.addHandles((0,s.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,a.yr)(e))throw Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,a.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,a.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(a.yr)}};(0,n.Cg)([(0,l.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,l.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,l.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,l.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,l.$K)("esri.geometry.support.meshUtils.Metadata")],u)},66895(e,t,r){r.d(t,{$N:()=>c,Lz:()=>o,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>i});const n=Symbol("meshContext");function i(e){return e&&"object"==typeof e&&n in e?e[n]:void 0}function o(e,t){let r=i(e);return{...e,[n]:{...r,...t}}}const s=Symbol("meshMaterialContext");function l(e){return e&&"object"==typeof e&&s in e?e[s]:void 0}function a(e){if(l(e)?.materialMap)return e;let t={materialMap:new Map};return{...e,[s]:t}}const u=Symbol("meshTextureContext");function c(e){return e&&"object"==typeof e&&u in e?e[u]:void 0}function f(e){if(c(e)?.textureMap)return e;let t={textureMap:new Map};return{...e,[u]:t}}},27615(e,t,r){r.d(t,{CK:()=>a,Hq:()=>l,MW:()=>u,TE:()=>c,yJ:()=>f});var n=r(35522),i=r(86738),o=r(95696),s=r(18251);function l(e){return null!=e.origin}function a(e){return l(e.vertexSpace)}function u(e,t){if(!l(e))return null;let[r,n,o]=e.origin;return new i.A({x:r,y:n,z:o,spatialReference:t})}function c(e,t){let{x:r,y:n,z:i,spatialReference:l}=e,a=[r,n,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(l))?new s.A({origin:a}):new o.A({origin:a})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,n.t2)(e.origin,t.origin))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5356,5613],{22429(e,a,r){r.d(a,{v:()=>n});var t=r(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){let r=this._serviceMetadatas.get(e);if(r)return r;let n=await(0,t.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){let{id:a}=e;if(!a)return null;let{_itemDatas:r}=this;if(r.has(a))return r.get(a);let t=await e.fetchData();return r.set(a,t),t}async fetchCustomParameters(e,a){let r=await this.fetchItemData(e);return r&&"object"==typeof r&&(a?a(r):r.customParameters)||null}}},92009(e,a,r){r.d(a,{L:()=>u});var t=r(70333),n=r(56507),i=r(49186),l=r(17676),s=r(60694),y=r(20655),c=r(80812);async function u(e,a){let r=(0,s.qg)(e);if(!r)throw new i.A("invalid-url","Invalid scene service url");let u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){let a=(await o(e)).serviceItemId;if(!a)return null;let r=new c.default({id:a,apiKey:e.apiKey}),i=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,n.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(r.portal=new y.A({url:i}));try{return await r.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(u),null==u.sceneLayerItem)return L(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,l.QP)(e),null}}(u);if(!d?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;let f=await L(d.url,u);return f.portalItem=d,f}async function o(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,n.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function L(e,a){let r=(0,s.qg)(e);if(!r)throw new i.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,l=a.layerId;if(null==l)return{serverUrl:t};let y=o(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,L=e=>{let r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(t,r)},d=L("anonymous").catch(()=>L("no-prompt")),[f,m]=await Promise.all([d,y]),p=m?.layers,S=f.data&&f.data.layers;if(!Array.isArray(S))throw Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,S.length);e++)if(p[e].id===l)return{serverUrl:t,layerId:S[e].id}}else if(null!=l&&l<S.length)return{serverUrl:t,layerId:S[l].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>s,Aq:()=>m,Jo:()=>f,QM:()=>l});var t=r(77548),n=r(7861);const i=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){let{serviceJSON:r,layersJSON:t,...n}=await s(e,a);u(r);let i={serviceJSON:r,...n};return t&&(u(t),i.layersJSON=t),i}async function s(e,a){let{loadContext:r,...i}=a||{},l=r?await r.fetchServiceMetadata(e,i):await(0,n.L)(e,i),s=(0,t.G$)();d(l);let y={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return y;let c=`${(0,t.$x)()??e}/layers`,u=r?await r.fetchServiceMetadata(c,i):await(0,n.L)(c,i);return d(u),y.layersJSON={layers:u.layers,tables:u.tables},y}function y(e){return i.has(e.type)}function c(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(y),e.tables=e.tables?.filter(c)}function o(e){e.type||="Feature Layer"}function L(e){e.type||="Table"}function d(e){e.layers?.forEach(o),e.tables?.forEach(L)}function f(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function m(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},75356(e,a,r){r.d(a,{N:()=>p,populateOperationalLayers:()=>L});var t=r(7762),n=r(44208),i=r(22429),l=r(2976),s=r(6345),y=r(80812);function c(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var u=r(45613),o=r(8947);async function L(e,a,r){if(!a)return;let t=a.map(e=>async function(e,a){return async function(e,a,r){let t=new e;return t.read(a,r.context),"group"===t.type&&("GroupLayer"===a.layerType?await p(t,a,r):m(a)?function(e,a,r){a.itemId&&(e.portalItem=new y.default({id:a.itemId,portal:r?.portal}),e.when(()=>{let t=t=>{let n=t.layerId;S(t,e,a,n,r);let i=a.featureCollection?.layers?.[n];i&&t.read(i,r)};e.layers?.forEach(t),e.tables?.forEach(t)}))}(t,a,r.context):f(a)&&await async function(e,a,r){let t=l.U.FeatureLayer,n=await t(),i=a.featureCollection,s=i?.showLegend,y=i?.layers?.map((t,i)=>{let l=new n;l.read(t,r);let y={...r,ignoreDefaults:!0};return S(l,e,a,i,y),null!=s&&l.read({showLegend:s},y),l});e.layers.addMany(y??[])}(t,a,r.context)),await(0,o.L)(t,r.context),t}(await d(e,a),e,a)}(e,r)),n=await Promise.allSettled(t);for(let a of n)"rejected"===a.status||a.value&&e.add(a.value)}async function d(e,a){let r=a.context,t=(e.layerType||e.type)??a.defaultLayerType;switch(t){case"Feature Collection":case"ArcGISFeatureLayer":if(function(e){return c(e,"notes")}(e)||function(e){return c(e,"markup")}(e))return(0,n.A)("sketch-layer-enabled")?l.U.SketchLayer():l.U.MapNotesLayer();if(function(e){return c(e,"route")}(e))return l.U.RouteLayer();if(m(e)){let a=r?.portal;if(e.itemId){let r=new y.default({id:e.itemId,portal:a});await r.load();let t=(await(0,u.n)(r,new i.v)).className||"UnknownLayer";return l.U[t]()}return l.U.UnknownLayer()}return f(e)?l.U.GroupLayer():l.U.FeatureLayer();case"WebTiledLayer":return e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?l.U.WMTSLayer():l.U.WebTileLayer();case"WFS":return"2.0.0"===e.wfsInfo?.version?l.U.WFSLayer():l.U.UnsupportedLayer();default:{let e=(0,s.VH)(r,t);return(0,l.U[e])()}}}function f(e){return"ArcGISFeatureLayer"===e.layerType&&!m(e)&&(e.featureCollection?.layers?.length??0)>1}function m(e){return"Feature Collection"===e.type}async function p(e,a,r){let n=new t.A,i=L(n,Array.isArray(a.layers)?a.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(a){e.destroy();for(let e of n)e.destroy();throw a}}catch(e){throw e}}function S(e,a,r,t,n){e.read({id:`${a.id}-sublayer-${t}`,visibility:r.visibleLayers?.includes(t)??!0},n)}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(7420)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(7005),r.e(9480),r.e(3080),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(4935)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(8247),r.e(4674),r.e(5087),r.e(893),r.e(7),r.e(4571),r.e(8305)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(8826)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(6874)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(1348)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9177),r.e(8856)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8801)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9657)]).then(()=>r(63201))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(893),r.e(1697),r.e(9800),r.e(7772)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1697),r.e(9800),r.e(9235),r.e(8595),r.e(1137)]).then(()=>r(11137))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(9177),r.e(6451),r.e(8241)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(9177),r.e(6319),r.e(6451),r.e(7915)]).then(()=>r(42521))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(1504)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(8245),r.e(6744),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(8245),r.e(6744),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(6023)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(6744),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(9894),r.e(2491)]).then(()=>r(90182))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3080),r.e(9856)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(6713)]).then(()=>r(9352))).default,ParquetLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3819),r.e(5952),r.e(4085)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(7380)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(7005),r.e(9480),r.e(3080),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(5087),r.e(8589),r.e(6744),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(8915)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(8247),r.e(4674),r.e(5087),r.e(4780)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(2223)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9953),r.e(5228),r.e(7499),r.e(700)]).then(()=>r(67190))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(9894),r.e(6875)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9407),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1697),r.e(9800),r.e(9235),r.e(8595),r.e(521)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(7552),r.e(1214),r.e(2889),r.e(6263),r.e(3997)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9407),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},6345(e,a,r){r.d(a,{Bu:()=>h,VH:()=>w});var t=r(44208);const n={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},i={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",get ParquetLayer(){return(0,t.A)("parquetlayer-persistence-enabled")?"ParquetLayer":"UnsupportedLayer"},SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},l={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},s={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},y={IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer"},c={ArcGISTiledElevationServiceLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},u={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CSV:"CSVLayer",CatalogLayer:"CatalogLayer",GaussianSplatLayer:"GaussianSplatLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",Object3DTilesLayer:"UnsupportedLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},o={ArcGISFeatureLayer:"FeatureLayer"},L={...i,LinkChartLayer:"LinkChartLayer"},d=n,f=l,m={ArcGISAnnotationLayer:"AnnotationFeatureLayer",ArcGISDimensionLayer:"DimensionFeatureLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",BuildingSceneLayer:"BuildingSceneLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",MediaLayer:"MediaLayer",OrientedImageryLayer:"OrientedImageryLayer",ParquetLayer:"ParquetLayer",PointCloudLayer:"PointCloudLayer",SubtypeGroupLayer:"SubtypeGroupLayer",WCS:"WCSLayer"},p=l;function S(e){switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap-base-layers":return s;case"basemap-ground-layers":return y;case"ground":return c;case"tables":return o;default:return u}case"link-chart":switch(e.layerContainerType){case"basemap-base-layers":return d;case"tables":return f;default:return L}default:switch(e.layerContainerType){case"basemap-base-layers":return n;case"tables":return l;case"ground":case"basemap-ground-layers":return;default:return i}}}function w(e,a){if(!a)return"UnknownLayer";if("DefaultTileLayer"===a){let a="UnknownLayer";if("web-scene"===e.origin)switch(e.layerContainerType){case"operational-layers":case"basemap-base-layers":a="TileLayer";break;case"ground":a="ElevationLayer"}else switch(e.layerContainerType){case"basemap-base-layers":case"operational-layers":a="TileLayer"}return a}return S(e)?.[a]??"UnknownLayer"}function h(e,a,r){if(!e?.origin)return!1;switch(e.origin){case"web-map":case"link-chart":if("operational-layers"===e.layerContainerType&&"ArcGISDimensionLayer"===a&&"dimension-feature"!==r)return!1;break;case"web-scene":if("operational-layers"===e.layerContainerType)switch(a){case"ArcGISDimensionLayer":if("dimension"!==r)return!1;break;case"ArcGISTiledElevationServiceLayer":return!1}break;case"portal-item":if("ArcGISDimensionLayer"===a&&"dimension-feature"!==r)return!1}let t=function(e){if("portal-item"===e.origin)switch(e.layerContainerType){case"basemap-base-layers":case"ground":case"basemap-ground-layers":return;case"tables":return p;default:return m}return S(e)}(e)?.[a];return null!=t&&"UnknownLayer"!==t&&"UnsupportedLayer"!==t}},66964(e,a,r){r.d(a,{Ju:()=>S,K8:()=>A,XH:()=>w,Y5:()=>p,_r:()=>s,bO:()=>c,l:()=>g,nu:()=>T,pJ:()=>u,rc:()=>o});var t=r(60694),n=r(92009),i=r(23154),l=r(77548);function s(e,a){let{id:r,name:t}=e,n={id:r,name:t};return y(n,e,a),n}function y(e,a,r){let t=(0,i.Aq)(a.type,r);t&&(e.layerType=t)}async function c(e,a,r){let t,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&L(e))n=e;else{let i=await r.fetchServiceMetadata(a,{customParameters:u(e)?.customParameters});t=(0,l.G$)(),n=d(e,i),f(n,i)}return m(n),{data:n,preferredHost:t}}function u(e){if(!e)return null;let{layers:a,tables:r}=e;return a?.[0]??r?.[0]??null}function o(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function L(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function d(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>s(e))??[],tables:e?.tables??a.tables?.map(e=>s(e,!0))??[]}}function f(e,a){let r=e.layers??[],t=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(let e of[...r,...t]){let{id:a,layerType:r}=e;if(r)continue;let i=n.find(({id:e})=>e===a);i&&y(e,i,t.includes(e))}}function m(e){e.layers=e.layers?.filter(I),e.tables=e.tables?.filter(I)}async function p(e,a,r){if(e?.layers?.length||e?.tables?.length){if(!L(e)){let n=(0,t.qg)(a)?.url.path;if(!n)return;f(e,await r.fetchServiceMetadata(n,{customParameters:u(e)?.customParameters}))}m(e)}}function S(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function w(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const h=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function I(e){return!!e.layerType&&h.has(e.layerType)}function g(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function A(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function T(e,a,r){if(!e?.url)return a??{};if(a??={},!a.layers){let t=await r.fetchServiceMetadata(e.url);a.layers=t.layers?.map(e=>s(e))}let{serverUrl:t,portalItem:i}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:u(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==t)return a.tables=[],a;if(!a.tables&&i){let e=await i.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{let n=await r.fetchServiceMetadata(t,{customParameters:u(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>s(e,!0))}}if(a.tables)for(let e of a.tables)e.url=`${t}/${e.id}`;return a}},10407(e,a,r){r.d(a,{It:()=>d,LG:()=>l,OM:()=>c,Sm:()=>u,Y:()=>s,bK:()=>y,sQ:()=>o});var t=r(99917),n=r(16930),i=r(28735);function l(e,a){if(!s(e,a)){let r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e){return s(e,L.HOSTED_SERVICE)}function c(e,a){let r=e.typeKeywords;if(r){let e=r.indexOf(a);e>-1&&r.splice(e,1)}}function u(e,a,r){r?l(e,a):c(e,a)}async function o(e){let a,r=e.clone().normalize();if(r.length>1)for(let e of r)a?e.width>a.width&&(a=e):a=e;else a=r[0];return async function(e){let a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.ci)(e);let r=n.A.WGS84;return await(0,t.initializeProjection)(a,r),(0,t.project)(e,r)}(a)}const L={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function d(e){let{portal:a,isOrgItem:r,itemControl:t}=e,n=a.user?.privileges,i=!n||n.includes("features:user:edit"),l=!!r&&!!n?.includes("features:user:fullEdit"),s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}r.d(a,["mm",0,L])},45613(e,a,r){r.d(a,{fromItem:()=>d,n:()=>f});var t=r(49186),n=r(44208),i=r(92009),l=r(23154),s=r(22429),y=r(2976),c=r(77548),u=r(80812),o=r(66964),L=r(10407);async function d(e){let{portalItem:a}=e;a&&!(a instanceof u.default)&&(a=new u.default(a));let r=await async function(e){return await e.load(),async function(e){let a=e.className,r=y.U[a];return{constructor:await r(),properties:e.properties}}(await f(e,new s.v))}(a);return new(0,r.constructor)({portalItem:a,...r.properties})}async function f(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();let a=(0,L.Y)(e,"Map Notes"),r=(0,L.Y)(e,"Markup");if(a||r)return{className:(0,n.A)("sketch-layer-enabled")?"SketchLayer":"MapNotesLayer"};if((0,L.Y)(e,"Route Layer"))return{className:"RouteLayer"};let t=await e.fetchData();return 1===(0,o.XH)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){let r=await m(e,a);if("object"==typeof r){let{sourceJSON:e,className:a}=r,t={sourceJSON:e};return null!=r.id&&(t.layerId=r.id),{className:a||"FeatureLayer",properties:t}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();let r=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};let t=(await a.fetchItemData(e))?.layerType;if("ArcGISTiledImageServiceLayer"===t)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===t)return{className:"ImageryLayer"};let n=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),i=n.cacheType?.toLowerCase(),l=n.capabilities?.toLowerCase().includes("tilesonly"),s=n.tileInfo?.format?.toLowerCase()??"",y=null==i&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(s);return"map"===i||y||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){let{tileInfo:r}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return r}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Parquet Feature Layer":return{className:"ParquetLayer"};case"Scene Service":return async function(e,a){let r=await m(e,a,async()=>{try{if(!e.url)return[];let{serverUrl:r}=await(0,i.L)(e.url,{sceneLayerItem:e});return(await a.fetchServiceMetadata(r))?.tables??[]}catch{return[]}});if("object"==typeof r){let t,n={};if(null==r.id?t=e.url:(n.layerId=r.id,t=`${e.url}/layers/${r.id}`),e.typeKeywords?.length)for(let a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};let i=await a.fetchServiceMetadata(t,{customParameters:await a.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});return{className:c.XX[i?.layerType]||"SceneLayer",properties:n}}return!1===r&&"Voxel"===(await a.fetchServiceMetadata(e.url))?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await m(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new t.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function m(e,a,r){let{url:n,type:i}=e,s="Feature Service"===i;if(!n)return{};if(/\/\d+$/.test(n)){if(s){let r=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,o.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());let{id:i,type:s}=r,y=(0,l.Jo)(s);if(!y)throw new t.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${s}'`);return{id:i,className:y,sourceJSON:r}}return{}}if("Video Service"===i)return!(((await a.fetchServiceMetadata(n)).layers?.length??0)>1)&&{};await e.load();let y=await a.fetchItemData(e);if(s){let{data:r,preferredHost:i}=await(0,o.bO)(y,n,a);if(0===(0,o.XH)(r))throw new t.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,i);let l=p(r);if("object"==typeof l){let e=(0,o.rc)(r,l.id);return{id:l.id,className:(0,o.K8)(e?.layerType)}}return l}if("Scene Service"===i&&(y=await(0,o.nu)(e,y,a)),(0,o.XH)(y)>0)return p(y);let u=await a.fetchServiceMetadata(n);return r&&(u.tables=await r()),p(u)}function p(e){return 1===(0,o.XH)(e)&&{id:(0,o.pJ)(e)?.id}}},8947(e,a,r){r.d(a,{L:()=>l});var t=r(60999),n=r(17676),i=r(67076);async function l(e,a,r){let l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){let s=await(0,t.Ke)(l.populateFromStyle());if((0,n.Te)(r),!1===s.ok){let r=s.error;a?.messages&&a.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},7861(e,a,r){r.d(a,{L:()=>n});var t=r(56507);async function n(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1273,7561],{11273(t,e,r){r.r(e),r.d(e,{executeTopFeaturesQuery:()=>l});var i=r(2272),o=r(24645),s=r(22671),n=r(57561);async function l(t,e,r,l){let u=(0,i.Dl)(t),p={...l},{data:a}=await(0,o.Yb)(u,n.default.from(e),r,p);return s.A.fromJSON(a)}},24645(t,e,r){r.d(e,{$K:()=>c,KW:()=>y,Yb:()=>d,xs:()=>h});var i=r(56507),o=r(84952),s=r(60408),n=r(52039),l=r(21325),u=r(10536),p=(r(5076),r(58501));function a(t,e){let r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?o.outFields=i.outFields.includes("*")?"*":i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){let{start:t,end:e}=i.timeExtent;(null!=t||null!=e)&&(o.time=t===e?t:`${t??"null"},${e??"null"}`),delete i.timeExtent}return o}async function d(t,e,r,i){let o=await m(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function y(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:m(t,e,"json",r,{returnIdsOnly:!0})}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:m(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{let e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features||e.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return t})}function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):m(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}async function m(t,e,r,s={},l={}){let p="string"==typeof t?(0,o.An)(t):t,d=e.geometry?[e.geometry]:[];s.responseType="json";let[y]=await(0,n.el)(d,s);null!=y&&((e=e.clone()).geometry=y);let c=(0,u.z)({...p.query,f:r,...l,...a(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...c,...s.query}})}},57561(t,e,r){r.d(e,{default:()=>S});var i,o=r(32198),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(78888),a=r(16930),d=r(65864),y=r(50498);let c=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],c);const h=c;var m,g=r(79677),v=r(43937);const w=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),F=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let S=class extends n.o{static{m=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new m((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,v.K)("start"),(0,v.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:w.read},write:{target:"spatialRel",writer:w.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:g.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:h,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:F.read,write:{writer:F.write,overridePolicy(t){return{enabled:null!=t&&!!this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=m=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,p.dp)(S)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3103,6956,7745],{31464(e,t,r){r.d(t,{Cv:()=>m,Nk:()=>y,lK:()=>f});var i=r(4576),n=r(99917),s=r(60408),o=r(21325),a=r(28735);const l=[0,0];function u(e,t){let r=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=r(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=r(t.xmin,t.ymin,l),[e.xmax,e.ymax]=r(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:p(t.rings,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:p(t.paths,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:d(t.points,r),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function p(e,t){let r=[];for(let i of e)r.push(d(i,t));return r}function d(e,t){let r=[];for(let i of e){let e=t(i[0],i[1],[0,0]);r.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return r}async function y(e,t){if(!e||!t)return;let r=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(i.Ru):[e];await(0,n.initializeProjection)(r.map(e=>({source:e,dest:t})))}function m(e,t,r,i){if(!e)return null;if(r||(r=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(r)||(0,o.aI)(t,r))return e;if((0,a.y7)(t,r)){let t=u(r,e);return t.spatialReference=r,t}let[s]=(0,n.projectMany)([e],t,r,i);return s}const c=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,r,i){if(!e?.length||!t||!r||(0,o.aI)(t,r))return e;let n={geometries:e,inSpatialReference:t,outSpatialReference:r,options:i,resolve:Promise.withResolvers()};return this._jobs.push(n),this._timer??=setTimeout(this._process,10),n.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:r,inSpatialReference:i,outSpatialReference:s,resolve:o,options:l}=e,p=r.filter(e=>null!=e);t=(0,a.y7)(i,s)&&null==l?.extendedParams?p.map(e=>u(s,e)):(0,n.projectMany)(p,i,s,l);let d=0,y=r.map(e=>null==e?null:t[d++]);o.resolve(y),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function f(e,t,r,i){return c.push(e,t,r,i)}},58727(e,t,r){r.d(t,{GC:()=>h,T2:()=>v,dO:()=>S,iJ:()=>g});var i=r(49186),n=r(66552),s=r(86211),o=r(39829),a=r(99917),l=r(90634),u=r(60408),p=r(65864),d=r(52039),y=r(21325),m=r(31464);const c=new n.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({});async function g(e,t,r){let i=e.bin;return i.onField&&=i.onField.trim(),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),h(e,t,r)}async function h(e,t,r){let{outFields:i,orderByFields:n,groupByFieldsForStatistics:s,outStatistics:o}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,r)}async function v(e,t,r){if(!e)return null;let{where:i}=e;if(e.where=i=i?.trim(),(!i||/^1 *= *1$/.test(i)||t&&t===i)&&(e.where=null),!e.geometry)return e;let n=await w(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;n=(0,l.HA)(n),n.spatialReference=t}if(!n)return e;await(0,m.Nk)(n.spatialReference,r);let[s]=await(0,d.el)((0,p.rS)(n));if(null==s)throw f;let c=!1;((0,u.ZC)(s)||(0,u.Bi)(s)||(0,u.Rg)(s))&&(c=!(0,y.aI)(s.spatialReference,r)&&!(0,a.canProjectWithoutEngine)(s.spatialReference,r)),c&&(0,u.ZC)(s)&&(s=o.A.fromExtent(s));let g="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,h=c&&g?{extendedParams:{densificationStep:8*g}}:void 0,v=s.toJSON(),S=(0,m.Cv)(v,v.spatialReference,r,h);if(!S)throw f;return S.spatialReference=r,e.geometry=S,e}async function w(e){let{distance:t,units:n}=e,o=e.geometry;if(!t||"vertexAttributes"in o)return o;let a=o.spatialReference,l=n?c.fromJSON(n):(0,s.Ij)(a),p=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,m.Nk)(a,y.KK).then(()=>(0,m.Cv)(o,y.KK)),{geodesicBufferExecute:d,geodesicBufferLoad:f}=await r.e(9159).then(()=>r(49159));await f();let g=d(p,t||1,{unit:l})??void 0;if(!g||!(0,u.Bi)(g)||0===g.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return g}function S(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}r.d(t,["VY",0,c,"v8",0,f])},33103(e,t,r){r.r(t),r.d(t,{executeAttributeBinsQuery:()=>m});var i=r(2272),n=r(56507),s=r(84952),o=r(60408),a=r(52039),l=r(21325),u=r(10536);function p(e){let t,r,i,n=e.geometry,s=e.toJSON(),a=s;if(null!=n&&(r=n.spatialReference,i=(0,l.YX)(r),a.geometryType=(0,o.$B)(n),a.geometry=JSON.stringify(n),a.inSR=i),s.outSR?(a.outSR=(0,l.YX)(s.outSR),t=e.outSpatialReference):n&&(a.outSR=a.inSR,t=r),a.bin&&=JSON.stringify(a.bin),a.quantizationParameters&&=JSON.stringify(a.quantizationParameters),a.outStatistics&&=JSON.stringify(a.outStatistics),a.outTimeReference&&=JSON.stringify(a.outTimeReference),s.timeExtent){let{start:e,end:t}=s.timeExtent;(null!=e||null!=t)&&(a.time=e===t?e:`${e??"null"},${t??"null"}`),delete s.timeExtent}return e.defaultSpatialReference&&(0,l.aI)(r,t)&&(a.defaultSR=a.inSR,delete a.inSR,delete a.outSR),a}var d=r(37745),y=r(14575);async function m(e,t,r){let{data:o}=await async function(e,t,r){return null!=t.timeExtent&&t.timeExtent.isEmpty?{data:{features:[]}}:await async function(e,t,r={}){let i="string"==typeof e?(0,s.An)(e):e,[o]=await(0,a.el)([t.geometry],r);null!=o&&((t=t.clone()).geometry=o);let l=(0,u.z)({...i.query,f:"json",...p(t)});return(0,n.A)((0,s.fj)(i.path,"queryBins"),{...r,query:{...l,...r.query}})}(e,t,r)}((0,i.Dl)(e),y.default.from(t),r);return d.default.fromJSON(o)}},37745(e,t,r){r.r(t),r.d(t,{default:()=>y});var i,n=r(32198),s=r(52106),o=r(4718),a=r(91429);let l=class extends s.A{static{i=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new i(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,o.o8)(this.stackedAttributes)}}};(0,n.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),d=r(36005);let y=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,n.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],y.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],y.prototype,"readFeatures",null),y=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],y)},14575(e,t,r){r.d(t,{default:()=>A});var i=r(32198),n=r(69540),s=r(66552),o=r(25482),a=r(53966),l=r(91429),u=r(78888),p=r(16930),d=r(65864),y=r(50498),m=r(58727),c=r(5834),f=r(41266),g=r(59977),h=r(11440),v=r(60909),w=r(58174),S=r(7562),C=r(79677),B=r(56400),x=r(93223);const M=new s.J({asc:"ascending",desc:"descending"}),Z={base:f.A,key:"type",typeMap:{"auto-interval":c.A,date:g.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let A=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,B.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:Z,json:{name:"bin",write:!0}})],A.prototype,"binParameters",void 0),(0,i.Cg)([(0,x.e)(M)],A.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],A.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],A.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],A.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],A.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],A.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[S.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],A.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,r)=>{e&&(t[r]={ianaTimeZone:e})}}}})],A.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy:e=>({enabled:null!=e})}}})],A.prototype,"returnAggregateIds",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],A.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,x.e)(w.x,{name:"spatialRel"})],A.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:C.A,json:{write:!0}})],A.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&!!this.distance}}}}})],A.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],A.prototype,"where",void 0),A=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],A),A.from=(0,u.dp)(A)},5834(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(93637),s=r(91429),o=r(78888),a=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,o.dp)(d)},41266(e,t,r){r.d(t,{A:()=>f});var i=r(32198),n=r(69540),s=r(66552),o=r(25482),a=r(91429),l=r(78888),u=r(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],d.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(p)],d.prototype,"valueType",void 0),d=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],d);const y=d;d.from=(0,l.dp)(d);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),c=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(m,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(c)],f.prototype,"transformation",void 0),f=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},59977(e,t,r){r.d(t,{A:()=>g});var i=r(32198),n=r(93637),s=r(91429),o=r(78888),a=r(41266),l=r(69540),u=r(25482),p=r(57231),d=r(93223);let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,i.Cg)([(0,d.e)(p.g)],y.prototype,"unit",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const m=y;function c(e,t,r){(0,n.sM)(r,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){let r=e.parameters[t];return r?"string"==typeof r?r:new Date(r):null}y.from=(0,o.dp)(y);let g=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:c}}})],g.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],g.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],g.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],g.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,s.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:c}}})],g.prototype,"start",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],g.prototype,"snapToData",void 0),(0,i.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],g),g.from=(0,o.dp)(g)},57231(e,t,r){const i=(0,r(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});r.d(t,["g",0,i])},11440(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(93637),s=r(91429),o=r(78888),a=r(41266),l=r(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,r){(0,n.sM)(r,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},60909(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(93637),s=r(91429),o=r(78888),a=r(41266),l=r(41366),u=r(93223);function p(e,t,r){(0,n.sM)(r,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],d.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],d.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,o.dp)(d)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7915],{68197(e,t,r){r.d(t,{A:()=>h});var n=r(40876),i=r(4576),a=r(34727),s=r(78888);function o(e){return(0,a.qE)((0,s.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){let r=(0,n.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,n.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,n.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),n=u(this),i=u(r);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,i.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>g,Q6:()=>b,TS:()=>a,V6:()=>i,Vm:()=>m,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){let i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(e){let t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return a&&(o=s&n,s>>=r,l[3]=i*o/255),o=s&n,s>>=r,l[2]=i*o,o=s&n,s>>=r,l[1]=i*o,o=s&n,s>>=r,l[0]=i*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?g(e[3]):1,e}function f(e){let t=i(e)?a(e):null;return t??=c(e),t??=h(e),t}function m(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function g(e){return _(e,0,1)}function p(e){return Math.round(_(e,0,255))}function _(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const y=1/2.2;function b(e){return e**2.2}function v(e){return e**y}r.d(t,["iw",0,y])},85334(e,t,r){r.d(t,{$:()=>y,IB:()=>o,Iy:()=>S,KV:()=>R,N2:()=>b,RH:()=>E,ZD:()=>v,sn:()=>M});var n=r(68197),i=r(4576),a=r(4718),s=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let a=e.length,s=e[0].length,o=0;for(r=0;r<a;r++){for(o=0,n=0;n<s;n++)o+=e[r][n]*t[n];i.push(o)}return i}function m(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function g(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function _(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function y(e){return o(e)?e:h(e)?function(e){return g(_(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return g(_(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?g(e):l(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,a=i*n,s=a*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:a,g:s,b:0};break;case 1:t={r:s,g:a,b:0};break;case 2:t={r:0,g:a,b:s};break;case 3:t={r:0,g:s,b:a};break;case 4:t={r:s,g:0,b:a};break;case 5:case 6:t={r:a,g:0,b:s};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-a),t.g=Math.round(t.g+i-a),t.b=Math.round(t.b+i-a),t}(e):e}function b(e){return l(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=i,o=0===a?0:i===t?(r-n)/a%6:i===r?(n-t)/a+2:(t-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(y(e))}function v(e){return u(e)?e:function(e){return p(m(e))}(y(e))}function E(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:t,c:i,h:a}}(p(m(e)))}(y(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function M(e){return e.length=4,R(e),e[3]??=1,(0,s.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,a.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],a=e.length-1,s=Math.ceil((t-e.length)/a);e:for(let i=0;i<a;i++){let a=e[i],o=e[i+1];for(let i=1;i<=s;i++){let l=i/(s+1);if(n.push(x(a,o,l,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const T=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function x(e,t,r,a={}){let s=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(s+(u-s)*r),f=Math.round(o+(h-o)*r),m=Math.round(l+(c-l)*r);if(!a.offset)return new n.A([d,f,m]);let g=(0,i.Mo)(a.seed);return new n.A([T(d,g),T(f,g),T(m,g)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:n,fromValues:function(e,t,r,n,i,a,s,o,l,u,h,c,d,f,m,g){return[e,t,r,n,i,a,s,o,l,u,h,c,d,f,m,g]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},58083(e,t,r){r.d(t,{$0:()=>_,$h:()=>I,B8:()=>h,C:()=>a,D_:()=>o,N9:()=>b,O7:()=>x,Qw:()=>u,Tl:()=>d,X_:()=>M,e$:()=>m,eL:()=>g,hM:()=>y,hZ:()=>s,hs:()=>f,kN:()=>p,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>T,sC:()=>R,t2:()=>N,t5:()=>A,tZ:()=>O,ut:()=>C});var n=r(51850),i=r(34304);function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,n,i,a,s,o,l,u,h,c,d,f,m,g,p){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=f,e[13]=m,e[14]=g,e[15]=p,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],n=t[2],i=t[3],a=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return h(e,t)||o(e),e}function h(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],m=t[12],g=t[13],p=t[14],_=t[15],y=r*o-n*s,b=r*l-i*s,v=r*u-a*s,E=n*l-i*o,R=n*u-a*o,M=i*u-a*l,S=h*g-c*m,T=h*p-d*m,x=h*_-f*m,I=c*p-d*g,A=c*_-f*g,w=d*_-f*p,N=y*w-b*A+v*I+E*x-R*T+M*S;return N?(N=1/N,e[0]=(o*w-l*A+u*I)*N,e[1]=(i*A-n*w-a*I)*N,e[2]=(g*M-p*R+_*E)*N,e[3]=(d*R-c*M-f*E)*N,e[4]=(l*x-s*w-u*T)*N,e[5]=(r*w-i*x+a*T)*N,e[6]=(p*v-m*M-_*b)*N,e[7]=(h*M-d*v+f*b)*N,e[8]=(s*A-o*x+u*S)*N,e[9]=(n*x-r*A-a*S)*N,e[10]=(m*R-g*v+_*y)*N,e[11]=(c*v-h*R-f*y)*N,e[12]=(o*T-s*I-l*S)*N,e[13]=(r*I-n*T+i*S)*N,e[14]=(g*b-m*E-p*y)*N,e[15]=(h*E-c*b+d*y)*N,e):null}function c(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],m=t[11],g=t[12],p=t[13],_=t[14],y=t[15],b=r[0],v=r[1],E=r[2],R=r[3];return e[0]=b*n+v*o+E*c+R*g,e[1]=b*i+v*l+E*d+R*p,e[2]=b*a+v*u+E*f+R*_,e[3]=b*s+v*h+E*m+R*y,b=r[4],v=r[5],E=r[6],R=r[7],e[4]=b*n+v*o+E*c+R*g,e[5]=b*i+v*l+E*d+R*p,e[6]=b*a+v*u+E*f+R*_,e[7]=b*s+v*h+E*m+R*y,b=r[8],v=r[9],E=r[10],R=r[11],e[8]=b*n+v*o+E*c+R*g,e[9]=b*i+v*l+E*d+R*p,e[10]=b*a+v*u+E*f+R*_,e[11]=b*s+v*h+E*m+R*y,b=r[12],v=r[13],E=r[14],R=r[15],e[12]=b*n+v*o+E*c+R*g,e[13]=b*i+v*l+E*d+R*p,e[14]=b*a+v*u+E*f+R*_,e[15]=b*s+v*h+E*m+R*y,e}function d(e,t,r){let n=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15];else{let r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],f=t[8],m=t[9],g=t[10],p=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=f,e[9]=m,e[10]=g,e[11]=p,e[12]=r*n+u*i+f*a+t[12],e[13]=s*n+h*i+m*a+t[13],e[14]=o*n+c*i+g*a+t[14],e[15]=l*n+d*i+p*a+t[15]}return e}function f(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function m(e,t,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,i.FD)())return void a(e,t);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=t[0],m=t[1],g=t[2],p=t[3],_=t[4],y=t[5],b=t[6],v=t[7],E=t[8],R=t[9],M=t[10],S=t[11],T=s*s*d+c,x=o*s*d+l*h,I=l*s*d-o*h,A=s*o*d-l*h,w=o*o*d+c,N=l*o*d+s*h,C=s*l*d+o*h,O=o*l*d-s*h,L=l*l*d+c;e[0]=f*T+_*x+E*I,e[1]=m*T+y*x+R*I,e[2]=g*T+b*x+M*I,e[3]=p*T+v*x+S*I,e[4]=f*A+_*w+E*N,e[5]=m*A+y*w+R*N,e[6]=g*A+b*w+M*N,e[7]=p*A+v*w+S*N,e[8]=f*C+_*O+E*L,e[9]=m*C+y*O+R*L,e[10]=g*C+b*O+M*L,e[11]=p*C+v*O+S*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function g(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=s*i+h*n,e[6]=o*i+c*n,e[7]=l*i+d*n,e[8]=u*i-a*n,e[9]=h*i-s*n,e[10]=c*i-o*n,e[11]=d*i-l*n,e}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function _(e,t,r){if(0===t)return o(e);let n=r[0],a=r[1],s=r[2],l=Math.sqrt(n*n+a*a+s*s);if(l<=(0,i.FD)())return null;l=1/l,n*=l,a*=l,s*=l;let u=Math.sin(t),h=Math.cos(t),c=1-h;return e[0]=n*n*c+h,e[1]=a*n*c+s*u,e[2]=s*n*c-a*u,e[3]=0,e[4]=n*a*c-s*u,e[5]=a*a*c+h,e[6]=s*a*c+n*u,e[7]=0,e[8]=n*s*c+a*u,e[9]=a*s*c-n*u,e[10]=s*s*c+h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function b(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=n+n,l=i+i,u=a+a,h=n*o,c=n*l,d=n*u,f=i*l,m=i*u,g=a*u,p=s*o,_=s*l,y=s*u;return e[0]=1-(f+g),e[1]=c+y,e[2]=d-_,e[3]=0,e[4]=c-y,e[5]=1-(h+g),e[6]=m+p,e[7]=0,e[8]=d+_,e[9]=m-p,e[10]=1-(h+f),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const E=(0,n.vt)();function R(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e}function S(e,t){let r=t[0]+t[5]+t[10],n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function T(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],l=i+i,u=a+a,h=s+s,c=i*l,d=i*u,f=i*h,m=a*u,g=a*h,p=s*h,_=o*l,y=o*u,b=o*h,v=n[0],E=n[1],R=n[2];return e[0]=(1-(m+p))*v,e[1]=(d+b)*v,e[2]=(f-y)*v,e[3]=0,e[4]=(d-b)*E,e[5]=(1-(c+p))*E,e[6]=(g+_)*E,e[7]=0,e[8]=(f+y)*R,e[9]=(g-_)*R,e[10]=(1-(c+m))*R,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function x(e,t,r,n,i){let a=t[0],s=t[1],o=t[2],l=t[3],u=a+a,h=s+s,c=o+o,d=a*u,f=a*h,m=a*c,g=s*h,p=s*c,_=o*c,y=l*u,b=l*h,v=l*c,E=n[0],R=n[1],M=n[2],S=i[0],T=i[1],x=i[2],I=(1-(g+_))*E,A=(f+v)*E,w=(m-b)*E,N=(f-v)*R,C=(1-(d+_))*R,O=(p+y)*R,L=(m+b)*M,D=(p-y)*M,P=(1-(d+g))*M;return e[0]=I,e[1]=A,e[2]=w,e[3]=0,e[4]=N,e[5]=C,e[6]=O,e[7]=0,e[8]=L,e[9]=D,e[10]=P,e[11]=0,e[12]=r[0]+S-(I*S+N*T+L*x),e[13]=r[1]+T-(A*S+C*T+D*x),e[14]=r[2]+x-(w*S+O*T+P*x),e[15]=1,e}function I(e,t,r,n,i,a,s){let o=1/(r-t),l=1/(i-n),u=1/(a-s);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+n)*l,e[10]=(s+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*a*2*u,e[15]=0,e}function A(e,t,r,n){let a=t[0],s=t[1],l=t[2],u=a-r[0],h=s-r[1],c=l-r[2],d=(0,i.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(e);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let m=n[0],g=n[1],p=n[2],_=g*c-p*h,y=p*u-m*c,b=m*h-g*u;f=Math.sqrt(_*_+y*y+b*b),f?(f=1/f,_*=f,y*=f,b*=f):(_=0,y=0,b=0);let v=h*b-c*y,E=c*_-u*b,R=u*y-h*_;f=Math.sqrt(v*v+E*E+R*R),f?(f=1/f,v*=f,E*=f,R*=f):(v=0,E=0,R=0),e[0]=_,e[1]=v,e[2]=u,e[3]=0,e[4]=y,e[5]=E,e[6]=h,e[7]=0,e[8]=b,e[9]=R,e[10]=c,e[11]=0,e[12]=-(_*a+y*s+b*l),e[13]=-(v*a+E*s+R*l),e[14]=-(u*a+h*s+c*l),e[15]=1}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function N(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function C(e){let t=(0,i.FD)(),r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(n*n+o*o+h*h))<=t&&Math.abs(1-(a*a+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const L=c,D=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],m=t[12],g=t[13],p=t[14],_=t[15];return e[0]=o*(d*_-f*p)-c*(l*_-u*p)+g*(l*f-u*d),e[1]=-(n*(d*_-f*p)-c*(i*_-a*p)+g*(i*f-a*d)),e[2]=n*(l*_-u*p)-o*(i*_-a*p)+g*(i*u-a*l),e[3]=-(n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l)),e[4]=-(s*(d*_-f*p)-h*(l*_-u*p)+m*(l*f-u*d)),e[5]=r*(d*_-f*p)-h*(i*_-a*p)+m*(i*f-a*d),e[6]=-(r*(l*_-u*p)-s*(i*_-a*p)+m*(i*u-a*l)),e[7]=r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l),e[8]=s*(c*_-f*g)-h*(o*_-u*g)+m*(o*f-u*c),e[9]=-(r*(c*_-f*g)-h*(n*_-a*g)+m*(n*f-a*c)),e[10]=r*(o*_-u*g)-s*(n*_-a*g)+m*(n*u-a*o),e[11]=-(r*(o*f-u*c)-s*(n*f-a*c)+h*(n*u-a*o)),e[12]=-(s*(c*p-d*g)-h*(o*p-l*g)+m*(o*d-l*c)),e[13]=r*(c*p-d*g)-h*(n*p-i*g)+m*(n*d-i*c),e[14]=-(r*(o*p-l*g)-s*(n*p-i*g)+m*(n*l-i*o)),e[15]=r*(o*d-l*c)-s*(n*d-i*c)+h*(n*l-i*o),e},copy:a,determinant:function(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],f=e[12],m=e[13],g=e[14],p=e[15];return(t*s-r*a)*(c*p-d*g)-(t*o-n*a)*(h*p-d*m)+(t*l-i*a)*(h*g-c*m)+(r*o-n*s)*(u*p-d*f)-(r*l-i*s)*(u*g-c*f)+(n*l-i*o)*(u*m-h*f)},equals:function(e,t){if(e===t)return!0;let r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],m=e[11],g=e[12],p=e[13],_=e[14],y=e[15],b=t[0],v=t[1],E=t[2],R=t[3],M=t[4],S=t[5],T=t[6],x=t[7],I=t[8],A=t[9],w=t[10],N=t[11],C=t[12],O=t[13],L=t[14],D=t[15],P=(0,i.FD)();return Math.abs(r-b)<=P*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(n-v)<=P*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-E)<=P*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-R)<=P*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(o-M)<=P*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=P*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-T)<=P*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-x)<=P*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(c-I)<=P*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(d-A)<=P*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(f-w)<=P*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(m-N)<=P*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(g-C)<=P*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(p-O)<=P*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(_-L)<=P*Math.max(1,Math.abs(_),Math.abs(L))&&Math.abs(y-D)<=P*Math.max(1,Math.abs(y),Math.abs(D))},exactEquals:N,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,l=i+i,u=r*s,h=n*s,c=n*o,d=i*s,f=i*o,m=i*l,g=a*s,p=a*o,_=a*l;return e[0]=1-c-m,e[1]=h+_,e[2]=d-p,e[3]=0,e[4]=h-_,e[5]=1-u-m,e[6]=f+g,e[7]=0,e[8]=d+p,e[9]=f-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=E,n=-t[0],i=-t[1],a=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=n*n+i*i+a*a+s*s;return c>0?(r[0]=2*(o*s+h*n+l*a-u*i)/c,r[1]=2*(l*s+h*i+u*n-o*a)/c,r[2]=2*(u*s+h*a+o*i-l*n)/c):(r[0]=2*(o*s+h*n+l*a-u*i),r[1]=2*(l*s+h*i+u*n-o*a),r[2]=2*(u*s+h*a+o*i-l*n)),v(e,t,r),e},fromRotation:_,fromRotationTranslation:v,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:x,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:p,fromXRotation:y,fromYRotation:function(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:b,frustum:I,getRotation:S,getScale:M,getTranslation:R,hasIdentityRotation:O,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:C,lookAt:A,mul:L,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,i,a,s){let o=1/(t-r),l=1/(n-i),u=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*l,e[14]=(s+a)*u,e[15]=1,e},perspective:function(e,t,r,n,i){let a,s=1/Math.tan(t/2);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){let i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:m,rotateX:g,rotateY:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=s*i-h*n,e[2]=o*i-c*n,e[3]=l*i-d*n,e[8]=a*n+u*i,e[9]=s*n+h*i,e[10]=o*n+c*i,e[11]=l*n+d*i,e},rotateZ:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=s*i+h*n,e[2]=o*i+c*n,e[3]=l*i+d*n,e[4]=u*i-a*n,e[5]=h*i-s*n,e[6]=c*i-o*n,e[7]=d*i-l*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:D,subtract:w,targetTo:function(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],l=n[1],u=n[2],h=i-r[0],c=a-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let m=l*d-u*c,g=u*h-o*d,p=o*c-l*h;return f=m*m+g*g+p*p,f>0&&(f=1/Math.sqrt(f),m*=f,g*=f,p*=f),e[0]=m,e[1]=g,e[2]=p,e[3]=0,e[4]=c*p-d*g,e[5]=d*m-h*p,e[6]=h*g-c*m,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e},translate:d,transpose:l},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>c,tc:()=>u}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i=o(1),a=s(1);function s(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(n);if(t){let r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===n?o(r):r;return i?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,a,"ps",0,i])},4197(e,t,r){r.d(t,{Vj:()=>s,cj:()=>a,jh:()=>i});var n=r(9093);function i(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function a(e){return[...e]}function s(e){let t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>s,DC:()=>d,Ej:()=>b,Ie:()=>T,Jt:()=>x,Lu:()=>E,Ne:()=>R,RF:()=>c,TF:()=>_,VL:()=>m,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>y,hZ:()=>S,iT:()=>f,is:()=>A,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>a,w1:()=>h,yr:()=>g}),r(35522);var n=r(5443),i=(r(19419),r(4197));function a(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,i,s,o=a()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=s,o}function l(e,t=a()){return function(e,t,r,n=a()){return S(n,N),function(e,t,r=0,n=t.length/3){let i=e[0],a=e[1],s=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),a=Math.min(a,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=a,e[2]=s,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,a,s,o,l]=e;return t[0]=r,t[1]=n,t[2]=a,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=a,t[9]=r,t[10]=o,t[11]=l,t[12]=s,t[13]=n,t[14]=a,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=o,t[20]=a,t[21]=s,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function m(e){return e[0]>=e[3]?0:e[3]-e[0]}function g(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function _(e){let t=m(e),r=p(e),n=g(e);return t*t+r*r+n*n}function y(e,t=[0,0,0]){return t[0]=e[0]+m(e)/2,t[1]=e[1]+g(e)/2,t[2]=e[2]+p(e)/2,t}function b(e,t=[0,0,0]){return t[0]=m(e),t[1]=g(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function E(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,N):a(N)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function I(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function A(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const N=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];a(),r.d(t,["qv",0,N,"v_",0,C])},50498(e,t,r){var n=r(66552),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},42521(e,t,r){r.r(t),r.d(t,{default:()=>Ge});var n=r(32198),i=r(4576),a=r(60999),s=r(69540),o=r(49186),l=r(36563),u=r(44208),h=r(53966),c=r(25728),d=r(17676),f=r(36708),m=r(91429),g=r(87024),p=r(4146),_=r(52136),y=r(18768),b=r(69208),v=r(34287),E=r(8303),R=r(25036),M=r(58947),S=r(10873),T=r(10292),x=r(58083),I=r(9093),A=r(35522),w=r(51850),N=r(34727),C=r(37539),O=r(79258);function L(e,t,r,n){let i=n+t;if(i<n/2||r>i)return Number.MAX_VALUE;let a=Math.abs(P*e)+Math.asin(r/i);return a>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(a)}const D=(0,w.vt)(),P=(0,N.kU)(1);var F=r(27993),U=r(16930),q=r(98764);(0,w.vt)();var k=r(71351),G=r(28540),Q=r(19419),V=r(89707);class j extends V.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new G.i(0,0,0,-1),this._serviceMbsInRenderSR=new G.i(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,Q.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,Q.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,Q.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,Q.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class z extends j{constructor(e,t,r,n,i,a,s,o,l,u,h){super(e,r),this.index=t,this.childCount=n,this.level=i,this.resources=a,this.version=s,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new W,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class W{constructor(){this._data=[0,0,0,W.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=W.invalidRadius}get valid(){return this._data[3]!==W.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let n=this.getAxis($),{center:i,radius:a}=e.boundingSphere,s=a+r;return 1===t?this.radius>Z||function(e,t,r,n){let i=(0,A.Bw)(r);if(i<=n)return!0;let a=(0,A.Om)(e,r);if(a<=0)return-a<=n;let s=(0,N.qE)(a/i,-1,1),o=Math.sqrt(1-s*s),l=(0,N.qE)(n/i,0,1);return o*Math.sqrt(1-l*l)-l*s<=t}(n,this.radius,i,s):function(e,t,r,n){let i=r[0]-e[0],a=r[1]-e[1],s=t+n;return i*i+a*a<=s*s}(n,this.radius,i,s)&&function(e,t,r,n,i){for(let a of i){let i=a[0],s=a[1],o=a[2],l=o>0?r:n;if(i*e[0]+s*e[1]+o*l+a[3]-Math.hypot(i,s)*t>0)return!1}return!0}(n,this.radius,i[2]-s,i[2]+s,e.planes)}}const $=(0,w.vt)(),Z=.9;var H=r(25992),B=r(66480),Y=r(57005),K=r(4431),X=r(62747),J=r(58682),ee=r(92359);class te{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,B.Rm)(e),this._vertexSpatialReference=(0,B.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,q.lO)(t):t.isGeographic?U.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(ee.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new o.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new o.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,d.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],n=function(e,t,r,n,i){let a=(0,w.fA)(e,t,r),s=(0,w.fA)(e,t,r-1e3),o=(0,w.vt)(),l=(0,w.vt)();return(0,F.F)(a,n,o,i)&&(0,F.F)(s,n,l,i)?(0,k.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return n??this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,d.Te)(this._signal),r.z=this._highest===-1/0?ie:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new o.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Y.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Y.ab.fromJSON(e.obb));let r=new G.i;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;let i=(0,C.Tp)(t,n);if(null==i?.projector)return!1;if(i.projector===C.pO)return r.copyFrom(e),!0;let{source:a,dest:s,projector:o}=i;if(3===s.spatialReferenceId){let t=C.w5[a.spatialReferenceId][2];return null!=t&&(t(e.center,0,D,0),(0,C.s7)(D,0,r.center,0),r.radius=L(D[1],e.center[2],e.radius,O.$O.radius),!0)}if(2!==a.spatialReferenceId&&5!==a.spatialReferenceId||11!==s.spatialReferenceId){o(e.center,0,r.center,0);let t=a.metersPerUnit??1,n=s.metersPerUnit??1;r.radius=e.radius*t/n}else{let t=C.w5[a.spatialReferenceId][1],n=C.w5[1][11],i=e.radius;null!=t&&null!=n&&(i=L(e.center[1],e.center[2],e.radius,O.$O.radius)),o(e.center,0,r.center,0),r.radius=i}return!0}(new G.i(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,d.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,d.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let n=(0,H.C)(r,0,ae,this._indexSpatialReference,this._intersectionSpaceSpatialReference),i={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[se],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:ae,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},a=await this._layer.processElevationQueryGeometry(i,this._signal);return(0,d.Te)(this._signal),a}intersectTransformedGeometry(e,t,r){let n=e.globalTrafo;if(null==(0,x.B8)(oe,n))return t;let i=this._queryRay,a=(0,A.Z0)(le,i.origin,oe),s=(0,A.WQ)(ue,i.origin,i.direction),o=(0,A.Z0)(he,s,oe),l=(0,A.jb)(ce,o,a),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=t;return(0,J.h7)(a,l,0,c,h,u,3,!1,e=>{let t=(0,A.hs)(de,l,e);(0,A.WQ)(t,t,a);let i=(0,A.Z0)(fe,t,n),s=me;if((0,F.F)(i,this._intersectionSpaceSpatialReference,s,this._layer.spatialReference)){let e=s[2]+r;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,d.Te)(this._signal),t}}class re extends te{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;let i=this._pageId(this._rootIndex),a=this._rootIndex-i*this._pageSize,s=Y.ab.fromJSON(n.rootPage.nodes[a].obb);this._rootRayOriginZ=s.centerZ+s.radius+1,this._loadedPages.set(i,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,d.Te)(this._signal);let n=r.nodes[e-t*this._pageSize],i=Y.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(i))return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e))),void(0,d.Te)(this._signal);let s=this._createNode(e,n,i);null!=s&&(await this._processLeafNode(s),(0,d.Te)(this._signal))}_createNode(e,t,r){let{mesh:n}=t;if(null==n?.geometry)return null;let i=new G.i(r.getCenter((0,w.vt)()),r.radius),{geometry:a,material:s}=n;return new z(`${e}`,e,i,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${a.resource}`,geometryDefinition:a.definition,materialDefinition:s?.definition??-1},"",0,0,a.featureCount??null,r)}}class ne extends te{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,d.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,d.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Y.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,d.Te)(this._signal);let n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,d.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let n=null==e.obb?null:Y.ab.fromJSON(e.obb),i=new G.i(e.mbs);return new z(r,0,i,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const ie=Number.MAX_VALUE,ae="none",se=(0,K.U)((0,X.hH)(new X.W7(!1,!1,0))),oe=(0,I.vt)(),le=(0,w.vt)(),ue=(0,w.vt)(),he=(0,w.vt)(),ce=(0,w.vt)(),de=(0,w.vt)(),fe=(0,w.vt)(),me=(0,w.vt)();var ge=r(50805),pe=r(58325),_e=r(24212),ye=r(80215),be=r(97159),ve=r(16215),Ee=r(98697),Re=r(56507),Me=r(97768),Se=r(50075);class Te{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,Se._i)(e)}request(e,t,r){let n=new AbortController,i=(0,d.NY)(r,()=>n.abort()),a={...Se.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},s=(0,Re.A)(e,a),o={abortController:n,abortHandle:i};return this._activeRequests.add(o),s.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,Me.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,Me.DC)(e.abortController),e.abortHandle=(0,Me.xt)(e.abortHandle)}),this._activeRequests.clear()}}var xe=r(4718),Ie=r(84952),Ae=r(59418),we=r(85334);r(91829),r(73941),r(76200);var Ne=r(74810),Ce=r(49788);function Oe(e){return e.sort((e,t)=>e.encoding-t.encoding)}const Le={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},De={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};function Pe(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,i=r?e.textureDefinitions?.[r]:null,a=Fe();if(null!=n){let e=n.params;e.diffuse&&((0,we.KV)(e.diffuse),a.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(a.doubleSided=e.doubleSided,a.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(a.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(a.metallicRoughness.baseColorFactor[3]=(0,N.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||a.metallicRoughness.baseColorFactor[3]<1)&&(a.alphaMode="blend")}let s=[];if(null!=i){i.wrap&&("repeat"===i.wrap[0]||"repeat"===i.wrap[1])&&(a.wrapTextures=!0);let e=1;"rgba"===i.channels&&(a.alphaMode="blend",e|=32);let t=i.images.length-1,r=i.images[t],n=e=>e?.split("/").pop(),o=Array.isArray(i.encoding)?Oe(i.encoding.map((e,t)=>({name:n(r.href[t]),encoding:De[e]||0}))):[{name:n(r.href),encoding:De[i.encoding]||0}];s.push({id:0,usage:e,encodings:o}),a.metallicRoughness.baseColorTextureId=0}return{material:a,textures:s}}const Fe=()=>({alphaMode:"opaque",alphaCutoff:Ce.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0});class Ue{constructor(e,t,r,n,i,a){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=i,this._options=a,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let n=new Map,i=(e,t)=>{if(null==e)return-1;let r=n.get(e.id);if(r)return r.usage|=t,r.id;let i=n.size;return n.set(e.id,{id:i,usage:t}),i},a=t.pbrMetallicRoughness,s=a?.baseColorFactor?(0,we.sn)(a.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===a?.metallicFactor||(0,Ne.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:a?.metallicRoughnessTexture,metallicFactor:a?.metallicFactor,roughnessFactor:a?.roughnessFactor}),u=l?Ne.Bt[0]:a?.metallicFactor??Ne.mb[0],h=l?Ne.Bt[1]:a?.roughnessFactor??Ne.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:s?[s[0],s[1],s[2],s[3]]:[1,1,1,1],baseColorTextureId:i(a?.baseColorTexture,c),metallicRoughnessTextureId:i(a?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:i(t.normalTexture,4),emissiveTextureId:i(t.emissiveTexture,16),occlusionTextureId:i(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},m=[];return n.forEach(({usage:t},r)=>{let n=null!=e&&e[r]&&e[r].formats,i=n?Oe(n.map(({name:e,format:t})=>({name:e,encoding:Le[t]}))):[];m.push({id:r,usage:t,encodings:i})}),{material:f,textures:m}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,Ae.m0)(t,e))}async loadAttributes(e,t,r){let n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),i={};for(let r=0;r<t.length;++r){let a=n[r],s=t[r];if("fulfilled"===a.status){let e=a.value;i[s.name]=e}else{let t=a.reason;(0,d.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${s.name}' on node '${e.id}'`,t)}}return i}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,a.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:i}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;let i=n>=0?e[n].geometryBuffers:null;if(null==i)return r;for(let e=0;e<i.length;e++){let t=i[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,u.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=i[e]}return r}(this._geometryDefinitions,e),s=!!e.resources.geometry,o=s?(0,a.Ke)(this._loadGeometry(e.resources.geometry,i,t)):null,l=e.resources.hasSharedResource?await this._loadShared(e,t):null,h=e.resources.materialDefinition,c=this._materialAndTextures&&null!=h&&h>=0?this._materialAndTextures[h]:null==l?null:Pe(l),d=c?.material,f=c?.textures??[],m=`${e.id}`,g=!s&&this._options.loadFeatureData,p=g?await this._loadFeatureData(m,t):null,_=g?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(p):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:d}}],featureDataPosition:[0,0,0]},y=null==_?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(p):null,b=f.length>0?(0,a.Ke)(this.loadTextures(e,f,t)):null,v=null,E=null;if(o){v=(0,a.QA)(await o);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,xe.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,l);E=(0,Ae.qs)(n,e)}let R=b?(0,a.QA)(await b):null,M=r?(0,a.QA)(await r):{},S=M?{attributeData:M,loadedAttributes:this._requiredAttributes}:null;if(null!=_)return{geometryData:_,attributeDataInfo:S,geometryBuffer:v,geometryDescriptor:E,requiredTextures:f,textureData:R};if(null!=y)return{pointData:y,attributeDataInfo:S,geometryBuffer:v,geometryDescriptor:E,requiredTextures:f,textureData:R};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let n of r[e].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(e=>(0,Ie.s2)(e,t)):(0,Ie.s2)(n.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return Ue._fixTextureEncodings(n),Ue._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,i){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",i).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",i).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){let n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;let i=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==i)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let a=e.resources.texture||e.id,s=`${this._layerUrl}/nodes/${a}/textures/${i.name}`;return this._loadTexture(s,t.id,t.usage,i.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var qe=r(36005);let ke=class extends((0,M.w6)((0,y.b)((0,v.q)((0,E.A)((0,R.j)((0,c.M)((0,b.d)((0,_.p)((0,s.OU)(p.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,f.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},f.OH),(0,f.wB)(()=>this.modifications,()=>this._modificationsGeneration++,f.OH),(0,f.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),f.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,be.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ee.Cm((e,t)=>ee.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let s={stack:[],error:void 0,hasError:!1};try{let u=r?.noDataValue??Number.MAX_VALUE,h=this._elevationQueryWorker,c=new AbortController;e.addHandles((0,l.rE)(c),c),(0,n.mS)(s,(0,l.Bf)((0,l.hA)(()=>e.removeHandles(c))),!1);let f=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,c.signal].filter(i.Ru));await this.load({signal:f}),(0,d.Te)(f);let m=T.q.fromGeometry(t),g={signal:f,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=(0,a.Ke)(h.setLegacySchema(this._elevationQueryWorkerContext,e)))}let p=await async function(e,t,r){let n=await e.indexInfo;if((0,d.Te)(r.signal),null==n)throw new o.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new re(e,t,r,n).promise:new ne(e,t,r,n).promise}(this,m,g);(0,d.Te)(f);let _=p.coordinates[0].z===ie;_&&(p.coordinates[0].z=u);let y=await p.project(t.spatialReference,f);(0,d.Te)(f);let b=y??m.clone(),v={geometry:b.export(),noDataValue:u};return r?.returnSampleInfo&&(v.sampleInfo=b.coordinates.map(()=>({demResolution:_?-1:1}))),v}catch(e){s.error=e,s.hasError=!0}finally{(0,n.hk)(s)}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){let r=await this._elevationQueryWorkerSetup;return null!=r&&(0,a.QA)(r),(0,d.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,d.QP)(e)}if((0,d.Te)(t),await this._fetchService(t),(0,d.Te)(t),null!=this._modificationsSource){let r=await pe.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,d.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,d.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,u.A)("enable-feature:im-as-ground")||(0,ve.S)(this.parent)||(0,ye.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new Te(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new Ue(this,this.elevationQueryDataRequester,h.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,_e.XF)(h.A.getLogger(this),(0,_e.B)(t,"absolute-height",e)),(0,_e.XF)(h.A.getLogger(this),(0,_e.tW)(t,e))}};(0,n.Cg)([(0,m.MZ)({type:String,readOnly:!0})],ke.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.MZ)({type:["show","hide"]})],ke.prototype,"listMode",void 0),(0,n.Cg)([(0,m.MZ)({type:["IntegratedMeshLayer"]})],ke.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,m.MZ)({json:{read:!1},readOnly:!0})],ke.prototype,"type",void 0),(0,n.Cg)([(0,m.MZ)({type:ge.W4,readOnly:!0,clonable:!1})],ke.prototype,"nodePages",void 0),(0,n.Cg)([(0,m.MZ)({type:[ge.uV],readOnly:!0,clonable:!1})],ke.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,m.MZ)({type:[ge.Ot],readOnly:!0,clonable:!1})],ke.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,m.MZ)({type:[ge.L0],readOnly:!0,clonable:!1})],ke.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],ke.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,m.MZ)({type:pe.A,clonable:e=>e?.clone()??e}),(0,g.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],ke.prototype,"modifications",void 0),(0,n.Cg)([(0,m.MZ)({clonable:e=>e?{...e}:null})],ke.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,qe.w)(["web-scene","portal-item"],"modifications")],ke.prototype,"readModifications",null),(0,n.Cg)([(0,m.MZ)(S.Yj)],ke.prototype,"elevationInfo",null),(0,n.Cg)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],ke.prototype,"path",void 0),(0,n.Cg)([(0,m.MZ)({clonable:!1})],ke.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,m.MZ)()],ke.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,m.MZ)()],ke.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,m.MZ)()],ke.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,m.MZ)()],ke.prototype,"replacesTerrain",null),(0,n.Cg)([(0,m.MZ)({clonable:!1})],ke.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,m.MZ)({clonable:!1})],ke.prototype,"elevationQueryNodeLoader",null),ke=(0,n.Cg)([(0,m.$K)("esri.layers.IntegratedMeshLayer")],ke);const Ge=ke},85707(e,t,r){var n=r(32198),i=r(91429),a=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,type:a.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>o});var n=r(48526),i=r(86738),a=r(82799),s=r(99917);class o{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new o(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,s.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,s.project)(r,e);if(!i)return null;let a=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),o=this.clone(a);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,s.project)(t,e);if(!r)return null;let i=this.coordinates.map((e,t)=>{let n=e.clone(),i=r.points[t];return n.x=i[0],n.y=i[1],n}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){let t=new o(e);if(e instanceof o)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{let r=e,{hasZ:n,hasM:a}=r;return t.coordinates=n&&a?[new l(r.x,r.y,r.z,r.m)]:n?[new l(r.x,r.y,r.z)]:a?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new i.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new i.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:i,hasM:a}=r;return t.coordinates=i&&a?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):i?r.points.map(e=>new l(e[0],e[1],e[2])):a?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,n=[],i=[],{hasZ:s,hasM:o}=e,u=0;for(let e of r.paths)if(i.push([u,u+e.length]),u+=e.length,s&&o)for(let t of e)n.push(new l(t[0],t[1],t[2],t[3]));else if(s)for(let t of e)n.push(new l(t[0],t[1],t[2]));else if(o)for(let t of e)n.push(new l(t[0],t[1],null,t[2]));else for(let t of e)n.push(new l(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=i.map(e=>n.slice(e[0],e[1]));return new a.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,n=null,i=null,a=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=i,this.elevationTile=a}clone(){return new l(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,n.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...a,set:function(e){if(null==e)return void this._set("url",e);let r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},n=(0,a.An)(e.url);return null!=n&&(null==e.dynamicDataSource?null!=e.layerId&&(n.path=(0,a.fj)(n.path,r??"",e.layerId.toString())):n.path=(0,a.fj)(n.path,"dynamicLayer")),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),i=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,i}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>a,hH:()=>s});var n=r(1843),i=r(65786);i.Y;class a extends i.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function s(e){let t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),i=(r(36708),r(44794),r(78659)),a=r(32198),s=r(69622),o=r(91429);let l=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,a.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,a.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,a.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,i.l5)(6.5),(0,i.l5)(1),(0,i.l5)(30),(0,i.l5)(1e3/30),(0,i.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){let e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){let e=(0,n.NK)();if(r)return r(e);throw e}let i=e(h);for(;;){let e=i.next(h),a=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){let e=(0,n.NK)();if(r){let t=r(e),a=i.return(null);return(0,n.$X)(a)&&await(0,n.QZ)(a),t}let t=i.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(a.done)return a.value}}}const d=new c}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6319],{4341(e,t,r){r.d(t,{I:()=>a});var i=r(26390);class a{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},80754(e,t,r){r.d(t,{kS:()=>h,kd:()=>l});var i=r(82799),a=r(16930),s=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function h(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,n.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t}else if((0,n.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t}else if((0,n.n1)(e)){let[r,i,a]=e.b;r[0]+=t,i[0]+=t,a[0]+=t}else e[0]+=t;for(let r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},71351(e,t,r){r.d(t,{C:()=>u,Cr:()=>c,LV:()=>h,fA:()=>m,vt:()=>o});var i=r(4341),a=(r(77690),r(29242)),s=r(35522),n=r(51850);function o(e){return e?l((0,n.o8)(e.origin),(0,n.o8)(e.direction)):l((0,n.vt)(),(0,n.vt)())}function l(e,t){return{origin:e,direction:t}}function h(e,t){let r=d.get();return r.origin=e,r.direction=t,r}function u(e,t=o()){return m(e.origin,e.direction,t)}function c(e,t,r=o()){return(0,s.C)(r.origin,e),(0,s.Re)(r.direction,t,e),r}function m(e,t,r=o()){return(0,s.C)(r.origin,e),(0,s.C)(r.direction,t),r}r(32114);const d=new i.I(()=>o());(0,n.vt)(),(0,n.vt)(),(0,n.vt)(),(0,a.vt)()},28540(e,t,r){r.d(t,{i:()=>d});var i=r(34727),a=r(34304),s=r(58083),n=r(35522),o=r(51850),l=r(91829),h=r(34275);var u=r(71351),c=r(44280),m=r(32114);class d{constructor(e=0,t=0,r=0,i=0){this.radius=i,"number"==typeof e?this._center=(0,o.fA)(e,t,r):function(e){return t=e,(0,h.vZ)(t)&&t.length>=3||function(e){return((0,h.aI)(e)||Array.isArray(e))&&e.length>=3}(e);var t}(e)||function(e){return(t=e)instanceof Float32Array&&t.length>=4||function(e){return Array.isArray(e)&&e.length>=4}(e);var t}(e)?(this._center=(0,o.ci)(e),this.radius=4===e.length?e[3]:t):(this._center=(0,o.o8)(e.center),this.radius=e.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(e){(0,n.C)(this.center,e)}exactEquals(e){return(0,n.aI)(this._center,e.center)&&this.radius===e.radius}copyFrom(e){return e!==this&&((0,n.C)(this._center,e.center),this.radius=e.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,l.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(e){return(0,n.hG)(this.center,e)<=this.radius**2}intersects(e){let t=this.radius+e.radius;return(0,n.hG)(this.center,e.center)<=t*t}intersectRay(e,t){if(null==e||!this._intersect(e,p))return!1;let{t0:r,t1:i}=p;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(t){let{origin:i,direction:a}=e;t[0]=i[0]+a[0]*r,t[1]=i[1]+a[1]*r,t[2]=i[2]+a[2]*r}return!0}intersectLine(e,t){let r=(0,u.Cr)(e,t);if(!this._intersect(r,p))return[];let{origin:i,direction:s}=r,{t0:l,t1:h}=p,c=e=>{let t=(0,o.vt)();return(0,n.Ln)(t,i,s,e),this.projectPoint(t,t)};return Math.abs(l-h)<(0,a.FD)()?[c(l)]:[c(l),c(h)]}_intersect(e,t){let{origin:r,direction:i}=e,a=_;a[0]=r[0]-this.center[0],a[1]=r[1]-this.center[1],a[2]=r[2]-this.center[2];let s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;let n=2*(i[0]*a[0]+i[1]*a[1]+i[2]*a[2]),o=n*n-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-this.radius**2);if(o<0)return!1;let l=Math.sqrt(o);return t.t0=(-n-l)/(2*s),t.t1=(-n+l)/(2*s),!0}projectPoint(e,t){let r=(0,n.Re)(m.rq.get(),e,this.center),i=(0,n.hs)(m.rq.get(),r,this.radius/(0,n.Bw)(r));return(0,n.WQ)(t,i,this.center)}closestPointOnSilhouette(e,t){let r=m.rq.get(),i=m.Rc.get();(0,n.$A)(r,e.origin,e.direction),(0,n.$A)(t,r,e.origin),(0,n.hs)(t,t,1/(0,n.Bw)(t)*this.radius);let a=this._angleToSilhouette(e.origin),o=(0,c.g7)(e.origin,t);return(0,s.$0)(i,o+a,r),(0,n.Z0)(t,t,i),t}distanceToSilhouette(e){let t=(0,n.Re)(m.rq.get(),e,this.center),r=(0,n.m3)(t),i=this.radius**2;return Math.sqrt(Math.abs(r-i))}frustumCoverage(e,t,r){let i=this.radius,a=i*i,s=e+.5*Math.PI,n=t*t+a-2*Math.cos(s)*t*i,o=Math.sqrt(n),l=n-a;if(l<=0)return.5;let h=Math.acos(Math.sqrt(l)/o)-Math.asin(i/(o/Math.sin(s)));return Math.min(1,(h+.5*r)/r)}_angleToSilhouette(e){let t=(0,n.Re)(m.rq.get(),e,this.center),r=(0,n.Bw)(t),a=this.radius,s=a+Math.abs(a-r);return(0,i.XM)(a/s)}union(e){let t=(0,n.Io)(this._center,e.center),r=this.radius,i=e.radius;return t+i<r?this:t+r<i?(this.copyFrom(e),this):((0,n.Cc)(this._center,this._center,e.center,(t+i-r)/(2*t)),this.radius=(t+r+i)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(e){let{center:t,radius:r}=this,i=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3];return i<0?Math.min(i+r,0):Math.max(i-r,0)}}new d;const p={t0:0,t1:0},_=(0,o.vt)()},38969(e,t,r){r.d(t,{i:()=>a});var i=r(37955);function a(e,t){return new Promise((r,a)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",a)))})}},31217(e,t,r){r.d(t,{D:()=>a});var i=r(56507);async function a(e,t){return(await(0,i.A)(e,{responseType:"image",...t})).data}},76200(e,t,r){r.d(t,{h:()=>q});var i=r(49186),a=r(65529),s=r(44208),n=r(97768),o=r(17676),l=r(34275),h=r(24326),u=r(84952),c=r(38969),m=r(31217),d=r(95117),p=r(53966),_=r(2741);let g;const f=[171,75,84,88,32,50,48,187,13,10,26,10];function T(e){return ArrayBuffer.isView(e)?new DataView(e.buffer,e.byteOffset,e.byteLength):new DataView(e)}function x(e,t){return e.getUint16(t,!0)+65536*e.getUint8(t+2)}function E(e,t,r){return t<=e.byteLength&&r<=e.byteLength-t}function A(e){return p.A.getLogger("esri.libs.basisu.textureMetadata").error(`Invalid or unsupported ${e} texture metadata`),null}var M=r(63907),R=r(21231),w=r(42293);const b=()=>p.A.getLogger("esri.views.3d.webgl-engine.lib.BasisUtil");let C=null,D=null;async function S(){return D??(g??=(async()=>{let e=await(await r.e(9321).then(()=>r(49321))).default({locateFile:e=>(0,_.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),D=g,C=await D),D}function y(e,t){let r=function(e){let t=T(e);if(t.byteLength<77)return A("Basis");let r=t.getUint16(0,!0),i=t.getUint16(2,!0),a=t.getUint16(4,!0),s=t.getUint8(20);if(17011!==r||19!==i||77!==a||0!==s)return A("Basis");let n=t.getUint32(8,!0),o=x(t,14),l=x(t,17),h=t.getUint16(21,!0),u=!!(4&h),c=t.getUint32(65,!0);if(0===l||o<l||!(1&h)||u&&o%2!=0||!E(t,77,n)||c<77||!E(t,c,23*o))return A("Basis");let m=x(t,c),d=t.getUint8(c+3);if(0!==m||0!==d)return A("Basis");let p=t.getUint16(c+5,!0),_=t.getUint16(c+7,!0),g=1;for(let e=1;e<o;++e){let r=c+23*e;if(0!==x(t,r))break;let i=t.getUint8(r+3);g=Math.max(g,i+1)}return 0===p||0===_||g>16?A("Basis"):{width:p,height:_,levels:g,hasAlpha:u}}(e);return r?I(r,t):0}function F(e,t){let r=function(e){let t=T(e);if(t.byteLength<80||!f.every((e,r)=>t.getUint8(r)===e))return A("KTX2");let r=t.getUint32(12,!0),i=t.getUint32(16,!0),a=t.getUint32(20,!0),s=t.getUint32(24,!0),n=t.getUint32(28,!0),o=t.getUint32(36,!0),l=t.getUint32(40,!0),h=t.getUint32(44,!0),u=t.getUint32(48,!0),c=t.getUint32(52,!0);if(0!==r||1!==i||0===a||0===s||0!==n||1!==o&&6!==o||6===o&&a!==s||0===l||l>32||!E(t,80,24*l)||u<80||44!==c&&60!==c||!E(t,u,c))return A("KTX2");let m=t.getUint32(u,!0),d=t.getUint8(u+12),p=t.getUint8(u+14);if(m!==c||1!==p&&2!==p||163!==d&&166!==d||(163===d?1!==h:0!==h&&2!==h))return A("KTX2");for(let e=0;e<l;++e){let r=80+24*e,i=Number(t.getBigUint64(r,!0)),a=Number(t.getBigUint64(r+8,!0));if(i<80||0===a||!E(t,i,a))return A("KTX2")}let _=t.getUint32(56,!0),g=t.getUint32(60,!0),x=Number(t.getBigUint64(64,!0)),M=Number(t.getBigUint64(72,!0));if(g>0&&(_<80||!E(t,_,g))||1===h&&(x<80||!E(t,x,M)))return A("KTX2");let R=15&t.getUint8(u+31);return{width:a,height:s,levels:l,hasAlpha:163===d?60===c:3===R}}(e);return r?I(r,t):0}function I({levels:e,hasAlpha:t,width:r,height:i},a){let s=(0,w.MW)(t?M.CQ.COMPRESSED_RGBA8_ETC2_EAC:M.CQ.COMPRESSED_RGB8_ETC2),n=a&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(r*i*s*n)}function v(e,t,r,i,a,s,n,o,l=!1){let{compressedTextureETC:h,compressedTextureS3TC:u}=e.capabilities,{basisFormat:c,internalFormat:m}=function(e,t,r,i){return e?r?{basisFormat:1,internalFormat:i?M.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:M.CQ.COMPRESSED_RGBA8_ETC2_EAC}:{basisFormat:0,internalFormat:i?M.CQ.COMPRESSED_SRGB8_ETC2:M.CQ.COMPRESSED_RGB8_ETC2}:t?r?{basisFormat:3,internalFormat:M.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{basisFormat:2,internalFormat:M.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT}:{basisFormat:13,internalFormat:i?M.H0.SRGB8_ALPHA8:6408}}(null!=h,null!=u,i,l),d=t.hasMipmap?r:Math.min(1,r),p=[];for(let e=0;e<d;e++)p.push(new Uint8Array(n(e,c))),o(e,c,p[e]);return t.internalFormat=m,t.hasMipmap=p.length>1,t.samplingMode=t.hasMipmap?9987:9729,t.width=a,t.height=s,new R.A(e,t,{type:"compressed",levels:p})}function U(e,t){let r=new Uint32Array(e.buffer,e.byteOffset,16);if(1481919403!==r[0]||3140563232!==r[1]||169478669!==r[2])return b().error("Invalid magic number in KTX1 header"),null;if(67305985!==r[3]||1!==r[5]||r[7]!==M.CQ.COMPRESSED_RGB8_ETC2||6407!==r[8])return b().error("Unsupported KTX1 image"),null;let i=r[7],a=1,s=r[9],n=r[10];if(3&s||3&n)return null;let o=s,l=n;!1!==t&&(a=Math.max(1,r[14]));let h,u,c=e.byteOffset+64,m=[];for(let t=0;t<a;++t)u=(e[c]|e[c+1]<<8|e[c+2]<<16|e[c+3]<<24)>>>0,c+=4,h=new Uint8Array(e.buffer,c,u),m.push(h),c+=u,s=Math.max(1,s>>1),n=Math.max(1,n>>1);return{textureData:{type:"compressed",levels:m},internalFormat:i,width:o,height:l}}const P=()=>p.A.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function H(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const O=H("DXT1"),B=H("DXT3"),G=H("DXT5");function N(e,t){let r=new Int32Array(e.buffer,e.byteOffset,31);if(542327876!==r[0])return P().error("Invalid magic number in DDS header"),null;if(!(4&r[20]))return P().error("Unsupported format, must contain a FourCC code"),null;let i,a,s=r[21];switch(s){case O:i=8,a=M.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case B:i=16,a=M.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case G:i=16,a=M.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return P().error("Unsupported FourCC code:",function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(s)),null}let n=1,o=r[4],l=r[3];(3&o||3&l)&&(P().warn("Rounding up compressed texture size to nearest multiple of 4."),o=o+3&-4,l=l+3&-4);let h=o,u=l;131072&r[2]&&!1!==t&&(n=Math.max(1,r[7]));let c,m,d=e.byteOffset+r[1]+4,p=[];for(let t=0;t<n;++t)m=(o+3>>2)*(l+3>>2)*i,c=new Uint8Array(e.buffer,d,m),p.push(c),d+=m,o=Math.max(1,o>>1),l=Math.max(1,l>>1);return{textureData:{type:"compressed",levels:p},internalFormat:a,width:h,height:u}}function L(e,t){return t=16*Math.floor(t/16),Math.min(16*Math.round(e/16),t)}function X(e,t){let[r,i]=function({width:e,height:t},{maxPreferredTexturePixels:r,maxTextureSize:i}){let a=Math.max(e,t),s=e*t;if(a<=i&&s<=r)return[e,t];let n=Math.min(Math.sqrt(r/s),i/a);return[L(Math.round(e*n),i),L(Math.round(t*n),i)]}(e,t);return e.width===r&&e.height===i?e:Q(e,r,i)}function Q(e,t,r){if(e instanceof ImageData)return Q(function(e){let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let r=t.getContext("2d");if(null==r)throw new i.A("texture:context-failed","Failed to create 2d context from HTMLCanvasElement");return r.putImageData(e,0,0),t}(e),t,r);let a=document.createElement("canvas");return a.width=t,a.height=r,a.getContext("2d").drawImage(e,0,0,a.width,a.height),a}var W=r(620),V=r(67171),k=r(12541);const K=!!(0,s.A)("esri-tests-disable-gpu-memory-measurements");class q{constructor(e,t){this._data=e,this.id=(0,h.c)(),this.events=new a.bk,this._parameters={...Y,...t},this._startPreload(e)}dispose(){this.unload(),this._data=this.update=void 0}_startPreload(e){e instanceof HTMLVideoElement?(this.update=t=>this._update(e,t),this._startPreloadVideoElement(e)):e instanceof HTMLImageElement&&this._startPreloadImageElement(e)}_startPreloadVideoElement(e){if(!(0,u.w8)(e.src)&&("auto"!==e.preload||!e.crossOrigin)&&(e.preload="auto",e.crossOrigin="anonymous",e.src=e.src,e.paused&&e.autoplay)){let t=[];(0,c.i)(e,e=>t.push(e)).then(()=>{e.play()}).finally(()=>t.forEach(e=>e.remove()))}}_startPreloadImageElement(e){(0,u.DB)(e.src)||(0,u.w8)(e.src)||e.crossOrigin||(e.crossOrigin="anonymous",e.src=e.src)}_createDescriptor(e){let t=new V.R;return t.wrapMode=this._parameters.wrap??10497,t.flipped=!this._parameters.noUnpackFlip,t.samplingMode=this._parameters.mipmap?9987:9729,t.hasMipmap=!!this._parameters.mipmap,t.preMultiplyAlpha=!!this._parameters.preMultiplyAlpha,t.maxAnisotropy=this._parameters.maxAnisotropy??(this._parameters.mipmap?e.parameters.maxMaxAnisotropy:1),t.dataType=this._parameters.dataType??t.dataType,t.pixelFormat=this._parameters.pixelFormat??t.pixelFormat,t.internalFormat=this._parameters.internalFormat??t.internalFormat,t.isImmutable=!0===this._parameters.immutable&&function(e){return null!=e&&((0,k.tl)(e)||(0,k.tr)(e)||(0,k.CR)(e)||(0,k.QJ)(e))}(this._parameters.internalFormat),t}get texture(){return this._texture??this._emptyTexture}get loaded(){return null!=this._texture}get usedMemory(){return K?0:this._texture?.usedMemory??function(e,t){if(null==e)return 0;if((0,l.mw)(e)||(0,l.mg)(e))return"image/ktx2"===t.encoding?F(e,!!t.mipmap):"image/x.basis"===t.encoding?y(e,!!t.mipmap):e.byteLength;let{width:r,height:i}=e instanceof Image||e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement?z(e):t,a=t.pixelFormat??6408,s=(0,w.wH)(a);return(t.mipmap?4/3:1)*r*i*s||0}(this._data,this._parameters)}load(e){if(this._loadingPromise)return this._loadingPromise;if(this._texture)return this._texture;let t=this._data;return null==t?(this._texture=new R.A(e,this._createDescriptor(e),null),this._texture):(this._emptyTexture=e.emptyTexture,this._parameters.reloadable||(this._data=void 0),"string"==typeof t?this._loadFromURL(e,t):t instanceof Image?this._loadFromImageElement(e,t):t instanceof HTMLVideoElement?this._loadFromVideoElement(e,t):t instanceof ImageData||t instanceof HTMLCanvasElement?this._loadFromImage(e,t):(0,l.mg)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,t):(0,l.mw)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,new Uint8Array(t)):(0,l.mg)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,t):(0,l.mw)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,new Uint8Array(t)):((0,l.mw)(t)||(0,l.mg)(t))&&"image/ktx2"===this._parameters.encoding?this._loadFromKTX2(e,t):((0,l.mw)(t)||(0,l.mg)(t))&&"image/x.basis"===this._parameters.encoding?this._loadFromBasis(e,t):(0,l.mw)(t)?this._loadFromPixelData(e,new Uint8Array(t)):(0,l.iu)(t)?this._loadFromPixelData(e,t):null)}_update(e,t){return null==this._texture||e.readyState<HTMLMediaElement.HAVE_CURRENT_DATA||t===e.currentTime?t:(this._texture.setData(e),this._texture.descriptor.hasMipmap&&this._texture.generateMipmap(),this._parameters.updateCallback&&this._parameters.updateCallback(),e.currentTime)}_loadFromDDSData(e,t){return this._texture=function(e,t,r){let i=N(r,t.hasMipmap??!1);if(null==i)throw Error("DDS texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new R.A(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX1(e,t){return this._texture=function(e,t,r){let i=U(r,t.hasMipmap??!1);if(null==i)throw Error("KTX1 texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new R.A(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX2(e,t){return this._loadAsync(()=>async function(e,t,r,i=!1){C??=await S();let a=new C.KTX2File(new Uint8Array(r));if(!function(e){return e.getFaces()>=1&&(e.isETC1S()||e.isUASTC())}(a))return null;let s=i&&2===a.getDFDTransferFunc();a.startTranscoding();let n=v(e,t,a.getLevels(),a.getHasAlpha(),a.getWidth(),a.getHeight(),(e,t)=>a.getImageTranscodedSizeInBytes(e,0,0,t),(e,t,r)=>a.transcodeImage(r,e,0,0,t,0,-1,-1),s);return a.close(),a.delete(),n}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromBasis(e,t){return this._loadAsync(()=>async function(e,t,r){C??=await S();let i=new C.BasisFile(new Uint8Array(r));if(!function(e){return e.getNumImages()>=1&&!e.isUASTC()}(i))return null;i.startTranscoding();let a=v(e,t,i.getNumLevels(0),i.getHasAlpha(),i.getImageWidth(0,0),i.getImageHeight(0,0),(e,t)=>i.getImageTranscodedSizeInBytes(0,e,t),(e,t,r)=>i.transcodeImage(r,0,e,t,0,0));return i.close(),i.delete(),a}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromPixelData(e,t){(0,W.vA)(this._parameters.width>0&&this._parameters.height>0);let r=this._createDescriptor(e);return(6407===r.pixelFormat||6408===r.pixelFormat)&&(r.compress=this._parameters.compressionOptions),r.width=this._parameters.width??0,r.height=this._parameters.height??0,this._texture=new R.A(e,r,t),this._texture}_loadFromURL(e,t){return this._loadAsync(async r=>{let i=await(0,m.D)(t,{signal:r});return(0,o.Te)(r),this._loadFromImage(e,i)})}_loadFromImageElement(e,t){return t.complete?this._loadFromImage(e,t):this._loadAsync(async r=>{let i=await(0,d.y)(t,t.src,!1,r);return(0,o.Te)(r),this._loadFromImage(e,i)})}_loadFromVideoElement(e,t){return t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?this._loadFromImage(e,t):this._loadFromVideoElementAsync(e,t)}_loadFromVideoElementAsync(e,t){return this._loadAsync(r=>new Promise((a,s)=>{let l=()=>{t.removeEventListener("loadeddata",h),t.removeEventListener("error",u),(0,n.xt)(c)},h=()=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&(l(),a(this._loadFromImage(e,t)))},u=e=>{l(),s(e||new i.A("texture:load-error","Failed to load video"))};t.addEventListener("loadeddata",h),t.addEventListener("error",u);let c=(0,o.u7)(r,()=>u((0,o.NK)()))}))}_loadFromImage(e,t){let r=t;r instanceof HTMLVideoElement||(r=X(r,e.parameters));let i=z(r);this._parameters.width=i.width,this._parameters.height=i.height;let a=this._createDescriptor(e);return a.width=i.width,a.height=i.height,a.compress=this._parameters.compressionOptions,this._texture=new R.A(e,a,r),this._emptyTexture=null,this.events.emit("loaded"),this._texture}_loadAsync(e){let t=new AbortController;this._loadingController=t;let r=e(t.signal);this._loadingPromise=r;let i=()=>{this._loadingController===t&&(this._loadingController=null),this._loadingPromise===r&&(this._loadingPromise=null),this._emptyTexture=null};return r.then(i,i),r}unload(){if(this._texture=(0,n.WD)(this._texture),this._emptyTexture=null,null!=this._loadingController){let e=this._loadingController;this._loadingController=null,this._loadingPromise=null,e.abort()}this.events.emit("unloaded")}get parameters(){return this._parameters}}function z(e){return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e}const Y={wrap:{s:10497,t:10497},mipmap:!0,noUnpackFlip:!1,preMultiplyAlpha:!1}},58682(e,t,r){r.d(t,{Uy:()=>l,h7:()=>m});var i=r(35522),a=r(51850),s=r(70328);class n{constructor(e=0,t=!1,r=!0){this.tolerance=e,this.isVerticalRay=t,this.normalRequired=r}}const o=(0,s.vt)();function l(e,t,r,a,s,o){if(!e.visible)return;let l=(0,i.jb)(M,a,r),{tolerance:h}=t,c=new n(h,!1,t.options.normalRequired);if(e.boundingInfo)u(e.readPrimitivePosition,e.boundingInfo,r,l,h,s,c,o);else{let t=e.readPrimitivePosition;!function(e,t,r,a,s,n,o,l){let h=t,u=R,c=Math.abs(h[0]),m=Math.abs(h[1]),d=Math.abs(h[2]),f=c>=m?c>=d?0:2:m>=d?1:2,x=f,E=h[x]<0?2:1,A=(f+E)%3,M=(f+(3-E))%3,w=h[A]/h[x],b=h[M]/h[x],C=1/h[x],D=p,S=_,y=g,{normalRequired:F}=o;for(let t=r;t<a;++t){let r=3*t;s(u[0],r),s(u[1],r+1),s(u[2],r+2),n&&(n.applyToVertex(u[0],u[0][0],u[0][1],u[0][2],t),n.applyToVertex(u[1],u[1][0],u[1][1],u[1][2],t),n.applyToVertex(u[2],u[2][0],u[2][1],u[2][2],t)),(0,i.jb)(D,u[0],e),(0,i.jb)(S,u[1],e),(0,i.jb)(y,u[2],e);let a=D[A]-w*D[x],o=D[M]-b*D[x],h=S[A]-w*S[x],c=S[M]-b*S[x],m=y[A]-w*y[x],d=y[M]-b*y[x],p=m*c-d*h,_=a*d-o*m,g=h*o-c*a;if((p<0||_<0||g<0)&&(p>0||_>0||g>0))continue;let f=p+_+g;if(0===f)continue;let E=p*(C*D[x])+_*(C*S[x])+g*(C*y[x]);if(E*Math.sign(f)<0)continue;let R=E/f;R>=0&&l(R,R,F?T(u):null,t)}}(r,l,0,e.faceCount,t,s,c,o)}}const h=(0,a.vt)();function u(e,t,r,a,n,l,c,m){if(null==t)return;let p=function(e,t){return(0,i.hZ)(t,1/e[0],1/e[1],1/e[2])}(a,h);if((0,s.C)(o,t.box),l?.applyToAabb(o),function(e,t,r,i){return function(e,t,r,i){let a=(e[0]-i-t[0])*r[0],s=(e[3]+i-t[0])*r[0],n=Math.min(a,s),o=Math.max(a,s),l=(e[1]-i-t[1])*r[1],h=(e[4]+i-t[1])*r[1];if(o=Math.min(o,Math.max(l,h)),o<0||(n=Math.max(n,Math.min(l,h)),n>o))return!1;let u=(e[2]-i-t[2])*r[2],c=(e[5]+i-t[2])*r[2];return o=Math.min(o,Math.max(u,c)),!(o<0||(n=Math.max(n,Math.min(u,c)),n>o))&&n<1/0}(e,t,r,i)}(o,r,p,n)){let{primitiveIndices:i}=t,s=i.length;if(s>1e3){let i=t.children;if(void 0!==i){for(let t of i)u(e,t,r,a,n,l,c,m);return}}d(r,a,0,s,e,i,l,c,m)}}const c=(0,a.vt)();function m(e,t,r,i,a,s,n,o,l,h=null,u=0){let m=e[0],d=e[1],p=e[2],_=t[0],g=t[1],T=t[2];for(let e=r;e<i;++e){let t=u+(h?.[e]??e),r=3*t,i=n*a[r],x=s[i],E=s[i+1],M=s[i+2],R=n*a[r+1],w=s[R],b=s[R+1],C=s[R+2],D=n*a[r+2],S=w-x,y=b-E,F=C-M,I=s[D]-x,v=s[D+1]-E,U=s[D+2]-M,P=g*U-v*T,H=T*I-U*_,O=_*v-I*g,B=S*P+y*H+F*O,G=B*B;if(G<=A)continue;let N=m-x,L=d-E,X=p-M,Q=(N*P+L*H+X*O)*B;if(Q<0||Q>G)continue;let W=L*F-y*X,V=X*S-F*N,k=N*y-S*L,K=(_*W+g*V+T*k)*B;if(K<0||Q+K>G)continue;let q=(I*W+v*V+U*k)/B;q>=0&&l(q,q,o?f(S,y,F,I,v,U,c):null,t)}}function d(e,t,r,i,a,s,n,o,l){let h=e[0],u=e[1],m=e[2],d=t[0],p=t[1],_=t[2],{normalRequired:g}=o;for(let e=r;e<i;++e){let t=s[e],r=3*t,[i,o,T]=a(b,r),[x,E,M]=a(b,r+1),[R,C,D]=a(b,r+2);null!=n&&([i,o,T]=n.applyToVertex(w,i,o,T,e),[x,E,M]=n.applyToVertex(w,x,E,M,e),[R,C,D]=n.applyToVertex(w,R,C,D,e));let S=x-i,y=E-o,F=M-T,I=R-i,v=C-o,U=D-T,P=p*U-v*_,H=_*I-U*d,O=d*v-I*p,B=S*P+y*H+F*O,G=B*B;if(G<=A)continue;let N=h-i,L=u-o,X=m-T,Q=(N*P+L*H+X*O)*B;if(Q<0||Q>G)continue;let W=L*F-y*X,V=X*S-F*N,k=N*y-S*L,K=(d*W+p*V+_*k)*B;if(K<0||Q+K>G)continue;let q=(I*W+v*V+U*k)/B;q>=0&&l(q,q,g?f(S,y,F,I,v,U,c):null,t)}}const p=(0,a.vt)(),_=(0,a.vt)(),g=(0,a.vt)();function f(e,t,r,a,s,n,o){return(0,i.hZ)(x,e,t,r),(0,i.hZ)(E,a,s,n),(0,i.$A)(o,x,E),(0,i.S8)(o,o),o}function T(e){return(0,i.jb)(x,e[1],e[0]),(0,i.jb)(E,e[2],e[0]),(0,i.$A)(c,x,E),(0,i.S8)(c,c),c}const x=(0,a.vt)(),E=(0,a.vt)(),A=1e-7*1e-7,M=(0,a.vt)(),R=[(0,a.vt)(),(0,a.vt)(),(0,a.vt)()],w=(0,a.vt)(),b=(0,a.vt)()},74810(e,t,r){r.d(t,{Jr:()=>s});var i=r(35522),a=r(51850);function s({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:s,emissiveTexture:n,emissiveFactor:o,occlusionTexture:l}){return null==e&&null==t&&null==n&&(null==o||(0,i.t2)(o,a.uY))&&null==l&&(null==s||1===s)&&(null==r||1===r)}const n=(0,a.CN)(1,1,.5),o=(0,a.CN)(0,.6,.2),l=(0,a.CN)(0,1,.2);r.d(t,["Bt",0,o,"SY",0,l,"mb",0,n])},21231(e,t,r){r.d(t,{A:()=>g});var i=r(49186),a=r(44208),s=r(53966),n=r(97768),o=r(93637),l=r(17676),h=r(94656),u=r(63907),c=r(67171),m=r(12541);class d extends c.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case u.H0.R16F:case u.H0.R32F:case u.H0.R8_SNORM:case u.H0.R8:this.pixelFormat=6403;break;case u.H0.R8I:case u.H0.R8UI:case u.H0.R16I:case u.H0.R16UI:case u.H0.R32I:case u.H0.R32UI:this.pixelFormat=36244}}static validate(e,t){return new d(e,t)}}const p=!!(0,a.A)("esri-tests-disable-gpu-memory-measurements"),_=()=>s.A.getLogger("esri/views/webgl/Texture");class g{static{this.TEXTURE_UNIT_FOR_UPDATES=0}static{this.compressionWorkerHandle=null}constructor(e,t=null,r=null){if(this.type=1,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._shadowFilterDirty=!1,this._wasImmutablyAllocated=!1,"context"in e)this._descriptor=e,r=t;else{let r=d.validate(e,t);if(!r)throw new i.A("texture:invalid-descriptor","Texture descriptor invalid");this._descriptor=r}34067===this._descriptor.target?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return p?0:(0,c.e)(this._descriptor)}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty||this._shadowFilterDirty}get hasWebGLTextureObject(){return!!this._glName}dispose(){this.abortCompression(),this.hasWebGLTextureObject&&this._descriptor.context?.gl&&(this._descriptor.context.instanceCounter.decrement(u.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}[Symbol.dispose](){this.dispose()}resize(e,t){let r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-resize","Immutable textures can't be resized!");r.width=e,r.height=t,34067===this._descriptor.target?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.compress=e}disableCompression(){this._descriptor.compress=void 0}setData(e){this.abortCompression(),!(0,m.Qp)(e)&&this._descriptor.internalFormat&&(0,o.a4)(u.CQ,this._descriptor.internalFormat)&&(this._descriptor.internalFormat=void 0),this._setData(e),!(0,m.Qp)(e)&&this._descriptor.compress&&this._compressOnWorker(e)}updateData(e,t,r,a,s,n,o=0){n||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update uninitialized texture!");let l=this._descriptor;l.internalFormat=(0,m.mq)(l);let{context:h,pixelFormat:u,dataType:c,target:d,isImmutable:p}=l;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");let f=h.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES,!0);(t<0||r<0||t+a>l.width||r+s>l.height)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:T}=h;o&&(a&&s||_().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),T.pixelStorei(T.UNPACK_SKIP_ROWS,o)),(0,m.Kv)(n)?T.texSubImage2D(d,e,t,r,a,s,u,c,n):(0,m.Qp)(n)?T.compressedTexSubImage2D(d,e,t,r,a,s,l.internalFormat,n.levels[e]):T.texSubImage2D(d,e,t,r,a,s,u,c,n),o&&T.pixelStorei(T.UNPACK_SKIP_ROWS,0),h.bindTexture(f,g.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(e,t,r,a,s,n,o,l){l||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update an uninitialized texture!");let h=this._descriptor;h.internalFormat=(0,m.mq)(h);let{context:u,pixelFormat:c,dataType:d,isImmutable:p,target:f}=h;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");(0,m.re)(f)||_().warn("Attempting to set 3D texture data on a non-3D texture");let T=u.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),(t<0||r<0||a<0||t+s>h.width||r+n>h.height||a+o>h.depth)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:x}=u;if((0,m.Qp)(l))l=l.levels[e],x.compressedTexSubImage3D(f,e,t,r,a,s,n,o,h.internalFormat,l);else{let i=l;x.texSubImage3D(f,e,t,r,a,s,n,o,c,d,i)}u.bindTexture(T,g.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){let e=this._descriptor;if(0===e.width||0===e.height)return;if(!e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot add mipmaps to immutable texture after allocation");e.hasMipmap=!0,this._samplingModeDirty=!0,(0,m.QE)(e)}9729===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9985):9728===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9984);let t=this._descriptor.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(e.target),this._descriptor.context.bindTexture(t,g.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){let e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,(0,m.QE)(e)}9985===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9729):9984===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9728)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,(0,m.QE)(this._descriptor),this._wrapModeDirty=!0)}setShadowFiltering(e){e!==this._descriptor.linearFilterDepth&&(this._descriptor.linearFilterDepth=this._descriptor.compareEnabled=e,this.setSamplingMode(e?9729:9728),(0,m.QE)(this._descriptor),this._shadowFilterDirty=!0)}applyChanges(){this._samplingModeDirty&&=(this._applySamplingMode(),!1),this._wrapModeDirty&&=(this._applyWrapMode(),!1),this._shadowFilterDirty&&=(this._applyShadowMode(),!1)}abortCompression(){this._compressionAbortController=(0,n.DC)(this._compressionAbortController)}_setData(e,t){let r=this._descriptor,a=r.context?.gl;if(!a)return;(0,h.Y2)(a),this.hasWebGLTextureObject||(this._glName=a.createTexture(),r.context.instanceCounter.increment(u.vt.Texture,this)),(0,m.QE)(r);let s=r.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);r.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,h.Y2)(a);let n=t??r.target,o=(0,m.re)(n);if((0,m.Kv)(e))this._setDataFromTexImageSource(e,n);else{let{width:t,height:s,depth:l}=r;if(null==t||null==s)throw new i.A("texture:missing-size","Width and height must be specified!");if(o&&null==l)throw new i.A("texture:missing-depth","Depth must be specified!");if(r.internalFormat=(0,m.mq)(r),r.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(n,r.internalFormat,r.hasMipmap,t,s,l),(0,m.Qp)(e)){if(!(0,m.tl)(r.internalFormat))throw new i.A("texture:format-mismatch","Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(e,r.internalFormat,n)}else this._texImage(n,0,r.internalFormat,t,s,l,e),(0,h.Y2)(a),r.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),this._applyShadowMode(),(0,h.Y2)(a),r.context.bindTexture(s,g.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=34069;t<=34074;t++)this._setData(e,t)}_configurePixelStorage(){let e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:i}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,+!!r),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,+!!i)}_setDataFromTexImageSource(e,t){let{gl:r}=this._descriptor.context,i=this._descriptor;i.internalFormat=(0,m.mq)(i);let a=(0,m.re)(t),{width:s,height:n,depth:o}=(0,m.Eo)(e);i.width&&i.height,i.width||=s,i.height||=n,a&&i.depth,a&&(i.depth=o),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,i.internalFormat,i.hasMipmap,s,n,o),this._texImage(t,0,i.internalFormat,s,n,o,e),(0,h.Y2)(r),i.hasMipmap&&(this.generateMipmap(),(0,h.Y2)(r))}_setDataFromCompressedSource(e,t,r){let i=this._descriptor,{width:a,height:s,depth:n}=i,o=e.levels,l=(0,m.FV)(r,a,s,n),h=Math.min(l,o.length)-1;this._descriptor.context.gl.texParameteri(i.target,33085,h),this._forEachMipmapLevel((e,i,a,s)=>{let n=o[Math.min(e,o.length-1)];this._compressedTexImage(r,e,t,i,a,s,n)},h)}_texStorage(e,t,r,a,s,n){let{gl:o}=this._descriptor.context;if(!(0,m.tr)(t)&&!(0,m.tl)(t))throw new i.A("texture:missing-format","Immutable textures must have a sized or compressed internal format");if(!this._descriptor.isImmutable)return;let l=r?(0,m.FV)(e,a,s,n):1;if((0,m.re)(e)){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");o.texStorage3D(e,l,t,a,s,n)}else o.texStorage2D(e,l,t,a,s);this._wasImmutablyAllocated=!0}_texImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e),{isImmutable:u,pixelFormat:c,dataType:d}=this._descriptor;if(u){if(null!=o){let r=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texSubImage3D(e,t,0,0,0,a,s,n,c,d,r)}else l.texSubImage2D(e,t,0,0,a,s,c,d,r)}}else{let u=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texImage3D(e,t,r,a,s,n,0,c,d,u)}else l.texImage2D(e,t,r,a,s,0,c,d,u)}}_compressedTexImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e);if(this._descriptor.isImmutable){if(null!=o)if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,t,0,0,0,a,s,n,r,o)}else l.compressedTexSubImage2D(e,t,0,0,a,s,r,o)}else if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,t,r,a,s,n,0,o)}else l.compressedTexImage2D(e,t,r,a,s,0,o)}async _compressOnWorker(e){let{width:t,height:r,context:i,flipped:a,preMultiplyAlpha:s,hasMipmap:n,compress:o}=this._descriptor;if(!o)return;let{compressionTracker:h,compressionCallback:u,preserveSourceBitmap:c}=o,{compressedTextureETC:m,compressedTextureS3TC:d}=i.capabilities;if(!g.compressionWorkerHandle?.isCompressible(e,this._descriptor)||!m&&!d)return;this.abortCompression();let p=new AbortController;this._compressionAbortController=p,h?.increment();let f,T=!1,x=!1;try{e instanceof ImageBitmap?c?(f=await createImageBitmap(e),(0,l.Te)(p),x=!0):f=e:e instanceof Uint8Array?(f=e.buffer,T=this.descriptor.flipped):(f=await createImageBitmap(e,{imageOrientation:a?"flipY":"none"}),(0,l.Te)(p),x=!0);let i={data:f,width:t,height:r,needsFlip:T,components:6408===this._descriptor.pixelFormat?4:3,preMultiplyAlpha:s,isOpaque:this._descriptor.isOpaque,hasMipmap:n,hasETC:!!m,hasS3TC:!!d},o=await g.compressionWorkerHandle.invoke(i,p.signal,1);if((0,l.Te)(p),o.compressedTexture&&this.hasWebGLTextureObject){let e=this.usedMemory;this._descriptor.internalFormat=o.internalFormat,this._setData(o.compressedTexture),u?.(e-this.usedMemory)}}catch(e){(0,l.zf)(e)||_().error("Texture compression failed!")}finally{h?.decrement(),this._compressionAbortController?.signal.aborted&&(this._compressionAbortController=null),x&&f instanceof ImageBitmap&&f.close()}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:a,depth:s,hasMipmap:n,target:o}=this._descriptor,l=32879===o;if(null==r||null==a||l&&null==s)throw new i.A("texture:missing-size","Missing texture dimensions for mipmap calculation");for(let i=0;e(i,r,a,s),n&&(1!==r||1!==a||l&&1!==s)&&!(i>=t);++i)r=Math.max(1,r>>1),a=Math.max(1,a>>1),l&&(s=Math.max(1,s>>1))}_applySamplingMode(){let e=this._descriptor,t=e.context?.gl,r=e.samplingMode,i=e.samplingMode;9985===r||9987===r?(r=9729,e.hasMipmap||(i=9729)):(9984===r||9986===r)&&(r=9728,e.hasMipmap||(i=9728)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,i),null!=e.maxMipLevel&&t.texParameteri(e.target,t.TEXTURE_MAX_LEVEL,e.maxMipLevel)}_applyWrapMode(){let e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyShadowMode(){let e=this._descriptor,t=e.context?.gl,r=e.compareEnabled?t.COMPARE_REF_TO_TEXTURE:t.NONE;t.texParameteri(e.target,t.TEXTURE_COMPARE_MODE,r),e.compareEnabled&&t.texParameteri(e.target,t.TEXTURE_COMPARE_FUNC,t.GREATER),(0,h.Y2)(t)}_applyAnisotropicFilteringParameters(){let e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},67171(e,t,r){r.d(t,{R:()=>s,e:()=>n});var i=r(63907),a=r(42293);class s{constructor(e=0,t=e){this.width=e,this.height=t,this.type=0,this.target=3553,this.pixelFormat=6408,this.dataType=i.ld.UNSIGNED_BYTE,this.samplingMode=9729,this.wrapMode=10497,this.maxAnisotropy=1,this.flipped=!1,this.hasMipmap=!1,this.isOpaque=!1,this.unpackAlignment=4,this.preMultiplyAlpha=!1,this.compareEnabled=!1,this.linearFilterDepth=!1,this.depth=1,this.isImmutable=!1}}function n(e){return e.width<=0||e.height<=0||e.depth<=0?0:Math.round(e.width*e.height*e.depth*(e.hasMipmap?4/3:1)*(null==e.internalFormat?4:(0,a.MW)(e.internalFormat))*(34067===e.target?6:1))}},42293(e,t,r){r.d(t,{MW:()=>l,wH:()=>o,yu:()=>n});var i=r(94656),a=r(63907);const s=new Set([a.pe.BYTE,a.pe.SHORT,a.pe.INT,a.pe.UNSIGNED_BYTE,a.pe.UNSIGNED_SHORT,a.pe.UNSIGNED_INT]);function n(e,t,r,a=0){let n=e.gl;e.bindBuffer(r);for(let o of r.layout){let r=t.get(o.name);if(null==r){console.warn(`There is no location for vertex attribute '${o.name}' defined.`);continue}let l=a*o.stride;if(o.count<=4)o.integer&&s.has(o.type)?n.vertexAttribIPointer(r,o.count,o.type,o.stride,o.offset+l):n.vertexAttribPointer(r,o.count,o.type,o.normalized,o.stride,o.offset+l),n.enableVertexAttribArray(r),o.divisor>0&&n.vertexAttribDivisor(r,o.divisor);else if(9===o.count)for(let e=0;e<3;e++)n.vertexAttribPointer(r+e,3,o.type,o.normalized,o.stride,o.offset+12*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else if(16===o.count)for(let e=0;e<4;e++)n.vertexAttribPointer(r+e,4,o.type,o.normalized,o.stride,o.offset+16*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else console.error("Unsupported vertex attribute element count: "+o.count);if((0,i.en)()){let t=(0,i.u1)(e.gl);t&&console.error(`Unable to bind vertex attribute "${o.name}" with baseInstanceOffset ${l}:`,t,o)}}}function o(e){switch(e){case 6406:case 6409:case 6403:case 36244:case 6402:case 34041:return 1;case 6410:case 33319:case 33320:return 2;case 6407:case 36248:return 3;case 6408:case 36249:return 4}return 0}function l(e){switch(e){case 6406:case 6409:case 6403:case 36244:case a.H0.R8:case a.H0.R8I:case a.H0.R8UI:case a.H0.R8_SNORM:case 36168:return 1;case 6410:case 33319:case 33320:case a.H0.RGBA4:case a.H0.R16F:case a.H0.R16I:case a.H0.R16UI:case a.H0.RG8:case a.H0.RG8I:case a.H0.RG8UI:case a.H0.RG8_SNORM:case a.H0.RGB565:case a.H0.RGB5_A1:case a.SB.DEPTH_COMPONENT16:return 2;case 6407:case 36248:case a.H0.RGB8:case a.H0.RGB8I:case a.H0.RGB8UI:case a.H0.RGB8_SNORM:case a.H0.SRGB8:case a.SB.DEPTH_COMPONENT24:return 3;case 6408:case 36249:case a.H0.RGBA8:case a.H0.R32F:case a.H0.R11F_G11F_B10F:case a.H0.RG16F:case a.H0.R32I:case a.H0.R32UI:case a.H0.RG16I:case a.H0.RG16UI:case a.H0.RGBA8I:case a.H0.RGBA8UI:case a.H0.RGBA8_SNORM:case a.H0.SRGB8_ALPHA8:case a.H0.RGB9_E5:case a.H0.RGB10_A2UI:case a.H0.RGB10_A2:case a.SB.DEPTH_COMPONENT32F:case a.iE.DEPTH24_STENCIL8:return 4;case a.iE.DEPTH32F_STENCIL8:return 5;case a.H0.RGB16F:case a.H0.RGB16I:case a.H0.RGB16UI:return 6;case a.H0.RG32F:case a.H0.RG32I:case a.H0.RG32UI:case a.H0.RGBA16F:case a.H0.RGBA16I:case a.H0.RGBA16UI:return 8;case a.H0.RGB32F:case a.H0.RGB32I:case a.H0.RGB32UI:return 12;case a.H0.RGBA32F:case a.H0.RGBA32I:case a.H0.RGBA32UI:return 16;case a.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case a.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case a.CQ.COMPRESSED_R11_EAC:case a.CQ.COMPRESSED_SIGNED_R11_EAC:case a.CQ.COMPRESSED_RGB8_ETC2:case a.CQ.COMPRESSED_SRGB8_ETC2:case a.CQ.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case a.CQ.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case a.CQ.COMPRESSED_RG11_EAC:case a.CQ.COMPRESSED_SIGNED_RG11_EAC:case a.CQ.COMPRESSED_RGBA8_ETC2_EAC:case a.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}},94656(e,t,r){r.d(t,{Y2:()=>h,en:()=>l,u1:()=>n});var i=r(49186),a=r(44208),s=r(53966);function n(e){switch(e.getError()){case e.NO_ERROR:return null;case e.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case e.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case e.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case e.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case e.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case e.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}const o=!!(0,a.A)("enable-feature:webgl-debug");function l(){return o}function h(e,t=l()){if(t){let t=n(e);if(t){let e=Error().stack;s.A.getLogger("esri.views.webgl.checkWebGLError").error(new i.A("webgl-error","WebGL error occurred",{message:t,stack:e}))}}}},12541(e,t,r){r.d(t,{CR:()=>u,Eo:()=>T,FV:()=>g,Kv:()=>p,QE:()=>l,QJ:()=>c,Qp:()=>d,mq:()=>f,re:()=>_,tl:()=>m,tr:()=>h});var i=r(49186),a=r(53966),s=r(93637),n=r(63907);const o=()=>a.A.getLogger("esri/views/webgl/textureUtils");function l(e){let{width:t,height:r,depth:i}=e;(null!=t&&t<0||null!=r&&r<0||null!=i&&i<0)&&o().error("Negative dimension parameters are not allowed!");let{internalFormat:a}=e;if(a&&(u(a)||c(a))){let{linearFilterDepth:t,compareEnabled:r,samplingMode:i,hasMipmap:a}=e;a&&o().error("Depth textures cannot have mipmaps"),t?9729!==i&&9728!==i&&o().error("Depth textures cannot sample mipmaps"):(9728!==i&&o().error("Depth textures without filtering must use NEAREST filtering"),r&&o().error("Depth textures without filtering cannot use compare function"))}}function h(e){return function(e){return n.XN.includes(e)}(e)||u(e)||c(e)}function u(e){return(0,s.a4)(n.SB,e)}function c(e){return(0,s.a4)(n.iE,e)}function m(e){return null!=e&&(0,s.a4)(n.CQ,e)}function d(e){return null!=e&&"type"in e&&"compressed"===e.type}function p(e){return null!=e&&!d(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function _(e){return 32879===e||35866===e}function g(e,t,r,i=1){let a=Math.max(t,r);return 32879===e&&(a=Math.max(a,i)),Math.floor(Math.log2(a))+1}function f(e){if(null!=e.internalFormat)return e.internalFormat;switch(e.dataType){case n.ld.FLOAT:switch(e.pixelFormat){case 6408:return n.H0.RGBA32F;case 6407:return n.H0.RGB32F;default:throw new i.A("texture:unknown-format","Unable to derive format")}case n.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case 6408:return n.H0.RGBA8;case 6407:return n.H0.RGB8}}let{pixelFormat:t}=e;return e.internalFormat=34041===t?n.iE.DEPTH24_STENCIL8:6402===t?n.SB.DEPTH_COMPONENT24:t,e.internalFormat}function T(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}},49788(e,t,r){r.d(t,["Q",0,1/255.5,"v",0,.9960861056751468])}}]);