@arcgis/core 6.0.0-next.54 → 6.0.0-next.56

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 (467) hide show
  1. package/WebScene.js +2 -2
  2. package/applications/Components/OrientedImageryViewer/shared/constants.js +1 -1
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/arcade/arcadeAsyncRuntime.js +1 -1
  5. package/arcade/arcadeCompiler.js +1 -1
  6. package/arcade/arcadeRuntime.js +1 -1
  7. package/arcade/featureset/support/sqlUtils.js +1 -1
  8. package/arcade/validation/arcadeValidator.js +1 -1
  9. package/arcgisGlobal.d.ts +1 -0
  10. package/assets/esri/core/workers/RemoteClient.js +1 -1
  11. package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +1 -0
  12. package/assets/esri/core/workers/chunks/033b9fcd9833db3b6e7d.js +1 -0
  13. package/assets/esri/core/workers/chunks/{6602310c3fcd91fb6a2f.js → 07c8ac092e4b9e8d5b3c.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0978e12dd6a1cbc50b80.js +1 -0
  15. package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +1 -0
  16. package/assets/esri/core/workers/chunks/{db0a7671ab5cbe8afd72.js → 123661019bb69c53f2d3.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{e956845255bce0910944.js → 1507297550c3cd1268e2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{1b41ba050cde068d2860.js → 193a73a2c7f4f8482c21.js} +1 -1
  19. package/assets/esri/core/workers/chunks/1c0f5c42331fb6fc26cb.js +1 -0
  20. package/assets/esri/core/workers/chunks/20acb6f3ed5140b6c6c6.js +1 -0
  21. package/assets/esri/core/workers/chunks/2cd2fcf4a37d180d5d5c.js +1 -0
  22. package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +1 -0
  23. package/assets/esri/core/workers/chunks/{afb4dfb89fbc8a342cc5.js → 3354f1fa90f8ce4c8fde.js} +1 -1
  24. package/assets/esri/core/workers/chunks/3982409149571a827390.js +1 -0
  25. package/assets/esri/core/workers/chunks/{9b458b0d1627f22fdd93.js → 3b11e4d2e69b7aea1d65.js} +1 -1
  26. package/assets/esri/core/workers/chunks/3d851710f7fcc27c5b60.js +2 -0
  27. package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +1 -0
  28. package/assets/esri/core/workers/chunks/41694ee8990e799da225.js +1 -0
  29. package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +1 -0
  30. package/assets/esri/core/workers/chunks/{12add2003631fa314f25.js → 5060be52a380fc4920f8.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{2aa6be0b047a1b25a520.js → 53bbb9aa6e4e4a0a8121.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{c6d82397044e403a1f61.js → 5954f02c3901b28d8e73.js} +1 -1
  33. package/assets/esri/core/workers/chunks/5ba6007c3c49a8153256.js +1 -0
  34. package/assets/esri/core/workers/chunks/5bdd95eeb8f34dbf26f2.js +2 -0
  35. package/assets/esri/core/workers/chunks/{4707aedcc1b3bdf5e987.js → 5c34d49a6c9cc34b7626.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js → 5e47026c681238038955.js} +2 -2
  37. package/assets/esri/core/workers/chunks/{2baf35b1b19482d603b5.js → 5f7505ada0991cfbdd84.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{976303f47c342b9d1cc0.js → 62ddd3a82864e26f009a.js} +1 -1
  39. package/assets/esri/core/workers/chunks/69a09c6acb5ae03c67f6.js +1 -0
  40. package/assets/esri/core/workers/chunks/{542a9c414c99d84d52ab.js → 6a202ef9ba9b89e09153.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{0826feebdca8a31eb630.js → 6ba6fece5c11fe2a6ace.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5eb69e2895e5aec81051.js → 6fd10891506925560443.js} +1 -1
  43. package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +1 -0
  44. package/assets/esri/core/workers/chunks/7b6fd287e7043ad50f4e.js +1 -0
  45. package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +1 -0
  46. package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +1 -0
  47. package/assets/esri/core/workers/chunks/{c3c0f24a9e0047232ae1.js → 8679dfc0c53355b6feb0.js} +1 -1
  48. package/assets/esri/core/workers/chunks/8a636dc51372e14c98f5.js +1 -0
  49. package/assets/esri/core/workers/chunks/{d14732a57c8e63948c60.js → 9117c9b720c9ba6e7a6e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{f7e33d37dd11fb08f3f8.js → 97107e64407fa6825620.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{5118c7269b706089c88e.js → a05a2c2aaf0c288f9681.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{944f17e9c9f681b971fb.js → a12e2a345005189c64be.js} +1 -1
  53. package/assets/esri/core/workers/chunks/a22458e5272332d86cb9.js +1 -0
  54. package/assets/esri/core/workers/chunks/{15b3386ad92a0b4149b8.js → a24dc5350af001db417a.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{10967a36c77c5188690d.js → a66d6298236d59a615db.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{3ea480cebf8ee56228a5.js → a7dfca326883384d2751.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{723d8316f5d4b6ce2942.js → a9539393e2f1812a973a.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{ac8d38016e4bee37a77c.js → ab784764ddf9d7f693a1.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{255f5b45c4d32f97f86c.js → ac0861014b3d2f1a1de2.js} +1 -1
  60. package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +1 -0
  61. package/assets/esri/core/workers/chunks/ae48ee283cfa5b3c14b0.js +1 -0
  62. package/assets/esri/core/workers/chunks/b38b6fe08a367e9de4f5.js +1 -0
  63. package/assets/esri/core/workers/chunks/{4e651869e9a196494694.js → b6e628b5d2643af4c19b.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{b37ab6b1cb4cfc85cd9d.js → b7828d7e2c5b75644057.js} +1 -1
  65. package/assets/esri/core/workers/chunks/bbd8fcb0bbba7bde3d9b.js +1 -0
  66. package/assets/esri/core/workers/chunks/{ec465abb0344ad719e9d.js → bd8e329ec74d921d311a.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{56e6e70aa40e51827290.js → c3f94024c6c9eed9f273.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{6d17b45022dfd2548098.js → c5ddf8b347c31fe772a3.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{ee9af58ae202b803bba7.js → c7a0c4ca37ebd1d98cf1.js} +1 -1
  70. package/assets/esri/core/workers/chunks/d0659f1b0495734be4b3.js +1 -0
  71. package/assets/esri/core/workers/chunks/d7763c42754152510e13.js +2 -0
  72. package/assets/esri/core/workers/chunks/{b9a2b05ede02c305e865.js → d8ffb1502def5c85740b.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{7dfe1e78d2e66de6be22.js → d9ef244019954d5a8a27.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{95403bb27a4ea0a4b7b1.js → ddbfa664e69612295785.js} +1 -1
  75. package/assets/esri/core/workers/chunks/dfa1b0308e5e82d1ddfe.js +1120 -0
  76. package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +1 -0
  77. package/assets/esri/core/workers/chunks/e74586b074d0fa6abb4b.js +1 -0
  78. package/assets/esri/core/workers/chunks/e7dff025780726d5feae.js +1 -0
  79. package/assets/esri/core/workers/chunks/e96fa029acba59c04e4e.js +2 -0
  80. package/assets/esri/core/workers/chunks/{55d28d3f5b8ced061e39.js → eaf73ce60f39a48ddd2a.js} +1 -1
  81. package/assets/esri/core/workers/chunks/ed2f2a5da830d058e339.js +1 -0
  82. package/assets/esri/core/workers/chunks/{e592f2483db71230e8e5.js → efd6ea0966f60ab19520.js} +1 -1
  83. package/assets/esri/core/workers/chunks/{944cb751c85d3a127f49.js → f52d081bbde5c95265cf.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{1de9be7b65109c207bd5.js → fbd5f3b81cd9f061824d.js} +1 -1
  85. package/assets/esri/core/workers/chunks/fdfbd201be372d3796bf.js +2 -0
  86. package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +1 -0
  87. package/assets/esri/layers/raster/formats/blosc-wasm.wasm +0 -0
  88. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  89. package/basemapGallery/support/basemapCompatibilityUtils.js +1 -1
  90. package/chunks/BlendLayers.glsl.js +1 -1
  91. package/chunks/ColorMaterial.glsl.js +14 -14
  92. package/chunks/Component.glsl.js +37 -37
  93. package/chunks/CypherParser.js +1 -1
  94. package/chunks/DefaultMaterial.glsl.js +15 -15
  95. package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
  96. package/chunks/HUDMaterial.glsl.js +3 -3
  97. package/chunks/MultiPathImpl.js +1 -1
  98. package/chunks/OperatorGeodesicBuffer.js +1 -1
  99. package/chunks/Path.glsl.js +15 -15
  100. package/chunks/Pattern.glsl.js +20 -20
  101. package/chunks/RasterColorizer.glsl.js +1 -1
  102. package/chunks/ShadowHighlight.glsl.js +1 -1
  103. package/chunks/Terrain.glsl.js +24 -24
  104. package/chunks/UnitFactory.js +1 -1
  105. package/chunks/Water.glsl.js +29 -20
  106. package/chunks/blosc-wasm.js +2 -0
  107. package/chunks/cameraUtilsSpherical.js +1 -1
  108. package/chunks/parquet.js +1 -1
  109. package/chunks/pdf.js +57 -0
  110. package/chunks/text.js +1 -1
  111. package/config.js +1 -1
  112. package/core/accessorSupport/write.js +1 -1
  113. package/core/scheduling.js +1 -1
  114. package/core/sql/SqlInterval.js +1 -1
  115. package/core/urlUtils.js +1 -1
  116. package/geometry/geometryEngine.js +1 -1
  117. package/geometry/operators/gx/operatorOffset.js +1 -1
  118. package/geometry/support/Ellipsoid.js +1 -1
  119. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  120. package/geometry/support/geodesicConstants.js +1 -1
  121. package/geometry/support/meshUtils/primitives.js +1 -1
  122. package/kernel.js +1 -1
  123. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  124. package/layers/VoxelWasmPerSceneView.js +1 -1
  125. package/layers/effects/parser.js +1 -1
  126. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  127. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -56
  128. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  129. package/layers/geospatialPDF/parserUtils.js +2 -0
  130. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  131. package/layers/graphics/data/QueryEngineResult.js +1 -1
  132. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  133. package/layers/parquet.js +1 -1
  134. package/layers/raster/datasets/ZarrRaster.js +1 -1
  135. package/layers/raster/datasets/wcsCoverageParser.js +1 -1
  136. package/layers/raster/formats/RasterCodec.js +1 -1
  137. package/layers/raster/formats/blosc.js +2 -0
  138. package/layers/support/BuildingFilter.js +1 -1
  139. package/layers/support/ControlPoint.js +1 -1
  140. package/layers/support/ControlPointsGeoreference.js +1 -1
  141. package/layers/support/IntegratedMeshSemantics.js +1 -1
  142. package/layers/support/commonProperties.js +1 -1
  143. package/layers/support/fieldUtils.d.ts +23 -87
  144. package/layers/support/fieldUtils.js +1 -1
  145. package/layers/support/geospatialPDFUtils.d.ts +63 -0
  146. package/layers/support/geospatialPDFUtils.js +2 -0
  147. package/layers/support/layersMapping.js +1 -1
  148. package/layers/video/VideoController.js +1 -1
  149. package/legend/ActiveLayerInfo.js +1 -1
  150. package/libs/ajv/ajv.bundle-wrapper.js +1 -1
  151. package/package.json +6 -6
  152. package/renderers/types.d.ts +1 -1
  153. package/rest/knowledgeGraphService.js +1 -1
  154. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  155. package/smartMapping/statistics/support/attributeDensity.js +1 -1
  156. package/smartMapping/support/adapters/support/utils.js +1 -1
  157. package/support/tests/serviceMockDependencies.js +1 -1
  158. package/symbols/CIMSymbol.d.ts +9 -9
  159. package/symbols/PathSymbol3DLayer.d.ts +1 -1
  160. package/symbols/WaterSymbol3DLayer.d.ts +13 -1
  161. package/symbols/WaterSymbol3DLayer.js +1 -1
  162. package/symbols/cim/CIMEffects.js +1 -1
  163. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  164. package/symbols/cim/effects/EffectControlMeasureLine.js +1 -1
  165. package/symbols/cim/placements/PlacementInsidePolygon.js +1 -1
  166. package/symbols/cim/rasterizingUtils.js +1 -1
  167. package/views/2d/PaddedViewState.js +1 -1
  168. package/views/2d/engine/vectorTiles/buckets/FillBucket.js +1 -1
  169. package/views/2d/engine/vectorTiles/constants.js +1 -1
  170. package/views/2d/engine/vectorTiles/style/geoJSONVectorTileUtils.js +1 -1
  171. package/views/2d/engine/webgl/effects/HighlightEffect.js +1 -1
  172. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  173. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  174. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  175. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  176. package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
  177. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  178. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  179. package/views/2d/layers/ParquetLayerView2D.js +1 -1
  180. package/views/2d/layers/features/Processor.js +1 -1
  181. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  182. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  183. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  184. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  185. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  186. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  187. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  188. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  189. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  190. package/views/3d/analysis/LineOfSight/LineOfSightItemManipulatedObject3D.js +1 -1
  191. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  192. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  193. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  194. package/views/3d/analysis/Viewshed/ViewshedObserverManipulatedObject3D.js +1 -1
  195. package/views/3d/analysis/Viewshed/ViewshedSnappingController.js +1 -1
  196. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  197. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  198. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillComputation.js +1 -1
  199. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementVisualization.js +1 -1
  200. package/views/3d/animation/pointToPoint/Camera.js +1 -1
  201. package/views/3d/camera/constraintUtils/tilt.js +1 -1
  202. package/views/3d/camera/constraintUtils.js +1 -1
  203. package/views/3d/camera/intersectionUtils.js +1 -1
  204. package/views/3d/environment/EnvironmentView.js +1 -1
  205. package/views/3d/focusAreaUtils.js +1 -1
  206. package/views/3d/input/handlers/ground/GroundNavigation.js +1 -1
  207. package/views/3d/interactive/Manipulator3D.js +1 -1
  208. package/views/3d/interactive/Manipulator3DBase.js +1 -1
  209. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  210. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  211. package/views/3d/interactive/editingTools/manipulations/config.js +1 -1
  212. package/views/3d/interactive/editingTools/media/MediaElementControllerControlPoints.js +1 -1
  213. package/views/3d/interactive/editingTools/media/MediaElementControllerShape.js +1 -1
  214. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  215. package/views/3d/interactive/editingTools/transform/ScaleRotateMeshAdapter.js +1 -1
  216. package/views/3d/interactive/editingTools/transform/TransformTool3D.js +1 -1
  217. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  218. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
  219. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  220. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  221. package/views/3d/interactive/visualElements/Object3DVisualElement.js +1 -1
  222. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  223. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  224. package/views/3d/layers/DrapedSubView3D.js +1 -1
  225. package/views/3d/layers/DynamicLayerView3D.js +1 -1
  226. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  227. package/views/3d/layers/FlowSubView3D.js +1 -1
  228. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  229. package/views/3d/layers/I3SMeshView3D.js +1 -1
  230. package/views/3d/layers/RouteLayerView3D.js +1 -1
  231. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  232. package/views/3d/layers/TiledLayerView3D.js +1 -1
  233. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  234. package/views/3d/layers/VoxelLayerView3D.js +1 -1
  235. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  236. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  237. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  238. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  239. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  240. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  241. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  242. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  243. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  244. package/views/3d/layers/graphics/Graphics3DSymbolFactory.js +1 -1
  245. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  246. package/views/3d/layers/graphics/LabelInfo.js +1 -1
  247. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  248. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  249. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  250. package/views/3d/layers/i3s/I3SMeshViewFilter.js +1 -1
  251. package/views/3d/layers/i3s/I3SNode.js +1 -1
  252. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  253. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  254. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  255. package/views/3d/layers/i3s/LayerElevationProvider.js +1 -1
  256. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  257. package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
  258. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  259. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  260. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  261. package/views/3d/layers/support/Tiles3DBVH.js +1 -1
  262. package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
  263. package/views/3d/layers/support/createTileBVHForLayer.js +1 -1
  264. package/views/3d/layers/support/selectTiles3DSpatialReference.js +1 -1
  265. package/views/3d/layers/support/uvUtils.js +1 -1
  266. package/views/3d/state/Constraints.js +1 -1
  267. package/views/3d/state/ConstraintsManager.js +1 -1
  268. package/views/3d/state/NearFarHeuristic.js +1 -1
  269. package/views/3d/state/ViewState.js +1 -1
  270. package/views/3d/state/ViewStateManager.js +1 -1
  271. package/views/3d/state/controllers/PinchAndPanControllerGlobal.js +1 -1
  272. package/views/3d/state/controllers/PinchAndPanControllerLocal.js +1 -1
  273. package/views/3d/state/controllers/PointToPointAnimationController.js +1 -1
  274. package/views/3d/state/controllers/RotateController.js +1 -1
  275. package/views/3d/state/controllers/ZoomControllerGlobal.js +1 -1
  276. package/views/3d/state/controllers/ZoomStepControllerGlobal.js +1 -1
  277. package/views/3d/state/controllers/ZoomStepControllerLocal.js +1 -1
  278. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  279. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  280. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  281. package/views/3d/state/utils/navigationUtils.js +1 -1
  282. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  283. package/views/3d/support/QualityProfile.js +1 -1
  284. package/views/3d/support/QualitySettings.js +1 -1
  285. package/views/3d/support/RenderCoordsHelper.js +1 -1
  286. package/views/3d/support/SweptSphereVolume.js +1 -1
  287. package/views/3d/support/cameraUtils.js +1 -1
  288. package/views/3d/support/elevationUpdateExtentUtils.js +1 -1
  289. package/views/3d/support/engineContent/line.js +1 -1
  290. package/views/3d/support/engineContent/marker.js +1 -1
  291. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  292. package/views/3d/support/hitTest.js +1 -1
  293. package/views/3d/support/orientedBoundingBox.js +1 -1
  294. package/views/3d/support/pointsOfInterest/CameraOnSurface.js +1 -1
  295. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  296. package/views/3d/support/pointsOfInterest/SurfaceGeometryUpdates.js +1 -1
  297. package/views/3d/support/sunUtils.js +1 -1
  298. package/views/3d/terrain/BlendLayersTechniqueConfiguration.js +1 -1
  299. package/views/3d/terrain/ExtentHelper.js +1 -1
  300. package/views/3d/terrain/OverlayManager.js +1 -1
  301. package/views/3d/terrain/OverlayRenderer.js +1 -1
  302. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  303. package/views/3d/terrain/RasterColorizerTechniqueConfiguration.js +1 -1
  304. package/views/3d/terrain/TerrainRenderer.js +1 -1
  305. package/views/3d/terrain/TerrainSurface.js +1 -1
  306. package/views/3d/terrain/Tile.js +1 -1
  307. package/views/3d/terrain/TilingSchemeLogic.js +1 -1
  308. package/views/3d/terrain/terrainUtils.js +1 -1
  309. package/views/3d/webgl/RenderCamera.js +1 -1
  310. package/views/3d/webgl-engine/Stage.js +1 -1
  311. package/views/3d/webgl-engine/collections/Component/ComponentObject.js +1 -1
  312. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  313. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
  314. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentGeometryBVH.js +1 -1
  315. package/views/3d/webgl-engine/collections/Component/ElevationAgnosticBVH.js +1 -1
  316. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  317. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  318. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  319. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterialRepository.js +1 -1
  320. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  321. package/views/3d/webgl-engine/core/shaderLibrary/clampShadowPosition.glsl.js +2 -0
  322. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +14 -14
  323. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -1
  324. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
  325. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TileComposite.glsl.js +2 -3
  326. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  327. package/views/3d/webgl-engine/effects/atmosphere/MarsAtmosphere.js +1 -1
  328. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  329. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  330. package/views/3d/webgl-engine/effects/laserlines/LaserlinePathData.js +1 -1
  331. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  332. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  333. package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
  334. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  335. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  336. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  337. package/views/3d/webgl-engine/lib/Program.js +1 -1
  338. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  339. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  340. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  341. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  342. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  343. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  344. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  345. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  346. package/views/3d/webgl-engine/lib/edgeRendering/strokes.js +1 -1
  347. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  348. package/views/3d/webgl-engine/materials/DefaultLayouts.js +1 -1
  349. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  350. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  351. package/views/3d/webgl-engine/materials/PolygonOffset.js +1 -1
  352. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  353. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  354. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  355. package/views/3d/webgl-engine/parts/Model.js +1 -1
  356. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  357. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  358. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  359. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  360. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  361. package/views/Attribution.js +5 -5
  362. package/views/DOMContainer.d.ts +2 -1
  363. package/views/MapView.d.ts +1 -0
  364. package/views/SceneView.js +1 -1
  365. package/views/View2D.js +1 -1
  366. package/views/ViewingMode.js +1 -1
  367. package/views/analysis/ElevationProfile/elevationProfileChartBoundsUtils.js +1 -1
  368. package/views/analysis/ElevationProfile/elevationProfileGeometryUtils.js +1 -1
  369. package/views/draw/DrawAction.js +1 -1
  370. package/views/draw/DrawGraphicTool.js +1 -1
  371. package/views/draw/DrawOperation.js +1 -1
  372. package/views/draw/DrawTool.js +1 -1
  373. package/views/draw/SegmentDrawAction.js +1 -1
  374. package/views/draw/support/Reshape.js +1 -1
  375. package/views/draw/support/helpMessageUtils.js +1 -1
  376. package/views/draw/support/managers/EditSessionManager.js +1 -1
  377. package/views/draw/support/surfaceCoordinateSystems.js +1 -1
  378. package/views/interactive/dragEventPipeline.js +1 -1
  379. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  380. package/views/interactive/editGeometry/EditGeometryOperations.js +1 -1
  381. package/views/interactive/editGeometry/operations/AddOrUpdatePart.js +1 -1
  382. package/views/layers/support/editableLayerViews.js +1 -1
  383. package/views/overlay/TextOverlayItem.js +1 -1
  384. package/views/support/DefaultsFromMap.js +1 -1
  385. package/views/support/Scheduler.js +1 -1
  386. package/views/support/spatialReferenceSupport.js +1 -1
  387. package/views/webgl/Program.js +3 -3
  388. package/views/webgl/ShaderBuilder.js +23 -23
  389. package/views/webgl/ShaderTranspiler.js +2 -2
  390. package/webscene/Slide.js +1 -1
  391. package/webscene/VirtualLighting.d.ts +2 -4
  392. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  393. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  394. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +17 -1
  395. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  396. package/widgets/BatchAttributeForm/inputs/support/inputUtils.d.ts +7 -0
  397. package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
  398. package/widgets/BatchAttributeForm.js +1 -1
  399. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DTool.js +1 -1
  400. package/widgets/Editor/workflowUtils.js +1 -1
  401. package/widgets/ElevationProfile/ElevationProfileLineView.js +1 -1
  402. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  403. package/widgets/ElevationProfile/support/geometryUtils.js +1 -1
  404. package/widgets/FeatureForm.js +1 -1
  405. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  406. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  407. package/widgets/Measurement.js +1 -1
  408. package/widgets/OrientedImageryViewer/components/ImageLocationWidget.js +1 -1
  409. package/widgets/OrientedImageryViewer/components/ImageMeasurementWidget.js +1 -1
  410. package/widgets/Search/support/layerSearchUtils.js +1 -1
  411. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  412. package/widgets/Sketch/SketchViewModel.js +1 -1
  413. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  414. package/widgets/UtilityNetworkAssociations.js +1 -1
  415. package/widgets/Weather/WeatherViewModel.js +1 -1
  416. package/widgets/Weather/css.js +1 -1
  417. package/widgets/Weather.js +1 -1
  418. package/widgets/support/ContingentValuesManager.js +1 -1
  419. package/widgets/support/forms/types.d.ts +23 -1
  420. package/assets/esri/core/workers/chunks/021bd07b9a3e70598840.js +0 -1
  421. package/assets/esri/core/workers/chunks/032733b863426c5bde00.js +0 -1121
  422. package/assets/esri/core/workers/chunks/144f18a3dd2c8cf07cf7.js +0 -1
  423. package/assets/esri/core/workers/chunks/170e68624b71ac96de4a.js +0 -1
  424. package/assets/esri/core/workers/chunks/23fc1c1ed483ed3b2298.js +0 -1
  425. package/assets/esri/core/workers/chunks/2634927d26cb1139c6d0.js +0 -1
  426. package/assets/esri/core/workers/chunks/2d1b8154ee40afc9d40b.js +0 -1
  427. package/assets/esri/core/workers/chunks/2d3e977f3b75474d7ebc.js +0 -1
  428. package/assets/esri/core/workers/chunks/4a41bf3d1e2e9bb79771.js +0 -2
  429. package/assets/esri/core/workers/chunks/5f324d88785ffcb73ae0.js +0 -1
  430. package/assets/esri/core/workers/chunks/70695e0fb53018d48e7b.js +0 -2
  431. package/assets/esri/core/workers/chunks/723c9ad4c25be2b82476.js +0 -1
  432. package/assets/esri/core/workers/chunks/766a1357be2ed7f4e125.js +0 -1
  433. package/assets/esri/core/workers/chunks/817bf487df056da1e6ec.js +0 -1
  434. package/assets/esri/core/workers/chunks/89e55895683369b5277a.js +0 -1
  435. package/assets/esri/core/workers/chunks/8a820e303941b351de81.js +0 -1
  436. package/assets/esri/core/workers/chunks/8c94e987754b3919181e.js +0 -1
  437. package/assets/esri/core/workers/chunks/90d567e920b6982b402d.js +0 -1
  438. package/assets/esri/core/workers/chunks/919115788da38049aea7.js +0 -2
  439. package/assets/esri/core/workers/chunks/97cdcedfe853280f6258.js +0 -1
  440. package/assets/esri/core/workers/chunks/9ebc6026934400fc1e1f.js +0 -1
  441. package/assets/esri/core/workers/chunks/b33e7e74cf8fa3926617.js +0 -1
  442. package/assets/esri/core/workers/chunks/b4a325dcf50e276751d7.js +0 -1
  443. package/assets/esri/core/workers/chunks/bb2af16e55cb39163827.js +0 -1
  444. package/assets/esri/core/workers/chunks/be5857b0d1b00faf430b.js +0 -1
  445. package/assets/esri/core/workers/chunks/cd9100a7c8309dfa7569.js +0 -1
  446. package/assets/esri/core/workers/chunks/d5bb9f9b7b341c671525.js +0 -1
  447. package/assets/esri/core/workers/chunks/d96e63d66f7b1f4ea54a.js +0 -2
  448. package/assets/esri/core/workers/chunks/e3bcd2e356f75afc316a.js +0 -1
  449. package/assets/esri/core/workers/chunks/e507dfc4788295d9c244.js +0 -1
  450. package/assets/esri/core/workers/chunks/e58f51618251f74aaafd.js +0 -1
  451. package/assets/esri/core/workers/chunks/e80526571f1a34de3278.js +0 -1
  452. package/assets/esri/core/workers/chunks/e83806797979138fd22a.js +0 -1
  453. package/assets/esri/core/workers/chunks/ea71850ba87ae6038000.js +0 -1
  454. package/assets/esri/core/workers/chunks/f537a5e808dc546813c7.js +0 -1
  455. package/assets/esri/core/workers/chunks/fe811d651d201f698b8f.js +0 -2
  456. package/chunks/NativeLine.glsl.js +0 -8
  457. package/layers/geospatialPDF/geospatialPDFParserUtils.js +0 -2
  458. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +0 -2
  459. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +0 -2
  460. package/views/3d/webgl-engine/shaders/NativeLineTechnique.js +0 -2
  461. package/views/3d/webgl-engine/shaders/NativeLineTechniqueConfiguration.js +0 -2
  462. /package/assets/esri/core/workers/chunks/{919115788da38049aea7.js.LICENSE.txt → 3d851710f7fcc27c5b60.js.LICENSE.txt} +0 -0
  463. /package/assets/esri/core/workers/chunks/{fe811d651d201f698b8f.js.LICENSE.txt → 5bdd95eeb8f34dbf26f2.js.LICENSE.txt} +0 -0
  464. /package/assets/esri/core/workers/chunks/{ced5dfb2bf46fc5eac8c.js.LICENSE.txt → 5e47026c681238038955.js.LICENSE.txt} +0 -0
  465. /package/assets/esri/core/workers/chunks/{4a41bf3d1e2e9bb79771.js.LICENSE.txt → d7763c42754152510e13.js.LICENSE.txt} +0 -0
  466. /package/assets/esri/core/workers/chunks/{d96e63d66f7b1f4ea54a.js.LICENSE.txt → e96fa029acba59c04e4e.js.LICENSE.txt} +0 -0
  467. /package/assets/esri/core/workers/chunks/{70695e0fb53018d48e7b.js.LICENSE.txt → fdfbd201be372d3796bf.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?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===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(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!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(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(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(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)&&E(i,l,o,a,s,u,g.x,g.y)&&j(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),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(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<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(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;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(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&&L(o,e)){let s=F(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;d.length<4*r&&(d=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=m(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 m(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<d[l+1]||o>d[l+3]||d[l]>i||d[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(d[p+2]<l||d[p]>i||d[p+3]<u||d[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&&E(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);(z(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=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=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;d[a]=n,d[a+1]=i,d[a+2]=o,d[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 j(e.prev,e,t.prev)<0&&j(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 E(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 L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(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&&P(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 j(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 P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(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 z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(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 D(e,t,r,n){let i=k(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 I(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<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(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 W,K,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,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}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(H(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(H(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){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=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++,K.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){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[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],m=t[p*r],d=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(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[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],m=r[9],d=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+m*s+v,e[b+2]=f*r+g*n+d*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],m=r[7],d=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+m*s,e[v+2]=f*r+g*n+d*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(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);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,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.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,s.zf)(e)?e:new o.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(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{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 Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.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,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.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,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.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,b.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(m.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")}a.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,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),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,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(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,C.CN)(oe(),r.spatialReference,e.spatialReference,C.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,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+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,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),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,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(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,C.CN)(ge(),r.spatialReference,e.spatialReference,C.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,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.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,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.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,c.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 F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(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 F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.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 Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(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,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({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,c.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||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.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,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(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){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(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){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(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(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.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},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.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,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.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,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.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,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.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,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$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:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.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,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.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:d(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,f.$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,s.PZ)(n,e)}};function d(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,a.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,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.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},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.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},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.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,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$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(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);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,n.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,i.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,s.A)(this.partUrl,{responseType:"blob"});return(0,i.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,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.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,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$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
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?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===H(e,t,r,n)>0)for(let i=t;i<r;i+=n)o=D(i/n|0,e[i],e[i+1],o);else for(let i=r-n;i>=t;i-=n)o=D(i/n|0,e[i],e[i+1],o);return o&&O(o,o.next)&&(I(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!==j(s.prev,s,s.next)?(o||s!==t)&&(s=s.next,r=!o):((o||s===t)&&(t=s.prev),i=!0,I(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(j(h,e,g)<0&&(o?c(e,r,n,o):u(e)))t.push(h.i,e.i,g.i),I(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)&&E(i,l,o,a,s,u,g.x,g.y)&&j(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),m=Math.max(c,f,p),d=_(h,g,t,r,n),x=_(y,m,t,r,n),v=e.prevZ;for(;v&&v.z>=d;){if(v.x>=h&&v.x<=y&&v.y>=g&&v.y<=m&&v!==s&&(l!==v.x||c!==v.y)&&E(l,c,a,f,u,p,v.x,v.y)&&j(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<=m&&w!==s&&(l!==w.x||c!==w.y)&&E(l,c,a,f,u,p,w.x,w.y)&&j(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;P(i,r,r.next,o,!1)&&z(i,o)&&z(o,i)&&(t.push(i.i,r.i,o.i),I(r),I(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&&L(o,e)){let s=F(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;d.length<4*r&&(d=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=m(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 m(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<d[l+1]||o>d[l+3]||d[l]>i||d[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(d[p+2]<l||d[p]>i||d[p+3]<u||d[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&&E(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);(z(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=F(r,e);return A(r,n.next.next),l(n,n.next),l(r,r.next)}let d=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;d[a]=n,d[a+1]=i,d[a+2]=o,d[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 j(e.prev,e,t.prev)<0&&j(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 E(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 L(e,t){let r=O(e,t)&&j(e.prev,e,e.next)>0&&j(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||z(e,t)&&z(t,e)&&(0!==j(e.prev,e,t.prev)||0!==j(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&&P(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 j(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 P(e,t,r,n,i=!0){let o=j(e,t,r),s=j(e,t,n),l=j(r,n,e),a=j(r,n,t);return(o>0&&s<0||o<0&&s>0)&&(l>0&&a<0||l<0&&a>0)||!!i&&!!(0===o&&$(e,r,t)||0===s&&$(e,n,t)||0===l&&$(r,e,n)||0===a&&$(r,t,n))}function $(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 z(e,t){return j(e.prev,e,e.next)<0?j(e,t,e.next)>=0&&j(e,e.prev,t)>=0:j(e,t,e.prev)<0||j(e,e.next,t)<0}function F(e,t){let r=k(e.i,e.x,e.y),n=k(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 D(e,t,r,n){let i=k(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 I(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<d[r]&&(d[r]=t.x),t.y<d[r+1]&&(d[r+1]=t.y),t.x>d[r+2]&&(d[r+2]=t.x),t.y>d[r+3]&&(d[r+3]=t.y)}(e.prev,e.next)}function k(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function H(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 W,K,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,m=p*p+h*h,d=g+y+m;return a*(f*m-y*h)-u*(c*m-y*p)+g*(c*h-f*p)<=1e-13*d*d}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(H(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(H(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){(!W||W.length<e)&&(W=new Int32Array(e)),(!K||K.length<e)&&(K=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++,K.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){K[e]=t,K[t]=e,q[l]=-1,G[t]=1,W[o++]=t;break}}l=l+1&Y}V[l]!==J&&(q[l]=e,V[l]=J)}for(;o>0;){let e=W[--o];G[e]=0;let i=K[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],m=t[p*r],d=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(m,d,x,v,w,A,b,M)&&Q(m,d,x,v,b,M)>0&&Q(m,d,b,M,w,A)>0){n[e]=y,n[i]=p;let t=K[c],r=K[a];K[e]=t,-1!==t&&(K[t]=e),K[i]=r,-1!==r&&(K[r]=i),K[a]=c,K[c]=a,-1!==t&&0===G[e]&&(G[e]=1,W[o++]=e),-1!==r&&0===G[i]&&(G[i]=1,W[o++]=i),-1!==K[u]&&0===G[u]&&(G[u]=1,W[o++]=u),-1!==K[f]&&0===G[f]&&(G[f]=1,W[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],m=r[9],d=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+m*s+v,e[b+2]=f*r+g*n+d*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],m=r[7],d=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+m*s,e[v+2]=f*r+g*n+d*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(78888),i=r(26306),o=r(49186),s=r(17676),l=r(84952);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,l.r$)(e);if(r?.isBase64)return{arrayBuffer:(0,i.M)(r.data),mediaType:r.mediaType};let o=await(0,n.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){let{isAnimatedGIF:e,parseGif:n}=await r.e(820).then(()=>r(88439));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,s.zf)(e)?e:new o.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(91429),o=r(69540),s=r(51850),l=r(92474),a=r(53966),u=r(61893),c=r(17676),f=r(36708),p=r(91075),h=r(86738),g=r(70328),y=r(24770),m=r(16939),d=r(95696),x=r(18251),v=r(73836),w=r(35522),A=r(65806),b=r(27615);function M(e,t){switch(e.type){case"georeferenced":return t.isGeographic;case"local":return t.isGeographic||t.isWebMercator}}var C=r(22141),T=r(72258);const S=()=>a.A.getLogger("esri.geometry.support.meshUtils.centerAt");const R=(0,s.vt)(),Z=(0,s.vt)(),U=(0,s.vt)();var N=r(9093),_=r(5443),B=r(48353),E=r(9762),L=r(99917),j=r(98764),O=r(73354),P=r(4197);const $=(0,N.vt)(),z=(0,P.jh)(24);var F=r(49186),D=r(84952);function I(e){let t=(0,D.nM)(e.url);return r=>{let n=(0,D.V1)(r,t,t),i=n?n.replace(/^ *\.\//,""):null;return(i?e.files.get(i):null)??r}}function k(e){return Y.fromBlob(e,J(e.name,e.type))}const H=/^model\/gltf\+json$/,W=/^model\/gltf-binary$/,K=/\.gltf$/i,q=/\.glb$/i;function V({mimeType:e,source:t,name:r}){return H.test(e)||K.test(r)?{url:t.url,type:"gltf"}:W.test(e)||q.test(r)?{url:t.url,type:"glb"}:null}function G(e){let t=new Map,r=null,n=null;for(let i of e){let{source:e,name:o}=i;r??=V(i),"ESRI3DO_NORM.glb"===o&&(n=V(i)),t.set(o,e.url),e.files.forEach((e,r)=>t.set(r,e))}let i=n??r;if(null==i)throw new F.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new Y(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class Y{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 Y(r,()=>URL.revokeObjectURL(r),void 0,t)}}function J(e,t){return H.test(t)||K.test(e)?"gltf":W.test(t)||K.test(e)?"glb":void 0}var Q=r(66895),X=r(29461),ee=r(77690),te=r(29242),re=r(58083),ne=r(67026),ie=r(82534);const oe=()=>a.A.getLogger("esri.geometry.support.meshUtils.rotate");function se(e,t,r,n=s.uY){if(null!=e){(0,re.$0)(ce,(0,y.$I)(t),(0,y.yo)(t));for(let t=0;t<e.length;t+=r){for(let r=0;r<3;r++)le[r]=e[t+r]-n[r];(0,w.Z0)(le,le,ce);for(let r=0;r<3;r++)e[t+r]=le[r]+n[r]}}}const le=(0,s.vt)(),ae=(0,N.vt)(),ue=(0,y.vt)(),ce=(0,N.vt)(),fe=(0,te.vt)(),pe=(0,s.vt)(),he=(0,ie.vt)(),ge=()=>a.A.getLogger("esri.geometry.support.meshUtils.scale");function ye(e,t,r=s.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,w.hs)(me,me,t);for(let t=0;t<3;t++)e[n+t]=me[t]+r[t]}}const me=(0,s.vt)(),de=(0,s.vt)(),xe=(0,N.vt)(),ve=(0,s.vt)();var we,Ae=r(1193);const be={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:d.A,local:x.A}};let Me=we=class extends((0,o.OU)((0,l.WV)((0,u.g)(p.A)))){constructor(e){super(e),this.components=null,this.vertexSpace=new d.A,this.transform=null,this.metadata=new X.O,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new Ae.A,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,f.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,z);if((0,b.Hq)(r)&&e.transform&&(0,O.t)(i,i,e.transform.localMatrix),"georeferenced"===r.type){let e=r.origin;return e&&(0,O.a)(i,i,e),(0,g.w1)((0,g.vY)(i),t)}let o=(0,j.lO)(t),s=r.origin;if(!(0,L.canProjectWithoutEngine)(o,t)){let[e,r,n]=s;return new _.A({xmin:e,ymin:r,zmin:n,xmax:e,ymax:r,zmax:n,spatialReference:t})}return(0,B.l)(t,s,$,o),(0,O.t)(i,i,$),(0,E.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,b.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(m.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")}a.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,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=le;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(oe(),r.spatialReference,o,C.JP);(0,ne.x8)(he,(0,y.yo)(t),(0,y.$I)(t));let p=(0,re.O7)(ae,he,s.uY,s.Un,f),{localMatrix:g}=i,m=(0,re.lw)(ae,p,g);i.scale=(0,re.X_)((0,s.vt)(),m),(0,re.hs)(m,m,(0,w.DI)(le,i.scale));let d=i.rotationAxis;i.rotation=(0,y.ui)(m),0===i.rotationAngle&&(i.rotationAxis=d),i.translation=(0,re.sC)((0,s.vt)(),m)}(e,t,o):M(i,n)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=pe;if(!(0,A.g)(r,o,i)&&((0,C.CN)(oe(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(oe(),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,B.l)(i,o,ce,i),(0,ee.z0)(fe,ce);let p=ue;(0,w.ei)((0,y.yo)(ue),(0,y.yo)(t),fe),p[3]=t[3],(0,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(oe(),n,i):(se(u,p,3,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&(se(c,p,3),!(0,C.si)(c,s,n,u,i,l))||null!=a&&null!=f&&(se(f,p,4),!(0,C.Mv)(f,s,n,u,i,a))?(0,C.CN)(oe(),i,n):e.vertexAttributesChanged():(0,C.CN)(oe(),i,n)):(0,C.CN)(oe(),n,i)}(e,t,o):function(e,t,r){let n=pe;if((0,A.g)(r,n,e.spatialReference))se(e.vertexAttributes.position,t,3,n),se(e.vertexAttributes.normal,t,3),se(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,C.CN)(oe(),r.spatialReference,e.spatialReference,C.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,b.Hq)(n)){let[i,o,l]=n.origin;n.origin=(0,s.fA)(i+e,o+t,l+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,b.CK)(e)?function(e,t,r){e.transform??=new v.A;let{vertexSpace:n,transform:i,spatialReference:o}=e,[l,a,u]=n.origin,c=new h.A({x:l,y:a,z:u,spatialReference:o}),f=me;if(c.equals(r))(0,w.hZ)(f,0,0,0);else if(!(0,T.p5)(f,r,e))return void(0,C.CN)(ge(),r.spatialReference,o,C.JP);let p=(0,w.hZ)(de,t,t,t),g=(0,re.O7)(xe,ie.zK,s.uY,p,f),{localMatrix:m}=i,d=(0,re.lw)(xe,g,m);i.scale=(0,re.X_)((0,s.vt)(),d),(0,re.hs)(d,d,(0,w.DI)(me,i.scale));let x=i.rotationAxis;i.rotation=(0,y.ui)(d),0===i.rotationAngle&&(i.rotationAxis=x),i.translation=(0,re.sC)((0,s.vt)(),d)}(e,t,o):M(n,i)?function(e,t,r){let n=e.spatialReference,i=(0,j.lO)(n),o=ve;if(!(0,A.g)(r,o,i)&&((0,C.CN)(ge(),r.spatialReference,i,"Falling back to mesh origin"),!(0,A.g)(e.origin,o,i)))return void(0,C.CN)(ge(),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,C.gr)(s,n,u,i)?null!=l&&null!=c&&!(0,C.X4)(l,s,n,u,i,c)||null!=a&&null!=f&&!(0,C.xA)(a,s,n,u,i,f)?(0,C.CN)(ge(),n,i):(ye(u,t,o),(0,C.$5)(u,i,s,n)?null!=l&&null!=c&&!(0,C.si)(c,s,n,u,i,l)||null!=a&&null!=f&&!(0,C.Mv)(f,s,n,u,i,a)?(0,C.CN)(ge(),i,n):e.vertexAttributesChanged():(0,C.CN)(ge(),i,n)):(0,C.CN)(ge(),n,i)}(e,t,o):function(e,t,r){let n=ve;if((0,A.g)(r,n,e.spatialReference))ye(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,C.CN)(ge(),r.spatialReference,e.spatialReference,C.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,b.Hq)(n)?function(e,t,r){let{vertexSpace:n}=e;if(!(0,b.Hq)(n))return;let i=Z,o=R;if(!(0,A.g)(t,o,e.spatialReference))return void(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.JP);if(!(0,A.g)(r,i,e.spatialReference))return void(0,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP);let l=(0,w.Re)(U,o,i);n.origin=(0,w.WQ)((0,s.vt)(),n.origin,l)}(e,t,i):M(n,i.spatialReference)?function(e,t,r){let n=(0,s.fA)(r.x,r.y,r.z??0),i=(0,T.UR)(e,new x.A({origin:n}));if(!i)return;let o=(0,s.fA)(t.x,t.y,t.z??0),l=(0,T.UR)({vertexAttributes:i,spatialReference:e.spatialReference,vertexSpace:new x.A({origin:o})},d.A.absolute);if(!l)return;let{position:a,normal:u,tangent:c}=l;e.vertexAttributes.position=a,e.vertexAttributes.normal=u,e.vertexAttributes.tangent=c,e.vertexAttributesChanged()}(e,t,i):function(e,t,r){let n=Z,i=R;if((0,A.g)(t,i,e.spatialReference))if((0,A.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,C.CN)(S(),r.spatialReference,e.spatialReference,C.JP)}else(0,C.CN)(S(),t.spatialReference,e.spatialReference,C.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,c.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 F.A("mesh-load-external:missing-assets","There must be at least one file to load");return G(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 F.A("mesh-load-external:missing-assets","There must be at least one file to load");let r=await(0,c.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 Y(r[0].partUrl);let o=await e.toBlob(t);return(0,c.Te)(t),Y.fromBlob(o,J(i,n))}(e);return(0,c.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:r}}));if((0,c.G4)(t))throw r.forEach(e=>e.source.dispose()),(0,c.NK)();return G(r)}(e.assets,t);default:throw new F.A("mesh-load-external:invalid-source","Invalid source type")}}(i,n);(0,c.Te)(n);let{mesh:{vertexAttributes:l,components:a},meta:{isDracoDecompressed:u}}=await o(new h.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),s.url,{resolveFile:I(s),signal:n?.signal,expectedType:s.type,unitConversionDisabled:t.unitConversionDisabled}).finally(()=>s.dispose());if(u)throw new F.A("mesh-load-external:draco-not-supported","The provided mesh uses Draco compression which is not supported.");e.vertexAttributes=l,e.components=a}(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,Q.WO)((0,Q.QN)(e)))}cloneShallow(){return new we({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,c.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||(a.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}};(0,n.Cg)([(0,i.MZ)({type:[m.A],json:{write:!0}})],Me.prototype,"components",void 0),(0,n.Cg)([(0,i.MZ)({nonNullable:!0,types:be,constructOnly:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexSpace??e.clone(t)})],Me.prototype,"vertexSpace",void 0),(0,n.Cg)([(0,i.MZ)({type:v.A,clonable:(e,t)=>{let r=(0,Q.o2)(t);return r&&"transform"in r?r.transform:e?.clone()??e},json:{write:!0}})],Me.prototype,"transform",void 0),(0,n.Cg)([(0,i.MZ)({constructOnly:!0,type:X.O,clonable:(e,t)=>(0,Q.o2)(t)?.metadata??e.clone()})],Me.prototype,"metadata",void 0),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"hasExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_transformedExtent",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"_untransformedBounds",null),(0,n.Cg)([(0,i.MZ)()],Me.prototype,"origin",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1}})],Me.prototype,"extent",null),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Me.prototype,"hasZ",void 0),(0,n.Cg)([(0,i.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Me.prototype,"hasM",void 0),(0,n.Cg)([(0,i.MZ)({type:Ae.A,nonNullable:!0,json:{write:!0},clonable:(e,t)=>(0,Q.o2)(t)?.vertexAttributes??e.clone(t)})],Me.prototype,"vertexAttributes",void 0),Me=we=(0,n.Cg)([(0,i.$K)("esri.geometry.Mesh")],Me);const Ce=(0,y.vt)()},15585(e,t,r){r.d(t,{If:()=>h,QT:()=>g});var n=r(32198),i=r(2741),o=r(49186),s=r(44208),l=r(53966);r(34727);class a{constructor(e,t){this.precision=e,this.importFactory=t,this.loading=null,this.exports=null,this.compiled=null,this.evictionTimer=null}}const u=new a("f32",async()=>(await r.e(2997).then(()=>r(42997))).default);function c(e){null!==e.evictionTimer&&(clearTimeout(e.evictionTimer),e.evictionTimer=null)}function f(e){c(e);let t=e.exports;null===t||t.HEAP8.byteLength<10485760||(e.evictionTimer=setTimeout(()=>{e.evictionTimer=null,async function(e,t){try{let r=e.compiled;if(null===r)return;let n=await e.importFactory();if(e.exports!==t)return;let i=await n(p(r));e.exports===t&&(c(e),e.exports=i)}catch(t){l.A.getLogger("esri.geometry.libtess").error("libtess:recycle-failed",`Failed to recycle libtess${e.precision.toUpperCase()}`,t)}}(e,t)},1e4))}function p(e){return{locateFile:e=>(0,i.s)(`esri/core/libs/libtess/${e}`),instantiateWasm:(t,r)=>(r(new WebAssembly.Instance(e,t),e),{})}}function h(){return function(e){if(null!==e.exports)return f(e),Promise.resolve();if(null!==e.loading)return e.loading;let t=async function(e){let t=await e.importFactory(),r=e.compiled??await async function(e){let t=`libtess-${e}.wasm`,r=(0,i.s)(`esri/core/libs/libtess/${t}`),n=await fetch(r,{credentials:"same-origin"});if(!n.ok)throw Error(`${n.status} : ${n.url}`);return WebAssembly.compile(await n.arrayBuffer())}(e.precision);e.compiled??=r,e.exports=await t(p(r)),f(e)}(e);e.loading=t;let r=()=>{e.loading===t&&(e.loading=null)};return t.then(r,r),t}(u)}function g(e,t,r=2){return function(e,t){c(e);try{return t()}finally{f(e)}}(u,()=>function(e,t,r=2){let i={stack:[],error:void 0,hasError:!1};try{let l=u.exports;if(!l)throw new o.A("libtess:not-loaded","libtessF32 not loaded");let a=(0,n.mS)(i,d.from(l,e),!1),c=(0,n.mS)(i,x.from(l,t),!1),f=e.length/r*4,p=(0,n.mS)(i,new d(l,f*r),!1),h=l.triangulate(a.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,h*r),vertexCount:h}}catch(e){i.error=e,i.hasError=!0}finally{(0,n.hk)(i)}}(e,t,r))}function y(e){return e.HEAPF32}function m(e){return e.HEAP32}new a("f64",async()=>(await r.e(9134).then(()=>r(99134))).default),new Float32Array,new Uint32Array,new Uint32Array,new Uint32Array,new Float64Array,new Uint32Array,new Uint32Array,new Uint32Array;class d{static from(e,t){let r=new d(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){y(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return y(this._libtess).slice(r+e,r+t)}}Symbol.dispose;class x{static from(e,t){let r=new x(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){m(this._libtess).set(e,this.ptr/this.bytesPerCoordinate)}slice(e,t){let r=this.ptr/this.bytesPerCoordinate;return function(e){let t=m(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(91429),s=r(56507),l=r(69540),a=r(25482),u=r(53966),c=r(19211),f=r(80882),p=r(31199);let h=n=class extends((0,l.OU)(a.o)){static from(e){return(0,s.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},u.A.getLogger(this)))}castMaterial(e){return e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?(0,s.PZ)(f.A,e):(0,s.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,o.MZ)({json:{write:p.B}})],h.prototype,"faces",null),(0,i.Cg)([(0,o.MZ)({type:c.A,json:{write:!0}})],h.prototype,"material",void 0),(0,i.Cg)([(0,o.wg)("material")],h.prototype,"castMaterial",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],h.prototype,"shading",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean})],h.prototype,"trustSourceNormals",void 0),h=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshComponent")],h)},95696(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(93223);let u=class extends((0,s.OU)(l.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,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u)},18251(e,t,r){r.d(t,{A:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(25482),l=r(51850),a=r(93223);let u=class extends((0,o.OU)(s.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,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],u)},19211(e,t,r){r.d(t,{A:()=>f});var n=r(32198),i=r(68197),o=r(91429),s=r(69540),l=r(25482),a=r(35063),u=r(51147),c=r(66895);let f=class extends((0,s.OU)(l.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,o.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"colorTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({type:a.A,json:{write:!0},value:null})],f.prototype,"normalTexture",null),(0,n.Cg)([(0,o.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,n.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=(0,n.Cg)([(0,o.$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:()=>m});var n,i=r(32198),o=r(91429),s=r(56507),l=r(69540),a=r(21287),u=r(25482),c=r(97159),f=r(66895),p=r(43937),h=r(36005);const g=new WeakMap;let y=0,m=class extends((0,l.OU)(u.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,c.t)(e.src,n),crossOrigin:e.crossOrigin}:e instanceof HTMLCanvasElement?t[r]={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))}:e instanceof HTMLVideoElement?t[r]={type:"video-element",src:(0,c.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:d(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,f.$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,s.PZ)(n,e)}};function d(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,a.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,o.MZ)({type:String,json:{write:c.w}})],m.prototype,"url",null),(0,i.Cg)([(0,o.MZ)({clonable:"reference",json:{write:{overridePolicy(){return{enabled:!this.url}}}}})],m.prototype,"data",null),(0,i.Cg)([(0,p.K)("data")],m.prototype,"writeData",null),(0,i.Cg)([(0,h.w)("data")],m.prototype,"readData",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],m.prototype,"transparent",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],m.prototype,"wrap",void 0),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"contentHash",null),m=n=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshTexture")],m)},51147(e,t,r){r.d(t,{A:()=>l});var n=r(32198),i=r(91429),o=r(69540),s=r(25482);let l=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,n.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,n.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,n.Cg)([(0,i.$K)("esri.geometry.support.MeshTextureTransform")],l)},1193(e,t,r){r.d(t,{A:()=>f});var n,i=r(32198),o=r(91429),s=r(69540),l=r(25482),a=r(4718),u=r(53966),c=r(31199);let f=n=class extends((0,s.OU)(l.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},u.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&u.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},u.A.getLogger(this))}castUv(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(e){return(0,c.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clonePositional(){let e={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.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,o.MZ)({json:{write:c.B}})],f.prototype,"color",void 0),(0,i.Cg)([(0,o.wg)("color")],f.prototype,"castColor",null),(0,i.Cg)([(0,o.MZ)({nonNullable:!0,json:{write:c.B}})],f.prototype,"position",void 0),(0,i.Cg)([(0,o.wg)("position")],f.prototype,"castPosition",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"uv",void 0),(0,i.Cg)([(0,o.wg)("uv")],f.prototype,"castUv",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"normal",void 0),(0,i.Cg)([(0,o.wg)("normal")],f.prototype,"castNormal",null),(0,i.Cg)([(0,o.MZ)({json:{write:c.B}})],f.prototype,"tangent",void 0),(0,i.Cg)([(0,o.wg)("tangent")],f.prototype,"castTangent",null),f=n=(0,i.Cg)([(0,o.$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(9762),r(4197),r(77690),r(29242)),o=(r(35522),r(51850));r(48353),r(13030),(0,i.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),new class{constructor(){this.verticalDistanceToGround=0,this.sampledElevation=0,this.z=0}},r(62788);var s=r(95488);r(44208),r(83349),r(53966),r(15585),r(95108),r(97146),r(34727),r(86211),(0,r(27921).vt)(),new s.I,new WeakSet;var l=r(83300),a=(r(16939),r(95696),r(73836));r(1193),r(66895),r(72258);var u=r(29461),c=r(27615);function f(e,t,r){let n=r?.extent??null,{spatialReference:i}=e,o=r?.transform?.clone()??new a.A,s=(0,c.TE)(e,r),f={source:t,extent:n,unitConversionDisabled:r?.unitConversionDisabled},p=new u.O;return p.externalSources.push(f),new l.A({metadata:p,transform:o,vertexSpace:s,spatialReference:i})}function p(e,t){let{spatialReference:r}=e,i=t?.transform?.clone()??new a.A,o=(0,c.TE)(e,t),s=new l.A({transform:i,vertexSpace:o,spatialReference:r});return s.addResolvingPromise(Promise.reject(new n.A("mesh-incomplete","Mesh resources are not complete"))),s}(0,o.vt)(),(0,i.vt)()},63579(e,t,r){r.d(t,{Bq:()=>a,Qp:()=>l,WN:()=>m,dK:()=>d,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var n=r(4576),i=r(17676),o=r(20557),s=r(78888);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,n.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,i.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,s.A)(this.partUrl,{responseType:"blob"});return(0,i.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,o.rq)(e,t):(0,o.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function d(e){return!!e.original}},29461(e,t,r){r.d(t,{O:()=>u});var n=r(32198),i=r(91429),o=r(69540),s=r(7762),l=r(36708),a=r(63579);let u=class extends o.Pw{constructor(e){super(e),this.externalSources=new s.A,this._explicitDisplaySource=null,this.addHandles((0,l.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,i.MZ)()],u.prototype,"externalSources",void 0),(0,n.Cg)([(0,i.MZ)()],u.prototype,"displaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_implicitDisplaySource",null),(0,n.Cg)([(0,i.MZ)()],u.prototype,"_explicitDisplaySource",void 0),u=(0,n.Cg)([(0,i.$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 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2186],{2272(e,t,i){i.d(t,{Dl:()=>a,gf:()=>d,jV:()=>u,lF:()=>f});var n=i(92602),r=i(4718),s=i(84952),o=i(70333),l=i(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,s.An)(e):(0,r.o8)(e)}function f(e,t,i){let n={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[r]=s.map(e=>f(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(i?.[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?s:JSON.stringify(s);else n[r]=s}return n}async function d(e,t,r){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(7956),i.e(4189)]).then(()=>i(98232)),(await o.id.getCredential(e,r))?.token)}},32186(e,t,i){i.r(t),i.d(t,{deleteForwardEdits:()=>o});var n=i(49186),r=i(78888),s=i(2272);async function o(e,t,i,o){if(!t)throw new n.A("post:missing-guid","guid for version is missing");let l=(0,s.Dl)(e),u=i.toJSON(),a=(0,s.jV)(l.query,{query:(0,s.lF)({...u,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));let f=`${l.path}/versions/${t}/deleteForwardEdits`,{data:d}=await(0,r.A)(f,a);return d}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2186],{2272(e,t,i){i.d(t,{Dl:()=>a,gf:()=>d,jV:()=>u,lF:()=>f});var n=i(92602),r=i(4718),s=i(84952),o=i(70333),l=i(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function a(e){return"string"==typeof e?(0,s.An)(e):(0,r.o8)(e)}function f(e,t,i){let n={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))n[r]=s.map(e=>f(e));else if("object"==typeof s)if(s.toJSON){let e=s.toJSON(i?.[r]);n[r]=t?e:JSON.stringify(e)}else n[r]=t?s:JSON.stringify(s);else n[r]=s}return n}async function d(e,t,r){return function(e,t){return e?t&&(0,l.Qc)(e)?t:(0,l.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([i.e(8673),i.e(37),i.e(4189)]).then(()=>i(98232)),(await o.id.getCredential(e,r))?.token)}},32186(e,t,i){i.r(t),i.d(t,{deleteForwardEdits:()=>o});var n=i(49186),r=i(78888),s=i(2272);async function o(e,t,i,o){if(!t)throw new n.A("post:missing-guid","guid for version is missing");let l=(0,s.Dl)(e),u=i.toJSON(),a=(0,s.jV)(l.query,{query:(0,s.lF)({...u,f:"json"}),...o,method:"post"});t.startsWith("{")&&(t=t.slice(1,-1));let f=`${l.path}/versions/${t}/deleteForwardEdits`,{data:d}=await(0,r.A)(f,a);return d}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[3353],{93353(r,e,t){async function n(r={}){var e=r,t=!!globalThis.window,n=!!globalThis.WorkerGlobalScope;globalThis.process?.versions?.node&&globalThis.process;var a,i,o="./this.program",s=(r,e)=>{throw e},f="";if(t||n){try{f=new URL(".","").href}catch{}n&&(i=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)}}var u,c,l=console.log.bind(console),h=console.error.bind(console),m=!1;function v(){if(!g?.buffer?.resizable){var r=z.buffer;g=new Int8Array(r),e.HEAPU8=y=new Uint8Array(r),p=new Uint32Array(r)}}function w(r){throw e.onAbort?.(r),h(r=`Aborted(${r})`),m=!0,r+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(r)}async function d(r,e,t){try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){h(`wasm streaming compile failed: ${r}`),h("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await async function(r){try{var e=await a(r);return new Uint8Array(e)}catch{}return function(r){if(i)return i(r);throw"both async and sync fetching of the wasm failed"}(r)}(r);return await WebAssembly.instantiate(t,e)}catch(r){h(`failed to asynchronously prepare wasm: ${r}`),w(r)}}(e,t)}class b{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var g,y,p,A=r=>{for(;r.length>0;)r.shift()(e)},T=[],C=[],_=!0,R=0,k={},E=r=>{if(r instanceof b||"unwind"==r)return u;s(0,r)},S=()=>_||R>0,x=r=>{u=r,S()||(e.onExit?.(r),m=!0),s(0,new b(r))},P=(r,e)=>Math.ceil(r/e)*e,U=r=>{var e=(r-z.buffer.byteLength+65535)/65536|0;try{return z.grow(e),v(),1}catch{}},M={},L=()=>{if(!L.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:o};for(var e in M)void 0===M[e]?delete r[e]:r[e]=M[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);L.strings=t}return L.strings},W=(r,e,t)=>((r,e,t,n)=>{for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.codePointAt(o);if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,o++}}return e[t]=0,t-a})(r,y,e,t),$=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},I=[null,[],[]],F=globalThis.TextDecoder&&new TextDecoder,G=(r,e)=>{var t=I[r];e&&10!==e?t.push(e):((1===r?l:h)(((r,e=0)=>{var t=((r,e,t)=>{for(var n=e+t;r[e]&&!(e>=n);)++e;return e})(r,e,void 0);if(t-e>16&&r.buffer&&F)return F.decode(r.subarray(e,t));for(var n="";e<t;){var a=r[e++];if(128&a){var i=63&r[e++];if(192==(224&a))n+=String.fromCharCode((31&a)<<6|i);else{var o=63&r[e++];if((a=224==(240&a)?(15&a)<<12|i<<6|o:(7&a)<<18|i<<12|o<<6|63&r[e++])<65536)n+=String.fromCharCode(a);else{var s=a-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}}else n+=String.fromCharCode(a)}return n})(t)),t.length=0)};e.noExitRuntime&&(_=e.noExitRuntime),e.print&&(l=e.print),e.printErr&&(h=e.printErr),e.arguments&&e.arguments,e.thisProgram&&(o=e.thisProgram);var H,z,B=e.preInit;if(B)for("function"==typeof B&&(e.preInit=B=[B]);B.length>0;)B.shift()();var D={f:()=>w(""),e:()=>{_=!1,R=0},a:(r,e)=>(k[r]&&(clearTimeout(k[r].id),delete k[r]),e&&(k[r]={id:setTimeout(()=>{delete k[r],((r,...e)=>{if(!m)try{return r(...e)}catch(r){E(r)}finally{(()=>{if(!S())try{(r=>{u=r,x(r)})(u)}catch(r){E(r)}})()}})(H,r,performance.now())},e),timeout_ms:e}),0),b:r=>{var e=y.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var a=e*(1+.2/n);if(a=Math.min(a,r+100663296),U(Math.min(t,P(Math.max(r,a),65536))))return!0}return!1},g:(r,e)=>{var t=0,n=0;for(var a of L()){var i=e+t;p[r+n>>2]=i,t+=W(a,i,1/0)+1,n+=4}return 0},h:(r,e)=>{var t=L();p[r>>2]=t.length;var n=0;for(var a of t)n+=$(a)+1;return p[e>>2]=n,0},c:(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=p[e>>2],s=p[e+4>>2];e+=8;for(var f=0;f<s;f++)G(r,y[o+f]);a+=s}return p[n>>2]=a,0},d:x},N=await async function(){function r(r){return function(r){e._decode_blosc=r.k,e._decode_zstd=r.l,e._free=r.m,e._malloc=r.n,H=r.o,z=r.i,r.__indirect_function_table}(N=r.exports),v(),N}var t={a:D},n=e.instantiateWasm;return n?new Promise(e=>{n(t,t=>e(r(t)))}):(c??=e.locateFile?function(r){return e.locateFile?e.locateFile(r,f):f+r}("blosc-wasm.wasm"):new URL("blosc-wasm.wasm","").href,function(e){return r(e.instance)}(await d(void 0,c,t)))}();return await async function(){!function(){var r=e.preRun;r&&("function"==typeof r&&(r=[r]),C.push(...r)),A(C)}();var r=e.setStatus;r&&(r("Running..."),await new Promise(r=>setTimeout(r,1)),setTimeout(r,1,"")),m||(N.j(),e.onRuntimeInitialized?.(),function(){var r=e.postRun;r&&("function"==typeof r&&(r=[r]),T.push(...r)),A(T)}())}(),e}t.d(e,{default:()=>n})}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2769],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,n,i=0,l=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),l&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>p,Y_:()=>y,el:()=>u});var n=r(69052),i=(r(49186),r(18370)),l=r(17676),o=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,a.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[s,u]=i.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=s;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=s,p||=e.xmax>=u,p||=e.xmax<=s}if(!p)return e;let[{foldInto360Range:c},y]=await(0,l.qr)(Promise.all([f.getImportPromise(),m.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(c(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),m=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function p(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[i,l]=n.valid,o=2*l,s=0,u=0;t>l?s=Math.ceil(Math.abs(t-l)/o):t<i&&(s=-Math.ceil(Math.abs(t-i)/o)),e>l?u=Math.ceil(Math.abs(e-l)/o):e<i&&(u=-Math.ceil(Math.abs(e-i)/o));let f=e+(s-u)*o,m=f-t;return m>l?f-=o:m<i&&(f+=o),f}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const y=c(s.A.WGS84);c(s.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>u,kd:()=>a});var n=r(82799),i=r(16930),l=r(52006),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,o.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,l.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,o.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(4576),i=r(49186),l=r(91869),o=r(84952),s=r(78888),a=r(99199),u=r(97552),f=r(20557),m=r(32198),p=r(56372),c=r(91429);let y=class extends p.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"flags",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"loadArrayBuffer",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"size",void 0),y=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],y);let h=class extends p.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};async function d(e,t,r,s){let m=e.infoFor3D;if(!m)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:p,globalIdField:c}=t;if(!p||!c)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let y=function(e,t,r,n){let i=function(e,t){let r=u.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return i.outFields=[r,n],i.returnGeometry=!1,i}(e,r,p,c),h=await t.queryFeatures(y,s);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:i}=e,s=r.globalIdField,m=r.parsedUrl;if(!s||!m)return new Map;let p=await async function(e){let{options:t,infoFor3D:r,featureInfos:i}=e,s=[...i.keys()];if(t?.requestedFormat){let e=(0,f.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:i,associatedLayer:s},m){let p=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,y=t.assetMapFieldRoles.flags,h=new Map;for(let[e,{globalId:t}]of r)t&&h.set(e,t);let d=(0,n.Am)(h.values()),g=(0,f.JZ)(t);if(!g||!d.length)return[];let w=(0,o.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,A=new u.A({where:`${p} IN (${d.map(F).join(",")})`,outFields:M?[p,c,y]:[p,c],returnDistinctValues:!0,returnGeometry:!1}),{features:b}=await(0,a.s)(w,A,{query:i,signal:e?.signal}),x=new Set(m),v=new Map;for(let e of b){let t=e.getAttribute(p),r=e.getAttribute(c),n=e.getAttribute(y)??0;!r||!x.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of h)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return m.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,n.Am)([...r.queryFormats,...r.editFormats]))}(e),c=new Map,y=await Promise.all(p.map(async({formatId:n,objectIds:l})=>{let o=(0,f.be)(n,t.supportedFormats),u=r.parsedUrl;if(null==o||!u||!l.length)return null;let m=(0,f._h)(n,t.supportedFormats),p=(0,f.qv)(m),c=r.createQuery();return c.objectIds=l,c.outFields=[s],c.formatOf3DObjects=n,c.returnGeometry=!0,{modelFormat:o,modelFileExtensions:p,featureSetJSON:await(0,a.e)(u.path,c,{query:e.requestQuery,signal:i?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of y)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new x(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(h),m,s))}async function g(e,t,r,n){let i=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:i,sourceOnly:null==i})).get(r)??[]).find(e=>i&&e.format===i||!i&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:r},n,i,o,s){let a=new Map;for(let e of o.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[o,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=M(e,t,r);if(!f.length)continue;let m=f.reduce((e,t)=>e+t.size,0),p=b(f,i),c=!p.flags.includes("DERIVED");(0,l.tE)(s,o,()=>[]).push(new h({name:p.name,size:m,format:n,isSource:c,files:f}))}}function M(e,t,r){let n=new Map,i=({assetType:e})=>null!=(0,f.be)(e,r.supportedFormats),o=e.some(e=>i(e)&&!e.flags.includes("DERIVED"));for(let t of e)o&&i(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),i=r.map(({assetURL:e})=>e).filter(e=>!!e);i.length&&s.push(new y({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>A(i,t,e)}))}return s}async function A(e,t,r){let n=await Promise.all(e.map(e=>(0,s.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===n.length?n[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(n)}function b(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function F(e){return`'${e.replaceAll("'","''")}'`}(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],h);class x{constructor(e,t,r,n,i){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=i,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(22671),i=r(97552),l=r(2272),o=r(80893);async function s(e,t,r,i){let l=await a(e,t,r,i);return n.A.fromJSON(l)}function a(e,t,r,n){let s=(0,l.Dl)(e),a={...r},u=i.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,n)}},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(32198),l=r(91429),o=r(66552),s=r(25482),a=r(4718),u=r(16930),f=r(60408),m=r(65864),p=r(50498),c=r(52106),y=r(20437),h=r(36005),d=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,c.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,m.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=u.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),s=l.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=n);let a=l.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(s[0]),i=r(s[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,s=(0,f.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,l.MZ)({type:[c.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var n=r(39516);const i="=",l=">=",o="<=";function s(e,t,r,i){let l=i.get(e)?.type,o=i.getTimeZone(e);return`${(0,n.iA)(e)} ${t} ${(0,n.YG)(r,{type:"date"},{type:l,timeZone:o})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:f}=t,{start:m,end:p}=e;if(!m&&!p||!u&&!f)return;let c=u??f,y=f??u;if(c&&y){if(m&&p){if(m.getTime()===p.getTime())return(0,n.mA)(a,s(c,i,m,r));if(!u||!f){let e=s(c,l,m,r),t=s(c,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}let e=s(u,l,m,r),t=s(f,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}if(m)return(0,n.mA)(a,s(c,l,m,r));if(p)return(0,n.mA)(a,s(y,o,p,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>m,jV:()=>a,lF:()=>f});var n=r(92602),i=r(4718),l=r(84952),o=r(70333),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let i in e){if("declaredClass"===i)continue;let l=e[i];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))n[i]=l.map(e=>f(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?l:JSON.stringify(l);else n[i]=l}return n}async function m(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(7956),r.e(4189)]).then(()=>r(98232)),(await o.id.getCredential(e,i))?.token)}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[2769],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,n,i=0,l=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),l&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const s=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,a,"uC",0,s])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>p,Y_:()=>y,el:()=>u});var n=r(69052),i=(r(49186),r(18370)),l=r(17676),o=(r(5443),r(39829)),s=(r(82799),r(16930)),a=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,a.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[s,u]=i.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=s;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=s,p||=e.xmax>=u,p||=e.xmax<=s}if(!p)return e;let[{foldInto360Range:c},y]=await(0,l.qr)(Promise.all([f.getImportPromise(),m.getImportPromise()]),r),h=y.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(c(t,h),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const f=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),m=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function p(e,t,r){let n=(0,a.Vp)(r);if(null==n)return e;let[i,l]=n.valid,o=2*l,s=0,u=0;t>l?s=Math.ceil(Math.abs(t-l)/o):t<i&&(s=-Math.ceil(Math.abs(t-i)/o)),e>l?u=Math.ceil(Math.abs(e-l)/o):e<i&&(u=-Math.ceil(Math.abs(e-i)/o));let f=e+(s-u)*o,m=f-t;return m>l?f-=o:m<i&&(f+=o),f}function c(e){let t=(0,a.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const y=c(s.A.WGS84);c(s.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>s,kS:()=>u,kd:()=>a});var n=r(82799),i=r(16930),l=r(52006),o=r(60408);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,o.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,l.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,l.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,o.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},41653(e,t,r){r.r(t),r.d(t,{queryModel:()=>g,queryModels:()=>d});var n=r(4576),i=r(49186),l=r(91869),o=r(84952),s=r(78888),a=r(99199),u=r(97552),f=r(20557),m=r(32198),p=r(56372),c=r(91429);let y=class extends p.A{constructor(e){super(e),this.name="",this.size=0}arrayBuffer(e){return this.loadArrayBuffer(e)}};(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"flags",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"loadArrayBuffer",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],y.prototype,"size",void 0),y=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelFileInfo")],y);let h=class extends p.A{constructor(e){super(e),this.files=[],this.format="",this.isSource=!1,this.name="",this.size=0}};async function d(e,t,r,s){let m=e.infoFor3D;if(!m)throw new i.A("scenelayer:query-models-not-available","Model queries are not available without 3D object metadata",{layer:e});let{objectIdField:p,globalIdField:c}=t;if(!p||!c)throw new i.A("scenelayer:query-models-not-available","Missing required fields for model queries",{layer:e});let y=function(e,t,r,n){let i=function(e,t){let r=u.A.from(t)?.clone()??e.createQuery();return r.outFields=null,r.formatOf3DObjects=null,r.returnGeometry=!1,r}(e,t);return i.outFields=[r,n],i.returnGeometry=!1,i}(e,r,p,c),h=await t.queryFeatures(y,s);return await async function(e){let{infoFor3D:t,associatedLayer:r,options:i}=e,s=r.globalIdField,m=r.parsedUrl;if(!s||!m)return new Map;let p=await async function(e){let{options:t,infoFor3D:r,featureInfos:i}=e,s=[...i.keys()];if(t?.requestedFormat){let e=(0,f.fE)(t.requestedFormat,r.supportedFormats);return e?[{formatId:e,objectIds:s}]:[]}return await async function({options:e,infoFor3D:t,featureInfos:r,requestQuery:i,associatedLayer:s},m){let p=t.assetMapFieldRoles.parentGlobalId,c=t.assetMapFieldRoles.assetType,y=t.assetMapFieldRoles.flags,h=new Map;for(let[e,{globalId:t}]of r)t&&h.set(e,t);let d=(0,n.Am)(h.values()),g=(0,f.JZ)(t);if(!g||!d.length)return[];let w=(0,o.fj)(s.parsedUrl?.path??"",`../${g.id}`),M=!!e?.sourceOnly,A=new u.A({where:`${p} IN (${d.map(F).join(",")})`,outFields:M?[p,c,y]:[p,c],returnDistinctValues:!0,returnGeometry:!1}),{features:b}=await(0,a.s)(w,A,{query:i,signal:e?.signal}),x=new Set(m),v=new Map;for(let e of b){let t=e.getAttribute(p),r=e.getAttribute(c),n=e.getAttribute(y)??0;!r||!x.has(r)||!t||1&n||(0,l.tE)(v,t,()=>new Set).add(r)}let q=new Map;for(let[e,t]of h)for(let r of v.get(t)??[])(0,l.tE)(q,r,()=>[]).push(e);return m.map(e=>({formatId:e,objectIds:q.get(e)??[]})).filter(({objectIds:e})=>e.length>0)}(e,(0,n.Am)([...r.queryFormats,...r.editFormats]))}(e),c=new Map,y=await Promise.all(p.map(async({formatId:n,objectIds:l})=>{let o=(0,f.be)(n,t.supportedFormats),u=r.parsedUrl;if(null==o||!u||!l.length)return null;let m=(0,f._h)(n,t.supportedFormats),p=(0,f.qv)(m),c=r.createQuery();return c.objectIds=l,c.outFields=[s],c.formatOf3DObjects=n,c.returnGeometry=!0,{modelFormat:o,modelFileExtensions:p,featureSetJSON:await(0,a.e)(u.path,c,{query:e.requestQuery,signal:i?.signal},{uniqueIdFields:r.uniqueIdFields})}}));for(let t of y)t&&w(e,t.modelFormat,t.modelFileExtensions,t.featureSetJSON,c);return c}(new x(e,t,function(e){let t=new Map;for(let r of e.features){let e=r.getObjectId(),n=r.getGlobalId();null!=e&&null!=n&&t.set(e,{globalId:n})}return t}(h),m,s))}async function g(e,t,r,n){let i=n?.format;return((await d(e,t,{objectIds:[r]},{...n,requestedFormat:i,sourceOnly:null==i})).get(r)??[]).find(e=>i&&e.format===i||!i&&e.isSource)}function w({featureInfos:e,requestQuery:t,infoFor3D:r},n,i,o,s){let a=new Map;for(let e of o.assetMaps??[])(0,l.tE)(a,e.parentGlobalId,()=>[]).push(e);for(let[o,u]of e){let e=a.get(u.globalId);if(!e?.length)continue;let f=M(e,t,r);if(!f.length)continue;let m=f.reduce((e,t)=>e+t.size,0),p=b(f,i),c=!p.flags.includes("DERIVED");(0,l.tE)(s,o,()=>[]).push(new h({name:p.name,size:m,format:n,isSource:c,files:f}))}}function M(e,t,r){let n=new Map,i=({assetType:e})=>null!=(0,f.be)(e,r.supportedFormats),o=e.some(e=>i(e)&&!e.flags.includes("DERIVED"));for(let t of e)o&&i(t)&&t.flags.includes("DERIVED")||(0,l.tE)(n,t.assetName,()=>[]).push(t);let s=[];for(let[e,r]of n){r.sort((e,t)=>e.seqNo-t.seqNo);let n=r.reduce((e,t)=>e+t.size,0),i=r.map(({assetURL:e})=>e).filter(e=>!!e);i.length&&s.push(new y({name:e,size:n,flags:r[0].flags,loadArrayBuffer:e=>A(i,t,e)}))}return s}async function A(e,t,r){let n=await Promise.all(e.map(e=>(0,s.A)(e,{responseType:"array-buffer",query:t,signal:r?.signal}).then(({data:e})=>e)));return 1===n.length?n[0]:function(e){let t=e.reduce((e,t)=>e+t.byteLength,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(new Uint8Array(t),n),n+=t.byteLength;return r.buffer}(n)}function b(e,t){return e.find(({name:e})=>t.some(t=>e.toLowerCase().endsWith(`.${t}`)))??e[0]}function F(e){return`'${e.replaceAll("'","''")}'`}(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"files",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"format",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"isSource",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"name",void 0),(0,m.Cg)([(0,c.MZ)({constructOnly:!0})],h.prototype,"size",void 0),h=(0,m.Cg)([(0,c.$K)("esri.layers.scene.ModelInfo")],h);class x{constructor(e,t,r,n,i){this.layer=e,this.associatedLayer=t,this.featureInfos=r,this.infoFor3D=n,this.options=i,this.requestQuery={...t.parsedUrl?.query,...e.customParameters,...e.apiKey?{token:e.apiKey}:{}}}}},99199(e,t,r){r.d(t,{e:()=>a,s:()=>s});var n=r(22671),i=r(97552),l=r(2272),o=r(80893);async function s(e,t,r,i){let l=await a(e,t,r,i);return n.A.fromJSON(l)}function a(e,t,r,n){let s=(0,l.Dl)(e),a={...r},u=i.A.from(t);return(0,o.eW)(s,u,u.sourceSpatialReference,a,n)}},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(32198),l=r(91429),o=r(66552),s=r(25482),a=r(4718),u=r(16930),f=r(60408),m=r(65864),p=r(50498),c=r(52106),y=r(20437),h=r(36005),d=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,c.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,m.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=u.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=u.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),s=l.geometry?.spatialReference;null!=o.geometry&&!s&&(o.geometry.spatialReference=n);let a=l.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];if(o>0){let e=t(s[0]),o=r(s[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(s[0]),i=r(s[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,f.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,f.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,s=(0,f.Bi)(e)?e.rings:e.paths;for(let e=0,n=s.length;e<n;e++){let n=s[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,s=e.points;for(let e=0,n=s.length;e<n;e++){let n=s[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,l.MZ)({type:[c.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,l.MZ)({type:[y.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,d.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,l.MZ)({types:p.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,d.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},2991(e,t,r){r.d(t,{G9:()=>u,RZ:()=>a});var n=r(39516);const i="=",l=">=",o="<=";function s(e,t,r,i){let l=i.get(e)?.type,o=i.getTimeZone(e);return`${(0,n.iA)(e)} ${t} ${(0,n.YG)(r,{type:"date"},{type:l,timeZone:o})}`}function a(e,t,r,a){if(!t||!r)return;let{startField:u,endField:f}=t,{start:m,end:p}=e;if(!m&&!p||!u&&!f)return;let c=u??f,y=f??u;if(c&&y){if(m&&p){if(m.getTime()===p.getTime())return(0,n.mA)(a,s(c,i,m,r));if(!u||!f){let e=s(c,l,m,r),t=s(c,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}let e=s(u,l,m,r),t=s(f,o,p,r);return(0,n.mA)(a,(0,n.mA)(e,t))}if(m)return(0,n.mA)(a,s(c,l,m,r));if(p)return(0,n.mA)(a,s(y,o,p,r))}}function u(e){let{start:t,end:r}=e;if(t||r){if(!t&&r)return`null,${r.getTime()}`;if(!r&&t)return`${t.getTime()},null`;if(r&&t)return t.getTime()===r.getTime()?`${t.getTime()}`:`${t.getTime()},${r.getTime()}`}}},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>m,jV:()=>a,lF:()=>f});var n=r(92602),i=r(4718),l=r(84952),o=r(70333),s=r(926);function a(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,i.o8)(e)}function f(e,t,r){let n={};for(let i in e){if("declaredClass"===i)continue;let l=e[i];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))n[i]=l.map(e=>f(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[i]);n[i]=t?e:JSON.stringify(e)}else n[i]=t?l:JSON.stringify(l);else n[i]=l}return n}async function m(e,t,i){return function(e,t){return e?t&&(0,s.Qc)(e)?t:(0,s.getApiKey)(e)??o.id?.findCredential(e)?.token:null}(e,t)||(!o.id&&n.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(37),r.e(4189)]).then(()=>r(98232)),(await o.id.getCredential(e,i))?.token)}}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>a});var i=t(49186),l=t(51850),n=t(66344),o=t(70328),s=(t(78888),t(8887));let u=new n.q(50);async function a(e,r=null){if(!e.isPrimitive){let r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");let n=u.get(r);if(null!=n)return n;let{fetch:s}=await Promise.all([t.e(1843),t.e(7005),t.e(6319),t.e(8040)]).then(()=>t(8040)),a=await s(r,{disableTextures:!0,spherical:!0}),c=(0,o.Ej)(a.referenceBoundingBox,(0,l.vt)());return u.put(r,c),c}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");let n=(0,o.vt)((0,s.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,o.Ej)(n,(0,l.vt)())}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>a});var i=t(49186),l=t(51850),n=t(66344),o=t(70328),s=(t(78888),t(8887));let u=new n.q(50);async function a(e,r=null){if(!e.isPrimitive){let r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");let n=u.get(r);if(null!=n)return n;let{fetch:s}=await Promise.all([t.e(1843),t.e(7005),t.e(6319),t.e(7143)]).then(()=>t(47143)),a=await s(r,{disableTextures:!0,spherical:!0}),c=(0,o.Ej)(a.referenceBoundingBox,(0,l.vt)());return u.put(r,c),c}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");let n=(0,o.vt)((0,s.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,o.Ej)(n,(0,l.vt)())}}}]);
@@ -1 +1 @@
1
- "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6023],{52106(e,t,r){r.d(t,{A:()=>C});var i,s,l=r(32198),a=r(91429),o=r(69540),n=r(51447),u=r(25482),p=r(53966),h=r(36708),y=r(12195),d=r(24326),m=r(65864),g=r(50498),f=r(55156),c=r(60950),b=r(54339),v=r(40124),M=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let C=class extends((0,o.OU)(u.o)){static{i=M.Z}static{s=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,d.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,n.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,c.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,h.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,l.Cg)([(0,a.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],C.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,a.MZ)({value:null})],C.prototype,"attributes",null),(0,l.Cg)([(0,a.MZ)({value:null,types:g.yR,json:{read:m.rS}})],C.prototype,"geometry",null),(0,l.Cg)([(0,a.MZ)()],C.prototype,"distance",void 0),(0,l.Cg)([(0,a.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,l.Cg)([(0,a.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,l.Cg)([(0,a.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,l.Cg)([(0,a.MZ)({type:v.A,value:null})],C.prototype,"popupTemplate",null),(0,l.Cg)([(0,a.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,a.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,a.MZ)({value:null,types:x.Es})],C.prototype,"symbol",null),(0,l.Cg)([(0,a.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,l.Cg)([(0,a.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=s=(0,l.Cg)([(0,a.$K)("esri.Graphic")],C)},69052(e,t,r){r.d(t,{hr:()=>s});var i=r(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+a(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,i,s=0,l=!1){return(i-=s)<t?i+=a(e,t-i):i>r&&(i-=a(e,i-r)),l&&i===r&&(i=t),i+s}function a(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new s(0,2*Math.PI),n=(new s(-Math.PI,Math.PI),new s(0,360));r.d(t,["ie",0,n,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>s});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function s(e){return new i(e)}},52039(e,t,r){r.d(t,{O7:()=>y,Y_:()=>m,el:()=>u});var i=r(69052),s=(r(49186),r(18370)),l=r(17676),a=(r(5443),r(39829)),o=(r(82799),r(16930)),n=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let i=null;for(let t of e)i??=t?.spatialReference;if(!i)return e;let s=(0,n.Vp)(i);if(!s)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(s);return["xmin"in t?t:new a.A(t)]}let[o,u]=s.valid,y=!1;for(let t of e){if(!t)continue;if("point"===t.type){y||=t.x>=u,y||=t.x<=o;continue}let{extent:e}=t;if(null==e){y=!0;break}y||=e.xmin>=u,y||=e.xmin<=o,y||=e.xmax>=u,y||=e.xmax<=o}if(!y)return e;let[{foldInto360Range:d},m]=await(0,l.qr)(Promise.all([p.getImportPromise(),h.getImportPromise()]),r),g=m.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=m.fromGeometry(e),r=m.toGeometry(d(t,g),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,s.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),h=(0,s.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function y(e,t,r){let i=(0,n.Vp)(r);if(null==i)return e;let[s,l]=i.valid,a=2*l,o=0,u=0;t>l?o=Math.ceil(Math.abs(t-l)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>l?u=Math.ceil(Math.abs(e-l)/a):e<s&&(u=-Math.ceil(Math.abs(e-s)/a));let p=e+(o-u)*a,h=p-t;return h>l?p-=a:h<s&&(p+=a),p}function d(e){let t=(0,n.Vp)(e);if(null==t)return null;let[r,s]=t.valid;return new i.hr(r,s)}const m=d(o.A.WGS84);d(o.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>o,kS:()=>u,kd:()=>n});var i=r(82799),s=r(16930),l=r(52006),a=r(60408);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function n(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t}else if((0,l.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t}else if((0,l.n1)(e)){let[r,i,s]=e.b;r[0]+=t,i[0]+=t,s[0]+=t}else e[0]+=t;for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var i=r(32198),s=r(91429),l=r(56507),a=r(35666),o=r(7762),n=r(49186),u=r(81583),p=r(34727),h=r(25728),y=r(17676),d=r(5443),m=r(83960),g=r(21325),f=r(78888),c=r(88625),b=r(79677),v=r(56400),M=r(4146),x=r(52136),S=r(98534),w=r(18768),C=r(63074),I=r(69208),A=r(34287),O=r(8303),_=r(54310),Z=r(25036),T=r(91921),P=r(82935),L=r(10873),N=r(56372),F=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;let r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var R=r(63389);const J={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let G=class extends N.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;let e=this.visibleSublayers.map(e=>{let t=j(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,R.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(J[e.propertyName]))],"layer"))}get layers(){let e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){let e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{let r=j(this.floors,t),i=(0,F.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");let e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){let e=[];if(!this.layer)return e;let t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);let s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some((t,r)=>e[r]!==t)?e:s}toJSON(){let e=this.layer,t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"dynamicLayers",null),(0,i.Cg)([(0,s.MZ)()],G.prototype,"floors",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,s.MZ)()],G.prototype,"layer",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"layers",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"layerDefs",null),(0,i.Cg)([(0,s.MZ)({type:Number})],G.prototype,"scale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"version",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"visibleSublayers",null),G=(0,i.Cg)([(0,s.$K)("esri.layers.support.ExportImageParameters")],G);var q=r(33446),z=r(15775),E=r(91908),D=r(36005),k=r(43937);let V=class extends((0,C.dM)((0,P.e)((0,Z.j)((0,T.I)((0,S.V)((0,w.b)((0,A.q)((0,O.A)((0,h.M)((0,_.J)((0,x.p)((0,I.d)(M.A))))))))))))){constructor(e){super(e),this._exportImageParameters=new G({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new c.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,y.sg)(async(e,t,i)=>{let{save:s,saveAs:l}=await r.e(390).then(()=>r(10390));switch(e){case 0:return s(this,t);case 1:return l(this,i,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(y.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){let r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;let s,l=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),o=!1,n=(0,a.aB)(i.origin);if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===n){let e=this.createSublayersForOrigin("service").sublayers;o=(0,R.Zx)(l,e,2)}else if(n>3){let e=this.createSublayersForOrigin("portal-item");o=(0,R.Zx)(l,e.sublayers,(0,a.aB)(e.origin)),s=e.originWithPartialOverrides}let u=[],p={writeSublayerStructure:o,...i,minimumWritableOrigin:s},h=o||this.hasVisibleLayersForOrigin(n);l.forEach(e=>{let t=e.write({},p);u.push(t),h||="user"===e.originOf("visible")}),u.some(e=>Object.keys(e).length>1)&&(t.layers=u),h&&(t.visibleLayers=l.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){let s=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,m.X_)({extent:e,width:t})*s;let l=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e?.spatialReference,n=(0,g.YX)(o),u=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});u=(0,p.Sp)(u,s)?s:u,l.dpi*=u;let h={};if(i?.timeExtent){let{start:e,end:t}=i.timeExtent.toJSON();h.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(h.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:n,imageSR:n,size:t+","+r,mapScale:this._exportImageParameters.scale,...l,...a,...h}}async fetchImage(e,t,r,i){let{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){let{data:s,url:l}=await this._fetchImage("blob",e,t,r,i);return(0,q.mn)(s,l,i)}async fetchRecomputedExtents(e={}){let t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,f.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:l}=r,a=i||s;return{fullExtent:a&&d.A.fromJSON(a),timeExtent:l&&b.A.fromJSON({start:l[0],end:l[1]})}}loadAll(){return(0,u.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,E.D)(this,e)}async _fetchImage(e,t,r,i,s){let l={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},a=this.parsedUrl.path+"/export";if(null!=l.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query});try{let{data:e}=await(0,f.A)(a,l);return{data:e,url:a}}catch(e){throw(0,y.zf)(e)?e:new n.A("mapimagelayer:image-fetch-error",`Unable to load image: ${a}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let{data:t,ssl:r}=await(0,f.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,s.MZ)((0,v.P6)("dateFieldsTimeReference"))],V.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"dpi",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"imageFormat",void 0),(0,i.Cg)([(0,D.w)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i.Cg)([(0,s.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,s.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)((0,v.P6)("preferredTimeReference"))],V.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A.ofType(z.A),json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.K)("sublayers",{layers:{type:[z.A]},visibleLayers:{type:[l.jz]}})],V.prototype,"writeSublayers",null),(0,i.Cg)([(0,s.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],V.prototype,"listMode",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)(L.OZ)],V.prototype,"url",void 0),V=(0,i.Cg)([(0,s.$K)("esri.layers.MapImageLayer")],V);const B=V},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>s})},82935(e,t,r){var i=r(32198),s=r(91429),l=r(73133),a=r(79677),o=r(10184),n=r(30524),u=r(96184),p=r(36005);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,h,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new o.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,n.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(h)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},91908(e,t,r){r.d(t,{D:()=>l});var i=r(60694);const s=[];function l(e,t){if((0,i.Wo)(e.url??""))return!0;let{wkid:r}=t;for(let t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},22671(e,t,r){r.d(t,{A:()=>b});var i,s=r(32198),l=r(91429),a=r(66552),o=r(25482),n=r(4718),u=r(16930),p=r(60408),h=r(65864),y=r(50498),d=r(52106),m=r(20437),g=r(36005),f=r(43937);const c=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends o.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,d.A)}writeGeometryType(e,t,r,i){if(e)return void c.write(e,t,r,i);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void c.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,h.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,n.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,s]}=e,l=this.features,a=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=l.length;e<t;e++)a?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,s],scale:[l,a]}=r,o=null,n=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;o=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;n=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>s-e*a,o,n);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let l=e[t],a=r.fromJSON(l),o=l.geometry?.spatialReference;null!=a.geometry&&!o&&(a.geometry.spatialReference=i);let n=l.aggregateGeometries,u=a.aggregateGeometries;if(n&&null!=u)for(let e in u){let t=u[e],r=n[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}s.push(a)}return s}_quantizePoints(e,t,r){let i,s,l=[];for(let a=0,o=e.length;a<o;a++){let o=e[a];if(a>0){let e=t(o[0]),a=r(o[1]);(e!==i||a!==s)&&(l.push([e-i,a-s]),i=e,s=a)}else i=t(o[0]),s=r(o[1]),l.push([i,s])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],a=this._quantizePoints(l,t,r);a&&s.push(a)}return s.length>0?((0,p.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,a,o=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=o.length;e<i;e++){let i=o[e];for(let e=0,s=i.length;e<s;e++){let s=i[e];e>0?(l+=s[0],a+=s[1]):(l=s[0],a=s[1]),s[0]=t(l),s[1]=r(a)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let l,a,o=e.points;for(let e=0,i=o.length;e<i;e++){let i=o[e];e>0?(l+=i[0],a+=i[1]):(l=i[0],a=i[1]),i[0]=t(l),i[1]=r(a)}if(i&&s)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,l.MZ)({type:[d.A],json:{write:!0}})],b.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],b.prototype,"readFeatures",null),(0,s.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,s.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:c.read}}})],b.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s.Cg)([(0,l.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,s.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>h,jV:()=>n,lF:()=>p});var i=r(92602),s=r(4718),l=r(84952),a=r(70333),o=r(926);function n(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,s.o8)(e)}function p(e,t,r){let i={};for(let s in e){if("declaredClass"===s)continue;let l=e[s];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))i[s]=l.map(e=>p(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?l:JSON.stringify(l);else i[s]=l}return i}async function h(e,t,s){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??a.id?.findCredential(e)?.token:null}(e,t)||(!a.id&&i.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(7956),r.e(4189)]).then(()=>r(98232)),(await a.id.getCredential(e,s))?.token)}}}]);
1
+ "use strict";(Array.isArray(self.webpackChunkRemoteClient)?self.webpackChunkRemoteClient:self.webpackChunkRemoteClient=[]).push([[6023],{52106(e,t,r){r.d(t,{A:()=>C});var i,s,l=r(32198),a=r(91429),o=r(69540),n=r(51447),u=r(25482),p=r(53966),h=r(36708),y=r(12195),d=r(24326),m=r(65864),g=r(50498),f=r(55156),c=r(60950),b=r(54339),v=r(40124),M=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function w(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let C=class extends((0,o.OU)(u.o)){static{i=M.Z}static{s=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperties(this,{uid:{value:(0,d.c)(),configurable:!0},_lastMeshTransform:{value:{},configurable:!0,writable:!0,enumerable:!1}}),arguments.length>1&&(0,n.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,c.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,y.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let s={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(s.action=i),"attributes"===e&&(s.attributeName=i),this.layer.graphicChanged(s)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,h.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,l.Cg)([(0,a.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],C.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,a.MZ)({value:null})],C.prototype,"attributes",null),(0,l.Cg)([(0,a.MZ)({value:null,types:g.yR,json:{read:m.rS}})],C.prototype,"geometry",null),(0,l.Cg)([(0,a.MZ)()],C.prototype,"distance",void 0),(0,l.Cg)([(0,a.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,l.Cg)([(0,a.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,l.Cg)([(0,a.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,l.Cg)([(0,a.MZ)({type:v.A,value:null})],C.prototype,"popupTemplate",null),(0,l.Cg)([(0,a.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,a.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,a.MZ)({value:null,types:x.Es})],C.prototype,"symbol",null),(0,l.Cg)([(0,a.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,l.Cg)([(0,a.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=s=(0,l.Cg)([(0,a.$K)("esri.Graphic")],C)},69052(e,t,r){r.d(t,{hr:()=>s});var i=r(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return l(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+a(this.range,e-t,r)}minimalMonotonic(e,t,r){return l(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function l(e,t,r,i,s=0,l=!1){return(i-=s)<t?i+=a(e,t-i):i>r&&(i-=a(e,i-r)),l&&i===r&&(i=t),i+s}function a(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new s(0,2*Math.PI),n=(new s(-Math.PI,Math.PI),new s(0,360));r.d(t,["ie",0,n,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>s});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function s(e){return new i(e)}},52039(e,t,r){r.d(t,{O7:()=>y,Y_:()=>m,el:()=>u});var i=r(69052),s=(r(49186),r(18370)),l=r(17676),a=(r(5443),r(39829)),o=(r(82799),r(16930)),n=(r(80754),r(21325));async function u(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let i=null;for(let t of e)i??=t?.spatialReference;if(!i)return e;let s=(0,n.Vp)(i);if(!s)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(s);return["xmin"in t?t:new a.A(t)]}let[o,u]=s.valid,y=!1;for(let t of e){if(!t)continue;if("point"===t.type){y||=t.x>=u,y||=t.x<=o;continue}let{extent:e}=t;if(null==e){y=!0;break}y||=e.xmin>=u,y||=e.xmin<=o,y||=e.xmax>=u,y||=e.xmax<=o}if(!y)return e;let[{foldInto360Range:d},m]=await(0,l.qr)(Promise.all([p.getImportPromise(),h.getImportPromise()]),r),g=m.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=m.fromGeometry(e),r=m.toGeometry(d(t,g),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,s.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),h=(0,s.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function y(e,t,r){let i=(0,n.Vp)(r);if(null==i)return e;let[s,l]=i.valid,a=2*l,o=0,u=0;t>l?o=Math.ceil(Math.abs(t-l)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>l?u=Math.ceil(Math.abs(e-l)/a):e<s&&(u=-Math.ceil(Math.abs(e-s)/a));let p=e+(o-u)*a,h=p-t;return h>l?p-=a:h<s&&(p+=a),p}function d(e){let t=(0,n.Vp)(e);if(null==t)return null;let[r,s]=t.valid;return new i.hr(r,s)}const m=d(o.A.WGS84);d(o.A.WebMercator)},80754(e,t,r){r.d(t,{j7:()=>o,kS:()=>u,kd:()=>n});var i=r(82799),s=r(16930),l=r(52006),a=r(60408);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function n(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,l.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,l.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t}else if((0,l.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t}else if((0,l.n1)(e)){let[r,i,s]=e.b;r[0]+=t,i[0]+=t,s[0]+=t}else e[0]+=t;for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}},55156(e,t,r){r.d(t,{I:()=>s});const i=Symbol("idFieldsProviderSymbol");function s(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},7656(e,t,r){r.r(t),r.d(t,{default:()=>B});var i=r(32198),s=r(91429),l=r(56507),a=r(35666),o=r(7762),n=r(49186),u=r(81583),p=r(34727),h=r(25728),y=r(17676),d=r(5443),m=r(83960),g=r(21325),f=r(78888),c=r(88625),b=r(79677),v=r(56400),M=r(4146),x=r(52136),S=r(98534),w=r(18768),C=r(63074),I=r(69208),A=r(34287),O=r(8303),_=r(54310),Z=r(25036),T=r(91921),P=r(82935),L=r(10873),N=r(56372),F=r(39516);function j(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;let r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var R=r(63389);const J={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let G=class extends N.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;let e=this.visibleSublayers.map(e=>{let t=j(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,R.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(J[e.propertyName]))],"layer"))}get layers(){let e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){let e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{let r=j(this.floors,t),i=(0,F.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");let e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){let e=[];if(!this.layer)return e;let t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,m.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);let s=this._get("visibleSublayers");return!s||s.length!==e.length||s.some((t,r)=>e[r]!==t)?e:s}toJSON(){let e=this.layer,t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"dynamicLayers",null),(0,i.Cg)([(0,s.MZ)()],G.prototype,"floors",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,s.MZ)()],G.prototype,"layer",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"layers",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"layerDefs",null),(0,i.Cg)([(0,s.MZ)({type:Number})],G.prototype,"scale",void 0),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"version",null),(0,i.Cg)([(0,s.MZ)({readOnly:!0})],G.prototype,"visibleSublayers",null),G=(0,i.Cg)([(0,s.$K)("esri.layers.support.ExportImageParameters")],G);var q=r(33446),z=r(15775),E=r(91908),D=r(36005),k=r(43937);let V=class extends((0,C.dM)((0,P.e)((0,Z.j)((0,T.I)((0,S.V)((0,w.b)((0,A.q)((0,O.A)((0,h.M)((0,_.J)((0,x.p)((0,I.d)(M.A))))))))))))){constructor(e){super(e),this._exportImageParameters=new G({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new c.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,y.sg)(async(e,t,i)=>{let{save:s,saveAs:l}=await r.e(390).then(()=>r(10390));switch(e){case 0:return s(this,t);case 1:return l(this,i,t)}})}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(y.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){let r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;let s,l=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray(),o=!1,n=(0,a.aB)(i.origin);if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===n){let e=this.createSublayersForOrigin("service").sublayers;o=(0,R.Zx)(l,e,2)}else if(n>3){let e=this.createSublayersForOrigin("portal-item");o=(0,R.Zx)(l,e.sublayers,(0,a.aB)(e.origin)),s=e.originWithPartialOverrides}let u=[],p={writeSublayerStructure:o,...i,minimumWritableOrigin:s},h=o||this.hasVisibleLayersForOrigin(n);l.forEach(e=>{let t=e.write({},p);u.push(t),h||="user"===e.originOf("visible")}),u.some(e=>Object.keys(e).length>1)&&(t.layers=u),h&&(t.visibleLayers=l.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){let s=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,m.X_)({extent:e,width:t})*s;let l=this._exportImageParameters.toJSON(),a=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},o=e?.spatialReference,n=(0,g.YX)(o),u=this._exportImageParameters.scale/(0,m.X_)({extent:e,width:t});u=(0,p.Sp)(u,s)?s:u,l.dpi*=u;let h={};if(i?.timeExtent){let{start:e,end:t}=i.timeExtent.toJSON();h.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(h.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:n,imageSR:n,size:t+","+r,mapScale:this._exportImageParameters.scale,...l,...a,...h}}async fetchImage(e,t,r,i){let{data:s}=await this._fetchImage("image",e,t,r,i);return s}async fetchImageBitmap(e,t,r,i){let{data:s,url:l}=await this._fetchImage("blob",e,t,r,i);return(0,q.mn)(s,l,i)}async fetchRecomputedExtents(e={}){let t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,f.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:l}=r,a=i||s;return{fullExtent:a&&d.A.fromJSON(a),timeExtent:l&&b.A.fromJSON({start:l[0],end:l[1]})}}loadAll(){return(0,u.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,E.D)(this,e)}async _fetchImage(e,t,r,i,s){let l={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},a=this.parsedUrl.path+"/export";if(null!=l.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new n.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:l.query});try{let{data:e}=await(0,f.A)(a,l);return{data:e,url:a}}catch(e){throw(0,y.zf)(e)?e:new n.A("mapimagelayer:image-fetch-error",`Unable to load image: ${a}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});let{data:t,ssl:r}=await(0,f.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,s.MZ)((0,v.P6)("dateFieldsTimeReference"))],V.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"dpi",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"imageFormat",void 0),(0,i.Cg)([(0,D.w)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i.Cg)([(0,s.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,s.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)((0,v.P6)("preferredTimeReference"))],V.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,s.MZ)()],V.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A.ofType(z.A),json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.K)("sublayers",{layers:{type:[z.A]},visibleLayers:{type:[l.jz]}})],V.prototype,"writeSublayers",null),(0,i.Cg)([(0,s.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],V.prototype,"listMode",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)(L.OZ)],V.prototype,"url",void 0),V=(0,i.Cg)([(0,s.$K)("esri.layers.MapImageLayer")],V);const B=V},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>s})},82935(e,t,r){var i=r(32198),s=r(91429),l=r(73133),a=r(79677),o=r(10184),n=r(30524),u=r(96184),p=r(36005);const h={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"}}};r.d(t,["B",0,h,"e",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){let r=t.timeInfo.exportOptions;if(!r)return null;let i=r.timeOffset,s=l.j.fromJSON(r.timeOffsetUnits);return i&&s?new o.A({value:i,unit:s}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,n.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,s.MZ)({type:o.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,s.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,s.MZ)(h)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},91908(e,t,r){r.d(t,{D:()=>l});var i=r(60694);const s=[];function l(e,t){if((0,i.Wo)(e.url??""))return!0;let{wkid:r}=t;for(let t of s){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}s.push([10.91,()=>{let e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),s.push([10.9,()=>{let e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),s.push([10.81,()=>{let e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),s.push([10.8,()=>{let e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),s.push([10.71,()=>{let e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},22671(e,t,r){r.d(t,{A:()=>b});var i,s=r(32198),l=r(91429),a=r(66552),o=r(25482),n=r(4718),u=r(16930),p=r(60408),h=r(65864),y=r(50498),d=r(52106),m=r(20437),g=r(36005),f=r(43937);const c=new a.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends o.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,d.A)}writeGeometryType(e,t,r,i){if(e)return void c.write(e,t,r,i);let{features:s}=this;if(s)for(let e of s)if(null!=e?.geometry)return void c.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,h.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,n.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,s]}=e,l=this.features,a=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((s-e)/r));for(let e=0,t=l.length;e<t;e++)a?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,s],scale:[l,a]}=r,o=null,n=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;o=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;n=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>s-e*a,o,n);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=u.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){let l=e[t],a=r.fromJSON(l),o=l.geometry?.spatialReference;null!=a.geometry&&!o&&(a.geometry.spatialReference=i);let n=l.aggregateGeometries,u=a.aggregateGeometries;if(n&&null!=u)for(let e in u){let t=u[e],r=n[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}s.push(a)}return s}_quantizePoints(e,t,r){let i,s,l=[];for(let a=0,o=e.length;a<o;a++){let o=e[a];if(a>0){let e=t(o[0]),a=r(o[1]);(e!==i||a!==s)&&(l.push([e-i,a-s]),i=e,s=a)}else i=t(o[0]),s=r(o[1]),l.push([i,s])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],a=this._quantizePoints(l,t,r);a&&s.push(a)}return s.length>0?((0,p.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,a,o=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=o.length;e<i;e++){let i=o[e];for(let e=0,s=i.length;e<s;e++){let s=i[e];e>0?(l+=s[0],a+=s[1]):(l=s[0],a=s[1]),s[0]=t(l),s[1]=r(a)}}if(i&&s)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=s(r[3])}}else if(i)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(s)for(let e=0,t=o.length;e<t;e++){let t=o[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{let l,a,o=e.points;for(let e=0,i=o.length;e<i;e++){let i=o[e];e>0?(l+=i[0],a+=i[1]):(l=i[0],a=i[1]),i[0]=t(l),i[1]=r(a)}if(i&&s)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=i(t[2]),t[3]=s(t[3])}else if(i)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=i(t[2])}else if(s)for(let e=0,t=o.length;e<t;e++){let t=o[e];t[2]=s(t[2])}}:null}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,s.Cg)([(0,l.MZ)({type:[d.A],json:{write:!0}})],b.prototype,"features",void 0),(0,s.Cg)([(0,g.w)("features")],b.prototype,"readFeatures",null),(0,s.Cg)([(0,l.MZ)({type:[m.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,s.Cg)([(0,l.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:c.read}}})],b.prototype,"geometryType",void 0),(0,s.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,s.Cg)([(0,l.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,s.Cg)([(0,l.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,s.Cg)([(0,g.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,s.Cg)([(0,l.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,s.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,s.Cg)([(0,l.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>h,jV:()=>n,lF:()=>p});var i=r(92602),s=r(4718),l=r(84952),a=r(70333),o=r(926);function n(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,l.An)(e):(0,s.o8)(e)}function p(e,t,r){let i={};for(let s in e){if("declaredClass"===s)continue;let l=e[s];if(null!=l&&"function"!=typeof l)if(Array.isArray(l))i[s]=l.map(e=>p(e));else if("object"==typeof l)if(l.toJSON){let e=l.toJSON(r?.[s]);i[s]=t?e:JSON.stringify(e)}else i[s]=t?l:JSON.stringify(l);else i[s]=l}return i}async function h(e,t,s){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??a.id?.findCredential(e)?.token:null}(e,t)||(!a.id&&i.A.request.useIdentity&&await Promise.all([r.e(8673),r.e(37),r.e(4189)]).then(()=>r(98232)),(await a.id.getCredential(e,s))?.token)}}}]);