@arcgis/core 4.34.0-next.65 → 4.34.0-next.67

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 (367) hide show
  1. package/Graphic.js +1 -1
  2. package/WebDocument2D.js +1 -1
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/0814676e4bac81f96140.js +1 -0
  6. package/assets/esri/core/workers/chunks/{6ab435423acb0ed0b1c7.js → 09dbb3e200ef8d514eb3.js} +2 -2
  7. package/assets/esri/core/workers/chunks/0b71100fa1e7ca706dbb.js +1 -0
  8. package/assets/esri/core/workers/chunks/0c4f07eb3f3dd5cd2c6c.js +1 -0
  9. package/assets/esri/core/workers/chunks/{3167230555c63f943485.js → 0cbd5335cc92f5891bcf.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{79933271a76a1756584f.js → 12d30c2367652e2c688b.js} +1 -1
  11. package/assets/esri/core/workers/chunks/144bfd64daf103a06734.js +1 -0
  12. package/assets/esri/core/workers/chunks/{0b53bc76d38e85902748.js → 170ec7fb070c63230c81.js} +1 -1
  13. package/assets/esri/core/workers/chunks/18c7b1e1fbf7eb6c3c33.js +1 -0
  14. package/assets/esri/core/workers/chunks/1ada9e6cdd6792e3847a.js +1 -0
  15. package/assets/esri/core/workers/chunks/1e86df439c564fe752e3.js +1 -0
  16. package/assets/esri/core/workers/chunks/{4459c8e495a37d4c4eb8.js → 25118304c9a914194e90.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{426232091caf8608e5f1.js → 26b791291689434dde09.js} +1 -1
  18. package/assets/esri/core/workers/chunks/3212a476184be25d17f8.js +1 -0
  19. package/assets/esri/core/workers/chunks/{d823277612f971a9c2f0.js → 3245663da75e168bf85c.js} +1 -1
  20. package/assets/esri/core/workers/chunks/37d7c249114994a7dfac.js +1 -0
  21. package/assets/esri/core/workers/chunks/{e72aee3f857aa473822c.js → 39d69afc9da9db0c75ab.js} +1 -1
  22. package/assets/esri/core/workers/chunks/4102ed32b8dbdc32cb3b.js +1 -0
  23. package/assets/esri/core/workers/chunks/{7c3a1958990de095d3a1.js → 48316d91c06928f69f61.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{dbcef57073075e9cfdfe.js → 489fa17e60f25d5f33ae.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{19e5e011f929b6b940fe.js → 4bc091770bab38874848.js} +1 -1
  26. package/assets/esri/core/workers/chunks/4f0f6653b8e92c633d14.js +1 -0
  27. package/assets/esri/core/workers/chunks/{09f0c9f0b6aa58ae3c52.js → 4f22e5a7f81883e8e5b6.js} +1 -1
  28. package/assets/esri/core/workers/chunks/5185c63fecc5f493e142.js +1 -0
  29. package/assets/esri/core/workers/chunks/{6fff219dfaa86167c326.js → 5303d77a3ab1b7ddeef3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/548818df658b607a364e.js +1 -0
  31. package/assets/esri/core/workers/chunks/{22ec2b0a853911692dc8.js → 5993427325d1add18ed9.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{657b01a6df8dc46c5209.js → 5b84eba4a28e25b6d5c0.js} +1 -1
  33. package/assets/esri/core/workers/chunks/5c053d197935c65792ce.js +1 -0
  34. package/assets/esri/core/workers/chunks/{497214e9e82b936fc94e.js → 5ed381a268855bcad072.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{33718ea851645d9078d1.js → 605acf18cbeb89e4f29f.js} +1 -1
  36. package/assets/esri/core/workers/chunks/66cb5b294d7f251c2cc8.js +1 -0
  37. package/assets/esri/core/workers/chunks/6a5b5b80917a5375b9f6.js +1 -0
  38. package/assets/esri/core/workers/chunks/{4d7fcec769369c576847.js → 6e59ba2afd444eb4be18.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{a700f57af6856cb5313c.js → 70dc7ec6474f0801bc04.js} +1 -1
  40. package/assets/esri/core/workers/chunks/7e95896ac41c7e2ca26a.js +1 -0
  41. package/assets/esri/core/workers/chunks/80b0c88a76bd523a406a.js +1 -0
  42. package/assets/esri/core/workers/chunks/{5d12862042b6bf9f9d54.js → 82cb5defb0593e3017ff.js} +1 -1
  43. package/assets/esri/core/workers/chunks/837830e1cf712d4243a5.js +1 -0
  44. package/assets/esri/core/workers/chunks/87fb5d755860057da164.js +1 -0
  45. package/assets/esri/core/workers/chunks/{a29fb90226bd08157bd1.js → 8a104b35708a492bd614.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{5cb238318a24b70d5ac3.js → 8bc8caa384b24af12411.js} +1 -1
  47. package/assets/esri/core/workers/chunks/8e2558b14be70b273ce4.js +1 -0
  48. package/assets/esri/core/workers/chunks/{8e40c409a9b0a2a768a9.js → 8f02349602b072186a1f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{fa0f94318173db2034de.js → 90491262b6d6a126c32f.js} +1 -1
  50. package/assets/esri/core/workers/chunks/99f133a152afb4f1b067.js +1 -0
  51. package/assets/esri/core/workers/chunks/9eb1bfcb9b05f2a36748.js +1 -0
  52. package/assets/esri/core/workers/chunks/{0a36df6fdab95785d1ce.js → a2963ffc9a8c90822d2d.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{8e3c09c3524654830b14.js → a634764dec5404f4a1d7.js} +1 -1
  54. package/assets/esri/core/workers/chunks/a895da7fd64ebad3d5a4.js +1 -0
  55. package/assets/esri/core/workers/chunks/aa970a547c60c43d6c7f.js +1 -0
  56. package/assets/esri/core/workers/chunks/ab727ed4417b7dd94ce9.js +1 -0
  57. package/assets/esri/core/workers/chunks/{d1e8220dcae1d01d3c35.js → ad3ebd4f05cc673140f3.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{9f93513037a6e87433c4.js → adfb018f510e19a520fb.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{a1bd4eecca1e3272bffb.js → aff553c3d6544e20f188.js} +1 -1
  60. package/assets/esri/core/workers/chunks/b052d3ef5493eedb44a5.js +1 -0
  61. package/assets/esri/core/workers/chunks/b335e96f6bcac6d2f0ee.js +1 -0
  62. package/assets/esri/core/workers/chunks/b482132638f3b351724c.js +1 -0
  63. package/assets/esri/core/workers/chunks/{e1b25b1ce3bd4f0f2cda.js → bc5fa33afec5354601a1.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{dd1d9913b33d4e48baff.js → c35dad3d5ceaac6ad5a4.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{e1b573840ec1f7c3afd3.js → c4b2678dd46fa1e22f7e.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{bc931865a77fc48871d3.js → c94c797864a85342b105.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{e97250ae8da4bd0d6bc9.js → cad03967e132a28512c2.js} +1 -1
  68. package/assets/esri/core/workers/chunks/{904c116c6b093e0e970c.js → d1b361b8adf1c719a10a.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{c7a386ac90e58eb71935.js → da1a5537e2f2ca6cc247.js} +1 -1
  70. package/assets/esri/core/workers/chunks/dd447dfc50ee7f511b84.js +1 -0
  71. package/assets/esri/core/workers/chunks/e0fe6bb51ecc9b2faf69.js +1 -0
  72. package/assets/esri/core/workers/chunks/{0f9813e7d4e2b47b2c39.js → e47acdb1fbf797342716.js} +1 -1
  73. package/assets/esri/core/workers/chunks/e4e224983c3ee24fc51d.js +1 -0
  74. package/assets/esri/core/workers/chunks/{a16b471c3706ee37f9b6.js → e6f2ac738df16fb5e13a.js} +1 -1
  75. package/assets/esri/core/workers/chunks/ed1272e7681e561d843f.js +1 -0
  76. package/assets/esri/core/workers/chunks/ee391a41144855fc625d.js +1 -0
  77. package/assets/esri/core/workers/chunks/efea3e82cec476d486e0.js +1 -0
  78. package/assets/esri/core/workers/chunks/f054557e23978e174686.js +1 -0
  79. package/assets/esri/core/workers/chunks/{ff2614d96ca5228e9685.js → f4d4c1f13522f20b00d1.js} +1 -1
  80. package/assets/esri/core/workers/chunks/{897f9775f06ddbf6486f.js → f9385d7fb5ff20f7b252.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{b30de4936caa654d7817.js → fac020b6886ff2d75015.js} +1 -1
  82. package/assets/esri/core/workers/chunks/fe353a53968827bcd9cc.js +1 -0
  83. package/chunks/GlowComposition.glsl.js +3 -3
  84. package/chunks/RibbonLine.glsl.js +2 -2
  85. package/config.js +1 -1
  86. package/core/AsyncUpdate.js +1 -1
  87. package/core/mapCollectionUtils.js +1 -1
  88. package/editing/sharedTemplates/executor/builders/pointAtPolygonCentroid.js +1 -1
  89. package/geometry/Polygon.js +1 -1
  90. package/geometry/support/centroid.js +1 -1
  91. package/geometry/support/geometryUtils.js +1 -1
  92. package/graphic/AggregateGraphicOrigin.js +1 -1
  93. package/graphic/BuildingGraphicOrigin.js +1 -1
  94. package/graphic/CSVGraphicOrigin.js +1 -1
  95. package/graphic/CatalogGraphicOrigin.js +1 -1
  96. package/graphic/FeatureGraphicOrigin.js +1 -1
  97. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  98. package/graphic/GeoRSSGraphicOrigin.js +1 -1
  99. package/graphic/ImageryGraphicOrigin.js +1 -1
  100. package/graphic/ImageryTileGraphicOrigin.js +1 -1
  101. package/graphic/KMLGraphicOrigin.js +1 -1
  102. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  103. package/graphic/LinkChartGraphicOrigin.js +1 -1
  104. package/graphic/MapImageGraphicOrigin.js +1 -1
  105. package/graphic/MapNotesGraphicOrigin.js +1 -1
  106. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  107. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  108. package/graphic/ParquetGraphicOrigin.js +1 -1
  109. package/graphic/PointCloudGraphicOrigin.js +1 -1
  110. package/graphic/SceneGraphicOrigin.js +1 -1
  111. package/graphic/StreamGraphicOrigin.js +1 -1
  112. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  113. package/graphic/TileGraphicOrigin.js +1 -1
  114. package/graphic/TrackGraphicOrigin.js +1 -1
  115. package/graphic/VectorTileGraphicOrigin.js +1 -1
  116. package/graphic/VoxelGraphicOrigin.js +1 -1
  117. package/graphic/WCSGraphicOrigin.js +1 -1
  118. package/graphic/WFSGraphicOrigin.js +1 -1
  119. package/graphic/getIdFieldsProvider.js +5 -0
  120. package/graphic/getSliceableContainer.js +5 -0
  121. package/graphic/graphicOrigins.d.ts +0 -2
  122. package/graphic/graphicOrigins.js +1 -1
  123. package/interfaces.d.ts +172 -244
  124. package/kernel.js +1 -1
  125. package/layers/GaussianSplatLayer.js +1 -1
  126. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  127. package/layers/IntegratedMeshLayer.js +1 -1
  128. package/layers/Layer.js +1 -1
  129. package/layers/LinkChartLayer.js +1 -1
  130. package/layers/MapImageLayer.js +1 -1
  131. package/layers/OrientedImageryLayer.js +1 -1
  132. package/layers/VoxelLayer.js +1 -1
  133. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  134. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  135. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  136. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  137. package/layers/mixins/ArcGISImageService.js +1 -1
  138. package/layers/mixins/ImageryTileMixin.js +1 -1
  139. package/layers/mixins/OperationalLayer.js +1 -1
  140. package/layers/mixins/TemporalLayer.js +1 -1
  141. package/layers/mixins/TemporalSceneLayer.js +1 -1
  142. package/layers/mixins/operationalLayers.js +1 -1
  143. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  144. package/layers/support/FeatureFilter.js +1 -1
  145. package/layers/support/TimeInfo.js +1 -1
  146. package/layers/support/TrackInfo.js +1 -1
  147. package/layers/support/layersCreator.js +1 -1
  148. package/layers/support/rasterDatasets/multidimensionalUtils.js +1 -1
  149. package/package.json +2 -2
  150. package/portal/schemas/definitions.js +1 -1
  151. package/portal/support/portalLayers.js +1 -1
  152. package/rest/support/AttributeBinsQuery.js +1 -1
  153. package/rest/support/IdentifyParameters.js +1 -1
  154. package/rest/support/ImageGPSInfoParameters.js +1 -1
  155. package/rest/support/ImageHistogramParameters.js +1 -1
  156. package/rest/support/ImageIdentifyParameters.js +1 -1
  157. package/rest/support/ImageParameters.js +1 -1
  158. package/rest/support/ImageSampleParameters.js +1 -1
  159. package/rest/support/Query.js +1 -1
  160. package/rest/support/TopFeaturesQuery.js +1 -1
  161. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  162. package/support/revision.js +1 -1
  163. package/support/timeUtils.js +1 -1
  164. package/symbols/support/previewCIMSymbol.js +1 -1
  165. package/symbols/support/previewSymbol2D.js +1 -1
  166. package/symbols/support/renderUtils.js +1 -1
  167. package/symbols/support/svgUtils.js +1 -1
  168. package/symbols/support/symbolUtils.js +1 -1
  169. package/symbols/support/utils.js +1 -1
  170. package/time/TimeExtent.js +1 -1
  171. package/time/TimeInterval.js +1 -1
  172. package/views/2d/analysis/ElevationProfile/ElevationProfileInputVisualization2D.js +5 -0
  173. package/views/2d/analysis/ElevationProfile/ElevationProfileLineVisualization2D.js +5 -0
  174. package/views/2d/analysis/ElevationProfile/ElevationProfileVisualization2D.js +5 -0
  175. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  176. package/views/2d/engine/webgl/Painter.js +1 -1
  177. package/views/2d/engine/webgl/effects/FeatureEffect.js +1 -1
  178. package/views/2d/engine/webgl/effects/post-processing/EffectManager.js +1 -1
  179. package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
  180. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +1 -1
  181. package/views/2d/engine/webgl/shaderGraph/techniques/bloom/BloomTechnique.js +5 -0
  182. package/views/2d/engine/webgl/shaderGraph/techniques/blur/BlurTechnique.js +5 -0
  183. package/views/2d/engine/webgl/shaderGraph/techniques/colorize/ColorizeTechnique.js +5 -0
  184. package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityTechnique.js +1 -1
  185. package/views/2d/engine/webgl/shaderGraph/techniques/drop-shadow/DropShadowTechnique.js +5 -0
  186. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  187. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  188. package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillTechnique.js +1 -1
  189. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  190. package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
  191. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  192. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  193. package/views/2d/engine/webgl/shaderGraph/techniques/grid/GridTechnique.js +1 -1
  194. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  195. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  196. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  197. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineTechnique.js +1 -1
  198. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  199. package/views/2d/engine/webgl/shaderGraph/techniques/magnifier/MagnifierTechnique.js +1 -1
  200. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  201. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
  202. package/views/2d/engine/webgl/shaderGraph/techniques/opacity/OpacityTechnique.js +5 -0
  203. package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
  204. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
  205. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlitShader.js +5 -0
  206. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BloomShader.js +5 -0
  207. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlurShader.js +5 -0
  208. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ColorizeShader.js +5 -0
  209. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/DropShadowShader.js +5 -0
  210. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PostProcessingShader.js +5 -0
  211. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  212. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  213. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  214. package/views/2d/layers/MediaLayerView2D.js +1 -1
  215. package/views/2d/layers/TileLayerView2D.js +1 -1
  216. package/views/2d/layers/features/FeatureContainer.js +1 -1
  217. package/views/2d/layers/features/RenderState.js +1 -1
  218. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  219. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization3D.js +5 -0
  220. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization3D.js +5 -0
  221. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization3D.js +5 -0
  222. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  223. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  224. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  225. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  226. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  227. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +5 -0
  228. package/views/3d/analysis/VolumeMeasurement/volumeMeasurementGeometryUtils.js +5 -0
  229. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  230. package/views/3d/environment/Fog.js +1 -1
  231. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  232. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  233. package/views/3d/layers/I3SMeshView3D.js +1 -1
  234. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  235. package/views/3d/layers/SceneLayerView3D.js +1 -1
  236. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  237. package/views/3d/layers/graphics/QueryEngine.js +1 -1
  238. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  239. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  240. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  241. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  242. package/views/3d/layers/i3s/Intersector.js +1 -1
  243. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  244. package/views/3d/layers/support/FeatureVisibilityFilter.js +1 -1
  245. package/views/3d/layers/support/SublayerPopupHighlightHelper3D.js +1 -1
  246. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  247. package/views/3d/support/hitTest.js +1 -1
  248. package/views/3d/support/viewpointUtils.js +1 -1
  249. package/views/3d/terrain/Intersector.js +1 -1
  250. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  251. package/views/3d/webgl-engine/core/FBOCacheFormats.js +1 -1
  252. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +4 -4
  253. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColor.glsl.js +5 -0
  254. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorNode.js +1 -1
  255. package/views/3d/webgl-engine/effects/focusArea/FocusAreaColorTechnique.js +1 -1
  256. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.glsl.js +5 -0
  257. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskNode.js +1 -1
  258. package/views/3d/webgl-engine/effects/focusArea/FocusAreaMaskTechnique.js +1 -1
  259. package/views/3d/webgl-engine/effects/focusArea/FocusAreaOutlineItem.js +1 -1
  260. package/views/3d/webgl-engine/effects/glow/GlowComposition.glsl.js +1 -1
  261. package/views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js +1 -1
  262. package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
  263. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  264. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  265. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  266. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  267. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  268. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  269. package/views/3d/webgl-engine/materials/renderers/PerBufferData.js +1 -1
  270. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +5 -0
  271. package/views/VideoView.js +1 -1
  272. package/views/View.js +1 -1
  273. package/views/View2D.js +1 -1
  274. package/views/analysis/ElevationProfile/ElevationProfileController.js +1 -1
  275. package/views/analysis/ElevationProfile/ElevationProfileGenerationError.js +1 -1
  276. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +5 -0
  277. package/views/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +5 -0
  278. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  279. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  280. package/views/analysis/ElevationProfile/constants.js +1 -1
  281. package/views/analysis/ElevationProfile/elevationProfileInputVisualizationUtils.js +5 -0
  282. package/views/draw/support/createUtils.js +1 -1
  283. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  284. package/webdoc/support/timeProperties.js +1 -1
  285. package/webdoc/widgets/TimeSlider.js +1 -1
  286. package/webmap/InitialViewProperties.js +1 -1
  287. package/widgets/AreaMeasurement2D/AreaMeasurement2DTool.js +1 -1
  288. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  289. package/widgets/Legend/styles/card/CardView.js +1 -1
  290. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  291. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  292. package/widgets/Legend/styles/card/UnivariateAboveAndBelowRamp.js +1 -1
  293. package/widgets/Legend/styles/card/UnivariateColorSizeRamp.js +1 -1
  294. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  295. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  296. package/widgets/Legend/styles/classic/UnivariateAboveAndBelowRamp.js +1 -1
  297. package/widgets/Legend/styles/classic/UnivariateColorSizeRamp.js +1 -1
  298. package/widgets/Legend/styles/support/relationshipUtils.js +1 -1
  299. package/widgets/Legend/styles/support/univariateUtils.js +1 -1
  300. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  301. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  302. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  303. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  304. package/widgets/TimeSlider/TimeSliderViewModel.js +1 -1
  305. package/widgets/TimeSlider.js +1 -1
  306. package/widgets/UtilityNetworkTrace/support/GraphicHandler.js +1 -1
  307. package/TimeExtent.d.ts +0 -4
  308. package/TimeExtent.js +0 -5
  309. package/TimeInterval.d.ts +0 -4
  310. package/TimeInterval.js +0 -5
  311. package/assets/esri/core/workers/chunks/0264905da9fa56166538.js +0 -1
  312. package/assets/esri/core/workers/chunks/070b29cba896f46537f9.js +0 -1
  313. package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +0 -1
  314. package/assets/esri/core/workers/chunks/0cb2f7172190babb4139.js +0 -1
  315. package/assets/esri/core/workers/chunks/0cdf6b51f2a63f348530.js +0 -1
  316. package/assets/esri/core/workers/chunks/0d82cc6905b105b3568a.js +0 -1
  317. package/assets/esri/core/workers/chunks/0e28cb5d8d89ae29cdd0.js +0 -1
  318. package/assets/esri/core/workers/chunks/1143313f2f6f34deaad7.js +0 -1
  319. package/assets/esri/core/workers/chunks/14c6461ffd36319e1d74.js +0 -1
  320. package/assets/esri/core/workers/chunks/2394ac65d64e50399d76.js +0 -1
  321. package/assets/esri/core/workers/chunks/47febd4de836a33b51b1.js +0 -1
  322. package/assets/esri/core/workers/chunks/487afbf352d12c745430.js +0 -1
  323. package/assets/esri/core/workers/chunks/56b4dcd04c844eaacd60.js +0 -1
  324. package/assets/esri/core/workers/chunks/5d65987f2c1b5c56a799.js +0 -1
  325. package/assets/esri/core/workers/chunks/77e27f318b5863dd0f5c.js +0 -1
  326. package/assets/esri/core/workers/chunks/7b7f5028a488bb9c10f4.js +0 -1
  327. package/assets/esri/core/workers/chunks/808cfed7022e3846d5b2.js +0 -1
  328. package/assets/esri/core/workers/chunks/8bd5a0ff7dcf1067bf53.js +0 -1
  329. package/assets/esri/core/workers/chunks/99b20eef2893047fac10.js +0 -1
  330. package/assets/esri/core/workers/chunks/9f4e23bae621ff3ecea3.js +0 -1
  331. package/assets/esri/core/workers/chunks/a596d6ccb6103e594031.js +0 -1
  332. package/assets/esri/core/workers/chunks/a5e6359fadbd699b1c8e.js +0 -1
  333. package/assets/esri/core/workers/chunks/a7f3cdd9a249ef4572ce.js +0 -1
  334. package/assets/esri/core/workers/chunks/a80d769b0ed025f0df64.js +0 -1
  335. package/assets/esri/core/workers/chunks/af83dddddbfe25194527.js +0 -1
  336. package/assets/esri/core/workers/chunks/b057e6d593c1607cae61.js +0 -1
  337. package/assets/esri/core/workers/chunks/b1f1a26e7a2ef5b783ee.js +0 -1
  338. package/assets/esri/core/workers/chunks/b605dfdfed8ff8eda4f3.js +0 -1
  339. package/assets/esri/core/workers/chunks/c337c1a2dbc452780dd7.js +0 -1
  340. package/assets/esri/core/workers/chunks/c601bbdafdee5074b04f.js +0 -1
  341. package/assets/esri/core/workers/chunks/c696615cae5daefa2d98.js +0 -1
  342. package/assets/esri/core/workers/chunks/c8694a27e2cf28b010e8.js +0 -1
  343. package/assets/esri/core/workers/chunks/e6457ac25c0829ee039c.js +0 -1
  344. package/assets/esri/core/workers/chunks/eadac757f74470b89a36.js +0 -1
  345. package/assets/esri/core/workers/chunks/f4167fc895d4009df1c7.js +0 -1
  346. package/assets/esri/core/workers/chunks/f76774781865cb1411b0.js +0 -1
  347. package/assets/esri/core/workers/chunks/fd04df45cdcc6ff52554.js +0 -1
  348. package/chunks/TimeExtent.js +0 -5
  349. package/chunks/TimeInterval.js +0 -5
  350. package/graphic/IntegratedMesh3DTilesGraphicOrigin.d.ts +0 -4
  351. package/graphic/IntegratedMesh3DTilesGraphicOrigin.js +0 -5
  352. package/graphic/IntegratedMeshGraphicOrigin.d.ts +0 -4
  353. package/graphic/IntegratedMeshGraphicOrigin.js +0 -5
  354. package/graphic/isIntegratedMesh3DTilesGraphicOrigin.js +0 -5
  355. package/graphic/isIntegratedMeshGraphicOrigin.js +0 -5
  356. package/views/2d/engine/webgl/effects/post-processing/Bloom.js +0 -5
  357. package/views/2d/engine/webgl/effects/post-processing/Blur.js +0 -5
  358. package/views/2d/engine/webgl/effects/post-processing/Colorize.js +0 -5
  359. package/views/2d/engine/webgl/effects/post-processing/DropShadow.js +0 -5
  360. package/views/2d/engine/webgl/effects/post-processing/Opacity.js +0 -5
  361. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointVisualization.js +0 -5
  362. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +0 -5
  363. package/views/3d/analysis/ElevationProfile/ElevationProfileInputVisualization.js +0 -5
  364. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization.js +0 -5
  365. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +0 -5
  366. package/views/3d/webgl-engine/shaders/FocusAreaColor.glsl.js +0 -5
  367. package/views/3d/webgl-engine/shaders/FocusAreaMask.glsl.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>o,xm:()=>l});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function l(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(31635),n=r(92602),s=r(70333),l=r(78888),o=r(60999),a=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),g=r(43937),f=r(77548),v=r(20655),b=r(80812),w=r(41318),x=r(10407);const I=e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let l,o;if(n)l=r.portal.url;else try{l=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!l||!(0,m.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,p=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,x.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:b.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],I),I},M={credential:null,user:null}},9093:(e,t,r)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y){return[e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y]}},Symbol.toStringTag,{value:"Module"}))},16494:(e,t,r)=>{r.d(t,{W5:()=>l});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],l=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},26253:(e,t,r)=>{r.d(t,{T:()=>c});var i=r(31635),n=r(69540),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,a.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],c)},33446:(e,t,r)=>{r.d(t,{C:()=>l,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function l(e,t,r,s,l){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(l),o}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some(([t,r])=>e>=t&&e<=r)}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(7762),s=r(36708),l=r(10107),o=r(40608),a=r(80559);let u=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,o.$)("esri.core.CollectionFlattener")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>p,yR:()=>m});var i=r(66552),n=r(5443),s=r(91075),l=r(48526),o=r(86738),a=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:l.A,point:o.A,polyline:u.A,polygon:a.A}}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Te});var i=r(31635),n=r(92602),s=r(52106),l=r(13874),o=r(78888),a=r(7762),u=r(38961),p=r(49186),c=r(66552),m=r(4718),d=r(92071),h=r(74887),y=r(36708),g=r(16494),f=r(84952),v=r(10107),b=r(56507),w=r(36005),x=r(40608),I=r(43937),M=r(49422),C=r(5443),T=r(16930),S=r(83960),E=r(21325),A=r(4146),N=r(63074),F=r(16131),O=r(8303),_=r(54310),P=r(25036),Z=r(82935),U=r(38458),L=r(60694),j=r(10873),R=r(65008);r(44208),r(53966),r(87811);const q={visible:"visibleSublayers"};let $=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(q[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:l,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(l?l.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i.Cg)([(0,v.MZ)()],$.prototype,"layer",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"layers",null),(0,i.Cg)([(0,v.MZ)({type:Number})],$.prototype,"scale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"version",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"visibleSublayers",null),$=(0,i.Cg)([(0,x.$)("esri.layers.support.ExportWMSImageParameters")],$);var G,B=r(33446),H=r(4902),k=r(79901);let D=0,V=G=class extends((0,H.sA)(d.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},y.OH),(0,y.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},y.OH)])}get id(){return this._get("id")??D++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,b.dp)(a.A.ofType(G),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new G;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i.Cg)([(0,v.MZ)()],V.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({type:C.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i.Cg)([(0,w.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"layer",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"maxScale",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"minScale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"parent",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.w)("sublayers")],V.prototype,"castSublayers",null),(0,i.Cg)([(0,v.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=G=(0,i.Cg)([(0,x.$)("esri.layers.support.WMSSublayer")],V);var W=r(4576),J=r(96285);const z={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map(e=>e.textContent).join("\r\n");throw new p.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),n=ee("Service",r),s=i&&ee("Request",i);if(!i||!n||!s)return null;const l=ee("Layer",i);if(!l)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",a=re("Title",n,"")||re("Name",n,""),u=re("AccessConstraints",n,""),c=/^none$/i.test(u)?"":u,m=re("Abstract",n,""),d=parseInt(re("MaxWidth",n,"5000"),10),h=parseInt(re("MaxHeight",n,"5000"),10),y=se(s,"GetMap"),g=ne(s,"GetMap"),f=oe(l,o,t);if(!f)return null;let v,b=0;const w=Array.prototype.slice.call(i.childNodes),x=f.sublayers??[],I=e=>{null!=e&&x.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===b?v=e:1===b?(f.name&&(f.name="",I(oe(v,o,t))),I(oe(e,o,t))):I(oe(e,o,t)),b++)});const M=f.sublayers??[],C=f.fullExtents??[];0===M.length&&M.push(f),f.extent??=M[0].extent;const T=f.spatialReferences.length>0?f.spatialReferences:K(f),S=ne(s,"GetFeatureInfo"),E=S?se(s,"GetFeatureInfo"):null,A=Y(M),N=f.minScale||0,F=f.maxScale||0,O=f.dimensions??[],_=A.reduce((e,t)=>e.concat(t.dimensions??[]),[]),P=O.concat(_).filter(ue);let Z=null;if(P.length){const e=P.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(W.Ru),{start:t,end:r}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});Z={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,r]}}return{copyright:c,description:m,dimensions:O,extent:f.extent,fullExtents:C,featureInfoFormats:E,featureInfoUrl:S,mapUrl:g,maxWidth:d,maxHeight:h,maxScale:F,minScale:N,layers:A,spatialReferences:T,supportedImageFormatTypes:y,timeInfo:Z,title:a,version:o}}function K(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=K(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function Q(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(ae(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];ae(n)&&n.nodeName===e&&r.push(n)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){const i=parseFloat(e.getAttribute("minx")??"0"),n=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),l=parseFloat(e.getAttribute("maxy")??"0");return{xmin:r?isNaN(n)?-Number.MAX_VALUE:n:isNaN(i)?-Number.MAX_VALUE:i,ymin:r?isNaN(i)?-Number.MAX_VALUE:i:isNaN(n)?-Number.MAX_VALUE:n,xmax:r?isNaN(l)?Number.MAX_VALUE:l:isNaN(s)?Number.MAX_VALUE:s,ymax:r?isNaN(s)?Number.MAX_VALUE:s:isNaN(l)?Number.MAX_VALUE:l,spatialReference:{wkid:t}}}function ne(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r){const i=ee("OnlineResource",r);return i?Q("xlink:href",i,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const r=[],i=(0,f.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}}return null}function se(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map(({textContent:e})=>e).filter(W.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function le(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function oe(e,t,r){if(!e)return null;const i=e.getAttribute("queryable")?.toLowerCase(),n="1"===i||"true"===i,s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:n,spatialReferences:[],sublayers:null},l=ee("LatLonBoundingBox",e),o=ee("EX_GeographicBoundingBox",e),a=l?ie(l,4326):o?{xmin:parseFloat(re("westBoundLongitude",o,"0")),ymin:parseFloat(re("southBoundLatitude",o,"0")),xmax:parseFloat(re("eastBoundLongitude",o,"0")),ymax:parseFloat(re("northBoundLatitude",o,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=le(e,"MaxScaleDenominator",0),s.maxScale=le(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(u),i=r?.indexOf(":");if(i&&i>-1){let n=parseInt(r.slice(i+1),10);0===n||isNaN(n)||(n=z[n]??n);const l="1.3.0"===t?ie(e,n,(0,U.m)(n)):ie(e,n);l&&s.fullExtents&&s.fullExtents.push(l)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[r,i]=e.toUpperCase().split(":");"CRS"!==r&&"EPSG"!==r||(t=parseInt(i,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=z[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const i=oe(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=a,s.dimensions=te("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,l="0"!==Q("default",e,"0"),o="0"!==Q("nearestValue",e,"0"),a="0"!==Q("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:me(i),default:me(s),multipleValues:l,nearestValue:o,current:a}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:l,nearestValue:o}:{name:t,units:r,extent:ce(i),unitSymbol:n,default:ce(s),multipleValues:l,nearestValue:o}}),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(W.Ru):r.map(e=>parseFloat(e))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(W.Ru):r}function me(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:de(t[0]),max:de(t[1]),resolution:t.length>=3&&"0"!==t[2]?he(t[2]):void 0}}).filter(W.Ru):r.map(e=>de(e))}function de(e){return J.c9.fromISO(e,{zone:J.mQ.utcInstance}).toJSDate()}function he(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:ye(t[1]),months:ye(t[2]),days:ye(t[3]),hours:ye(t[4]),minutes:ye(t[5]),seconds:ye(t[6])}:null}function ye(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function ge(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function fe(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:r}=e;return t&&r&&t.getTime()===r.getTime()?`${ge(t)}`:`${t?ge(t):"0000-01-01T00:00:00Z"}/${r?ge(r):"9999-12-31T23:59:59Z"}`}const ve=new Set([102100,3857,102113,900913]),be=new Set([3395,54004]),we=new c.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function xe(e){return"text/html"===e}function Ie(e){return"text/plain"===e}let Me=class extends((0,N.dM)((0,Z.e)((0,_.J)((0,P.j)((0,F.q)((0,O.A)((0,d.P)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},y.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(h.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new C.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(xe)??this.featureInfoFormats.find(Ie)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(xe(e)||Ie(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new T.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(e=>e!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Ce(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Ce(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,f.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,f.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,S.X_)({extent:e,width:t})*n,l=new $({layer:this,scale:s}),{xmin:o,ymin:a,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ve.has(r)?t.find(e=>ve.has(e))||t.find(e=>be.has(e))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,U.m)(m)?`${a},${o},${p},${u}`:`${o},${a},${u},${p}`,h=l.toJSON(),y="1.3.0"===this.version?"crs":"srs";return{bbox:d,[y]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal};return(0,o.A)(n??"",a).then(e=>e.data)}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal},{data:u}=await(0,o.A)(n,a);return(0,B.m)(u,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,S.X_)({extent:e,width:t}),l=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new $({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},a={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...a},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,f.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,L.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?T.A.WebMercator:new T.A({wkid:t});return(0,E.aI)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,f.yM)(g.W5.sanitizeUrl((0,f.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new l.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new f.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new p.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Ce(e,t,r){e=e??[];const i=new Map;e.every(e=>null==e.id)&&(e=(0,m.o8)(e)).forEach((e,t)=>e.id=t);for(const n of e){const e=new V;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new a.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"allSublayers",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customParameters",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:!0}})],Me.prototype,"copyright",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Me.prototype,"fullExtent",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"fullExtent",["extent"])],Me.prototype,"readFullExtentFromItemOrMap",null),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Me.prototype,"writeFullExtent",null),(0,i.Cg)([(0,v.MZ)({type:[C.A]})],Me.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoFormat",null),(0,i.Cg)([(0,v.MZ)({type:[String],readOnly:!0})],Me.prototype,"featureInfoFormats",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoUrl",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"fetchFeatureInfoFunction",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],Me.prototype,"imageFormat",void 0),(0,i.Cg)([(0,w.w)("imageFormat",["supportedImageFormatTypes"])],Me.prototype,"readImageFormat",null),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Me.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Me.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,v.MZ)(j.fV)],Me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:["show","hide","hide-children"]})],Me.prototype,"listMode",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"mapUrl",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Me.prototype,"isReference",void 0),(0,i.Cg)([(0,v.MZ)({type:["WMS"]})],Me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,v.MZ)({type:T.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Me.prototype,"spatialReference",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Me.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i.Cg)([(0,v.MZ)({type:[b.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Me.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"spatialReferences")],Me.prototype,"writeSpatialReferences",null),(0,i.Cg)([(0,v.MZ)({type:a.A.ofType(V),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some(e=>{for(const r in e)if((0,M.R)(e,r,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],Me.prototype,"sublayers",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Me.prototype,"readSublayersFromItemOrMap",null),(0,i.Cg)([(0,w.w)("service","sublayers",["layers"])],Me.prototype,"readSublayers",null),(0,i.Cg)([(0,I.K)("sublayers",{layers:{type:[V]},visibleLayers:{type:[String]}})],Me.prototype,"writeSublayers",null),(0,i.Cg)([(0,v.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Me.prototype,"type",void 0),(0,i.Cg)([(0,v.MZ)(j.OZ)],Me.prototype,"url",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"version",void 0),Me=(0,i.Cg)([(0,x.$)("esri.layers.WMSLayer")],Me);const Te=Me},52106:(e,t,r)=>{r.d(t,{A:()=>x});var i,n=r(31635),s=r(13874),l=r(69540),o=r(51447),a=r(25482),u=r(53966),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(87811),r(40608)),h=r(12195),y=r(65864),g=r(50498),f=r(60950),v=r(54339),b=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,l.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,o.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,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;const t=(0,f.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const 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){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,v.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:w(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const 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;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,m.MZ)({value:null})],x.prototype,"attributes",null),(0,n.Cg)([(0,m.MZ)({value:null,types:g.yR,json:{read:y.rS}})],x.prototype,"geometry",null),(0,n.Cg)([(0,m.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,n.Cg)([(0,m.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,n.Cg)([(0,m.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,m.MZ)({value:null,types:b.Es})],x.prototype,"symbol",null),(0,n.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=i=(0,n.Cg)([(0,d.$)("esri.Graphic")],x)},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":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const 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:()=>n})},60950:(e,t,r)=>{r.d(t,{E_:()=>n,ym:()=>i});const i=Symbol("popupProvider");function n(e){return function(e){return!!e&&i in e}(e)?e[i]:null}},64272:(e,t,r)=>{r.d(t,{T:()=>m});var i,n=r(31635),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let m=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,e,t));let n=this.end;if(n){const r=(0,l.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,l.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let l,o;return n>=t&&n<=r?l=n:t>=n&&t<=s&&(l=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==l||null==o||isNaN(l)||isNaN(o)?i.empty:new i({start:l===-1/0?null:new Date(l),end:o===1/0?null:new Date(o)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,l.S1)(s,e,t,r)),null!=o&&(n.end=(0,l.S1)(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,n.Cg)([(0,a.w)("end")],m.prototype,"readEnd",null),(0,n.Cg)([(0,p.K)("end")],m.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,n.Cg)([(0,a.w)("start")],m.prototype,"readStart",null),(0,n.Cg)([(0,p.K)("start")],m.prototype,"writeStart",null),m=i=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],m);const d=new m,h=new m({start:void 0,end:void 0})},70328:(e,t,r)=>{r.d(t,{BI:()=>b,DC:()=>c,Ej:()=>d,Ie:()=>f,Jt:()=>v,Ne:()=>h,RF:()=>p,aI:()=>x,fA:()=>l,gE:()=>a,hZ:()=>g,iT:()=>m,is:()=>w,qv:()=>I,vI:()=>y,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function l(e,t,r,i,n,l,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=l,o}function o(e,t=s()){return function(e,t,r,i=s()){return g(i,I),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],l=e[2],o=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),l=Math.min(l,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=l,e[3]=o,e[4]=a,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[r,i,s,l,o,a]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=a,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=a,t[12]=l,t[13]=i,t[14]=s,t[15]=l,t[16]=i,t[17]=a,t[18]=l,t[19]=o,t[20]=s,t[21]=l,t[22]=o,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?g(e,I):s(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function x(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},82935:(e,t,r)=>{r.d(t,{B:()=>d,e:()=>h});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),o=r(89317),a=r(30524),u=r(96184),p=r(73133),c=r(64272),m=r(26253);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.j.fromJSON(r.timeOffsetUnits);return i&&n?new m.T({value:i,unit:n}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:c.T,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:m.T})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.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,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,l.$)("esri.layers.mixins.TemporalLayer")],r),r}},83960:(e,t,r)=>{r.d(t,{X_:()=>l,oW:()=>a,zx:()=>o});var i=r(34727),n=r(83047);const s=96;function l(e,t){const r=t||e.extent,i=e.width,l=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*l*n.dy*s:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69540),s=r(25482),l=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(43937),p=r(64272),c=r(26253),m=r(56400);function d(e,t){return c.T.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.T.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,l.MZ)({type:p.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,o.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,l.MZ)({type:c.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,o.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,l.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{4197:(e,t,r)=>{r.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>o,xm:()=>l});var i=r(34275),n=r(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function l(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function o(e,t,r){return Array.isArray(e)?e.slice(t,t+r):e.subarray(t,t+r)}function a(e){return[...e]}function u(e){const t=(0,n.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},8303:(e,t,r)=>{r.d(t,{A:()=>I});var i=r(31635),n=r(92602),s=r(70333),l=r(78888),o=r(60999),a=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),g=r(43937),f=r(77548),v=r(20655),b=r(80812),w=r(41318),x=r(10407);const I=e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,c.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let l,o;if(n)l=r.portal.url;else try{l=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!l||!(0,m.b8)(l,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${l}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const a=!0,u=!1,p=!1;if(!o)return{features:{edit:a,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new b.default({id:e,portal:{url:l}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,x.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,l.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,d.MZ)({type:b.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,d.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,y.$)("esri.layers.mixins.PortalLayer")],I),I},M={credential:null,user:null}},9093:(e,t,r)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>n,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:i,fromValues:function(e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y){return[e,t,r,i,n,s,l,o,a,u,p,c,m,d,h,y]}},Symbol.toStringTag,{value:"Module"}))},10184:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(31635),n=r(69540),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,l.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,a.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i.Cg)([(0,u.$)("esri.time.TimeInterval")],c)},16494:(e,t,r)=>{r.d(t,{W5:()=>l});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),s=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],l=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(s.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},33446:(e,t,r)=>{r.d(t,{C:()=>l,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function l(e,t,r,s,l){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(l),o}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some(([t,r])=>e>=t&&e<=r)}},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(7762),s=r(36708),l=r(10107),o=r(40608),a=r(80559);let u=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,l.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,l.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,o.$)("esri.core.CollectionFlattener")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>p,yR:()=>m});var i=r(66552),n=r(5443),s=r(91075),l=r(48526),o=r(86738),a=r(39829),u=r(82799);const p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:s.A,key:"type",typeMap:{extent:n.A,multipoint:l.A,point:o.A,polyline:u.A,polygon:a.A}}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Te});var i=r(31635),n=r(92602),s=r(52106),l=r(13874),o=r(78888),a=r(7762),u=r(38961),p=r(49186),c=r(66552),m=r(4718),d=r(92071),h=r(74887),y=r(36708),g=r(16494),f=r(84952),v=r(10107),b=r(56507),w=r(36005),x=r(40608),I=r(43937),M=r(49422),C=r(5443),T=r(16930),S=r(83960),A=r(21325),E=r(4146),N=r(63074),F=r(16131),O=r(8303),_=r(54310),P=r(25036),Z=r(82935),U=r(38458),L=r(60694),j=r(10873),R=r(65008);r(44208),r(53966),r(87811);const q={visible:"visibleSublayers"};let $=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("wms-sublayer-update",e=>this.notifyChange(q[e.propertyName]))],"layer"))}get layers(){return this.visibleSublayers.filter(({name:e})=>e).map(({name:e})=>e).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:l,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(l?l.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i.Cg)([(0,v.MZ)()],$.prototype,"layer",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"layers",null),(0,i.Cg)([(0,v.MZ)({type:Number})],$.prototype,"scale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"version",null),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],$.prototype,"visibleSublayers",null),$=(0,i.Cg)([(0,x.$)("esri.layers.support.ExportWMSImageParameters")],$);var G,B=r(33446),H=r(4902),k=r(79901);let D=0,V=G=class extends((0,H.sA)(d.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer},y.OH),(0,y.wB)(()=>this.layer,e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e},y.OH)])}get id(){return this._get("id")??D++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,b.dp)(a.A.ofType(G),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new G;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map(e=>e.clone())??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map(e=>e.clone())),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map(e=>e)),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i.Cg)([(0,v.MZ)()],V.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({type:C.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i.Cg)([(0,w.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"layer",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"maxScale",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"minScale",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"parent",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i.Cg)([(0,v.MZ)()],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,k.w)("sublayers")],V.prototype,"castSublayers",null),(0,i.Cg)([(0,v.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=G=(0,i.Cg)([(0,x.$)("esri.layers.support.WMSSublayer")],V);var W=r(4576),J=r(96285);const z={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map(e=>e.textContent).join("\r\n");throw new p.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=ee("Capability",r),n=ee("Service",r),s=i&&ee("Request",i);if(!i||!n||!s)return null;const l=ee("Layer",i);if(!l)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",a=re("Title",n,"")||re("Name",n,""),u=re("AccessConstraints",n,""),c=/^none$/i.test(u)?"":u,m=re("Abstract",n,""),d=parseInt(re("MaxWidth",n,"5000"),10),h=parseInt(re("MaxHeight",n,"5000"),10),y=se(s,"GetMap"),g=ne(s,"GetMap"),f=oe(l,o,t);if(!f)return null;let v,b=0;const w=Array.prototype.slice.call(i.childNodes),x=f.sublayers??[],I=e=>{null!=e&&x.push(e)};w.forEach(e=>{"Layer"===e.nodeName&&(0===b?v=e:1===b?(f.name&&(f.name="",I(oe(v,o,t))),I(oe(e,o,t))):I(oe(e,o,t)),b++)});const M=f.sublayers??[],C=f.fullExtents??[];0===M.length&&M.push(f),f.extent??=M[0].extent;const T=f.spatialReferences.length>0?f.spatialReferences:K(f),S=ne(s,"GetFeatureInfo"),A=S?se(s,"GetFeatureInfo"):null,E=Y(M),N=f.minScale||0,F=f.maxScale||0,O=f.dimensions??[],_=E.reduce((e,t)=>e.concat(t.dimensions??[]),[]),P=O.concat(_).filter(ue);let Z=null;if(P.length){const e=P.map(e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map(e=>e.getTime()):t?.map(e=>[e.min.getTime(),e.max.getTime()])}).flat(2).filter(W.Ru),{start:t,end:r}=e.reduce((e,t)=>({start:Math.min(e.start,t),end:Math.max(e.end,t)}),{start:1/0,end:-1/0});Z={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[t,r]}}return{copyright:c,description:m,dimensions:O,extent:f.extent,fullExtents:C,featureInfoFormats:A,featureInfoUrl:S,mapUrl:g,maxWidth:d,maxHeight:h,maxScale:F,minScale:N,layers:E,spatialReferences:T,supportedImageFormatTypes:y,timeInfo:Z,title:a,version:o}}function K(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=K(t);if(e.length>0)return e}return[]}function Y(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Y(r.sublayers)),delete r.sublayers);return t}function Q(e,t,r){return t.getAttribute(e)??r}function ee(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(ae(i)&&i.nodeName===e)return i}return null}function te(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];ae(n)&&n.nodeName===e&&r.push(n)}return r}function re(e,t,r){return ee(e,t)?.textContent??r}function ie(e,t,r){const i=parseFloat(e.getAttribute("minx")??"0"),n=parseFloat(e.getAttribute("miny")??"0"),s=parseFloat(e.getAttribute("maxx")??"0"),l=parseFloat(e.getAttribute("maxy")??"0");return{xmin:r?isNaN(n)?-Number.MAX_VALUE:n:isNaN(i)?-Number.MAX_VALUE:i,ymin:r?isNaN(i)?-Number.MAX_VALUE:i:isNaN(n)?-Number.MAX_VALUE:n,xmax:r?isNaN(l)?Number.MAX_VALUE:l:isNaN(s)?Number.MAX_VALUE:s,ymax:r?isNaN(s)?Number.MAX_VALUE:s:isNaN(l)?Number.MAX_VALUE:l,spatialReference:{wkid:t}}}function ne(e,t){const r=ee(t,e);if(r){const e=ee("DCPType",r);if(e){const t=ee("HTTP",e);if(t){const e=ee("Get",t);if(e){let t=function(e,t,r){const i=ee("OnlineResource",r);return i?Q("xlink:href",i,null):null}(0,0,e);if(t){const e=t.indexOf("&");return-1!==e&&e===t.length-1&&(t=t.slice(0,-1)),function(e,t){const r=[],i=(0,f.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}}return null}function se(e,t){const r=te("Operation",e);if(!r.length)return te("Format",ee(t,e)).map(({textContent:e})=>e).filter(W.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=te("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function le(e,t,r){const i=ee(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function oe(e,t,r){if(!e)return null;const i=e.getAttribute("queryable")?.toLowerCase(),n="1"===i||"true"===i,s={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:n,spatialReferences:[],sublayers:null},l=ee("LatLonBoundingBox",e),o=ee("EX_GeographicBoundingBox",e),a=l?ie(l,4326):o?{xmin:parseFloat(re("westBoundLongitude",o,"0")),ymin:parseFloat(re("southBoundLatitude",o,"0")),xmax:parseFloat(re("eastBoundLongitude",o,"0")),ymax:parseFloat(re("northBoundLatitude",o,"0")),spatialReference:{wkid:4326}}:{xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};s.minScale=le(e,"MaxScaleDenominator",0),s.maxScale=le(e,"MinScaleDenominator",0);const u=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach(e=>{if("Name"===e.nodeName)s.name=e.textContent||"";else if("Title"===e.nodeName)s.title=e.textContent||"";else if("Abstract"===e.nodeName)s.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(u),i=r?.indexOf(":");if(i&&i>-1){let n=parseInt(r.slice(i+1),10);0===n||isNaN(n)||(n=z[n]??n);const l="1.3.0"===t?ie(e,n,(0,U.m)(n)):ie(e,n);l&&s.fullExtents&&s.fullExtents.push(l)}}else if(e.nodeName===u)(e.textContent?.split(" ")??[]).forEach(e=>{let t=NaN;if(e.includes(":")){const[r,i]=e.toUpperCase().split(":");"CRS"!==r&&"EPSG"!==r||(t=parseInt(i,10))}else t=parseInt(e,10);if(0!==t&&!isNaN(t)){const e=z[t]??t;s.spatialReferences.includes(e)||s.spatialReferences.push(e)}});else if("Style"!==e.nodeName||s.legendUrl){if("Layer"===e.nodeName){const i=oe(e,t,r);i&&(i.parentLayerId=s.id,s.sublayers||(s.sublayers=[]),s.sublayers.push(i))}}else{const t=ee("LegendURL",e);if(t){const e=ee("OnlineResource",t);e&&(s.legendUrl=e.getAttribute("xlink:href"))}}}),s.extent=a,s.dimensions=te("Dimension",e).filter(e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent).map(e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,l="0"!==Q("default",e,"0"),o="0"!==Q("nearestValue",e,"0"),a="0"!==Q("current",e,"0");return ue({name:t,units:r})?{name:"time",units:"ISO8601",extent:me(i),default:me(s),multipleValues:l,nearestValue:o,current:a}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:l,nearestValue:o}:{name:t,units:r,extent:ce(i),unitSymbol:n,default:ce(s),multipleValues:l,nearestValue:o}}),s}function ae(e){return e.nodeType===Node.ELEMENT_NODE}function ue(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}}).filter(W.Ru):r.map(e=>parseFloat(e))}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}}).filter(W.Ru):r}function me(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map(e=>{const t=e.split("/");return t.length<2?null:{min:de(t[0]),max:de(t[1]),resolution:t.length>=3&&"0"!==t[2]?he(t[2]):void 0}}).filter(W.Ru):r.map(e=>de(e))}function de(e){return J.c9.fromISO(e,{zone:J.mQ.utcInstance}).toJSDate()}function he(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:ye(t[1]),months:ye(t[2]),days:ye(t[3]),hours:ye(t[4]),minutes:ye(t[5]),seconds:ye(t[6])}:null}function ye(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function ge(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}function fe(e){if(!e||e.isAllTime||e.isEmpty)return;const{start:t,end:r}=e;return t&&r&&t.getTime()===r.getTime()?`${ge(t)}`:`${t?ge(t):"0000-01-01T00:00:00Z"}/${r?ge(r):"9999-12-31T23:59:59Z"}`}const ve=new Set([102100,3857,102113,900913]),be=new Set([3395,54004]),we=new c.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function xe(e){return"text/html"===e}function Ie(e){return"text/plain"===e}let Me=class extends((0,N.dM)((0,Z.e)((0,_.J)((0,P.j)((0,F.q)((0,O.A)((0,d.P)(E.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,y.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=e.layer=this},y.OH),(0,y.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},y.OH),(0,y.wB)(()=>this.sublayers,(e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this},y.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(h.QP).then(()=>this._fetchService(t)).then(()=>this._checkLayerValidity())),Promise.resolve(this)}set timeInfo(e){super.timeInfo=e}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new C.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(xe)??this.featureInfoFormats.find(Ie)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(xe(e)||Ie(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new T.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter(e=>e!==r),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return Ce(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return Ce(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten(({sublayers:e})=>e??[]);for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter(({visible:e,sublayers:t})=>e&&!t).map(({name:e})=>e).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,f.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,f.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,S.X_)({extent:e,width:t})*n,l=new $({layer:this,scale:s}),{xmin:o,ymin:a,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ve.has(r)?t.find(e=>ve.has(e))||t.find(e=>be.has(e))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,U.m)(m)?`${a},${o},${p},${u}`:`${o},${a},${u},${p}`,h=l.toJSON(),y="1.3.0"===this.version?"crs":"srs";return{bbox:d,[y]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal};return(0,o.A)(n??"",a).then(e=>e.data)}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const l=fe(i?.timeExtent),a={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:l,...this.refreshParameters}),signal:i?.signal},{data:u}=await(0,o.A)(n,a);return(0,B.m)(u,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,S.X_)({extent:e,width:t}),l=function(e){const t=e.filter(e=>e.popupEnabled&&e.name&&e.queryable);return t.length?t.map(({name:e})=>e).join():null}(new $({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==l)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},a={query_layers:l,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...a},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,f.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}findSublayerByName(e){return this.allSublayers.find(t=>t.name===e)}serviceSupportsSpatialReference(e){return(0,L.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some(t=>{const r=900913===t?T.A.WebMercator:new T.A({wkid:t});return(0,A.aI)(r,e)})}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,f.yM)(g.W5.sanitizeUrl((0,f.s2)(e))),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new l.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new f.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_checkLayerValidity(){if(!this.allSublayers.length)throw new p.A("wmslayer:empty-layer","The layer doesn't have any sublayer")}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function Ce(e,t,r){e=e??[];const i=new Map;e.every(e=>null==e.id)&&(e=(0,m.o8)(e)).forEach((e,t)=>e.id=t);for(const n of e){const e=new V;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new a.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"allSublayers",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customParameters",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:Object,write:!0}})],Me.prototype,"customLayerParameters",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:!0}})],Me.prototype,"copyright",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"description",void 0),(0,i.Cg)([(0,v.MZ)({readOnly:!0})],Me.prototype,"dimensions",void 0),(0,i.Cg)([(0,v.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],Me.prototype,"fullExtent",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"fullExtent",["extent"])],Me.prototype,"readFullExtentFromItemOrMap",null),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],Me.prototype,"writeFullExtent",null),(0,i.Cg)([(0,v.MZ)({type:[C.A]})],Me.prototype,"fullExtents",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoFormat",null),(0,i.Cg)([(0,v.MZ)({type:[String],readOnly:!0})],Me.prototype,"featureInfoFormats",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"featureInfoUrl",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"fetchFeatureInfoFunction",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:we.jsonValues,read:{reader:we.read,source:"format"},write:{writer:we.write,target:"format"}}}}})],Me.prototype,"imageFormat",void 0),(0,i.Cg)([(0,w.w)("imageFormat",["supportedImageFormatTypes"])],Me.prototype,"readImageFormat",null),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],Me.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,v.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],Me.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,v.MZ)(j.fV)],Me.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,v.MZ)({type:["show","hide","hide-children"]})],Me.prototype,"listMode",void 0),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"mapUrl",void 0),(0,i.Cg)([(0,v.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],Me.prototype,"isReference",void 0),(0,i.Cg)([(0,v.MZ)({type:["WMS"]})],Me.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,v.MZ)()],Me.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,v.MZ)({type:T.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],Me.prototype,"spatialReference",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],Me.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i.Cg)([(0,v.MZ)({type:[b.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],Me.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,I.K)(["web-document","portal-item"],"spatialReferences")],Me.prototype,"writeSpatialReferences",null),(0,i.Cg)([(0,v.MZ)({type:a.A.ofType(V),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some(e=>{for(const r in e)if((0,M.R)(e,r,null,t))return!0;return!1})}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],Me.prototype,"sublayers",void 0),(0,i.Cg)([(0,w.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],Me.prototype,"readSublayersFromItemOrMap",null),(0,i.Cg)([(0,w.w)("service","sublayers",["layers"])],Me.prototype,"readSublayers",null),(0,i.Cg)([(0,I.K)("sublayers",{layers:{type:[V]},visibleLayers:{type:[String]}})],Me.prototype,"writeSublayers",null),(0,i.Cg)([(0,v.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],Me.prototype,"type",void 0),(0,i.Cg)([(0,v.MZ)(j.OZ)],Me.prototype,"url",null),(0,i.Cg)([(0,v.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],Me.prototype,"version",void 0),Me=(0,i.Cg)([(0,x.$)("esri.layers.WMSLayer")],Me);const Te=Me},52106:(e,t,r)=>{r.d(t,{A:()=>I});var i,n=r(31635),s=r(13874),l=r(69540),o=r(51447),a=r(25482),u=r(53966),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(87811),r(40608)),h=r(12195),y=r(65864),g=r(50498),f=r(55156),v=r(60950),b=r(54339),w=r(33910);function x(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,l.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,o.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,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;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const 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){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const 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;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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,p.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,n.Cg)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,m.MZ)({value:null})],I.prototype,"attributes",null),(0,n.Cg)([(0,m.MZ)({value:null,types:g.yR,json:{read:y.rS}})],I.prototype,"geometry",null),(0,n.Cg)([(0,m.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,n.Cg)([(0,m.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,n.Cg)([(0,m.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,n.Cg)([(0,m.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,m.MZ)({value:null,types:w.Es})],I.prototype,"symbol",null),(0,n.Cg)([(0,m.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,n.Cg)([(0,d.$)("esri.Graphic")],I)},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":{const r=[];for(const i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const 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:()=>n})},55156:(e,t,r)=>{r.d(t,{I:()=>n,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}},70328:(e,t,r)=>{r.d(t,{BI:()=>b,DC:()=>c,Ej:()=>d,Ie:()=>f,Jt:()=>v,Ne:()=>h,RF:()=>p,aI:()=>x,fA:()=>l,gE:()=>a,hZ:()=>g,iT:()=>m,is:()=>w,qv:()=>I,vI:()=>y,vY:()=>o,v_:()=>M,vt:()=>s,w1:()=>u});var i=r(5443),n=(r(19419),r(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function l(e,t,r,i,n,l,o=s()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=n,o[5]=l,o}function o(e,t=s()){return function(e,t,r,i=s()){return g(i,I),function(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],l=e[2],o=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),l=Math.min(l,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=l,e[3]=o,e[4]=a,e[5]=u}(i,e,t,r),i}(e,0,e.length/3,t)}function a(e,t=(0,n.jh)(24)){const[r,i,s,l,o,a]=e;return t[0]=r,t[1]=i,t[2]=s,t[3]=r,t[4]=i,t[5]=a,t[6]=r,t[7]=o,t[8]=s,t[9]=r,t[10]=o,t[11]=a,t[12]=l,t[13]=i,t[14]=s,t[15]=l,t[16]=i,t[17]=a,t[18]=l,t[19]=o,t[20]=s,t[21]=l,t[22]=o,t[23]=a,t}function u(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function m(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function f(e){return e?g(e,I):s(I)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function b(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function w(e){return 6===e.length}function x(e,t,r){if(null==e||null==t)return e===t;if(!w(e)||!w(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},79677:(e,t,r)=>{r.d(t,{A:()=>m});var i,n=r(31635),s=r(25482),l=r(88930),o=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let m=class extends s.o{static{i=this}static get allTime(){return d}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,l.lL)(r,e,t));let n=this.end;if(n){const r=(0,l.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,l.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let l,o;return n>=t&&n<=r?l=n:t>=n&&t<=s&&(l=t),r>=n&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==l||null==o||isNaN(l)||isNaN(o)?i.empty:new i({start:l===-1/0?null:new Date(l),end:o===1/0?null:new Date(o)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:o}=this;return null!=s&&(n.start=(0,l.S1)(s,e,t,r)),null!=o&&(n.end=(0,l.S1)(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,n.Cg)([(0,a.w)("end")],m.prototype,"readEnd",null),(0,n.Cg)([(0,p.K)("end")],m.prototype,"writeEnd",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,n.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,n.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,n.Cg)([(0,a.w)("start")],m.prototype,"readStart",null),(0,n.Cg)([(0,p.K)("start")],m.prototype,"writeStart",null),m=i=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],m);const d=new m,h=new m({start:void 0,end:void 0})},82935:(e,t,r)=>{r.d(t,{B:()=>d,e:()=>h});var i=r(31635),n=r(10107),s=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),o=r(89317),a=r(30524),u=r(96184),p=r(73133),c=r(79677),m=r(10184);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}},h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.j.fromJSON(r.timeOffsetUnits);return i&&n?new m.A({value:i,unit:n}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:c.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:m.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.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,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,l.$)("esri.layers.mixins.TemporalLayer")],r),r}},83960:(e,t,r)=>{r.d(t,{X_:()=>l,oW:()=>a,zx:()=>o});var i=r(34727),n=r(83047);const s=96;function l(e,t){const r=t||e.extent,i=e.width,l=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*l*n.dy*s:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},96184:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69540),s=r(25482),l=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),u=r(43937),p=r(79677),c=r(10184),m=r(56400);function d(e,t){return c.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?p.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,o.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,o.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,l.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2042,7136],{4197:(e,t,n)=>{n.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var i=n(34275),r=n(9093);function s(e){return e<=i.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,i.iu)(e)?e.byteLength/8:e.length)<=i.y9?Array.from(e):new Float64Array(e)}function l(e,t,n){return Array.isArray(e)?e.slice(t,t+n):e.subarray(t,t+n)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let n=0;n<16;++n)t[n]=e[n];return t}},9093:(e,t,n)=>{function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}n.d(t,{o8:()=>r,vt:()=>i,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:i,fromValues:function(e,t,n,i,r,s,o,l,a,u,c,p,h,f,m,y){return[e,t,n,i,r,s,o,l,a,u,c,p,h,f,m,y]}},Symbol.toStringTag,{value:"Module"}))},13069:(e,t,n)=>{n.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function r(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17136:(e,t,n)=>{n.d(t,{O7:()=>T,el:()=>v});var i=n(92602),r=n(49186),s=n(53966),o=n(39829),l=n(82799),a=n(80754),u=n(21325),c=n(28735),p=n(78888),h=n(65864),f=n(2272),m=n(84952),y=n(92300);const g=()=>s.A.getLogger("esri.geometry.support.normalizeUtils");function d(e){return"polygon"===e[0].type}function b(e){return"polyline"===e[0].type}function M(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g().error(e),new r.A("internal:geometry",e)}const n=(0,a.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],l=e[i+1][1],a=Math.sqrt((o-r)*(o-r)+(l-s)*(l-s)),u=(l-s)/a,c=(o-r)/a,p=a/t;if(p>1){for(let e=1;e<=p-1;e++){const i=e*t,o=c*i+r,l=u*i+s;n.push([o,l])}const e=(a+Math.floor(p-1)*t)/2,i=c*e+r,o=u*e+s;n.push([i,o])}n.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.ci)(t,!0)}return n&&(e=(0,a.kS)(e,n)),e}function F(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,a.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,a.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,a.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,a.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function x(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,a.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,a.kd)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(r===n){if(d(e))for(const t of(0,a.r8)(s))e[r]=e[r].addRing(t);else if(b(e))for(const t of(0,a.r8)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function v(e,t,n){if(!Array.isArray(e))return v([e],t);t&&"string"!=typeof t&&g().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,d,b,T,_,A,S,w,N=0;const I=[],R=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,d=(0,u.Vp)(s),b=s.isWebMercator,A=b?102100:4326,T=a.j7[A].maxX,_=a.j7[A].minX,S=a.j7[A].plus180Line,w=a.j7[A].minus180Line),d)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(F(t.clone(),T,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>F(e,T,_)),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,d);R.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,n=(0,a.kd)(e.xmin,_)*(2*T);let i=0===n?t.clone():(0,a.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(S)&&s!==T?(N=s>N?s:N,i=M(i,b),I.push(i),R.push("cut")):e.intersects(w)&&r!==_?(N=s*(2*T)>N?s*(2*T):N,i=M(i,b,360),I.push(i),R.push("cut")):R.push(i)}else R.push(t.clone());else R.push(t);else R.push(t);let Z=(0,a.kd)(N,T),G=-90;const O=Z,C=new l.A;for(;Z>0;){const e=360*Z-180;C.addPath([[e,G],[e,-1*G]]),G*=-1,Z--}if(I.length>0&&O>0){const t=x(I,await async function(e,t,n,i){const r=(0,f.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,u.YX)(s),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},l=await(0,p.A)(r.path+"/cut",o),{cutIndexes:a,geometries:c=[]}=l.data;return{cutIndexes:a,geometries:c.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=s,t})}}(r,I,C,n)),i=[],s=[];for(let n=0;n<R.length;n++){const r=R[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(b?(0,c.Gh)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,m.An)(e):e,r=t[0].spatialReference,s=(0,h.$B)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,u.YX)(r),geometries:JSON.stringify((0,y.X)(t))}},{data:l}=await(0,p.A)(i.path+"/simplify",o);return(0,y.V)(l.geometries,s,r)}(r,i,n),l=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?l.push(t):l.push(b?(0,c.Gh)(o.shift()):o.shift())}return l}const j=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)j.push(t);else{const e=I.shift();j.push(!0===b?(0,c.Gh)(e):e)}}return j}function T(e,t,n){const i=(0,u.Vp)(n);if(null==i)return e;const[r,s]=i.valid,o=2*s;let l=0,a=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<r&&(l=-Math.ceil(Math.abs(t-r)/o)),e>s?a=Math.ceil(Math.abs(e-s)/o):e<r&&(a=-Math.ceil(Math.abs(e-r)/o));let c=e+(l-a)*o;const p=c-t;return p>s?c-=o:p<r&&(c+=o),c}},22671:(e,t,n)=>{n.d(t,{A:()=>b});var i,r=n(31635),s=n(52106),o=n(66552),l=n(25482),a=n(4718),u=n(10107),c=(n(44208),n(53966),n(36005)),p=n(40608),h=n(43937),f=n(16930),m=n(65864),y=n(50498),g=n(20437);const d=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends l.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,s.A)}writeGeometryType(e,t,n,i){if(e)return void d.write(e,t,n,i);const{features:r}=this;if(r)for(const e of r)if(null!=e?.geometry)return void d.write(e.geometry.type,t,n,i)}readQueryGeometry(e,t){if(!e)return null;const n=!!e.spatialReference,i=(0,m.rS)(e);return i&&!n&&t.spatialReference&&(i.spatialReference=f.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:n}=this;if(n)for(const e of n)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,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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let n=0;n<t.features.length;n++){const i=t.features[n];if(i.geometry){const t=e?.[n];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,n],translate:[i,r]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((r-e)/n));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:n}=this;if(!n)return this;const{translate:[i,r],scale:[s,o]}=n;let l=null,a=null;if(this.hasZ&&null!=n?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=n;l=n=>n*t+e}if(this.hasM&&null!=n?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=n;a=n=>null==n?n:n*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>r-e*o,l,a);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,n){const i=f.A.fromJSON(t.spatialReference),r=[];for(let t=0;t<e.length;t++){const s=e[t],o=n.fromJSON(s),l=s.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=i);const a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(const e in u){const t=u[e],n=a[e],r=n?.spatialReference;null==t||r||(t.spatialReference=i)}r.push(o)}return r}_quantizePoints(e,t,n){let i,r;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=n(l[1]);e===i&&o===r||(s.push([e-i,o-r]),i=e,r=o)}else i=t(l[0]),r=n(l[1]),s.push([i,r])}return s.length>0?s:null}_getQuantizationFunction(e,t,n){return"point"===e?e=>(e.x=t(e.x),e.y=n(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.Bi)(e)?e.rings:e.paths,r=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,n);o&&r.push(o)}return r.length>0?((0,m.Bi)(e)?e.rings=r:e.paths=r,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,n);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,n,i,r){return"point"===e?e=>{e.x=t(e.x),e.y=n(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,r=i.length;e<r;e++){const r=i[e];e>0?(o+=r[0],l+=r[1]):(o=r[0],l=r[1]),r[0]=t(o),r[1]=n(l)}}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2]),n[3]=r(n[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=i(n[2])}}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,n=t.length;e<n;e++){const n=t[e];n[2]=r(n[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=n(e.ymin),e.xmax=t(e.xmax),e.ymax=n(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),r&&null!=e.mmax&&null!=e.mmin&&(e.mmax=r(e.mmax),e.mmin=r(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=n(l)}if(i&&r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=r(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(r)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=r(t[2])}}:null}};(0,r.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,r.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,r.Cg)([(0,c.w)("features")],b.prototype,"readFeatures",null),(0,r.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,r.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:d.read}}})],b.prototype,"geometryType",void 0),(0,r.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,r.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,r.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,r.Cg)([(0,c.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,r.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,r.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,r.Cg)([(0,p.$)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},50498:(e,t,n)=>{n.d(t,{Ye:()=>p,gy:()=>c,yR:()=>h});var i=n(66552),r=n(5443),s=n(91075),o=n(48526),l=n(86738),a=n(39829),u=n(82799);const c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),h={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,n)=>{n.d(t,{A:()=>v});var i,r=n(31635),s=n(13874),o=n(69540),l=n(51447),a=n(25482),u=n(53966),c=n(36708),p=n(24326),h=n(10107),f=(n(44208),n(87811),n(40608)),m=n(12195),y=n(65864),g=n(50498),d=n(55156),b=n(60950),M=n(54339),F=n(33910);function x(e){if(null==e)return null;const t={};for(const n in e){const i=e[n];i&&(t[n]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let v=class extends((0,o.OU)(a.o)){static{i=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,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;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const n=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[n,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){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,d.I)(this.origin);if(e)return(0,M.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){const e=(0,d.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const n={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",n,n,e.action)}}_notifyLayer(e,t,n,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:n};"origin-transform"===e&&(r.action=i),"attributes"===e&&(r.attributeName=i),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const i=(0,y.rS)(e[n]);i&&(t[n]=i)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,h.MZ)({value:null})],v.prototype,"attributes",null),(0,r.Cg)([(0,h.MZ)({value:null,types:g.yR,json:{read:y.rS}})],v.prototype,"geometry",null),(0,r.Cg)([(0,h.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r.Cg)([(0,h.MZ)({clonable:!1})],v.prototype,"layer",void 0),(0,r.Cg)([(0,h.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r.Cg)([(0,h.MZ)({type:s.A,value:null})],v.prototype,"popupTemplate",null),(0,r.Cg)([(0,h.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,h.MZ)({value:null,types:F.Es})],v.prototype,"symbol",null),(0,r.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],v.prototype,"_version",void 0),(0,r.Cg)([(0,h.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=i=(0,r.Cg)([(0,f.$)("esri.Graphic")],v)},54339:(e,t,n)=>{function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const n=[];for(const i of t.fieldNames)n.push(e.attributes[i]??null);return JSON.stringify(n)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const n=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(n)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}n.d(t,{W:()=>i,r:()=>r})},55156:(e,t,n)=>{n.d(t,{I:()=>r,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&i in t?e[i]:void 0;var t}},70328:(e,t,n)=>{n.d(t,{BI:()=>M,DC:()=>p,Ej:()=>f,Ie:()=>d,Jt:()=>b,Ne:()=>m,RF:()=>c,aI:()=>x,fA:()=>o,gE:()=>a,hZ:()=>g,iT:()=>h,is:()=>F,qv:()=>v,vI:()=>y,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var i=n(5443),r=(n(19419),n(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,n,i,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,n,i=s()){return g(i,v),function(e,t,n=0,i=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<i;e++)r=Math.min(r,t[n+3*e]),s=Math.min(s,t[n+3*e+1]),o=Math.min(o,t[n+3*e+2]),l=Math.max(l,t[n+3*e]),a=Math.max(a,t[n+3*e+1]),u=Math.max(u,t[n+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(i,e,t,n),i}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[n,i,s,o,l,a]=e;return t[0]=n,t[1]=i,t[2]=s,t[3]=n,t[4]=i,t[5]=a,t[6]=n,t[7]=l,t[8]=s,t[9]=n,t[10]=l,t[11]=a,t[12]=o,t[13]=i,t[14]=s,t[15]=o,t[16]=i,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new i.A(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function h(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function y(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function g(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function d(e){return e?g(e,v):s(v)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function M(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function F(e){return 6===e.length}function x(e,t,n){if(null==e||null==t)return e===t;if(!F(e)||!F(t))return!1;if(n){for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>u});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},92300:(e,t,n)=>{n.d(t,{V:()=>s,X:()=>r});var i=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}},95466:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(49186),r=n(53966),s=n(91869),o=n(3330),l=n(12195),a=n(30524),u=n(98623),c=n(56400),p=n(96285);const h=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],d(e))}static fromLayerJSON(e){return new f(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const n=[];for(const e of this.fields){const t=e?.name,i=y(t);if(t&&i){const r=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(i,e),n.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(m(e))??this._normalizedFieldsMap.get(y(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):g.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(h,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function m(e){return e.trim().toLowerCase()}function y(e){return(0,a.rS)(e)?.toLowerCase()??""}const g=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){const t=new Map;if(!e.fields)return t;const n=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:r}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,c.ZS)(i.timeReference):l:null,h=new Map([[m(r?.creationDateField??""),a],[m(r?.editDateField??""),a],[m(s),p],[m(o),p]]);for(const{name:i,type:r}of e.fields)if(g.has(r))t.set(i,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(i,null);else if(n)t.set(i,u.L5);else{const e=h.get(m(i??""))??l;t.set(i,e)}return t}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1956],{7562:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(43937);const d=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=o=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.o8)(e))}clone(){return new o({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,l.MZ)({type:Object})],c.prototype,"statisticParameters",void 0),(0,i.Cg)([(0,u.K)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.StatisticDefinition")],c)},27348:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(5443);const d=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=o=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new o((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,i.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.QuantizationParameters")],c)},27733:(e,t,r)=>{r.d(t,{L:()=>V});var o,i=r(31635),s=r(66552),n=r(25482),a=r(10107),l=r(79901),p=r(93223),u=r(36005),d=r(40608),c=r(56507),y=r(90360),g=r(20437),h=r(49053),m=(r(44208),r(53966),r(87811),r(16930)),C=r(50498);let v=o=class extends n.o{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:s};return new o(n)}};var w;(0,i.Cg)([(0,p.e)({queryTable:"query-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],v.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"oidFields",void 0),(0,i.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.e)(C.gy)],v.prototype,"geometryType",void 0),v=o=(0,i.Cg)([(0,d.$)("esri.layers.support.source.QueryTableDataSource")],v);let S=w=class extends n.o{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new w({workspaceId:e,dataSourceName:t})}};var M;(0,i.Cg)([(0,p.e)({raster:"raster"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),S=w=(0,i.Cg)([(0,d.$)("esri.layers.support.source.RasterDataSource")],S);let j=M=class extends n.o{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new M({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var f,b;(0,i.Cg)([(0,p.e)({table:"table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],j.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"dataSourceName",void 0),j=M=(0,i.Cg)([(0,d.$)("esri.layers.support.source.TableDataSource")],j);const Z=(0,s.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let T=f=class extends n.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return x()(e,t,r)}castLeftTableSource(e){return(0,c.aq)(P(),e)}readRightTableSource(e,t,r){return x()(e,t,r)}castRightTableSource(e){return(0,c.aq)(P(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:o,joinType:i}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:o?.clone()??void 0,joinType:i};return new f(s)}};(0,i.Cg)([(0,p.e)({joinTable:"join-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,u.w)("leftTableSource")],T.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,l.w)("leftTableSource")],T.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,u.w)("rightTableSource")],T.prototype,"readRightTableSource",null),(0,i.Cg)([(0,l.w)("rightTableSource")],T.prototype,"castRightTableSource",null),(0,i.Cg)([(0,p.e)(Z)],T.prototype,"joinType",void 0),T=f=(0,i.Cg)([(0,d.$)("esri.layers.support.source.JoinTableDataSource")],T);let R=null;function x(){return R||(R=(0,y.C)({types:P()})),R}let F=null;function P(){return F||(F={key:"type",base:null,typeMap:{"data-layer":V,"map-layer":h.f}}),F}const O={key:"type",base:null,typeMap:{"join-table":T,"query-table":v,raster:S,table:j}};let V=class extends n.o{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,i.Cg)([(0,p.e)({dataLayer:"data-layer"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],V.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[g.A],json:{write:!0}})],V.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)({types:O,json:{write:!0}})],V.prototype,"dataSource",void 0),V=b=(0,i.Cg)([(0,d.$)("esri.layers.support.source.DataLayerSource")],V),V.from=(0,c.dp)(V)},49053:(e,t,r)=>{r.d(t,{f:()=>u});var o,i=r(31635),s=r(25482),n=r(10107),a=r(56507),l=(r(44208),r(87811),r(93223)),p=r(40608);let u=o=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new o({mapLayerId:e,gdbVersion:t})}};(0,i.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=o=(0,i.Cg)([(0,p.$)("esri.layers.support.source.MapLayerSource")],u)},58174:(e,t,r)=>{r.d(t,{x:()=>o});const o=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>R});var o=r(31635),i=r(66552),s=r(25482),n=r(4718),a=r(10107),l=r(79901),p=r(93223),u=r(40608),d=r(43937),c=r(56507),y=r(86738),g=r(16930),h=r(65864),m=r(50498),C=r(27733),v=r(69540);r(44208),r(53966),r(87811);let w=class extends((0,v.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],w.prototype,"onFields",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"operator",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchTerm",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchType",void 0),w=(0,o.Cg)([(0,u.$)("esri.rest.support.FullTextSearch")],w);const S=w;var M,j=r(27348),f=r(58174),b=r(7562),Z=r(64272);const T=new i.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends s.o{static{M=this}static from(e){return(0,c.PZ)(M,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const o=e[t];Array.isArray(o)?r[t]=o.map(e=>e instanceof Date?e.getTime():e):o instanceof Date?r[t]=o.getTime():r[t]=o}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new M((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"datumTransformation",void 0),(0,o.Cg)([(0,l.w)("datumTransformation")],R.prototype,"castDatumTransformation",null),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),(0,o.Cg)([(0,a.MZ)({type:C.L,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),(0,o.Cg)([(0,a.MZ)({type:[S],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),(0,o.Cg)([(0,a.MZ)({types:m.yR,json:{read:h.rS,write:!0}})],R.prototype,"geometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"having",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],R.prototype,"historicMoment",void 0),(0,o.Cg)([(0,d.K)("historicMoment")],R.prototype,"writeHistoricMoment",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],R.prototype,"maxRecordCountFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"objectIds",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"parameterValues",void 0),(0,o.Cg)([(0,d.K)("parameterValues")],R.prototype,"writeParameterValues",null),(0,o.Cg)([(0,a.MZ)({type:y.A,json:{write:!0}})],R.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:j.A,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),(0,o.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnZ",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),(0,o.Cg)([(0,p.e)(f.x,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],R.prototype,"writeStart",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"text",void 0),(0,o.Cg)([(0,a.MZ)({type:Z.T,json:{write:!0}})],R.prototype,"timeExtent",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),(0,o.Cg)([(0,p.e)(T,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],R.prototype,"units",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),(0,o.Cg)([(0,d.K)("where")],R.prototype,"writeWhere",null),R=M=(0,o.Cg)([(0,u.$)("esri.rest.support.Query")],R)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1956],{7562:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(43937);const d=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=o=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.o8)(e))}clone(){return new o({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,l.MZ)({type:Object})],c.prototype,"statisticParameters",void 0),(0,i.Cg)([(0,u.K)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.StatisticDefinition")],c)},27348:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(5443);const d=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=o=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new o((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,i.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.QuantizationParameters")],c)},27733:(e,t,r)=>{r.d(t,{L:()=>A});var o,i=r(31635),s=r(66552),n=r(25482),a=r(10107),l=r(79901),p=r(93223),u=r(36005),d=r(40608),c=r(56507),y=r(90360),g=r(20437),h=r(49053),m=(r(44208),r(53966),r(87811),r(16930)),C=r(50498);let v=o=class extends n.o{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:s};return new o(n)}};var w;(0,i.Cg)([(0,p.e)({queryTable:"query-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],v.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"oidFields",void 0),(0,i.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.e)(C.gy)],v.prototype,"geometryType",void 0),v=o=(0,i.Cg)([(0,d.$)("esri.layers.support.source.QueryTableDataSource")],v);let S=w=class extends n.o{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new w({workspaceId:e,dataSourceName:t})}};var M;(0,i.Cg)([(0,p.e)({raster:"raster"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),S=w=(0,i.Cg)([(0,d.$)("esri.layers.support.source.RasterDataSource")],S);let j=M=class extends n.o{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new M({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var f,b;(0,i.Cg)([(0,p.e)({table:"table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],j.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"dataSourceName",void 0),j=M=(0,i.Cg)([(0,d.$)("esri.layers.support.source.TableDataSource")],j);const Z=(0,s.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let T=f=class extends n.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return x()(e,t,r)}castLeftTableSource(e){return(0,c.aq)(P(),e)}readRightTableSource(e,t,r){return x()(e,t,r)}castRightTableSource(e){return(0,c.aq)(P(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:o,joinType:i}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:o?.clone()??void 0,joinType:i};return new f(s)}};(0,i.Cg)([(0,p.e)({joinTable:"join-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,u.w)("leftTableSource")],T.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,l.w)("leftTableSource")],T.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,u.w)("rightTableSource")],T.prototype,"readRightTableSource",null),(0,i.Cg)([(0,l.w)("rightTableSource")],T.prototype,"castRightTableSource",null),(0,i.Cg)([(0,p.e)(Z)],T.prototype,"joinType",void 0),T=f=(0,i.Cg)([(0,d.$)("esri.layers.support.source.JoinTableDataSource")],T);let R=null;function x(){return R||(R=(0,y.C)({types:P()})),R}let F=null;function P(){return F||(F={key:"type",base:null,typeMap:{"data-layer":A,"map-layer":h.f}}),F}const O={key:"type",base:null,typeMap:{"join-table":T,"query-table":v,raster:S,table:j}};let A=class extends n.o{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,i.Cg)([(0,p.e)({dataLayer:"data-layer"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[g.A],json:{write:!0}})],A.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)({types:O,json:{write:!0}})],A.prototype,"dataSource",void 0),A=b=(0,i.Cg)([(0,d.$)("esri.layers.support.source.DataLayerSource")],A),A.from=(0,c.dp)(A)},49053:(e,t,r)=>{r.d(t,{f:()=>u});var o,i=r(31635),s=r(25482),n=r(10107),a=r(56507),l=(r(44208),r(87811),r(93223)),p=r(40608);let u=o=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new o({mapLayerId:e,gdbVersion:t})}};(0,i.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=o=(0,i.Cg)([(0,p.$)("esri.layers.support.source.MapLayerSource")],u)},58174:(e,t,r)=>{r.d(t,{x:()=>o});const o=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>R});var o=r(31635),i=r(66552),s=r(25482),n=r(4718),a=r(10107),l=r(79901),p=r(93223),u=r(40608),d=r(43937),c=r(56507),y=r(86738),g=r(16930),h=r(65864),m=r(50498),C=r(27733),v=r(69540);r(44208),r(53966),r(87811);let w=class extends((0,v.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],w.prototype,"onFields",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"operator",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchTerm",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchType",void 0),w=(0,o.Cg)([(0,u.$)("esri.rest.support.FullTextSearch")],w);const S=w;var M,j=r(27348),f=r(58174),b=r(7562),Z=r(79677);const T=new i.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends s.o{static{M=this}static from(e){return(0,c.PZ)(M,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const o=e[t];Array.isArray(o)?r[t]=o.map(e=>e instanceof Date?e.getTime():e):o instanceof Date?r[t]=o.getTime():r[t]=o}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new M((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"datumTransformation",void 0),(0,o.Cg)([(0,l.w)("datumTransformation")],R.prototype,"castDatumTransformation",null),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),(0,o.Cg)([(0,a.MZ)({type:C.L,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),(0,o.Cg)([(0,a.MZ)({type:[S],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),(0,o.Cg)([(0,a.MZ)({types:m.yR,json:{read:h.rS,write:!0}})],R.prototype,"geometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"having",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],R.prototype,"historicMoment",void 0),(0,o.Cg)([(0,d.K)("historicMoment")],R.prototype,"writeHistoricMoment",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],R.prototype,"maxRecordCountFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"objectIds",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],R.prototype,"parameterValues",void 0),(0,o.Cg)([(0,d.K)("parameterValues")],R.prototype,"writeParameterValues",null),(0,o.Cg)([(0,a.MZ)({type:y.A,json:{write:!0}})],R.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:j.A,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),(0,o.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnZ",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),(0,o.Cg)([(0,p.e)(f.x,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],R.prototype,"writeStart",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"text",void 0),(0,o.Cg)([(0,a.MZ)({type:Z.A,json:{write:!0}})],R.prototype,"timeExtent",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),(0,o.Cg)([(0,p.e)(T,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],R.prototype,"units",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),(0,o.Cg)([(0,d.K)("where")],R.prototype,"writeWhere",null),R=M=(0,o.Cg)([(0,u.$)("esri.rest.support.Query")],R)}}]);