@arcgis/core 6.0.0-next.21 → 6.0.0-next.23

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 (345) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  3. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  4. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  5. package/analysis/Viewshed.d.ts +4 -4
  6. package/arcgisGlobal.d.ts +0 -5
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
  9. package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
  10. package/assets/esri/core/workers/chunks/0df9a906f7823c23d426.js +1 -0
  11. package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{3704b4e7efc3abc1a7b1.js → 242a77066ac5cdb5b7d7.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
  16. package/assets/esri/core/workers/chunks/2f91fd61019d2a37476d.js +1 -0
  17. package/assets/esri/core/workers/chunks/3cd04d23b73beaf79650.js +1 -0
  18. package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
  19. package/assets/esri/core/workers/chunks/{60f92eb03c6e17ab4747.js → 435b90168f79c5587a07.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f00458654c7c34c369ef.js → 45ba4aa87a4732198596.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  22. package/assets/esri/core/workers/chunks/504184828048310a052c.js +1 -0
  23. package/assets/esri/core/workers/chunks/{eca44e53bcee9b08d70a.js → 5046214dd32029cb733d.js} +1 -1
  24. package/assets/esri/core/workers/chunks/517106048980a3cbe072.js +1 -0
  25. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
  26. package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
  27. package/assets/esri/core/workers/chunks/58865772bed48141a56a.js +1 -0
  28. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
  29. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
  30. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
  31. package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → 636cd05abfbdff19029e.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{461e63a0f436c41a9f4a.js → 64b360625c68cb863a08.js} +1 -1
  33. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
  34. package/assets/esri/core/workers/chunks/6d41444b46677aa762a7.js +1 -0
  35. package/assets/esri/core/workers/chunks/6dfe96b056bec30068df.js +1 -0
  36. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
  37. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
  38. package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
  39. package/assets/esri/core/workers/chunks/947674b2ca8be65b9bcc.js +1 -0
  40. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
  41. package/assets/esri/core/workers/chunks/{a0c9e3f8b7d55d6dc1d5.js → 96c4ea9cfa3930f1c3fb.js} +25 -21
  42. package/assets/esri/core/workers/chunks/{601e1d020b8115497944.js → 9d40786c5ceface786ba.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{a35c69a4751d28c39907.js → 9e7c4eda135c4911b268.js} +1 -1
  44. package/assets/esri/core/workers/chunks/a64446a3328a7323e307.js +1 -0
  45. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
  46. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
  47. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  48. package/assets/esri/core/workers/chunks/b0ca81a07cff25df19d2.js +1 -0
  49. package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
  50. package/assets/esri/core/workers/chunks/{9e0559cd0bb01a0ed9d7.js → b3273f847405799e3362.js} +1 -1
  51. package/assets/esri/core/workers/chunks/b4c3ec081874b49ff89b.js +1 -0
  52. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
  53. package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +1 -0
  54. package/assets/esri/core/workers/chunks/c82daefb193aae895bc0.js +1 -0
  55. package/assets/esri/core/workers/chunks/d8a7eba588d374b2f961.js +1 -0
  56. package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
  57. package/assets/esri/core/workers/chunks/{557671c897ca5563be6c.js → f6bd7b52745b82ba73dc.js} +1 -1
  58. package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
  59. package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
  60. package/assets/esri/core/workers/chunks/ffcb99693182a621a93e.js +1 -0
  61. package/assets/esri/themes/base/_core.scss +0 -2
  62. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
  63. package/assets/esri/themes/dark/main.css +1 -1
  64. package/assets/esri/themes/light/main.css +1 -1
  65. package/assets/esri/themes/light/view.css +1 -1
  66. package/chunks/CloudsComposition.glsl.js +2 -2
  67. package/chunks/Component.glsl.js +9 -12
  68. package/chunks/DefaultMaterial.glsl.js +4 -5
  69. package/chunks/Path.glsl.js +2 -4
  70. package/chunks/RealisticTree.glsl.js +3 -3
  71. package/chunks/SSAO.glsl.js +1 -2
  72. package/config.d.ts +11 -30
  73. package/config.js +1 -1
  74. package/core/accessorSupport/trackingUtils.js +1 -1
  75. package/core/accessorSupport/watch.js +1 -1
  76. package/core/workers/workerFactory.js +1 -1
  77. package/core/workers.d.ts +17 -0
  78. package/geometry/support/MeshComponent.d.ts +1 -1
  79. package/geometry/support/clipRay.js +1 -1
  80. package/geometry/support/plane.js +1 -1
  81. package/geometry/support/vcsData.js +1 -1
  82. package/interfaces.d.ts +0 -55
  83. package/kernel.js +1 -1
  84. package/layers/ElevationLayer.d.ts +6 -2
  85. package/layers/FeatureLayer.d.ts +32 -14
  86. package/layers/GeoJSONLayer.d.ts +2 -107
  87. package/layers/IntegratedMeshLayer.js +1 -1
  88. package/layers/MapImageLayer.d.ts +2 -1
  89. package/layers/SceneLayer.d.ts +40 -16
  90. package/layers/SubtypeGroupLayer.d.ts +63 -0
  91. package/layers/ViewshedLayer.d.ts +10 -4
  92. package/layers/WMSLayer.d.ts +2 -69
  93. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  94. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  95. package/layers/graphics/sources/support/QueryTask.js +1 -1
  96. package/layers/mixins/TemporalLayer.d.ts +70 -48
  97. package/layers/mixins/TiledImagery.d.ts +0 -11
  98. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  99. package/layers/support/LabelClass.d.ts +20 -2
  100. package/layers/support/Sublayer.d.ts +32 -2
  101. package/layers/support/TimeInformation.js +2 -0
  102. package/libs/basisu/textureMetadata.js +2 -0
  103. package/package.json +3 -3
  104. package/popup/content.d.ts +38 -1
  105. package/popup/content.js +1 -1
  106. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
  107. package/rest/query/operations/queryUtils.js +1 -1
  108. package/rest/support/timeUtils.js +2 -0
  109. package/smartMapping/popup/support/clusterUtils.js +1 -1
  110. package/smartMapping/popup/support/utils.js +2 -2
  111. package/smartMapping/renderers/size.js +1 -1
  112. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  113. package/support/timeUtils.d.ts +11 -0
  114. package/symbols/TextSymbol.d.ts +27 -2
  115. package/time/legacyTimeZoneMap.js +1 -1
  116. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  117. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  118. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  119. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  120. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  121. package/views/2d/layers/features/Processor.js +1 -1
  122. package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
  123. package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
  124. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  125. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  126. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  127. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  128. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  129. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  130. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  131. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  132. package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
  133. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  134. package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
  135. package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
  136. package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
  137. package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
  138. package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
  139. package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
  140. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  141. package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
  142. package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
  143. package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
  144. package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
  145. package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
  146. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  147. package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
  148. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  149. package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
  150. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  151. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  152. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  153. package/views/3d/GroundView3D.js +1 -1
  154. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
  155. package/views/3d/environment/SunLighting.d.ts +16 -1
  156. package/views/3d/environment/SunLighting.js +1 -1
  157. package/views/3d/environment/VirtualLighting.d.ts +16 -1
  158. package/views/3d/environment/VirtualLighting.js +1 -1
  159. package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
  160. package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
  161. package/views/3d/layers/I3SMeshView3D.js +1 -1
  162. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  163. package/views/3d/layers/TiledLayerView3D.js +1 -1
  164. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  165. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  166. package/views/3d/support/elevationUpdateUtils.js +1 -1
  167. package/views/3d/terrain/TerrainSurface.js +1 -1
  168. package/views/3d/terrain/TileAgent.js +1 -1
  169. package/views/3d/terrain/tileUtils.js +1 -1
  170. package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
  171. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
  172. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +2 -2
  173. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
  174. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
  175. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
  176. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
  177. package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
  178. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  179. package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
  180. package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
  181. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  182. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  183. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  184. package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
  185. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  186. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  187. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  188. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  189. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  190. package/views/BasemapView.js +1 -1
  191. package/views/GroundView.d.ts +1 -1
  192. package/views/GroundView.js +1 -1
  193. package/views/SceneView.js +1 -1
  194. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  195. package/views/layers/ViewshedLayerView.d.ts +2 -1
  196. package/widgets/Daylight/DaylightViewModel.js +1 -1
  197. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  198. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  199. package/widgets/Locate.d.ts +1 -1
  200. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  201. package/widgets/OrientedImageryViewer.js +2 -2
  202. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  203. package/widgets/Search/SearchViewModel.js +1 -1
  204. package/widgets/Search/support/layerSearchUtils.js +1 -1
  205. package/widgets/Sketch/SketchViewModel.d.ts +61 -2
  206. package/widgets/Sketch/SketchViewModel.js +1 -1
  207. package/widgets/Sketch/support/PluginManager.js +1 -1
  208. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
  209. package/widgets/TimeSlider.d.ts +5 -4
  210. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  211. package/widgets/support/GeolocationPositioning.d.ts +1 -2
  212. package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
  213. package/assets/esri/core/workers/chunks/1f6b601147521a42e65c.js +0 -1
  214. package/assets/esri/core/workers/chunks/25d14874198773d2d836.js +0 -1
  215. package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
  216. package/assets/esri/core/workers/chunks/34e0a8a3a2beea50f4f5.js +0 -1
  217. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  218. package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
  219. package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +0 -1
  220. package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
  221. package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
  222. package/assets/esri/core/workers/chunks/501c6e14ab119785252b.js +0 -1
  223. package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
  224. package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
  225. package/assets/esri/core/workers/chunks/6c255c029d67423e4dac.js +0 -1
  226. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
  227. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
  228. package/assets/esri/core/workers/chunks/728837812940d7f2ef43.js +0 -1
  229. package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
  230. package/assets/esri/core/workers/chunks/7bbfe9ff352afc566367.js +0 -1
  231. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
  232. package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
  233. package/assets/esri/core/workers/chunks/a8df3f59728f841b608e.js +0 -1
  234. package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
  235. package/assets/esri/core/workers/chunks/b48952e1fb4cb7360dd0.js +0 -1
  236. package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
  237. package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
  238. package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
  239. package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
  240. package/assets/esri/core/workers/chunks/d678828726371243d5eb.js +0 -1
  241. package/assets/esri/core/workers/chunks/dd0310184fe4832755a8.js +0 -1
  242. package/assets/esri/core/workers/chunks/de5ecb567bd69c613e9d.js +0 -1
  243. package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
  244. package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
  245. package/assets/esri/core/workers/chunks/fb70ab267a08e24b710f.js +0 -1
  246. package/assets/esri/core/workers/chunks/fc44d45598a7476bc606.js +0 -1
  247. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
  248. package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
  249. package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
  250. package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
  251. package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
  252. package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
  253. package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
  254. package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
  255. package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
  256. package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
  257. package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
  258. package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
  259. package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
  260. package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
  261. package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
  262. package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
  263. package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
  264. package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
  265. package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
  266. package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
  267. package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
  268. package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
  269. package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
  270. package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
  271. package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
  272. package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
  273. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
  274. package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
  275. package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
  276. package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
  277. package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
  278. package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
  279. package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
  280. package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
  281. package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
  282. package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
  283. package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
  284. package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
  285. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
  286. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
  287. package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
  288. package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
  289. package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
  290. package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
  291. package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
  292. package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
  293. package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
  294. package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
  295. package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
  296. package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
  297. package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
  298. package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
  299. package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
  300. package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
  301. package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
  302. package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
  303. package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
  304. package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
  305. package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
  306. package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
  307. package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
  308. package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
  309. package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
  310. package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
  311. package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
  312. package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
  313. package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
  314. package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
  315. package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
  316. package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
  317. package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
  318. package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
  319. package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
  320. package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
  321. package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
  322. package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
  323. package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
  324. package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
  325. package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
  326. package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
  327. package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
  328. package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
  329. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
  330. package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
  331. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
  332. package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
  333. package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
  334. package/widgets/DirectionalPad/VisibleElements.js +0 -2
  335. package/widgets/DirectionalPad/constants.js +0 -2
  336. package/widgets/DirectionalPad/css.js +0 -2
  337. package/widgets/DirectionalPad/types.d.ts +0 -27
  338. package/widgets/DirectionalPad/utils.js +0 -2
  339. package/widgets/DirectionalPad.d.ts +0 -156
  340. package/widgets/DirectionalPad.js +0 -2
  341. package/widgets/Track/TrackViewModel.d.ts +0 -131
  342. package/widgets/Track/TrackViewModel.js +0 -2
  343. package/widgets/Track/types.d.ts +0 -6
  344. package/widgets/Track.d.ts +0 -278
  345. package/widgets/Track.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6884],{38961(e,t,r){var i=r(32198),s=r(7762),o=r(36708),a=r(10107),l=r(64108),n=r(80559);let u=class extends s.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,n.fm)(()=>this._refresh(),o.OH))}destroy(){this.getCollections=null}_refresh(){let e=this.getCollections?.();if(null==e)return void this.removeAll();let t=0;for(let r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t)}_createNewInstance(e){return new s.A(e)}_processCollection(e,t){if(!t)return e;let r=this.itemFilterFunction??(e=>!!e);for(let i of t)if(i){if(r(i)){let t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){let t=this.getChildrenFunction(i);if(Array.isArray(t))for(let r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i.Cg)([(0,a.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,a.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,l.$)("esri.core.CollectionFlattener")],u);const p=u;r.d(t,["A",0,p])},46140(e,t,r){r.d(t,{A:()=>s});var i=r(49186);class s{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new s(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!a.test(o)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new s(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>y});var i=r(69622),s=r(7762),o=r(88620);const a=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function n(e){return e instanceof s.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof s.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=n(e),s=n(t);if(0===i.length&&0===s.length)return;if(!i.length||!s.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=s.filter(e=>!i.includes(e)),y=i.filter(e=>!s.includes(e)),c=i.filter(r=>s.includes(r)&&u(e,r)!==u(t,r)).concat(o,y).sort(),h=p(e);if(h&&a.has(h)&&c.length)return{type:"complete",oldValue:e,newValue:t};let f,g=l(e)&&l(t);for(let i of c){let s,o=u(e,i),a=u(t,i);if((g||"function"!=typeof o&&"function"!=typeof a)&&o!==a&&(null!=o||null!=a)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(o,a);else if(o instanceof Date&&a instanceof Date){if(o.getTime()===a.getTime())continue;s={type:"complete",oldValue:o,newValue:a}}else s="object"==typeof o&&"object"==typeof a&&p(o)===p(a)?d(o,a):{type:"complete",oldValue:o,newValue:a};null!=s&&(null==f?f={type:"partial",diff:{[i]:s}}:f.diff[i]=s)}}return f}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},81583(e,t,r){r.d(t,{L:()=>l,g:()=>a});var i=r(60999),s=r(7762),o=r(92474);async function a(e,t){return await e.load(),l(e,t)}async function l(e,t){let r=[],a=(...e)=>{for(let t of e)null!=t&&(Array.isArray(t)?a(...t):s.A.isCollection(t)?t.forEach(e=>a(e)):(0,o.Zm)(t)&&r.push(t))};t(a);let l=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!l&&(l=t)}),l)throw l.error;return e}},64314(e,t,r){r.d(t,{A:()=>I});var i=r(32198),s=r(69622),o=r(49186),a=r(44208),l=r(17676),n=r(84952),u=r(91429),p=r(21325),d=r(20557),y=r(2272),c=r(99614),h=r(20615),f=r(74910),g=r(78286),m=r(99199),b=r(62815),w=r(63746);class v{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=v._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,w._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let i,{hasZ:s,hasM:o}=this.featureSet;switch(s??=!1,o??=!1,this._i=0,this._vertex=[0,0],s&&this._vertex.push(0),o&&this._vertex.push(0),this._finishVertex=v._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},i=this._point,this._finishVertex=s?o?v._finishVertexPointXYZM:v._finishVertexPointXYZ:o?v._finishVertexPointXYM:v._finishVertexPointXY;break;case"esriGeometryMultipoint":i={points:[],hasZ:s,hasM:o},this._part=i.points,this._parts=[];break;case"esriGeometryPolyline":i={paths:[],hasZ:s,hasM:o},this._parts=i.paths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],hasZ:s,hasM:o},this._parts=i.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=i,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=i}coord(e){let t=this._vertex;t[this._i++]=e,!(this._i<t.length)&&(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,i){let s,{hasZ:o,hasM:a}=this.featureSet;switch(o??=!1,a??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":s={paths:[],curvePaths:[],hasZ:o,hasM:a},this._parts=s.curvePaths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],curveRings:[],hasZ:o,hasM:a},this._parts=s.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=s}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,i){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(i)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,i,s,o,a,l){this._part.push({a:[this._transform(t),this._transformXY(r),i,s,o,a,l]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:i,_vertex:s}=e;t.push([...s]),!(t.length<i[r.length])&&(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:i}=this.featureSet,s=r?(0,b.d)(e,t):1;this._transformInPlace??=(0,w.M)(this.featureSet,s),this._transformInPlaceXY??=(0,w.M)({transform:i})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var S=r(80893),x=r(22671),C=r(97552);let I=class extends s.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,n.An)(this.url)}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,i=this._normalizeQuery(e),s=null!=e.outStatistics?.[0],o=(0,a.A)("featurelayer-pbf-statistics");if(this.pbfSupported&&(!s||o)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,i){let s=(0,y.Dl)(e),o={...r},a=C.A.from(t),l=!a.quantizationParameters;return await(0,S.IJ)(s,a,new v({sourceSpatialReference:a.sourceSpatialReference,applyTransform:l}),o,i)}(this.url,i,t,{uniqueIdFields:this.uniqueIdFields})}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,m.e)(this.url,i,t,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,i){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return x.A.fromJSON(t);let{meshFeatureSetFromJSON:s}=await(0,l.qr)(Promise.all([r.e(2258),r.e(118),r.e(8366)]).then(()=>r(40050)),i);return s(e,this.infoFor3D,t)}executeForCount(e,t){return(0,h.I)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return(0,f.L)(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,g.V)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){let[{default:i},{executeRelationshipQuery:s}]=await(0,l.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeRelationshipQueryForCount(e,t){let[{default:i},{executeRelationshipQueryForCount:s}]=await(0,l.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),o=i.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(o=o.clone(),o.gdbVersion=o.gdbVersion||this.gdbVersion,o.dynamicDataSource=o.dynamicDataSource||this.dynamicDataSource),s(this.url,o,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:i,fetchAttachments:s,processAttachmentQueryResult:o}=await(0,l.qr)(r.e(9239).then(()=>r(9239)),t),a=(0,y.Dl)(this.url);return o(a,await(this.queryAttachmentsSupported?i(a,e,t):s(a,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:i}=await(0,l.qr)(r.e(3103).then(()=>r(33103)),t);return i(this.parsedUrl,e,t)}async executePivotQuery(e,t){let{executePivotQuery:i}=await(0,l.qr)(r.e(566).then(()=>r(80566)),t);return i(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:i}=await(0,l.qr)(r.e(1273).then(()=>r(11273)),t);return i(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){let{executeForTopIds:i}=await(0,l.qr)(r.e(1277).then(()=>r(21277)),t);return i(this.parsedUrl,e,t)}async executeForTopExtents(e,t){let{executeForTopExtents:i}=await(0,l.qr)(r.e(8018).then(()=>r(8018)),t);return i(this.parsedUrl,e,t)}async executeForTopCount(e,t){let{executeForTopCount:i}=await(0,l.qr)(r.e(980).then(()=>r(10980)),t);return i(this.parsedUrl,e,t)}_normalizeQuery(e){let t=C.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource||this.dynamicDataSource);let{infoFor3D:r}=this,i=this._queryGet3DObjectFormat(e);if(null!=r&&i){if(t=t===e?t.clone():t,t.formatOf3DObjects=i,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new o.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:i,originY:s,originZ:o,translationX:a,translationY:l,translationZ:n,scaleX:u,scaleY:p,scaleZ:d,rotationX:y,rotationY:c,rotationZ:h,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(i,s,o,a,l,n,u,p,d,y,c,h,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,d.Hz)(this.infoFor3D)}};(0,i.Cg)([(0,u.MZ)({types:c.e})],I.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"infoFor3D",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],I.prototype,"parsedUrl",null),(0,i.Cg)([(0,u.MZ)()],I.prototype,"pbfSupported",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"pbfSupportedWithCurves",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"queryAttachmentsSupported",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"relativeTimeBinWindow",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,u.MZ)()],I.prototype,"uniqueIdFields",void 0),(0,i.Cg)([(0,u.MZ)({type:String})],I.prototype,"url",void 0),I=(0,i.Cg)([(0,u.$K)("esri.layers.graphics.sources.support.QueryTask")],I)},52136(e,t,r){var i=r(32198),s=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},98534(e,t,r){var i=r(32198),s=r(56507),o=r(5479),a=r(91869),l=r(17676),n=r(84952),u=r(46140),p=r(91429),d=r(5443),y=r(16930),c=r(60694),h=r(10873),f=r(10407),g=r(36005);r.d(t,["V",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.capabilities=void 0,this.copyright=null,this.fullExtent=null,this.legendEnabled=!0,this.spatialReference=null,this.version=void 0,this._allLayersAndTablesMap=null}readCapabilities(e,t){let r=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());if(!r)return{operations:{supportsExportMap:!1,supportsExportTiles:!1,supportsIdentify:!1,supportsQuery:!1,supportsTileMap:!1},exportMap:null,exportTiles:null};let i=this.type,s="tile"!==i&&!!t.supportsDynamicLayers,o=r.includes("query"),a=r.includes("map"),l=!!t.exportTilesAllowed,n=r.includes("tilemap"),p=r.includes("data"),d="tile"!==i&&(!t.tileInfo||s),y="tile"!==i&&(!t.tileInfo||s),c="tile"!==i,h="tile"!==i&&s&&t.currentVersion>=11.1,f=t.cimVersion?u.A.parse(t.cimVersion):null,g=f?.greaterEqual(1,4)??!1,m=f?.greaterEqual(2,0)??!1;return{operations:{supportsExportMap:a,supportsExportTiles:l,supportsIdentify:o,supportsQuery:p,supportsTileMap:n},exportMap:a?{supportsArcadeExpressionForLabeling:g,supportsCIMSymbols:m,supportsDynamicLayers:s,supportsSublayerOrderBy:h,supportsSublayerDefinitionExpression:y,supportsSublayerVisibility:d,supportsSublayersChanges:c}:null,exportTiles:l?{maxExportTilesCount:+t.maxExportTilesCount}:null}}readVersion(e,t){let r=t.currentVersion;return r||=t.hasOwnProperty("capabilities")||t.hasOwnProperty("tables")?10:t.hasOwnProperty("supportedImageFormatTypes")?9.31:9.3,r}async fetchRelatedService(e){let t=this.portalItem;if(!t||!(0,f.bK)(t))return null;this._relatedFeatureServicePromise||=t.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},e).then(e=>e.find(e=>"Feature Service"===e.type)??null,()=>null);let r=await this._relatedFeatureServicePromise;return(0,l.Te)(e),r?{itemId:r.id,url:r.url}:null}async fetchSublayerInfo(e,t){let{source:r}=e;if(this?.portalItem&&"tile"===this.type&&"map-layer"===r?.type&&(0,f.bK)(this.portalItem)&&e.originIdOf("url")<2){let i=await this.fetchRelatedService(t);i&&(e.url=(0,n.fj)(i.url,r.mapLayerId.toString()),e.layerItemId=i.itemId)}let i,{url:o}=e;if("data-layer"===r.type||"workspace-layer"===r.type)i=(await(0,s.A)(o,{responseType:"json",query:{f:"json",...this.customParameters,token:this.apiKey},...t})).data;else{let s=e.id;"map-layer"===r?.type&&(s=r.mapLayerId);try{i=(await this.fetchAllLayersAndTables(t)).get(s)}catch{}if(o&&e.originIdOf("url")>2)try{let e=await this._fetchAllLayersAndTablesFromService(o),t=(0,c.qg)(o)?.sublayer??r.mapLayerId,s=structuredClone(e.get(t));if(null!=s){for(let e of["drawingInfo","maxScale","minScale","name"])delete s[e];i={...i,...s}}}catch{}}return i}async fetchAllLayersAndTables(e){return this._fetchAllLayersAndTablesFromService(this.parsedUrl?.path,e)}async _fetchAllLayersAndTablesFromService(e,t){await this.load(t),this._allLayersAndTablesMap||=new Map;let r=(0,c.qg)(e),i=await(0,a.tE)(this._allLayersAndTablesMap,r?.url.path,()=>(0,s.A)((0,n.fj)(r?.url.path,"/layers"),{query:{f:"json",...this.customParameters,token:this.apiKey}}).then(async e=>{let t=new Map,{layers:i,tables:a}=e.data,l=[...i??[],...a??[]];for(let e of l)t.set(e.id,e);if((0,o.zN)(t.values(),e=>null==e.capabilities||null==e.extent)){let{data:e}=await(0,s.A)(r?.url.path,{query:{f:"json",...this.customParameters,token:this.apiKey}}).catch(()=>({data:{capabilities:"",fullExtent:void 0}}));for(let r of t.values())r.capabilities??=e.capabilities??"",r.extent??=e.fullExtent}return{result:t}},e=>({error:e})));if((0,l.Te)(t),"result"in i)return i.result;throw i.error}};return(0,i.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"capabilities",void 0),(0,i.Cg)([(0,g.w)("service","capabilities",["capabilities","cimVersion","currentVersion","exportTilesAllowed","maxExportTilesCount","supportsDynamicLayers","tileInfo"])],r.prototype,"readCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,i.Cg)([(0,p.MZ)({type:d.A})],r.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)(h.id)],r.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend"}}})],r.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)(h.M6)],r.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:y.A})],r.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,i.Cg)([(0,g.w)("service","version",["currentVersion","capabilities","tables","supportedImageFormatTypes"])],r.prototype,"readVersion",null),r=(0,i.Cg)([(0,p.$K)("esri.layers.mixins.ArcGISMapService")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),s=r(93637),o=r(91429),a=r(91880);function l(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let s=new a.A;return s.read(i,r),[s]}const n={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,s.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(n)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,n])},91921(e,t,r){var i=r(32198),s=r(7762),o=r(38961),a=r(49186),l=r(53966),n=r(36708),u=r(91429),p=r(35666),d=r(88620),y=r(15775),c=r(63389);const h=s.A.ofType(y.A);function f(e,t){e&&e.forEach(e=>{t(e),e.sublayers&&e.sublayers.length&&f(e.sublayers,t)})}r.d(t,["I",0,e=>{let t=e,r=class extends t{constructor(...e){super(...e),this.allSublayers=new o.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.sublayersSourceJSON={2:{},3:{},4:{},5:{},6:{}},this.subtables=null,this.addHandles([(0,n.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),n.OH),(0,n.wB)(()=>this.subtables,(e,t)=>this._handleSublayersChange(e,t),n.OH)])}destroy(){this.allSublayers.destroy()}readSublayers(e,t){if(!t||!e)return;let{sublayersSourceJSON:r}=this,i=(0,p.aB)(t.origin);if(i<2||(r[i]={context:t,visibleLayers:e.visibleLayers||r[i].visibleLayers,layers:e.layers||r[i].layers},i>2))return;this._set("serviceSublayers",this.createSublayersForOrigin("service").sublayers);let{sublayers:s,origin:o}=this.createSublayersForOrigin("web-document"),a=(0,d.oY)(this);a.setDefaultOrigin(o),this._set("sublayers",new h(s)),a.setDefaultOrigin("user")}findSublayerById(e){return this.allSublayers.find(t=>t.id===e)}createServiceSublayers(){return this.createSublayersForOrigin("service").sublayers}createSublayersForOrigin(e){let t,r=(0,p.aB)("web-document"===e?"web-map":e),i=2,s=this.sublayersSourceJSON[2].layers,o=this.sublayersSourceJSON[2].context,a=null,l=[3,4,5].filter(e=>e<=r);for(let e of l){let t=this.sublayersSourceJSON[e];(0,c._X)(t.layers)&&(i=e,s=t.layers,o=t.context,t.visibleLayers&&(a={visibleLayers:t.visibleLayers,context:t.context}))}let n=[3,4,5].filter(e=>e>i&&e<=r),u=null;for(let e of n){let{layers:r,visibleLayers:i,context:s}=this.sublayersSourceJSON[e];r&&(u={layers:r,context:s},t??=e),i&&(a={visibleLayers:i,context:s})}let d=function(e,t){let r=[],i={};return e&&e.forEach(e=>{let s=new y.A;if(s.read(e,t),i[s.id]=s,null!=e.parentLayerId&&-1!==e.parentLayerId){let t=i[e.parentLayerId];t.sublayers||=[],t.sublayers.unshift(s)}else r.unshift(s)}),r}(s,o),g=new Map,m=new Set;if(u)for(let e of u.layers)g.set(e.id,e);if(a?.visibleLayers)for(let e of a.visibleLayers)m.add(e);return f(d,e=>{u&&e.read(g.get(e.id),u.context),a&&e.read({defaultVisibility:m.has(e.id)},a.context)}),{origin:(0,p.OL)(i),originWithPartialOverrides:t?(0,p.OL)(t):null,sublayers:new h({items:d})}}read(e,t){super.read(e,t),this.readSublayers(e,t)}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeHandles("sublayers-owner")),e&&(e.forEach(e=>{e.parent=this,e.layer=this}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null})],"sublayers-owner"),"tile"===this.type&&this.addHandles(e.on("before-changes",e=>{l.A.getLogger("esri.layers.TileLayer").error(new a.A("tilelayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{layer:this})),e.preventDefault()}),"sublayers-owner"))}};return(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"allSublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"effectiveScaleRange",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0,type:s.A.ofType(y.A)})],r.prototype,"serviceSublayers",void 0),(0,i.Cg)([(0,u.MZ)({value:null,type:h,json:{read:!1,write:{allowNull:!0,ignoreOrigin:!0}}})],r.prototype,"sublayers",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],r.prototype,"sublayersSourceJSON",void 0),(0,i.Cg)([(0,u.MZ)({type:h,json:{read:{source:"tables"}}})],r.prototype,"subtables",void 0),r=(0,i.Cg)([(0,u.$K)("esri.layers.mixins.SublayersOwner")],r),r}])},28032(e,t,r){r.d(t,{A:()=>n});var i=r(32198),s=r(69540),o=r(25482),a=r(91429),l=r(56400);let n=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,a.MZ)()],n.prototype,"creatorField",void 0),(0,i.Cg)([(0,a.MZ)()],n.prototype,"creationDateField",void 0),(0,i.Cg)([(0,a.MZ)()],n.prototype,"editorField",void 0),(0,i.Cg)([(0,a.MZ)()],n.prototype,"editDateField",void 0),(0,i.Cg)([(0,a.MZ)()],n.prototype,"realm",void 0),(0,i.Cg)([(0,a.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],n.prototype,"timeZone",void 0),n=(0,i.Cg)([(0,a.$K)("esri.layers.support.EditFieldsInfo")],n)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),s=r(69540),o=r(66552),a=r(25482),l=r(91429);const n=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:n.read,write:n.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>d});var i=r(32198),s=r(69540),o=r(25482),a=r(91429),l=r(8631),n=r(29005),u=r(36005),p=r(43937);let d=class extends((0,s.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,a.MZ)({type:[n.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureType")],d)},46499(e,t,r){r.d(t,{A:()=>I});var i,s,o=r(32198),a=(r(44208),r(66552)),l=r(25482),n=r(4718),u=r(90629),p=r(91429),d=r(90360),y=r(73913),c=r(32730),h=r(77548),f=r(59868),g=r(73838),m=r(33910),b=r(36005),w=r(43937);const v=new a.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function S(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function x(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let I=class extends l.o{static{i=c.vK}static{s=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,c.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,c.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&x(i))e=new y.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,c.XJ)(this)}getLabelExpressionArcade(){return(0,c.BI)(this)}getLabelExpressionSingleField(){return(0,c.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new s({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,n.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,n.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],I.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:S}}}}})],I.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:S}}}}})],I.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],I.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],I.prototype,"readLabelExpression",null),(0,o.Cg)([(0,w.K)("labelExpression")],I.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:y.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return x(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],I.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,w.K)("labelExpressionInfo")],I.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],I.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],I.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],I.prototype,"maxScale",void 0),(0,o.Cg)([(0,w.K)("maxScale")],I.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],I.prototype,"minScale",void 0),(0,o.Cg)([(0,w.K)("minScale")],I.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],I.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:S}}}}})],I.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,d.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,d.C)({types:m.Rv})},write:g.oO,default:null}},write:g.oO,default:null}})],I.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=s=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],I)},73913(e,t,r){r.d(t,{A:()=>p});var i,s=r(32198),o=r(25482),a=r(91429),l=r(32730),n=r(36005),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,s.Cg)([(0,n.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,s.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,s.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,s.Cg)([(0,a.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>n});var i,s=r(32198),o=r(7762),a=r(25482),l=r(91429);let n=i=class extends a.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],n.prototype,"floorField",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],n.prototype,"viewAllMode",void 0),(0,s.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],n.prototype,"viewAllLevelIds",void 0),n=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],n)},91880(e,t,r){r.d(t,{A:()=>u});var i,s=r(32198),o=r(66552),a=r(25482),l=r(91429);const n=new o.J({asc:"ascending",desc:"descending"});let u=class extends a.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,s.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,s.Cg)([(0,l.MZ)({type:n.apiValues,json:{type:n.jsonValues,read:n.read,write:n.write}})],u.prototype,"order",void 0),u=i=(0,s.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),s=r(69540),o=r(66552),a=r(25482),l=r(91429);const n=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:n.read,write:n.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],p)},15775(e,t,r){r.d(t,{A:()=>ge});var i=r(32198),s=r(37838),o=r(56507),a=r(7762),l=r(49186),n=r(44208),u=r(4902),p=r(4718),d=r(92474),y=r(53966),c=r(25728),h=r(39516),f=r(84952),g=r(91429),m=r(78888),b=r(35666),w=r(88620),v=r(5443),S=r(16930),x=r(83960),C=r(50498),I=r(41910),A=r(60950),M=r(89808),_=r(99959);const F=Symbol("isMapImageGraphicOriginSymbol");var P;class O extends _.A{get[(P=F,A.ym)](){return this.sublayer}get[M.Q](){return this.layer}get[I.e7](){return this.sublayer}constructor(e,t){super(),this[P]=!0,this.type="map-image",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}const L=Symbol("isTileGraphicOriginSymbol");var T;class Z extends _.A{get[(T=L,A.ym)](){return this.sublayer}get[M.Q](){return this.layer}get[I.e7](){return this.sublayer}constructor(e,t){super(),this[T]=!0,this.type="tile",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var D,j=r(64314),E=r(32756),q=r(28032),V=r(15426),R=r(33143),N=r(20437),B=r(95466),k=r(30524),z=r(46499),$=r(39383),K=r(37352),J=r(91880),Q=r(45067),U=r(6666),G=r(41214),X=r(2272),Y=r(65615),W=r(93849),H=r(29308),ee=r(54546),te=r(97552),re=r(30291),ie=r(33910),se=r(43440),oe=r(36005),ae=r(43937);function le(e){return"esriSMS"===e?.type}function ne(e,t,r){let i=r.minimumWritableOrigin||r.origin;return!!i&&e.originIdOf(t)>=(0,b.aB)(i)}function ue(e,t,r){let i=ne(this,t,r);return{ignoreOrigin:!0,allowNull:i,enabled:!!r&&"map-image"===r.layer?.type&&(r.writeSublayerStructure||i)}}function pe(e,t,r){return{enabled:!!r&&"tile"===r.layer?.type&&(ne(this,t,r)||this._isOverridden(t))}}function de(e,t,r){return{ignoreOrigin:!0,enabled:r&&r.writeSublayerStructure||!1}}function ye(e,t,r){return{ignoreOrigin:!0,enabled:!!r?.writeSublayerStructure&&this.originIdOf(t)>2}}function ce(e,t,r){return{ignoreOrigin:!0,enabled:!!r&&(r.writeSublayerStructure||ne(this,t,r))}}let he=0;const fe=new Set(["layer","parent","loaded","loadStatus","loadError","loadWarnings"]);let ge=class extends((0,c.M)((0,u.s)(d.x_))){static{D=this}constructor(e){super(e),this.attributeTableTemplate=null,this.capabilities=void 0,this.editFieldsInfo=null,this.maxScaleRange={minScale:0,maxScale:0},this.fields=null,this.fullExtent=null,this.geometryType=null,this.globalIdField=null,this.isTable=!1,this.legendEnabled=!0,this.objectIdField=null,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.spatialReference=null,this.title=null,this.typeIdField=null,this.type="sublayer",this.types=null,this.uniqueIdFields=null,this._lastParsedUrl=null}async load(e){return this.addResolvingPromise(this.reload(e)),this}readCapabilities(e,t){t=t.layerDefinition||t;let{attachment:r,operations:{supportsQuery:i,supportsQueryAttachments:s},query:{supportsFormatPBF:o,supportsOrderBy:a,supportsPagination:l,relativeTimeBinWindow:n},data:{supportsAttachment:u},queryRelated:p}=(0,U.S$)(t,this.url);return{attachment:{supportsOrderByFields:r?.supportsOrderByFields??!1,supportsResize:r?.supportsResize??!1,supportsTypeWildcard:r?.supportsTypeWildcard??!1},exportMap:{supportsModification:!!t.canModifyLayer},operations:{supportsQuery:i,supportsQueryAttachments:s},data:{supportsAttachment:u},query:{relativeTimeBinWindow:n,supportsFormatPBF:o,supportsOrderBy:a,supportsPagination:l},queryRelated:p}}get defaultPopupTemplate(){return this.createPopupTemplate()}set definitionExpression(e){this._setAndNotifyLayer("definitionExpression",e)}get effectiveScaleRange(){let e=this._get("effectiveScaleRange"),{maxScale:t,minScale:r,parent:i}=this,s={minScale:r,maxScale:t};return void 0!==i?.effectiveScaleRange&&(0,x.RH)(s,i.effectiveScaleRange),e&&e.minScale===s.minScale&&e.maxScale===s.maxScale?e:s}get effectiveUniqueIdFields(){return this.uniqueIdFields?[...this.uniqueIdFields]:this.objectIdField?[this.objectIdField]:[]}readMaxScaleRange(e,t){return{minScale:(t=t.layerDefinition||t).minScale??0,maxScale:t.maxScale??0}}get fieldsIndex(){return new B.A(this.fields||[])}set floorInfo(e){this._setAndNotifyLayer("floorInfo",e)}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(let e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}get graphicOrigin(){if(!this.layer)return null;switch(this.layer.type){case"tile":return new Z(this.layer,this);case"map-image":return new O(this.layer,this)}}get id(){return this._get("id")??he++}set id(e){this._get("id")!==e&&(!1===this.layer?.capabilities?.exportMap?.supportsDynamicLayers?this._logLockedError("id","capability not available 'layer.capabilities.exportMap.supportsDynamicLayers'"):this._set("id",e))}readIsTable(e,t){return"Table"===t.type}set labelingInfo(e){this._setAndNotifyLayer("labelingInfo",e)}writeLabelingInfo(e,t,r,i){e&&e.length&&(t.layerDefinition={drawingInfo:{labelingInfo:e.map(e=>e.write({},i))}})}set labelsVisible(e){this._setAndNotifyLayer("labelsVisible",e)}set layer(e){this._set("layer",e),this.sublayers?.forEach(t=>t.layer=e)}set listMode(e){this._set("listMode",e)}get loaded(){return super.loaded}set minScale(e){this._setAndNotifyLayer("minScale",e)}readMinScale(e,t){return t.minScale||t.layerDefinition?.minScale||0}set maxScale(e){this._setAndNotifyLayer("maxScale",e)}readMaxScale(e,t){return t.maxScale||t.layerDefinition?.maxScale||0}readObjectIdFieldFromService(e,t){return(t=t.layerDefinition||t).objectIdField?t.objectIdField:t.fields?.find(e=>"esriFieldTypeOID"===e.type)?.name}set opacity(e){this._setAndNotifyLayer("opacity",e)}readOpacity(e,t){let{layerDefinition:r}=t;return 1-.01*(r?.transparency??r?.drawingInfo?.transparency??0)}writeOpacity(e,t,r,i){t.layerDefinition={drawingInfo:{transparency:100-100*e}}}set orderBy(e){this._setAndNotifyLayer("orderBy",e)}writeParent(e,t){t.parentLayerId=this.parent&&this.parent!==this.layer?(0,m.Vr)(this.parent.id):-1}get queryTask(){if(!this.layer)return null;let{capabilities:e,fieldsIndex:t,layer:r,uniqueIdFields:i,url:s}=this,{spatialReference:o}=r,a="gdbVersion"in r?r.gdbVersion:void 0,l=(0,n.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF,u=e?.operations?.supportsQueryAttachments??!1,p=e?.query?.relativeTimeBinWindow??0;return new j.A({fieldsIndex:t,gdbVersion:a,pbfSupported:l,queryAttachmentsSupported:u,relativeTimeBinWindow:p,sourceSpatialReference:o,uniqueIdFields:i,url:s})}set renderer(e){if((0,k.yp)(e,this.fieldsIndex),e)for(let t of e.symbols)if((0,ie.wk)(t)){y.A.getLogger(this).warn("Sublayer renderer should use 2D symbols");break}this._setAndNotifyLayer("renderer",e)}get source(){return this._get("source")||new W.A({mapLayerId:this.id})}set source(e){this._setAndNotifyLayer("source",e)}get sublayers(){return this._get("sublayers")}set sublayers(e){this._handleSublayersChange(e,this._get("sublayers")),this._set("sublayers",e)}castSublayers(e){return(0,m.dp)(a.A.ofType(D),e)}writeSublayers(e,t,r){this.sublayers?.length&&(t[r]=this.sublayers.map(e=>e.id).toArray().reverse())}readTitle(e,t){return t.layerDefinition?.name??t.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();let e=t.fields.find(e=>e.name.toLowerCase()===r);e&&(r=e.name)}return r}readUniqueIdFields(e,t){return t.layerDefinition?.uniqueIdInfo?.OIDFieldContainsHashValue?t.layerDefinition.uniqueIdInfo.fields:null}get url(){let e=this.layer?.parsedUrl??this._lastParsedUrl,t=this.source;if(!e)return null;if(this._lastParsedUrl=e,"map-layer"===t?.type)return`${e.path}/${t.mapLayerId}`;let r={layer:JSON.stringify({source:this.source})};return`${e.path}/dynamicLayer?${(0,f.x0)(r)}`}set url(e){this._overrideIfSome("url",e)}set visible(e){this._setAndNotifyLayer("visible",e)}writeVisible(e,t,r,i){t[r]=this.getAtOrigin("defaultVisibility","service")||e}clone(){let{store:e}=(0,w.oY)(this),t=new D;return(0,w.oY)(t).store=e.clone(fe),this.commitProperty("url"),t._lastParsedUrl=this._lastParsedUrl,t}createPopupTemplate(e){return(0,re.tn)(this,e)}createQuery(){return new te.A({returnGeometry:!0,where:this.definitionExpression||"1=1"})}async createFeatureLayer(){if(this.sublayers)return null;let e,t=(await Promise.all([r.e(6361),r.e(9953),r.e(6263),r.e(8247),r.e(5087),r.e(8589),r.e(1560)]).then(()=>r(18589))).default,{layer:i,url:s}=this;if(s&&this.originIdOf("url")>2)e=new t({url:s});else{if(!i?.parsedUrl)throw new l.A("createFeatureLayer:missing-information","Cannot create a FeatureLayer without a url or a parent layer");{let r=i.parsedUrl;e=new t({url:r.path}),r&&this.source&&("map-layer"===this.source.type?e.layerId=this.source.mapLayerId:e.dynamicDataSource=this.source)}}return null!=i?.refreshInterval&&(e.refreshInterval=i.refreshInterval),this.definitionExpression&&(e.definitionExpression=this.definitionExpression),this.floorInfo&&(e.floorInfo=(0,p.o8)(this.floorInfo)),this.originIdOf("labelingInfo")>2&&(e.labelingInfo=(0,p.o8)(this.labelingInfo)),this.originIdOf("labelsVisible")>0&&(e.labelsVisible=this.labelsVisible),this.originIdOf("legendEnabled")>0&&(e.legendEnabled=this.legendEnabled),this.originIdOf("visible")>0&&(e.visible=this.visible),this.originIdOf("minScale")>0&&(e.minScale=this.minScale),this.originIdOf("maxScale")>0&&(e.maxScale=this.maxScale),this.originIdOf("opacity")>0&&(e.opacity=this.opacity),this.originIdOf("popupTemplate")>0&&(e.popupTemplate=(0,p.o8)(this.popupTemplate)),this.originIdOf("renderer")>2&&(e.renderer=(0,p.o8)(this.renderer)),"data-layer"===this.source?.type&&(e.dynamicDataSource=this.source.clone()),this.originIdOf("title")>0&&(e.title=this.title),"map-image"===i?.type&&i.originIdOf("customParameters")>0&&(e.customParameters=i.customParameters),"tile"===i?.type&&i.originIdOf("customParameters")>0&&(e.customParameters=i.customParameters),e}getField(e){return this.fieldsIndex.get(e)}getFeatureType(e){return(0,V.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){let r=t?.feature,i=this.getFeatureType(r);if(i){let t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){await this.load();let r=ee.A.from(e),i=this.capabilities;if(!i?.data?.supportsAttachment)throw new l.A("queryAttachments:not-supported","this layer doesn't support attachments");let{attachmentTypes:s,objectIds:o,globalIds:a,num:n,size:u,start:p,where:d}=r;if(!i?.operations?.supportsQueryAttachments&&(s?.length>0||a?.length>0||u?.length>0||n||p||d))throw new l.A("queryAttachments:option-not-supported","when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",r);if(!(o?.length||a?.length||d))throw new l.A("queryAttachments:invalid-query","'objectIds', 'globalIds', or 'where' are required to perform attachment query",r);return!i?.attachment?.supportsOrderByFields&&r.orderByFields?.length&&(r=r.clone(),r.orderByFields=null),this.queryTask.executeAttachmentQuery(r,t)}async queryFeatureCount(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new l.A("queryFeatureCount:not-supported","this layer doesn't support queries.");if(!this.url)throw new l.A("queryFeatureCount:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryFeatures(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new l.A("queryFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new l.A("queryFeatures:not-supported","this layer has no url.");let r=await this.queryTask.execute(e,{...t,query:{...this.layer?.customParameters,token:this.layer?.apiKey}});if(r?.features){let e=this.graphicOrigin;for(let t of r.features)t.sourceLayer=this,t.origin=e}return r}async queryObjectIds(e=this.createQuery(),t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new l.A("queryObjectIds:not-supported","this layer doesn't support queries.");if(!this.url)throw new l.A("queryObjectIds:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeForIds(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeatures(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new l.A("queryRelatedFeatures:not-supported","this layer doesn't support queries.");if(!this.url)throw new l.A("queryRelatedFeatures:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQuery(e,{...t,query:{...this.layer?.customParameters,token:r}})}async queryRelatedFeaturesCount(e,t){if(await this.load(),!this.capabilities.operations.supportsQuery)throw new l.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support queries.");if(!this.capabilities.queryRelated.supportsCount)throw new l.A("queryRelatedFeaturesCount:not-supported","this layer doesn't support query related counts.");if(!this.url)throw new l.A("queryRelatedFeaturesCount:not-supported","this layer has no url.");let r=this.layer?.apiKey;return await this.queryTask.executeRelationshipQueryForCount(e,{...t,query:{...this.layer?.customParameters,token:r}})}async reload(e){if("not-loaded"===this.loadStatus)return this.load(e).then(()=>{});let{layer:t,url:r}=this;if(!t&&!r)throw new l.A("sublayer:missing-layer","Sublayer can't be loaded without being part of a layer",{sublayer:this});let i=t?await t.fetchSublayerInfo(this,e):(await(0,o.A)(r,{query:{f:"json"},...e})).data;i&&(this.sourceJSON={...this.sourceJSON,...i},this.read({layerDefinition:i},{origin:"service",layer:t,url:(0,X.Dl)(r)}))}toExportImageJSON(e){let t={id:this.id,source:this.source?.toJSON()||{mapLayerId:this.id,type:"mapLayer"}},r=(0,h.mA)(e,this.definitionExpression);null!=r&&(t.definitionExpression=r);let i=["renderer","labelingInfo","opacity","labelsVisible"].reduce((e,t)=>(e[t]=this.originIdOf(t),e),{});if(Object.keys(i).some(e=>i[e]>2)){let e=t.drawingInfo={};if(i.renderer>2&&(e.renderer=this.renderer?this.renderer.toJSON():null),i.labelsVisible>2&&(e.showLabels=this.labelsVisible),this.labelsVisible&&i.labelingInfo>2)if(this.labelingInfo){!this.loaded&&this.labelingInfo?.some(e=>!e.labelPlacement)&&y.A.getLogger(this).warnOnce(`A Sublayer (title: ${this.title}, id: ${this.id}) has an undefined 'labelPlacement' and so labels cannot be displayed. Either define a valid 'labelPlacement' or call Sublayer.load() to use a default value based on geometry type.`,{sublayer:this});let t=this.labelingInfo;null!=this.geometryType&&(t=(0,$.z)(this.labelingInfo,C.gy.toJSON(this.geometryType))),e.showLabels=!0,e.labelingInfo=t.filter(e=>e.labelPlacement).map(e=>e.toJSON({origin:"service",layer:this.layer}))}else e.showLabels=!1;i.opacity>2&&(e.transparency=100-100*this.opacity),this._assignDefaultSymbolColors(e.renderer)}return(this.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1)&&this.originIdOf("orderBy")>2&&(t.orderBy=this.orderBy?.map(e=>e.toJSON())??null),t}_assignDefaultSymbolColors(e){this._forEachSimpleMarkerSymbols(e,e=>{e.color||("esriSMSX"===e.style||"esriSMSCross"===e.style)&&(e.color=e.outline?.color?e.outline.color:[0,0,0,0])})}_forEachSimpleMarkerSymbols(e,t){if(e){let r=("uniqueValueInfos"in e?e.uniqueValueInfos:"classBreakInfos"in e?e.classBreakInfos:null)??[];for(let e of r)le(e.symbol)&&t(e.symbol);"symbol"in e&&le(e.symbol)&&t(e.symbol),"defaultSymbol"in e&&le(e.defaultSymbol)&&t(e.defaultSymbol)}}_setAndNotifyLayer(e,t){let r,i,s=this.layer,o=this._get(e);switch(e){case"definitionExpression":case"floorInfo":r="supportsSublayerDefinitionExpression";break;case"minScale":case"maxScale":case"visible":r="supportsSublayerVisibility";break;case"labelingInfo":case"labelsVisible":case"opacity":case"renderer":case"source":r="supportsDynamicLayers",i="supportsModification";break;case"orderBy":r="supportsSublayerOrderBy",i="supportsModification"}let a=(0,w.oY)(this).getDefaultOrigin();if("service"!==a){if(r&&!1===this.layer?.capabilities?.exportMap?.[r])return void this._logLockedError(e,`capability not available 'layer.capabilities.exportMap.${r}'`);if(i&&!1===this.capabilities?.exportMap[i])return void this._logLockedError(e,`capability not available 'capabilities.exportMap.${i}'`)}"source"===e&&"not-loaded"!==this.loadStatus?this._logLockedError(e,"'source' can't be changed after calling sublayer.load()"):(this._set(e,t),"service"!==a&&o!==t&&s?.emit&&s.emit("sublayer-update",{propertyName:e,target:this}))}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null,e.layer=null}),this.removeAllHandles()),e&&(e.forEach(e=>{e.parent=this,e.layer=this.layer}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,e.layer=this.layer}),e.on("after-remove",({item:e})=>{e.parent=null,e.layer=null}),e.on("before-changes",e=>{(this.layer?.capabilities?.exportMap?.supportsSublayersChanges??!0)||(y.A.getLogger(this).error(new l.A("sublayer:sublayers-non-modifiable","Sublayer can't be added, moved, or removed from the layer's sublayers",{sublayer:this,layer:this.layer})),e.preventDefault())})]))}_logLockedError(e,t){let{layer:r,declaredClass:i}=this;y.A.getLogger(i).error(new l.A("sublayer:locked",`Property '${String(e)}' can't be changed on Sublayer from the layer '${r?.id}'`,{reason:t,sublayer:this,layer:r}))}_getLayerDomain(e){return this.fieldsIndex.get(e)?.domain??null}static{this.test={isMapImageLayerOverridePolicy:e=>e===ye||e===de||e===ue,isTileImageLayerOverridePolicy:e=>e===pe}}};(0,i.Cg)([(0,g.MZ)({type:se.A,json:{name:"attributeTableInfo",write:{overridePolicy:ue},origins:{"web-scene":{write:!1}}}})],ge.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"capabilities",void 0),(0,i.Cg)([(0,oe.w)("service","capabilities",["layerDefinition.canModifyLayer","layerDefinition.capabilities"])],ge.prototype,"readCapabilities",null),(0,i.Cg)([(0,g.MZ)()],ge.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,value:null,json:{name:"layerDefinition.definitionExpression",write:{allowNull:!0,overridePolicy:ue}}})],ge.prototype,"definitionExpression",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:q.A,json:{origins:{service:{read:{source:"layerDefinition.editFieldsInfo"}}}}})],ge.prototype,"editFieldsInfo",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0,type:[String]})],ge.prototype,"effectiveUniqueIdFields",null),(0,i.Cg)([(0,oe.w)("service","maxScaleRange",["minScale","maxScale"])],ge.prototype,"readMaxScaleRange",null),(0,i.Cg)([(0,g.MZ)({type:[N.A],json:{origins:{service:{read:{source:"layerDefinition.fields"}}}}})],ge.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"fieldsIndex",null),(0,i.Cg)([(0,g.MZ)({type:K.A,value:null,json:{name:"layerDefinition.floorInfo",read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo",overridePolicy:ue},origins:{"web-scene":{read:!1,write:!1}}}})],ge.prototype,"floorInfo",null),(0,i.Cg)([(0,g.MZ)({type:v.A,json:{read:{source:"layerDefinition.extent"}}})],ge.prototype,"fullExtent",void 0),(0,i.Cg)([(0,g.MZ)({type:C.gy.apiValues,json:{origins:{service:{name:"layerDefinition.geometryType",read:{reader:C.gy.read}}}}})],ge.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],ge.prototype,"globalIdField",void 0),(0,i.Cg)([(0,oe.w)("service","globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],ge.prototype,"readGlobalIdFieldFromService",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"graphicOrigin",null),(0,i.Cg)([(0,g.MZ)({type:m.jz,json:{write:{ignoreOrigin:!0}}})],ge.prototype,"id",null),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"isTable",void 0),(0,i.Cg)([(0,oe.w)("service","isTable",["type"])],ge.prototype,"readIsTable",null),(0,i.Cg)([(0,g.MZ)({value:null,type:[z.A],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo"},write:{target:"layerDefinition.drawingInfo.labelingInfo",overridePolicy:ye}}})],ge.prototype,"labelingInfo",null),(0,i.Cg)([(0,ae.K)("labelingInfo")],ge.prototype,"writeLabelingInfo",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"layerDefinition.drawingInfo.showLabels"},write:{target:"layerDefinition.drawingInfo.showLabels",overridePolicy:de}}})],ge.prototype,"labelsVisible",null),(0,i.Cg)([(0,g.MZ)({value:null})],ge.prototype,"layer",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{write:{overridePolicy:pe}}})],ge.prototype,"layerItemId",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},read:{source:"showLegend"},write:{target:"showLegend",overridePolicy:ce}}})],ge.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide","hide-children"],value:"show",json:{read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],ge.prototype,"listMode",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:0,json:{write:{overridePolicy:de}}})],ge.prototype,"minScale",null),(0,i.Cg)([(0,oe.w)("minScale",["minScale","layerDefinition.minScale"])],ge.prototype,"readMinScale",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:0,json:{write:{overridePolicy:de}}})],ge.prototype,"maxScale",null),(0,i.Cg)([(0,oe.w)("maxScale",["maxScale","layerDefinition.maxScale"])],ge.prototype,"readMaxScale",null),(0,i.Cg)([(0,g.MZ)()],ge.prototype,"objectIdField",void 0),(0,i.Cg)([(0,oe.w)("service","objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],ge.prototype,"readObjectIdFieldFromService",null),(0,i.Cg)([(0,g.MZ)({type:Number,value:1,json:{write:{target:"layerDefinition.drawingInfo.transparency",overridePolicy:de}}})],ge.prototype,"opacity",null),(0,i.Cg)([(0,oe.w)("opacity",["layerDefinition.drawingInfo.transparency","layerDefinition.transparency"])],ge.prototype,"readOpacity",null),(0,i.Cg)([(0,ae.K)("opacity")],ge.prototype,"writeOpacity",null),(0,i.Cg)([(0,g.MZ)({value:null,type:[J.A],json:{name:"layerDefinition.orderBy",read:{reader:E.Rr},write:{overridePolicy:ue},origins:{"web-scene":{read:!1,write:!1}}}})],ge.prototype,"orderBy",null),(0,i.Cg)([(0,g.MZ)({json:{type:m.jz,write:{target:"parentLayerId",writerEnsuresNonNull:!0,overridePolicy:de}}})],ge.prototype,"parent",void 0),(0,i.Cg)([(0,ae.K)("parent")],ge.prototype,"writeParent",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy:ce,writer(e,t,r){t[r]=!e}}}})],ge.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:s.A,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy:ce}}})],ge.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],ge.prototype,"queryTask",null),(0,i.Cg)([(0,g.MZ)({type:[Q.A],readOnly:!0,json:{origins:{service:{read:{source:"layerDefinition.relationships"}}}}})],ge.prototype,"relationships",void 0),(0,i.Cg)([(0,g.MZ)({types:G.Hg,value:null,json:{name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:ye},origins:{"web-scene":{types:G.XJ,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:ye}}}}})],ge.prototype,"renderer",null),(0,i.Cg)([(0,g.MZ)({types:{key:"type",base:null,typeMap:{"data-layer":Y.A,"map-layer":W.A,"workspace-layer":H.A}},cast(e){if(e){if("mapLayerId"in e)return(0,m.PZ)(W.A,e);if("dataSource"in e)return(0,m.PZ)(Y.A,e);if("workspaceId"in e&&"layerId"in e)return(0,m.PZ)(H.A,e)}return e},json:{name:"layerDefinition.source",types:{key:"type",base:null,typeMap:{"data-layer":Y.A,"map-layer":W.A}},write:{overridePolicy:de}}})],ge.prototype,"source",null),(0,i.Cg)([(0,g.MZ)()],ge.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)({type:S.A,json:{origins:{service:{read:{source:"layerDefinition.extent.spatialReference"}}}}})],ge.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)({value:null,json:{type:[m.jz],write:{target:"subLayerIds",allowNull:!0,overridePolicy:de}}})],ge.prototype,"sublayers",null),(0,i.Cg)([(0,g.wg)("sublayers")],ge.prototype,"castSublayers",null),(0,i.Cg)([(0,ae.K)("sublayers")],ge.prototype,"writeSublayers",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"name",write:{overridePolicy:ce}}})],ge.prototype,"title",void 0),(0,i.Cg)([(0,oe.w)("service","title",["name","layerDefinition.name"])],ge.prototype,"readTitle",null),(0,i.Cg)([(0,g.MZ)({type:String})],ge.prototype,"typeIdField",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1},readOnly:!0,value:"sublayer"})],ge.prototype,"type",void 0),(0,i.Cg)([(0,oe.w)("typeIdField",["layerDefinition.typeIdField"])],ge.prototype,"readTypeIdField",null),(0,i.Cg)([(0,g.MZ)({type:[R.A],json:{origins:{service:{read:{source:"layerDefinition.types"}}}}})],ge.prototype,"types",void 0),(0,i.Cg)([(0,g.MZ)({type:[String],readOnly:!0})],ge.prototype,"uniqueIdFields",void 0),(0,i.Cg)([(0,oe.w)("service","uniqueIdFields",["layerDefinition.uniqueIdInfo.OIDFieldContainsHashValue","layerDefinition.uniqueIdInfo.fields"])],ge.prototype,"readUniqueIdFields",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerUrl",write:{overridePolicy:pe}}})],ge.prototype,"url",null),(0,i.Cg)([(0,g.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"},write:{target:"defaultVisibility",overridePolicy:de}}})],ge.prototype,"visible",null),(0,i.Cg)([(0,ae.K)("visible")],ge.prototype,"writeVisible",null),ge=D=(0,i.Cg)([(0,g.$K)("esri.layers.support.Sublayer")],ge)},33446(e,t,r){r.d(t,{Cp:()=>a,mn:()=>o});var i=r(49186),s=r(17676);async function o(e,t,r){let o;try{o=await l(e,r)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,s.Te)(r),o}async function a(e,t,r,o,a){let n;try{n=await l(e,a)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${o}`,{error:e,level:t,row:r,col:o})}return(0,s.Te)(a),n}async function l(e,t){let r=await createImageBitmap(e,{imageOrientation:t?.imageOrientation??"none"}),i=t?.type??(e instanceof Blob?e.type.startsWith("image/")?e.type:t?.allowDeriveTypeFromData?await async function(e){return e.byteLength<2?"unknown":137===e[0]&&80===e[1]?"image/png":71===e[0]&&73===e[1]?"image/gif":66===e[0]&&77===e[1]?"image/bmp":255===e[0]&&216===e[1]?"image/jpeg":"unknown"}(await e.bytes()):void 0:void 0);return new n(r,i)}class n{constructor(e,t){this.bitmap=e,this.type=t}get isOpaque(){return"image/jpeg"===this.type}}},39383(e,t,r){r.d(t,{w:()=>n,z:()=>d});var i=r(49186),s=r(53966),o=r(46499);const a=()=>s.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function n(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let s of e){let e=s.labelPlacement,o=p[t];if(!s.symbol)return a().warn("No ILabelClass symbol specified."),[];if(!o)return a().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(s);else{let i=o[0];e&&a().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let l=s.clone();l.labelPlacement=i,r.push(l)}}return r}},63389(e,t,r){function i(e,t,r){return!(t.flatten(({sublayers:e})=>e).length===e.length&&!e.some(e=>e.originIdOf("minScale")>r||e.originIdOf("maxScale")>r||e.originIdOf("renderer")>r||e.originIdOf("labelingInfo")>r||e.originIdOf("opacity")>r||e.originIdOf("labelsVisible")>r||e.originIdOf("source")>r)&&o(e,t))}function s(e,t,r){return!!e.some(e=>{let t=e.source,i=!t||"map-layer"===t.type&&t.mapLayerId===e.id&&(null==t.gdbVersion||t.gdbVersion===r);e.commitProperty("renderer"),e.commitProperty("labelingInfo"),e.commitProperty("opacity"),e.commitProperty("labelsVisible"),e.commitProperty("orderBy");let s=e.layer?.capabilities?.exportMap?.supportsSublayerOrderBy??!1;return!i||e.originIdOf("renderer")>2||e.originIdOf("labelingInfo")>2||e.originIdOf("opacity")>2||e.originIdOf("labelsVisible")>2||s&&e.originIdOf("orderBy")>2})||!o(e,t)}function o(e,t){if(!e?.length||null==t)return!0;let r=t.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).map(e=>e.id).toArray();if(e.length>r.length)return!1;let i=0,s=r.length;for(let{id:t}of e){for(;i<s&&r[i]!==t;)i++;if(i>=s)return!1}return!0}function a(e){return!!e&&e.some(e=>null!=e.minScale||null!=e.layerDefinition?.minScale)}r.d(t,{Sk:()=>s,Zx:()=>i,_X:()=>a})},73681(e,t,r){r.d(t,{n:()=>n});var i=r(49186),s=r(53966),o=r(46140),a=r(95466),l=r(55674);class n{static async from(e,t,r){let a=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),d={};if(t)for(let e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);let y=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))y.delete(e);y.size&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:y});let c=await(0,l.xR)(e.expression,null,d);if(!c)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!a||!a.greaterEqual(4,0);h&&s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:a});let f=new u(r,h);return new n(h,p,c,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){s.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new a.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new a.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},20615(e,t,r){r.d(t,{I:()=>a});var i=r(2272),s=r(80893),o=r(97552);function a(e,t,r,a){return(0,s.gW)((0,i.Dl)(e),o.A.from(t),r,a)}},74910(e,t,r){r.d(t,{L:()=>l});var i=r(5443),s=r(2272),o=r(80893),a=r(97552);async function l(e,t,r){let l=(0,s.Dl)(e),n=await(0,o.Jf)(l,a.A.from(t),{...r}),u=n.extent;return!u||isNaN(u.xmin)||isNaN(u.ymin)||isNaN(u.xmax)||isNaN(u.ymax)?{count:n.count,extent:null}:{count:n.count,extent:i.A.fromJSON(u)}}},78286(e,t,r){r.d(t,{V:()=>a});var i=r(2272),s=r(80893),o=r(97552);async function a(e,t,r,a){let l=(0,i.Dl)(e),n=await(0,s.Pk)(l,o.A.from(t),r,a);return n.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(n.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>n,s:()=>l});var i=r(2272),s=r(80893),o=r(22671),a=r(97552);async function l(e,t,r,i){let s=await n(e,t,r,i);return o.A.fromJSON(s)}function n(e,t,r,o){let l=(0,i.Dl)(e),n={...r},u=a.A.from(t);return(0,s.eW)(l,u,u.sourceSpatialReference,n,o)}},63746(e,t,r){function i(e){return class{constructor(){for(let t of e)this[t]=null}}}function s(e,t=1){let{transform:r,hasZ:i,hasM:s}=e;if(null==r)return i&&1!==t?e=>{e[2]*=t}:null;let[o,a]=function(e,t,r,i){let{scale:s,translate:o,originPosition:a}=e;return"upperLeft"===a&&(s=s.map((e,t)=>1===t?-e:e)),t&&(s=s.map((e,t)=>2===t?e*i:e),o=o.map((e,t)=>2===t?e*i:e)),!t&&r&&(s=s.filter((e,t)=>2!==t),o=o.filter((e,t)=>2!==t)),[s,o]}(r,i,s,t),l=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==l||0!==e[t]);++t)e[t]=e[t]*o[t]+a[t]}}r.d(t,{M:()=>s,_:()=>i})},41366(e,t,r){var i=r(32198),s=r(66552),o=r(53966),a=r(91429),l=r(93223);const n=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(n,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,a.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,n])},93470(e,t,r){const i=[252,146,31,255],s={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,s,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5077],{25077(e,t,r){r.r(t),r.d(t,{default:()=>H});var i=r(32198),s=r(37838),a=r(56507),o=r(69540),n=r(49186),l=r(36563),d=r(25728),u=r(17676),p=r(91429),y=r(16930),c=r(41910),h=r(55156),m=r(60950),g=r(89808),f=r(99959);const v=Symbol("isDimensionFeatureGraphicOrigin");var E;class S extends f.A{get[(E=v,m.ym)](){return this.layer}get[h.e](){return this.layer}get[g.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[E]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var I=r(4146),T=r(52136),b=r(18768),M=r(63074),C=r(69208),D=r(40775),w=r(10086),A=r(34287),P=r(8303),L=r(54310),O=r(23502),F=r(25036),x=r(82935),N=r(60694),G=r(10873),Z=r(15426),Y=r(17036),j=r(30524),X=r(91908),q=r(97552),k=r(30291),R=r(36005);const _="dimension-feature-layer",U=(0,Y.p)();let B=class extends((0,O.Z)((0,D.I)((0,w.j)((0,M.dM)((0,x.e)((0,F.j)((0,L.J)((0,b.b)((0,A.q)((0,P.A)((0,d.M)((0,C.d)((0,T.p)((0,o.OU)(I.A))))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._debouncedSaveOperations=(0,u.sg)(async(e,t,i)=>{let{save:s,saveAs:a}=await r.e(5740).then(()=>r(33359));switch(e){case 0:return s(this,t);case 1:return a(this,i,t)}})}destroy(){this.source?.destroy()}load(e){let t=e?.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(u.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new n.A(`${_}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new n.A(`${_}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,Z.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){let{url:r}=this,i=t.name||(0,N.qg)(r)?.title;switch(this.sublayerTitleMode){case"item-title":if(r)return(0,N.yG)(r,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,N.cr)(e),i?`${e} - ${(0,N.cr)(i)}`:e;break}}return i?(0,N.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,k.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:s}=await(0,u.qr)(Promise.all([r.e(893),r.e(7013),r.e(3467)]).then(()=>r(65515)),e),a=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,l.Bf)((0,u.u7)(e,()=>a.cancelLoad())??(0,l.hA)()),!1),await a.load({signal:e}),a}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){let e=(0,Z.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,Z.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let r=await this.load(),i=await r.source.queryFeatures(q.A.from(e)??r.createQuery(),t),s=this.graphicOrigin;if(i?.features)for(let e of i.features)e.layer=e.sourceLayer=r,e.origin=s;return i}async queryObjectIds(e,t){let r=await this.load();return r.source.queryObjectIds(q.A.from(e)??r.createQuery(),t)}async queryFeatureCount(e,t){let r=await this.load();return r.source.queryFeatureCount(q.A.from(e)??r.createQuery(),t)}async queryExtent(e,t){let r=await this.load();return r.source.queryExtent(q.A.from(e)??r.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,X.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,j.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,Z.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new n.A(_+":unsupported-version","The feature service must be version 10.8 or above.");let e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new n.A(_+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,a.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}};(0,i.Cg)([(0,p.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],B.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,p.MZ)(G.es)],B.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,p.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],B.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({...U.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],B.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(U.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],B.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)(G.id)],B.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],B.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:["ArcGISDimensionLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],B.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)(U.outFields)],B.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)(G.M6)],B.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"referenceScale",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1,readOnly:!0})],B.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)()],B.prototype,"styleCollection",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],B.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],B.prototype,"symbolFields",void 0),(0,i.Cg)([(0,R.w)("service","title",["name"])],B.prototype,"readTitleFromService",null),(0,i.Cg)([(0,R.w)("portal-item","title")],B.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,p.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],B.prototype,"type",void 0),B=(0,i.Cg)([(0,p.$K)("esri.layers.DimensionFeatureLayer")],B);const H=B},40775(e,t,r){var i=r(32198),s=r(56507),a=r(49186),o=r(84952),n=r(91429),l=r(95250);function d(e,t){let r=e.indexOf(t);return-1===r?void 0:e[r+1]}function u(e,t){let r=d(e,t);return r&&"string"==typeof r?JSON.parse(r):null}function p(e){let t=d(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function y(e){return u(e,"SymbolCollection")??void 0}function c(e){return u(e,"StyleCollection")??void 0}r.d(t,["I",0,e=>{let t=e,r=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new a.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,o.fj)(this.url,"queryDataElements"),r={f:"json",layers:this.layerId},{data:i}=await(0,s.A)(t,{...e,responseType:"json",query:r}),n=i.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new a.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let d=n.extensionProperties?.propertySetItems??[],u=p(d),h=(0,l.S)(y(d)),m=(0,l.S)(c(d));this.read({referenceScale:u,symbolCollection:h,styleCollection:m},{origin:"service"})}};return r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],r),r}])},95250(e,t,r){function i(e){return s(e,{CIMRGBColor:a,CIMCharacterMarker:o})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let r={};for(let[i,a]of Object.entries(e))r[i]=s(a,t);return r}return e}function a(e){let[t,r,i,s]=e.values;return[t,r,i,255*s/100]}function o(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}r.d(t,{S:()=>i})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3527],{68197(e,t,r){r.d(t,{A:()=>h});var n=r(40876),i=r(4576),a=r(34727),s=r(78888);function o(e){return(0,a.qE)((0,s.Vr)(e),0,255)}function l(e,t){let r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}function u(e){return.2126*(0,n.Q6)(e.r)+.7152*(0,n.Q6)(e.g)+.0722*(0,n.Q6)(e.b)}class h{static blendColors(e,t,r,n=new h){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){let r=(0,n.lT)(e);return r?h.fromArray(r,t):null}static fromHex(e,t=new h){let r=(0,n.oW)(e);return r?h.fromArray(r,t):null}static fromArray(e,t=new h){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){let r=(0,n.Eq)(e);return r?h.fromArray(r,t):null}static fromJSON(e){return null==e?void 0:new h([e[0],e[1],e[2],(e[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null==this.a?1:this.a,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(e,t=3){let r=e instanceof h?e:new h(e),n=u(this),i=u(r);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)<t}setColor(e){if("string"==typeof e)h.fromString(e,this);else if((0,i.yc)(e))h.fromArray(e,this);else{let t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){let t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,a=`#${l(this.r,n)}${l(this.g,n)}${l(this.b,n)}${i?l(Math.round(255*this.a),n):""}`;return t?a.toUpperCase():a}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(e=!1){let t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){let t=o(this.r),r=o(this.g),n=o(this.b);return 0===e||1!==this.a?[t,r,n,o(255*this.a)]:[t,r,n]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}h.prototype.declaredClass="esri.Color"},40876(e,t,r){r.d(t,{Eq:()=>f,G1:()=>m,Q6:()=>y,TS:()=>a,V6:()=>i,Vm:()=>g,ay:()=>l,c1:()=>p,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!n[e]||!!n[e.toLowerCase()]}function a(e){return n[e]??n[e.toLowerCase()]}function s(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;let n=6*r;return n<1?e+(t-e)*n:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,n=1){let i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,s=2*r-a;return[Math.round(255*o(s,a,i+1/3)),Math.round(255*o(s,a,i)),Math.round(255*o(s,a,i-1/3)),n]}function u(e){let t=e.length>5,r=t?8:4,n=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length,s=Number("0x"+e.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return a&&(o=s&n,s>>=r,l[3]=i*o/255),o=s&n,s>>=r,l[2]=i*o,o=s&n,s>>=r,l[1]=i*o,o=s&n,s>>=r,l[0]=i*o,l}function h(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{let t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),n=parseInt(e.slice(3,4),16),i=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,n+16*n,(i+16*i)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function c(e){let t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){let e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){let t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),d(t)}return d(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function d(e){return e[0]=p(e[0]),e[1]=p(e[1]),e[2]=p(e[2]),e[3]=4===e.length?m(e[3]):1,e}function f(e){let t=i(e)?a(e):null;return t??=c(e),t??=h(e),t}function g(e){let t=f(e);return null==t?null:[t[0]/255,t[1]/255,t[2]/255,t[3]]}function m(e){return b(e,0,1)}function p(e){return Math.round(b(e,0,255))}function b(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const _=1/2.2;function y(e){return e**2.2}function v(e){return e**_}r.d(t,["iw",0,_])},85334(e,t,r){r.d(t,{$:()=>_,IB:()=>o,Iy:()=>S,KV:()=>R,N2:()=>y,RH:()=>E,ZD:()=>v,sn:()=>M});var n=r(68197),i=r(4576),a=r(4718),s=r(34727);function o(e){return"r"in e&&"g"in e&&"b"in e}function l(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function h(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const c=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],d=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,n,i=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let a=e.length,s=e[0].length,o=0;for(r=0;r<a;r++){for(o=0,n=0;n<s;n++)o+=e[r][n]*t[n];i.push(o)}return i}function g(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(c,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function m(e){let t=f(d,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function p(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function b(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function _(e){return o(e)?e:h(e)?function(e){return m(b(function(e){let t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):u(e)?function(e){return m(b(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?m(e):l(e)?function(e){let t,r=(e.h+360)%360/60,n=e.s/100,i=e.v/100*255,a=i*n,s=a*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:a,g:s,b:0};break;case 1:t={r:s,g:a,b:0};break;case 2:t={r:0,g:a,b:s};break;case 3:t={r:0,g:s,b:a};break;case 4:t={r:s,g:0,b:a};break;case 5:case 6:t={r:a,g:0,b:s};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+i-a),t.g=Math.round(t.g+i-a),t.b=Math.round(t.b+i-a),t}(e):e}function y(e){return l(e)?e:function(e){let{r:t,g:r,b:n}=e,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=i,o=0===a?0:i===t?(r-n)/a%6:i===r?(n-t)/a+2:(t-r)/a+4,l=0===a?0:a/s;return o<0&&(o+=6),o*=60,l*=100,s*=100/255,{h:o,s:l,v:s}}(_(e))}function v(e){return u(e)?e:function(e){return p(g(e))}(_(e))}function E(e){return h(e)?e:function(e){return function(e){let t=e.l,r=e.a,n=e.b,i=Math.sqrt(r*r+n*n),a=Math.atan2(n,r);return a=a>0?a:a+2*Math.PI,{l:t,c:i,h:a}}(p(g(e)))}(_(e))}function R(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function M(e){return e.length=4,R(e),e[3]??=1,(0,s.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){let r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,i.k4)((0,a.o8)(e),r.seed)),e.length>=t){let r=[],n=(e.length-1)/(t-1);for(let i=0;i<t;i++){let t=Math.round(i*n);r.push(e[t].clone())}return r}return function(e,t,r={}){let n=[],a=e.length-1,s=Math.ceil((t-e.length)/a);e:for(let i=0;i<a;i++){let a=e[i],o=e[i+1];for(let i=1;i<=s;i++){let l=i/(s+1);if(n.push(x(a,o,l,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,i.k4)(n,r.seed??1)]}(e,t,r)}const T=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function x(e,t,r,a={}){let s=e.r,o=e.g,l=e.b,u=t.r,h=t.g,c=t.b,d=Math.round(s+(u-s)*r),f=Math.round(o+(h-o)*r),g=Math.round(l+(c-l)*r);if(!a.offset)return new n.A([d,f,g]);let m=(0,i.Mo)(a.seed);return new n.A([T(d,m),T(f,m),T(g,m)])}},9093(e,t,r){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}r.d(t,{o8:()=>i,vt:()=>n});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:n,fromValues:function(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m){return[e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},58083(e,t,r){r.d(t,{$0:()=>b,$h:()=>I,B8:()=>h,C:()=>a,D_:()=>o,N9:()=>y,O7:()=>x,Qw:()=>u,Tl:()=>d,X_:()=>M,e$:()=>g,eL:()=>m,hM:()=>_,hZ:()=>s,hs:()=>f,kN:()=>p,l:()=>S,lw:()=>c,mg:()=>l,o1:()=>T,sC:()=>R,t2:()=>C,t5:()=>A,tZ:()=>O,ut:()=>N});var n=r(51850),i=r(34304);function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function s(e,t,r,n,i,a,s,o,l,u,h,c,d,f,g,m,p){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a,e[5]=s,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=f,e[13]=g,e[14]=m,e[15]=p,e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function l(e,t){if(e===t){let r=t[1],n=t[2],i=t[3],a=t[6],s=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=s,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function u(e,t){return h(e,t)||o(e),e}function h(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],b=t[15],_=r*o-n*s,y=r*l-i*s,v=r*u-a*s,E=n*l-i*o,R=n*u-a*o,M=i*u-a*l,S=h*m-c*g,T=h*p-d*g,x=h*b-f*g,I=c*p-d*m,A=c*b-f*m,w=d*b-f*p,C=_*w-y*A+v*I+E*x-R*T+M*S;return C?(C=1/C,e[0]=(o*w-l*A+u*I)*C,e[1]=(i*A-n*w-a*I)*C,e[2]=(m*M-p*R+b*E)*C,e[3]=(d*R-c*M-f*E)*C,e[4]=(l*x-s*w-u*T)*C,e[5]=(r*w-i*x+a*T)*C,e[6]=(p*v-g*M-b*y)*C,e[7]=(h*M-d*v+f*y)*C,e[8]=(s*A-o*x+u*S)*C,e[9]=(n*x-r*A-a*S)*C,e[10]=(g*R-m*v+b*_)*C,e[11]=(c*v-h*R-f*_)*C,e[12]=(o*T-s*I-l*S)*C,e[13]=(r*I-n*T+i*S)*C,e[14]=(m*y-g*E-p*_)*C,e[15]=(h*E-c*y+d*_)*C,e):null}function c(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],f=t[10],g=t[11],m=t[12],p=t[13],b=t[14],_=t[15],y=r[0],v=r[1],E=r[2],R=r[3];return e[0]=y*n+v*o+E*c+R*m,e[1]=y*i+v*l+E*d+R*p,e[2]=y*a+v*u+E*f+R*b,e[3]=y*s+v*h+E*g+R*_,y=r[4],v=r[5],E=r[6],R=r[7],e[4]=y*n+v*o+E*c+R*m,e[5]=y*i+v*l+E*d+R*p,e[6]=y*a+v*u+E*f+R*b,e[7]=y*s+v*h+E*g+R*_,y=r[8],v=r[9],E=r[10],R=r[11],e[8]=y*n+v*o+E*c+R*m,e[9]=y*i+v*l+E*d+R*p,e[10]=y*a+v*u+E*f+R*b,e[11]=y*s+v*h+E*g+R*_,y=r[12],v=r[13],E=r[14],R=r[15],e[12]=y*n+v*o+E*c+R*m,e[13]=y*i+v*l+E*d+R*p,e[14]=y*a+v*u+E*f+R*b,e[15]=y*s+v*h+E*g+R*_,e}function d(e,t,r){let n=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15];else{let r=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],f=t[8],g=t[9],m=t[10],p=t[11];e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=f,e[9]=g,e[10]=m,e[11]=p,e[12]=r*n+u*i+f*a+t[12],e[13]=s*n+h*i+g*a+t[13],e[14]=o*n+c*i+m*a+t[14],e[15]=l*n+d*i+p*a+t[15]}return e}function f(e,t,r){let n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function g(e,t,r,n){let s=n[0],o=n[1],l=n[2],u=Math.sqrt(s*s+o*o+l*l);if(u<=(0,i.FD)())return void a(e,t);u=1/u,s*=u,o*=u,l*=u;let h=Math.sin(r),c=Math.cos(r),d=1-c,f=t[0],g=t[1],m=t[2],p=t[3],b=t[4],_=t[5],y=t[6],v=t[7],E=t[8],R=t[9],M=t[10],S=t[11],T=s*s*d+c,x=o*s*d+l*h,I=l*s*d-o*h,A=s*o*d-l*h,w=o*o*d+c,C=l*o*d+s*h,N=s*l*d+o*h,O=o*l*d-s*h,L=l*l*d+c;e[0]=f*T+b*x+E*I,e[1]=g*T+_*x+R*I,e[2]=m*T+y*x+M*I,e[3]=p*T+v*x+S*I,e[4]=f*A+b*w+E*C,e[5]=g*A+_*w+R*C,e[6]=m*A+y*w+M*C,e[7]=p*A+v*w+S*C,e[8]=f*N+b*O+E*L,e[9]=g*N+_*O+R*L,e[10]=m*N+y*O+M*L,e[11]=p*N+v*O+S*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15])}function m(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=s*i+h*n,e[6]=o*i+c*n,e[7]=l*i+d*n,e[8]=u*i-a*n,e[9]=h*i-s*n,e[10]=c*i-o*n,e[11]=d*i-l*n,e}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function b(e,t,r){if(0===t)return o(e);let n=r[0],a=r[1],s=r[2],l=Math.sqrt(n*n+a*a+s*s);if(l<=(0,i.FD)())return null;l=1/l,n*=l,a*=l,s*=l;let u=Math.sin(t),h=Math.cos(t),c=1-h;return e[0]=n*n*c+h,e[1]=a*n*c+s*u,e[2]=s*n*c-a*u,e[3]=0,e[4]=n*a*c-s*u,e[5]=a*a*c+h,e[6]=s*a*c+n*u,e[7]=0,e[8]=n*s*c+a*u,e[9]=a*s*c-n*u,e[10]=s*s*c+h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function _(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function y(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function v(e,t,r){let n=t[0],i=t[1],a=t[2],s=t[3],o=n+n,l=i+i,u=a+a,h=n*o,c=n*l,d=n*u,f=i*l,g=i*u,m=a*u,p=s*o,b=s*l,_=s*u;return e[0]=1-(f+m),e[1]=c+_,e[2]=d-b,e[3]=0,e[4]=c-_,e[5]=1-(h+m),e[6]=g+p,e[7]=0,e[8]=d+b,e[9]=g-p,e[10]=1-(h+f),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const E=(0,n.vt)();function R(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function M(e,t){let r=t[0],n=t[1],i=t[2],a=t[4],s=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+s*s+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e}function S(e,t){let r=t[0]+t[5]+t[10],n=0;return r>0?(n=2*Math.sqrt(r+1),e[3]=.25*n,e[0]=(t[6]-t[9])/n,e[1]=(t[8]-t[2])/n,e[2]=(t[1]-t[4])/n):t[0]>t[5]&&t[0]>t[10]?(n=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/n,e[0]=.25*n,e[1]=(t[1]+t[4])/n,e[2]=(t[8]+t[2])/n):t[5]>t[10]?(n=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/n,e[0]=(t[1]+t[4])/n,e[1]=.25*n,e[2]=(t[6]+t[9])/n):(n=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/n,e[0]=(t[8]+t[2])/n,e[1]=(t[6]+t[9])/n,e[2]=.25*n),e}function T(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=t[3],l=i+i,u=a+a,h=s+s,c=i*l,d=i*u,f=i*h,g=a*u,m=a*h,p=s*h,b=o*l,_=o*u,y=o*h,v=n[0],E=n[1],R=n[2];return e[0]=(1-(g+p))*v,e[1]=(d+y)*v,e[2]=(f-_)*v,e[3]=0,e[4]=(d-y)*E,e[5]=(1-(c+p))*E,e[6]=(m+b)*E,e[7]=0,e[8]=(f+_)*R,e[9]=(m-b)*R,e[10]=(1-(c+g))*R,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function x(e,t,r,n,i){let a=t[0],s=t[1],o=t[2],l=t[3],u=a+a,h=s+s,c=o+o,d=a*u,f=a*h,g=a*c,m=s*h,p=s*c,b=o*c,_=l*u,y=l*h,v=l*c,E=n[0],R=n[1],M=n[2],S=i[0],T=i[1],x=i[2],I=(1-(m+b))*E,A=(f+v)*E,w=(g-y)*E,C=(f-v)*R,N=(1-(d+b))*R,O=(p+_)*R,L=(g+y)*M,P=(p-_)*M,D=(1-(d+m))*M;return e[0]=I,e[1]=A,e[2]=w,e[3]=0,e[4]=C,e[5]=N,e[6]=O,e[7]=0,e[8]=L,e[9]=P,e[10]=D,e[11]=0,e[12]=r[0]+S-(I*S+C*T+L*x),e[13]=r[1]+T-(A*S+N*T+P*x),e[14]=r[2]+x-(w*S+O*T+D*x),e[15]=1,e}function I(e,t,r,n,i,a,s){let o=1/(r-t),l=1/(i-n),u=1/(a-s);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+n)*l,e[10]=(s+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=s*a*2*u,e[15]=0,e}function A(e,t,r,n){let a=t[0],s=t[1],l=t[2],u=a-r[0],h=s-r[1],c=l-r[2],d=(0,i.FD)();if(Math.abs(u)<d&&Math.abs(h)<d&&Math.abs(c)<d)return void o(e);let f=1/Math.sqrt(u*u+h*h+c*c);u*=f,h*=f,c*=f;let g=n[0],m=n[1],p=n[2],b=m*c-p*h,_=p*u-g*c,y=g*h-m*u;f=Math.sqrt(b*b+_*_+y*y),f?(f=1/f,b*=f,_*=f,y*=f):(b=0,_=0,y=0);let v=h*y-c*_,E=c*b-u*y,R=u*_-h*b;f=Math.sqrt(v*v+E*E+R*R),f?(f=1/f,v*=f,E*=f,R*=f):(v=0,E=0,R=0),e[0]=b,e[1]=v,e[2]=u,e[3]=0,e[4]=_,e[5]=E,e[6]=h,e[7]=0,e[8]=y,e[9]=R,e[10]=c,e[11]=0,e[12]=-(b*a+_*s+y*l),e[13]=-(v*a+E*s+R*l),e[14]=-(u*a+h*s+c*l),e[15]=1}function w(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function C(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function N(e){let t=(0,i.FD)(),r=e[0],n=e[1],a=e[2],s=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(r*r+s*s+u*u))<=t&&Math.abs(1-(n*n+o*o+h*h))<=t&&Math.abs(1-(a*a+l*l+c*c))<=t}function O(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const L=c,P=w;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],f=t[11],g=t[12],m=t[13],p=t[14],b=t[15];return e[0]=o*(d*b-f*p)-c*(l*b-u*p)+m*(l*f-u*d),e[1]=-(n*(d*b-f*p)-c*(i*b-a*p)+m*(i*f-a*d)),e[2]=n*(l*b-u*p)-o*(i*b-a*p)+m*(i*u-a*l),e[3]=-(n*(l*f-u*d)-o*(i*f-a*d)+c*(i*u-a*l)),e[4]=-(s*(d*b-f*p)-h*(l*b-u*p)+g*(l*f-u*d)),e[5]=r*(d*b-f*p)-h*(i*b-a*p)+g*(i*f-a*d),e[6]=-(r*(l*b-u*p)-s*(i*b-a*p)+g*(i*u-a*l)),e[7]=r*(l*f-u*d)-s*(i*f-a*d)+h*(i*u-a*l),e[8]=s*(c*b-f*m)-h*(o*b-u*m)+g*(o*f-u*c),e[9]=-(r*(c*b-f*m)-h*(n*b-a*m)+g*(n*f-a*c)),e[10]=r*(o*b-u*m)-s*(n*b-a*m)+g*(n*u-a*o),e[11]=-(r*(o*f-u*c)-s*(n*f-a*c)+h*(n*u-a*o)),e[12]=-(s*(c*p-d*m)-h*(o*p-l*m)+g*(o*d-l*c)),e[13]=r*(c*p-d*m)-h*(n*p-i*m)+g*(n*d-i*c),e[14]=-(r*(o*p-l*m)-s*(n*p-i*m)+g*(n*l-i*o)),e[15]=r*(o*d-l*c)-s*(n*d-i*c)+h*(n*l-i*o),e},copy:a,determinant:function(e){let t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],f=e[12],g=e[13],m=e[14],p=e[15];return(t*s-r*a)*(c*p-d*m)-(t*o-n*a)*(h*p-d*g)+(t*l-i*a)*(h*m-c*g)+(r*o-n*s)*(u*p-d*f)-(r*l-i*s)*(u*m-c*f)+(n*l-i*o)*(u*g-h*f)},equals:function(e,t){if(e===t)return!0;let r=e[0],n=e[1],a=e[2],s=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],f=e[10],g=e[11],m=e[12],p=e[13],b=e[14],_=e[15],y=t[0],v=t[1],E=t[2],R=t[3],M=t[4],S=t[5],T=t[6],x=t[7],I=t[8],A=t[9],w=t[10],C=t[11],N=t[12],O=t[13],L=t[14],P=t[15],D=(0,i.FD)();return Math.abs(r-y)<=D*Math.max(1,Math.abs(r),Math.abs(y))&&Math.abs(n-v)<=D*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(a-E)<=D*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(s-R)<=D*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(o-M)<=D*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-S)<=D*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-T)<=D*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(h-x)<=D*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(c-I)<=D*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(d-A)<=D*Math.max(1,Math.abs(d),Math.abs(A))&&Math.abs(f-w)<=D*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(g-C)<=D*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(m-N)<=D*Math.max(1,Math.abs(m),Math.abs(N))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(b-L)<=D*Math.max(1,Math.abs(b),Math.abs(L))&&Math.abs(_-P)<=D*Math.max(1,Math.abs(_),Math.abs(P))},exactEquals:C,frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},fromQuat:function(e,t){let r=t[0],n=t[1],i=t[2],a=t[3],s=r+r,o=n+n,l=i+i,u=r*s,h=n*s,c=n*o,d=i*s,f=i*o,g=i*l,m=a*s,p=a*o,b=a*l;return e[0]=1-c-g,e[1]=h+b,e[2]=d-p,e[3]=0,e[4]=h-b,e[5]=1-u-g,e[6]=f+m,e[7]=0,e[8]=d+p,e[9]=f-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){let r=E,n=-t[0],i=-t[1],a=-t[2],s=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=n*n+i*i+a*a+s*s;return c>0?(r[0]=2*(o*s+h*n+l*a-u*i)/c,r[1]=2*(l*s+h*i+u*n-o*a)/c,r[2]=2*(u*s+h*a+o*i-l*n)/c):(r[0]=2*(o*s+h*n+l*a-u*i),r[1]=2*(l*s+h*i+u*n-o*a),r[2]=2*(u*s+h*a+o*i-l*n)),v(e,t,r),e},fromRotation:b,fromRotationTranslation:v,fromRotationTranslationScale:T,fromRotationTranslationScaleOrigin:x,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromTranslation:p,fromXRotation:_,fromYRotation:function(e,t){let r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:y,frustum:I,getRotation:S,getScale:M,getTranslation:R,hasIdentityRotation:O,identity:o,invert:h,invertOrIdentity:u,isOrthoNormal:N,lookAt:A,mul:L,multiply:c,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},ortho:function(e,t,r,n,i,a,s){let o=1/(t-r),l=1/(n-i),u=1/(a-s);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*o,e[13]=(i+n)*l,e[14]=(s+a)*u,e[15]=1,e},perspective:function(e,t,r,n,i){let a,s=1/Math.tan(t/2);return e[0]=s/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(a=1/(n-i),e[10]=(i+n)*a,e[14]=2*i*n*a):(e[10]=-1,e[14]=-2*n),e},perspectiveFromFieldOfView:function(e,t,r,n){let i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),s=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(s+o),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(s-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},rotate:g,rotateX:m,rotateY:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=s*i-h*n,e[2]=o*i-c*n,e[3]=l*i-d*n,e[8]=a*n+u*i,e[9]=s*n+h*i,e[10]=o*n+c*i,e[11]=l*n+d*i,e},rotateZ:function(e,t,r){let n=Math.sin(r),i=Math.cos(r),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=s*i+h*n,e[2]=o*i+c*n,e[3]=l*i+d*n,e[4]=u*i-a*n,e[5]=h*i-s*n,e[6]=c*i-o*n,e[7]=d*i-l*n,e},scale:f,set:s,str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},sub:P,subtract:w,targetTo:function(e,t,r,n){let i=t[0],a=t[1],s=t[2],o=n[0],l=n[1],u=n[2],h=i-r[0],c=a-r[1],d=s-r[2],f=h*h+c*c+d*d;f>0&&(f=1/Math.sqrt(f),h*=f,c*=f,d*=f);let g=l*d-u*c,m=u*h-o*d,p=o*c-l*h;return f=g*g+m*m+p*p,f>0&&(f=1/Math.sqrt(f),g*=f,m*=f,p*=f),e[0]=g,e[1]=m,e[2]=p,e[3]=0,e[4]=c*p-d*m,e[5]=d*g-h*p,e[6]=h*m-c*g,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=s,e[15]=1,e},translate:d,transpose:l},Symbol.toStringTag,{value:"Module"}))},90629(e,t,r){r.d(t,{Lz:()=>s,PN:()=>o,cr:()=>l,gs:()=>h,r_:()=>c,tc:()=>u}),r(39829);const n=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i=o(1),a=s(1);function s(e){return e?e/72*96:0}function o(e){return e?72*e/96:0}function l(e){if("string"==typeof e){let t=e.match(n);if(t){let r=Number(t[1]),n=t[3]&&t[3].toLowerCase(),i=e.startsWith("-"),a="px"===n?o(r):r;return i?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function u(e=0,t=0){return{x:e,y:t}}function h(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}r.d(t,["L7",0,a,"ps",0,i])},4197(e,t,r){r.d(t,{Vj:()=>h,cj:()=>u,jh:()=>a,l5:()=>o,yH:()=>l});var n=r(34275),i=r(9093);function a(e){return e<=1024?Array(e).fill(0):new Float64Array(e)}function s(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=1024?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 l(e,t){if(0===t.length)return s(e);if(0===e.length)return s(t);let r=a(e.length+t.length);for(let t=0;t<e.length;++t)r[t]=e[t];for(let n=0;n<t.length;++n)r[e.length+n]=t[n];return r}function u(e){return[...e]}function h(e){let t=(0,i.vt)();for(let r=0;r<16;++r)t[r]=e[r];return t}},70328(e,t,r){r.d(t,{BI:()=>I,C:()=>s,DC:()=>d,Ej:()=>y,Ie:()=>T,Jt:()=>x,Lu:()=>E,Ne:()=>R,RF:()=>c,TF:()=>b,VL:()=>g,aI:()=>w,fA:()=>o,gE:()=>u,gX:()=>_,hZ:()=>S,iT:()=>f,is:()=>A,pg:()=>v,uJ:()=>p,vI:()=>M,vY:()=>l,vt:()=>a,w1:()=>h,yr:()=>m}),r(35522);var n=r(5443),i=(r(19419),r(4197));function a(e=N){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t){for(let r=0;r<6;r++)e[r]=t[r];return e}function o(e,t,r,n,i,s,o=a()){return o[0]=e,o[1]=t,o[2]=r,o[3]=n,o[4]=i,o[5]=s,o}function l(e,t=a()){return function(e,t,r,n=a()){return S(n,C),function(e,t,r=0,n=t.length/3){let i=e[0],a=e[1],s=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)i=Math.min(i,t[r+3*e]),a=Math.min(a,t[r+3*e+1]),s=Math.min(s,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=i,e[1]=a,e[2]=s,e[3]=o,e[4]=l,e[5]=u}(n,e,t,r),n}(e,0,e.length/3,t)}function u(e,t=(0,i.jh)(24)){let[r,n,a,s,o,l]=e;return t[0]=r,t[1]=n,t[2]=a,t[3]=r,t[4]=n,t[5]=l,t[6]=r,t[7]=o,t[8]=a,t[9]=r,t[10]=o,t[11]=l,t[12]=s,t[13]=n,t[14]=a,t[15]=s,t[16]=n,t[17]=l,t[18]=s,t[19]=o,t[20]=a,t[21]=s,t[22]=o,t[23]=l,t}function h(e,t){return isFinite(e[2])||isFinite(e[5])?new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}):new n.A({xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t,r=e){r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r[2]=Math.min(e[2],t[2]),r[3]=Math.max(e[3],t[3]),r[4]=Math.max(e[4],t[4]),r[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,[t,r,n]){!function(e,t,r,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],r),e[2]=Math.min(e[2],n),e[3]=Math.max(e[3],t),e[4]=Math.max(e[4],r),e[5]=Math.max(e[5],n)}(e,t,r,n)}function g(e){return e[0]>=e[3]?0:e[3]-e[0]}function m(e){return e[1]>=e[4]?0:e[4]-e[1]}function p(e){return e[2]>=e[5]?0:e[5]-e[2]}function b(e){let t=g(e),r=p(e),n=m(e);return t*t+r*r+n*n}function _(e,t=[0,0,0]){return t[0]=e[0]+g(e)/2,t[1]=e[1]+m(e)/2,t[2]=e[2]+p(e)/2,t}function y(e,t=[0,0,0]){return t[0]=g(e),t[1]=m(e),t[2]=p(e),t}function v(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function E(e,t){return t[0]=e[3],t[1]=e[4],t[2]=e[5],t}function R(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function M(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function S(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function T(e){return e?S(e,C):a(C)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=-1/0,e[3]=t[2],e[4]=t[3],e[5]=1/0,e}function I(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=-1/0,e[3]=n,e[4]=i,e[5]=1/0,e}function A(e){return 6===e.length}function w(e,t,r){if(null==e||null==t)return e===t;if(!A(e)||!A(t))return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];a(),r.d(t,["qv",0,C,"v_",0,N])},50498(e,t,r){var n=r(66552),i=r(5443),a=r(91075),s=r(48526),o=r(86738),l=r(39829),u=r(82799);const h=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:s.A,point:o.A,polyline:u.A,polygon:l.A}},f=new n.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0});r.d(t,["Ye",0,c,"gy",0,h,"iI",0,f,"yR",0,d])},49013(e,t,r){r.r(t),r.d(t,{default:()=>pt});var n=r(32198),i=r(4576),a=r(69540),s=r(49186),o=r(36563),l=r(44208),u=r(53966),h=r(25728),c=r(17676),d=r(36708),f=r(91429),g=r(87024),m=r(4146),p=r(52136),b=r(18768),_=r(69208),y=r(34287),v=r(8303),E=r(25036),R=r(58947),M=r(10873),S=r(10292),T=r(58083),x=r(9093),I=r(35522),A=r(51850),w=r(34727),C=r(49208),N=r(79258);function O(e,t,r,n){let i=n+t;if(i<n/2||r>i)return Number.MAX_VALUE;let a=Math.abs(P*e)+Math.asin(r/i);return a>=Math.PI/2?Number.MAX_VALUE:r/Math.cos(a)}const L=(0,A.vt)(),P=(0,w.kU)(1);var D=r(27993),q=(r(73941),r(16930)),F=r(98764),U=r(4341),k=r(19419),Q=r(11964),G=r(27921),V=r(71351),j=r(44280),W=r(32114);const Z=()=>u.A.getLogger("esri.views.3d.support.geometryUtils.boundedPlane");function z(e=he){return{plane:(0,G.vt)(e.plane),origin:(0,A.o8)(e.origin),basis1:(0,A.o8)(e.basis1),basis2:(0,A.o8)(e.basis2)}}function B(e,t=z()){return $(e.origin,e.basis1,e.basis2,t)}function $(e,t,r,n=z()){return(0,I.C)(n.origin,e),(0,I.C)(n.basis1,t),(0,I.C)(n.basis2,r),H(n),function(e,t){Math.abs((0,I.Om)(e.basis1,e.basis2)/((0,I.Bw)(e.basis1)*(0,I.Bw)(e.basis2)))>1e-6&&Z().warn(t,"Provided basis vectors are not perpendicular"),Math.abs((0,I.Om)(e.basis1,ae(e)))>1e-6&&Z().warn(t,"Basis vectors and plane normal are not perpendicular"),Math.abs(-(0,I.Om)(ae(e),e.origin)-e.plane[3])>1e-6&&Z().warn(t,"Plane offset is not consistent with plane origin")}(n,"fromValues()"),n}function H(e){(0,G.mR)(e.basis2,e.basis1,e.origin,e.plane)}function Y(e,t,r){e!==r&&B(e,r);let n=(0,I.hs)(W.rq.get(),ae(e),t);return(0,I.WQ)(r.origin,r.origin,n),r.plane[3]-=t,r}function X(e,t=z()){let r=(e[2]-e[0])/2,n=(e[3]-e[1])/2;return(0,I.hZ)(t.origin,e[0]+r,e[1]+n,0),(0,I.hZ)(t.basis1,r,0,0),(0,I.hZ)(t.basis2,0,n,0),(0,G.fA)(0,0,1,0,t.plane),t}function K(e,t,r){return!!(0,G.Ui)(e.plane,t,r)&&se(e,r)}function J(e,t,r){let n=ce.get();ue(e,t,n,ce.get());let i=1/0;for(let a of me){let s=le(e,a,de.get()),o=W.rq.get();if((0,G.T7)(n,s,o)){let e=(0,I.oW)(W.rq.get(),t.origin,o),n=Math.abs((0,w.XM)((0,I.Om)(t.direction,e)));n<i&&(i=n,(0,I.C)(r,o))}}return i===1/0?ee(e,t,r):r}function ee(e,t,r){if(K(e,t,r))return r;let n=ce.get(),i=ce.get();ue(e,t,n,i);let a=1/0;for(let s of me){let o=le(e,s,de.get()),l=W.rq.get();if((0,G.gv)(n,o,l)){let e=(0,V.kb)(t,l);if(!(0,G.BX)(i,l))continue;e<a&&(a=e,(0,I.C)(r,l))}}return ne(e,t.origin)<a&&te(e,t.origin,r),r}function te(e,t,r){let n=(0,G._I)(e.plane,t,W.rq.get()),i=(0,Q.H6)(oe(e,e.basis1),n,-1,1,W.rq.get()),a=(0,Q.H6)(oe(e,e.basis2),n,-1,1,W.rq.get());return(0,I.Re)(r,(0,I.WQ)(W.rq.get(),i,a),e.origin),r}function re(e,t,r){let{origin:n,basis1:i,basis2:a}=e,s=(0,I.Re)(W.rq.get(),t,n),o=(0,j.gr)(i,s),l=(0,j.gr)(a,s),u=(0,j.gr)(ae(e),s);return(0,I.hZ)(r,o,l,u)}function ne(e,t){let r=re(e,t,W.rq.get()),{basis1:n,basis2:i}=e,a=(0,I.Bw)(n),s=(0,I.Bw)(i),o=Math.max(Math.abs(r[0])-a,0),l=Math.max(Math.abs(r[1])-s,0),u=r[2];return o*o+l*l+u*u}function ie(e,t){let r=-e.plane[3];return(0,j.gr)(ae(e),t)-r}function ae(e){return(0,G.Qj)(e.plane)}function se(e,t){let r=(0,I.Re)(W.rq.get(),t,e.origin),n=(0,I.m3)(e.basis1),i=(0,I.m3)(e.basis2),a=(0,I.Om)(e.basis1,r),s=(0,I.Om)(e.basis2,r);return-a-n<0&&a-n<0&&-s-i<0&&s-i<0}function oe(e,t){let r=de.get();return(0,I.C)(r.origin,e.origin),(0,I.C)(r.vector,t),r}function le(e,t,r){let{basis1:n,basis2:i,origin:a}=e,s=(0,I.hs)(W.rq.get(),n,t.origin[0]),o=(0,I.hs)(W.rq.get(),i,t.origin[1]);(0,I.WQ)(r.origin,s,o),(0,I.WQ)(r.origin,r.origin,a);let l=(0,I.hs)(W.rq.get(),n,t.direction[0]),u=(0,I.hs)(W.rq.get(),i,t.direction[1]);return(0,I.hs)(r.vector,(0,I.WQ)(l,l,u),2),r}function ue(e,t,r,n){let i=ae(e);(0,G.mR)(i,t.direction,t.origin,r),(0,G.mR)((0,G.Qj)(r),i,t.origin,n)}const he={plane:(0,G.vt)(),origin:(0,A.fA)(0,0,0),basis1:(0,A.fA)(1,0,0),basis2:(0,A.fA)(0,1,0)},ce=new U.I(G.vt),de=new U.I(Q.vt),fe=(0,A.vt)(),ge=new U.I(()=>z()),me=[{origin:[-1,-1],direction:[1,0]},{origin:[1,-1],direction:[0,1]},{origin:[1,1],direction:[-1,0]},{origin:[-1,1],direction:[0,-1]}],pe=(0,x.vt)(),be=(0,x.vt)();Object.freeze(Object.defineProperty({__proto__:null,altitudeAt:ie,axisAt:function(e,t,r,n){return function(e,t,r){switch(t){case 0:(0,I.C)(r,e.basis1),(0,I.S8)(r,r);break;case 1:(0,I.C)(r,e.basis2),(0,I.S8)(r,r);break;case 2:(0,I.C)(r,ae(e))}return r}(e,r,n)},cameraFrustumCoverage:function(e,t){return(t-e)/t},closestPoint:ee,closestPointOnSilhouette:J,copy:B,copyWithoutVerify:function(e,t){(0,I.C)(t.origin,e.origin),(0,I.C)(t.basis1,e.basis1),(0,I.C)(t.basis2,e.basis2),(0,G.C)(t.plane,e.plane)},create:z,distance:function(e,t){return Math.sqrt(ne(e,t))},distance2:ne,distanceToSilhouette:function(e,t){let r=-1/0;for(let n of me){let i=le(e,n,de.get()),a=(0,Q.kb)(i,t);a>r&&(r=a)}return Math.sqrt(r)},elevate:Y,equals:function(e,t){return e===t||null==e&&null==t||null!=e&&null!=t&&(0,I.t2)(e.basis1,t.basis1)&&(0,I.t2)(e.basis2,t.basis2)&&(0,I.t2)(e.origin,t.origin)},extrusionContainsPoint:function(e,t){return(0,G.mN)(e.plane,t)>0&&se(e,t)},fromAABoundingRect:X,fromValues:$,getExtent:function(e,t){let r=e.basis1[0],n=e.basis2[1],[i,a]=e.origin;return(0,k.fA)(i-r,a-n,i+r,a+n,t)},intersectRay:K,intersectRayClosestSilhouette:function(e,t,r){if(K(e,t,r))return r;let n=J(e,t,W.rq.get());return(0,I.WQ)(r,t.origin,(0,I.hs)(W.rq.get(),t.direction,(0,I.Io)(t.origin,n)/(0,I.Bw)(t.direction))),r},normal:ae,projectPoint:te,projectPointLocal:re,rotate:function(e,t,r,n){return e!==n&&B(e,n),(0,T.$0)(be,t,r),(0,I.Z0)(n.basis1,e.basis1,be),(0,I.Z0)(n.basis2,e.basis2,be),H(n),n},setAltitudeAt:function(e,t,r,n){let i=ie(e,t),a=(0,I.hs)(fe,ae(e),r-i);return(0,I.WQ)(n,t,a),n},setExtent:function(e,t,r){return X(t,r),Y(r,ie(e,e.origin),r),r},transform:function(e,t,r){return e!==r&&B(e,r),(0,T.B8)(pe,t),(0,T.mg)(pe,pe),(0,I.Z0)(r.basis1,e.basis1,pe),(0,I.Z0)(r.basis2,e.basis2,pe),(0,I.Z0)((0,G.Qj)(r.plane),(0,G.Qj)(e.plane),pe),(0,I.Z0)(r.origin,e.origin,t),(0,G.mP)(r.plane,r.plane,r.origin),r},up:he,updateUnboundedPlane:H,wrap:function(e,t,r){let n=ge.get();return n.origin=e,n.basis1=t,n.basis2=r,n.plane=(0,G.LV)(0,0,0,0),H(n),n}},Symbol.toStringTag,{value:"Module"}));var _e=r(94008);(0,A.vt)(),(0,A.vt)();var ye=r(89707);class ve extends ye.H{constructor(e,t){super(NaN,NaN),this.id=e,this.serviceMbsInIndexSR=t,this._serviceMbsInRenderSRElevationAdjusted=new _e.iy(0,0,0,-1),this._serviceMbsInRenderSR=new _e.iy(0,0,0,-1),this._serviceMbsElevationUpdateExtent=null,this._mbsConeInRenderSR=null}get serviceMbsInRenderSRElevationAdjusted(){return this._serviceMbsInRenderSRElevationAdjusted}updateServiceMbsInRenderSRElevationAdjusted(e){return this._serviceMbsInRenderSRElevationAdjusted.copyFrom(e),this._serviceMbsInRenderSRElevationAdjusted}get serviceMbsInRenderSR(){return this._serviceMbsInRenderSR}updateServiceMbsInRenderSR(e){return this._serviceMbsInRenderSR.copyFrom(e),null!=this._serviceMbsElevationUpdateExtent&&(0,k.Ie)(this._serviceMbsElevationUpdateExtent),this._serviceMbsInRenderSR}get serviceMbsElevationUpdateExtent(){return this._serviceMbsElevationUpdateExtent??=(0,k.Ie)()}get mbsConeInRenderSR(){return this._mbsConeInRenderSR}updateMbsConeInRenderSR(e){return this._mbsConeInRenderSR=e.clone(),this._mbsConeInRenderSR}invalidateServiceBVsInRenderSR(){this._serviceMbsInRenderSRElevationAdjusted.invalidate(),this._serviceMbsInRenderSR.invalidate(),null!=this._serviceMbsElevationUpdateExtent&&(0,k.Ie)(this._serviceMbsElevationUpdateExtent),this._mbsConeInRenderSR=null,this.serviceObbInRenderSR?.invalidate()}shareServiceBVsInRenderSRWith(e){this.serviceObbInRenderSR=e.serviceObbInRenderSR,this._serviceMbsInRenderSRElevationAdjusted=e._serviceMbsInRenderSRElevationAdjusted,this._serviceMbsInRenderSR=e._serviceMbsInRenderSR,this._serviceMbsElevationUpdateExtent=e._serviceMbsElevationUpdateExtent??=(0,k.Ie)(),this._mbsConeInRenderSR=e._mbsConeInRenderSR}}class Ee extends ve{constructor(e,t,r,n,i,a,s,o,l,u,h){super(e,r),this.index=t,this.childCount=n,this.level=i,this.resources=a,this.version=s,this.lodMetric=o,this.maxError=l,this.numFeatures=u,this.failed=!1,this.cacheState=0,this.vertexCount=0,this.memory=0,this.childrenLoaded=0,this.hasModifications=!1,this.imModificationImpact=4,this.elevationAgnosticBoundingVolume=new Re,this.serviceObbInIndexSR=h}invalidateServiceBVsInRenderSR(){super.invalidateServiceBVsInRenderSR(),this.elevationAgnosticBoundingVolume.invalidate()}}class Re{constructor(){this._data=[0,0,0,Re.invalidRadius]}static{this.invalidRadius=-2}invalidate(){this._data[3]=Re.invalidRadius}get valid(){return this._data[3]!==Re.invalidRadius}get radius(){return this._data[3]}getAxis(e){return e[0]=this._data[0],e[1]=this._data[1],e[2]=this._data[2],e}set(e,t){this._data[0]=e[0],this._data[1]=e[1],this._data[2]=e[2],this._data[3]=t}intersectsFrustumConservative(e,t,r){if(!this.valid)return!0;let n=this.getAxis(Me),{center:i,radius:a}=e.boundingSphere,s=a+r;return 1===t?this.radius>Se||function(e,t,r,n){let i=(0,I.Bw)(r);if(i<=n)return!0;let a=(0,I.Om)(e,r);if(a<=0)return-a<=n;let s=(0,w.qE)(a/i,-1,1),o=Math.sqrt(1-s*s),l=(0,w.qE)(n/i,0,1);return o*Math.sqrt(1-l*l)-l*s<=t}(n,this.radius,i,s):function(e,t,r,n){let i=r[0]-e[0],a=r[1]-e[1],s=t+n;return i*i+a*a<=s*s}(n,this.radius,i,s)&&function(e,t,r,n,i){for(let a of i){let i=a[0],s=a[1],o=a[2],l=o>0?r:n;if(i*e[0]+s*e[1]+o*l+a[3]-Math.hypot(i,s)*t>0)return!1}return!0}(n,this.radius,i[2]-s,i[2]+s,e.planes)}}const Me=(0,A.vt)(),Se=.9;var Te=r(25992),xe=r(66480),Ie=r(57005),Ae=r(4431),we=r(62747),Ce=r(58682),Ne=r(92359);class Oe{constructor(e,t,r){this._layer=e,this._descriptor=t,this._options=r,this._subtaskAbortController=new AbortController,this._highest=-1/0,this._signal=AbortSignal.any([r.signal,this._subtaskAbortController.signal]),this._indexSpatialReference=(0,xe.Rm)(e),this._vertexSpatialReference=(0,xe.Dd)(e),this._intersectionSpaceSpatialReference=function(e,t){return e?(0,F.lO)(t):t.isGeographic?q.A.PlateCarree:t}(this._indexSpatialReference.isGeographic,this._indexSpatialReference),this._indexToVertexProjector=(0,C.wy)(this._indexSpatialReference,this._vertexSpatialReference),this._vertexToIntersectionSpaceProjector=(0,C.wy)(this._vertexSpatialReference,this._intersectionSpaceSpatialReference),this.frameTask=r.scheduler.registerTask(Ne.W6.ELEVATION_QUERY),this.promise=this._run()}async _run(){let e={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(e,this.frameTask,!1);try{let e=this._descriptor;if("point"!==e.geometry.type)throw new s.A("elevation-query:invalid-geometry","Only point geometries can be used to query elevation");if(null==this._indexToVertexProjector||null==this._vertexToIntersectionSpaceProjector)throw new s.A("integrated-mesh-elevation-query:projection","Failed to create projection for elevation query.");let t=await e.project(this._indexSpatialReference,this._signal);(0,c.Te)(this._signal),t??this._throwSpatialReferenceMismatchError();let r=t.coordinates[0],n=function(e,t,r,n,i){let a=(0,A.fA)(e,t,r),s=(0,A.fA)(e,t,r-1e3),o=(0,A.vt)(),l=(0,A.vt)();return(0,D.F)(a,n,o,i)&&(0,D.F)(s,n,l,i)?(0,V.Cr)(o,l):null}(r.x,r.y,this.getRootRayOriginZ(),this._indexSpatialReference,this._intersectionSpaceSpatialReference);return n??this._throwSpatialReferenceMismatchError(),this._queryRay=n,await this.visitRoot(),(0,c.Te)(this._signal),r.z=this._highest===-1/0?De:this._highest,t}catch(e){throw this._subtaskAbortController.abort(),e}}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}_throwSpatialReferenceMismatchError(){throw new s.A("elevation-query:spatial-reference-mismatch",`Cannot query elevation in '${this._descriptor.spatialReference.wkid}' on an elevation service in '${this._indexSpatialReference.wkid}'`)}_intersectsQueryObb(e){let t=this._queryRay,r=new Ie.ab;return e.transform(r,this._indexSpatialReference,this._intersectionSpaceSpatialReference),r.intersectRay(t.origin,t.direction)}intersectsQueryBounds(e){if(null==e)return!0;let t=this._queryRay;if(null!=e.obb)return this._intersectsQueryObb(Ie.ab.fromJSON(e.obb));let r=new _e.iy;return!function(e,t,r,n){if(null==e||null==t||null==n)return!1;let i=(0,C.Tp)(t,n);if(null==i?.projector)return!1;if(i.projector===C.pO)return r.copyFrom(e),!0;let{source:a,dest:s,projector:o}=i;if(3===s.spatialReferenceId){let t=C.w5[a.spatialReferenceId][2];return null!=t&&(t(e.center,0,L,0),(0,C.s7)(L,0,r.center,0),r.radius=O(L[1],e.center[2],e.radius,N.$O.radius),!0)}if(2!==a.spatialReferenceId&&5!==a.spatialReferenceId||11!==s.spatialReferenceId){o(e.center,0,r.center,0);let t=a.metersPerUnit??1,n=s.metersPerUnit??1;r.radius=e.radius*t/n}else{let t=C.w5[a.spatialReferenceId][1],n=C.w5[1][11],i=e.radius;null!=t&&null!=n&&(i=O(e.center[1],e.center[2],e.radius,N.$O.radius)),o(e.center,0,r.center,0),r.radius=i}return!0}(new _e.iy(e.mbs),this._indexSpatialReference,r,this._intersectionSpaceSpatialReference)||r.intersectRay(t)}async _processLeafNode(e){let t=await this._layer.elevationQueryNodeLoader.loadNodeData(e,this._signal);if((0,c.Te)(this._signal),null==t.geometryBuffer||null==t.geometryDescriptor)return;let r=await this.transformNode(e,t);(0,c.Te)(this._signal),null!=r&&await this.frameTask.schedule(()=>{this._highest=this.intersectTransformedGeometry(r,this._highest,this._options.elevationOffset)},this._signal)}async transformNode(e,t){let r=e.serviceMbsInIndexSR;if(null==r)return null;let n=(0,Te.C)(r,0,qe,this._indexSpatialReference,this._intersectionSpaceSpatialReference),i={context:`i3s-elevation-query-${this._layer.uid}`,geometryBuffer:t.geometryBuffer,geometryData:null,geometryDescriptor:t.geometryDescriptor,layouts:[Fe],globalTrafo:n,geometryElevationOffset:0,mbs:r.toJSON(),obbData:e.serviceObbInIndexSR?.data,elevationOffset:0,planetRadiusInGlobalMode:0,needNormals:!1,computeNormals:!1,normalReferenceFrame:qe,indexToVertexProjector:this._indexToVertexProjector,vertexToRenderProjector:this._vertexToIntersectionSpaceProjector},a=await this._layer.processElevationQueryGeometry(i,this._signal);return(0,c.Te)(this._signal),a}intersectTransformedGeometry(e,t,r){let n=e.globalTrafo;if(null==(0,T.B8)(Ue,n))return t;let i=this._queryRay,a=(0,I.Z0)(ke,i.origin,Ue),s=(0,I.WQ)(Qe,i.origin,i.direction),o=(0,I.Z0)(Ge,s,Ue),l=(0,I.jb)(Ve,o,a),{data:u,indices:h}=e.transformedGeometry.positionData,c=h.length/3,d=t;return(0,Ce.h7)(a,l,0,c,h,u,3,!1,e=>{let t=(0,I.hs)(je,l,e);(0,I.WQ)(t,t,a);let i=(0,I.Z0)(We,t,n),s=Ze;if((0,D.F)(i,this._intersectionSpaceSpatialReference,s,this._layer.spatialReference)){let e=s[2]+r;d=Math.max(d,e)}}),d}async requestJSON(e){let t=await this._layer.elevationQueryDataRequester.request(e,"json",this._signal);return(0,c.Te)(this._signal),t}}class Le extends Oe{constructor(e,t,r,n){super(e,t,r),this._pendingPages=new Map,this._loadedPages=new Map,this._pageSize=n.pageSize,this._rootIndex=n.rootIndex,this._urlPrefix=n.urlPrefix;let i=this._pageId(this._rootIndex),a=this._rootIndex-i*this._pageSize,s=Ie.ab.fromJSON(n.rootPage.nodes[a].obb);this._rootRayOriginZ=s.centerZ+s.radius+1,this._loadedPages.set(i,n.rootPage)}visitRoot(){return this._visitNode(this._rootIndex)}getRootRayOriginZ(){return this._rootRayOriginZ}_pageId(e){return Math.floor(e/this._pageSize)}getPage(e){let t=this._loadedPages.get(e);if(null!=t)return Promise.resolve(t);let r=this._pendingPages.get(e);if(null!=r)return r;let n=this.requestJSON(`${this._urlPrefix}${e}`);return this._pendingPages.set(e,n),n.then(t=>{this._loadedPages.set(e,t),this._pendingPages.delete(e)},()=>this._pendingPages.delete(e)),n}async _visitNode(e){let t=this._pageId(e),r=await this.getPage(t);(0,c.Te)(this._signal);let n=r.nodes[e-t*this._pageSize],i=Ie.ab.fromJSON(n.obb);if(!this._intersectsQueryObb(i))return;let{children:a}=n;if(null!=a&&a.length>0)return await Promise.all(a.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let s=this._createNode(e,n,i);null!=s&&(await this._processLeafNode(s),(0,c.Te)(this._signal))}_createNode(e,t,r){let{mesh:n}=t;if(null==n?.geometry)return null;let i=new _e.iy(r.getCenter((0,A.vt)()),r.radius),{geometry:a,material:s}=n;return new Ee(`${e}`,e,i,t.children?.length??0,0,{hasSharedResource:!1,isEmpty:!1,geometry:`${a.resource}`,geometryDefinition:a.definition,materialDefinition:s?.definition??-1},"",0,0,a.featureCount??null,r)}}class Pe extends Oe{constructor(e,t,r,n){super(e,t,r),this._rootNode=n.rootNode,this._urlPrefix=n.urlPrefix}visitRoot(){return this.intersectsQueryBounds(this._rootNode)?this._visitNodeData(this._rootNode,null!=this._rootNode.obb):Promise.resolve()}getRootRayOriginZ(){return this._rootNode.mbs[2]+this._rootNode.mbs[3]+1}_visitNode(e){return this.intersectsQueryBounds(e)?this._visitNodeAsync(e):Promise.resolve()}async _visitNodeAsync(e){let t=await this.requestJSON(`${this._urlPrefix}${e.id}`);(0,c.Te)(this._signal),await this._visitNodeData(t,null!=e.obb),(0,c.Te)(this._signal)}async _visitNodeData(e,t){if(!t&&null!=e.obb&&!this._intersectsQueryObb(Ie.ab.fromJSON(e.obb)))return;let{children:r}=e;if(null!=r&&r.length>0)return await Promise.all(r.map(e=>this._visitNode(e))),void(0,c.Te)(this._signal);let n=this._createNode(e);null!=n&&(await this._processLeafNode(n),(0,c.Te)(this._signal))}_createNode(e){let{geometryData:t,id:r}=e;if(null==t||0===t.length)return null;let n=null==e.obb?null:Ie.ab.fromJSON(e.obb),i=new _e.iy(e.mbs);return new Ee(r,0,i,e.children?.length??0,0,{hasSharedResource:null!=e.sharedResource,isEmpty:!1,geometry:r,geometryDefinition:0},e.version??"",0,0,null,n)}}const De=Number.MAX_VALUE,qe="none",Fe=(0,Ae.U)((0,we.hH)(new we.W7(!1,!1,0))),Ue=(0,x.vt)(),ke=(0,A.vt)(),Qe=(0,A.vt)(),Ge=(0,A.vt)(),Ve=(0,A.vt)(),je=(0,A.vt)(),We=(0,A.vt)(),Ze=(0,A.vt)();var ze=r(50805),Be=r(58325),$e=r(24212),He=r(80215),Ye=r(97159),Xe=r(16215),Ke=r(98697),Je=r(56507),et=r(97768),tt=r(50075);class rt{constructor(e,t){this._customParameters=e,this._apiKey=t,this._activeRequests=new Set}isFull(e){return(0,tt._i)(e)}request(e,t,r){let n=new AbortController,i=(0,c.NY)(r,()=>n.abort()),a={...tt.Fz,signal:n.signal,responseType:t,query:{...this._customParameters,token:this._apiKey}},s=(0,Je.A)(e,a),o={abortController:n,abortHandle:i};return this._activeRequests.add(o),s.then(({data:e})=>e).finally(()=>{o.abortController=null,o.abortHandle=(0,et.xt)(o.abortHandle),this._activeRequests.delete(o)})}cancelAll(){this._activeRequests.forEach(e=>{e.abortController=(0,et.DC)(e.abortController),e.abortHandle=(0,et.xt)(e.abortHandle)}),this._activeRequests.clear()}}var nt=r(60999),it=r(4718),at=r(84952),st=r(59418),ot=r(85334);r(91829),r(46859);var lt=r(74810),ut=r(49788);function ht(e){return e.sort((e,t)=>e.encoding-t.encoding)}const ct={ktx2:1,basis:2,dds:4,png:8,jpg:16,"ktx-etc2":32},dt={"image/ktx2":2,"image/x.basis":2,"image/vnd-ms.dds":4,"image/png":8,"image/jpg":16,"image/jpeg":16,"image/ktx":32};class ft{constructor(e,t,r,n,i,a){if(this._requester=t,this._logger=r,this._defaultGeometrySchema=n,this._requiredAttributes=i,this._options=a,this._logLayer=e,this._layerUrl=e.parsedUrl.path,this._geometryDefinitions=e.geometryDefinitions,e.materialDefinitions){let t=e.textureSetDefinitions;this._materialAndTextures=e.materialDefinitions.map(r=>function(e,t,r){let n=new Map,i=(e,t)=>{if(null==e)return-1;let r=n.get(e.id);if(r)return r.usage|=t,r.id;let i=n.size;return n.set(e.id,{id:i,usage:t}),i},a=t.pbrMetallicRoughness,s=a?.baseColorFactor?(0,ot.sn)(a.baseColorFactor):null,o=t.emissiveFactor,l=r&&0===a?.metallicFactor||(0,lt.Jr)({normalTexture:t.normalTexture,emissiveTexture:t.emissiveTexture,emissiveFactor:t.emissiveFactor,occlusionTexture:t.occlusionTexture,metallicRoughnessTexture:a?.metallicRoughnessTexture,metallicFactor:a?.metallicFactor,roughnessFactor:a?.roughnessFactor}),u=l?lt.Bt[0]:a?.metallicFactor??lt.mb[0],h=l?lt.Bt[1]:a?.roughnessFactor??lt.mb[1],c="mask"===t.alphaMode?33:1,d={baseColorFactor:s?[s[0],s[1],s[2],s[3]]:[1,1,1,1],baseColorTextureId:i(a?.baseColorTexture,c),metallicRoughnessTextureId:i(a?.metallicRoughnessTexture,2),metallicFactor:u,roughnessFactor:h},f={alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,cullFace:"none"===t.cullFace?0:"back"===t.cullFace?2:+("front"===t.cullFace),normalTextureId:i(t.normalTexture,4),emissiveTextureId:i(t.emissiveTexture,16),occlusionTextureId:i(t.occlusionTexture,8),emissiveFactor:o?[o[0],o[1],o[2]]:[0,0,0],metallicRoughness:d,wrapTextures:!1,hasParametersFromSource:l},g=[];return n.forEach(({usage:t},r)=>{let n=null!=e&&e[r]&&e[r].formats,i=n?ht(n.map(({name:e,format:t})=>({name:e,encoding:ct[t]}))):[];g.push({id:r,usage:t,encodings:i})}),{material:f,textures:g}}(t,r,"integrated-mesh"===e.type))}}_loadAttribute(e,t,r){let n=`${this._layerUrl}/nodes/${e.resources.attributes}/attributes/${t.key}/0`;return this._requester.request(n,"array-buffer",r).then(e=>(0,st.m0)(t,e))}async loadAttributes(e,t,r){let n=await Promise.allSettled(t.map(t=>this._loadAttribute(e,t.attributeStorageInfo,r))),i={};for(let r=0;r<t.length;++r){let a=n[r],s=t[r];if("fulfilled"===a.status){let e=a.value;i[s.name]=e}else{let t=a.reason;(0,c.QP)(t),this._logger.error("#loadAttributes",this._logLayer,`Failed to load attributeData for '${s.name}' on node '${e.id}'`,t)}}return i}async loadNodeData(e,t){let r=null!=this._requiredAttributes&&e.resources.attributes?(0,nt.Ke)(this.loadAttributes(e,this._requiredAttributes,t)):null,{bufferDefinition:n,bufferIndex:i}=function(e,t){let r={bufferDefinition:null,bufferIndex:0},n=t.resources.geometryDefinition;if(null==e||null==n||n<0)return r;let i=n>=0?e[n].geometryBuffers:null;if(null==i)return r;for(let e=0;e<i.length;e++){let t=i[e];if(null!=t.compressedAttributes){if("draco"===t.compressedAttributes.encoding&&!(0,l.A)("disable-feature:i3s-draco"))return r.bufferIndex=e,r.bufferDefinition=t,r}else r.bufferIndex=e,r.bufferDefinition=i[e]}return r}(this._geometryDefinitions,e),a=!!e.resources.geometry,s=a?(0,nt.Ke)(this._loadGeometry(e.resources.geometry,i,t)):null,o=e.resources.hasSharedResource?await this._loadShared(e,t):null,u=e.resources.materialDefinition,h=this._materialAndTextures&&null!=u&&u>=0?this._materialAndTextures[u]:null==o?null:function(e){let t=e?.materialDefinitions?Object.keys(e.materialDefinitions)[0]:null,r=e?.textureDefinitions?Object.keys(e.textureDefinitions)[0]:null,n=t?e.materialDefinitions?.[t]:null,i=r?e.textureDefinitions?.[r]:null,a={alphaMode:"opaque",alphaCutoff:ut.Q,doubleSided:!0,cullFace:0,normalTextureId:-1,emissiveTextureId:-1,occlusionTextureId:-1,emissiveFactor:[0,0,0],metallicRoughness:{baseColorFactor:[.8,.8,.8,1],baseColorTextureId:-1,metallicRoughnessTextureId:-1,metallicFactor:0,roughnessFactor:.6},wrapTextures:!1,hasParametersFromSource:!0};if(null!=n){let e=n.params;e.diffuse&&((0,ot.KV)(e.diffuse),a.metallicRoughness.baseColorFactor=[e.diffuse[0],e.diffuse[1],e.diffuse[2],1]),null!=e.doubleSided&&(a.doubleSided=e.doubleSided,a.cullFace=e.doubleSided?0:2),("none"===e.cullFace||"front"===e.cullFace||"back"===e.cullFace)&&(a.cullFace="none"===e.cullFace?0:"back"===e.cullFace?2:1),e.transparency&&(a.metallicRoughness.baseColorFactor[3]=(0,w.qE)(1-e.transparency,0,1)),(e.useVertexColorAlpha||a.metallicRoughness.baseColorFactor[3]<1)&&(a.alphaMode="blend")}let s=[];if(null!=i){i.wrap&&("repeat"===i.wrap[0]||"repeat"===i.wrap[1])&&(a.wrapTextures=!0);let e=1;"rgba"===i.channels&&(a.alphaMode="blend",e|=32);let t=i.images.length-1,r=i.images[t],n=e=>e?.split("/").pop(),o=Array.isArray(i.encoding)?ht(i.encoding.map((e,t)=>({name:n(r.href[t]),encoding:dt[e]||0}))):[{name:n(r.href),encoding:dt[i.encoding]||0}];s.push({id:0,usage:e,encodings:o}),a.metallicRoughness.baseColorTextureId=0}return{material:a,textures:s}}(o),c=h?.material,d=h?.textures??[],f=`${e.id}`,g=!a&&this._options.loadFeatureData,m=g?await this._loadFeatureData(f,t):null,p=g?function(e){if(!e)return null;for(let t of e.featureData){let e=t.geometries;if(null!=e)for(let r of e)return{featureIds:[t.id],featureDataPosition:t.position,geometries:[r]}}return null}(m):{featureIds:[],geometries:[{type:"ArrayBufferView",params:{material:c}}],featureDataPosition:[0,0,0]},b=null==p?function(e){if(!e)return null;let t=[];for(let r of e.featureData)null!=r.position&&t.push({featureIds:[r.id],featureDataPosition:r.position,geometries:[]});return t}(m):null,_=d.length>0?(0,nt.Ke)(this.loadTextures(e,d,t)):null,y=null,v=null;if(s){y=(0,nt.QA)(await s);let e=function(e,t){if(!e||!t?.materialDefinitions)return e;let r=Object.keys(t.materialDefinitions)[0];return!t.materialDefinitions[r].params.vertexRegions&&e.vertexAttributes.region&&delete(e=(0,it.o8)(e)).vertexAttributes.region,e}(this._defaultGeometrySchema,o);v=(0,st.qs)(n,e)}let E=_?(0,nt.QA)(await _):null,R=r?(0,nt.QA)(await r):{},M=R?{attributeData:R,loadedAttributes:this._requiredAttributes}:null;if(null!=p)return{geometryData:p,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:E};if(null!=b)return{pointData:b,attributeDataInfo:M,geometryBuffer:y,geometryDescriptor:v,requiredTextures:d,textureData:E};throw Error()}static _addAbsoluteHrefTexture(e,t){let r=e.textureDefinitions;if(null!=r)for(let e of Object.keys(r))for(let n of r[e].images)n.hrefConcat=Array.isArray(n.href)?n.href.map(e=>(0,at.s2)(e,t)):(0,at.s2)(n.href,t)}static _fixTextureEncodings(e){let t=e.textureDefinitions;if(null!=t)for(let e in t){let r=t[e];if(Array.isArray(r.encoding))for(let e=0;e<r.encoding.length;e++){let t=r.encoding[e];t.startsWith("data:")&&(r.encoding[e]=t.slice(5))}else{let e=r.encoding;e.startsWith("data:")&&(r.encoding=e.slice(5))}}}async _loadShared(e,t){if(null==e.resources.geometry)return{};let r=`${this._layerUrl}/nodes/${e.resources.geometry}/shared`,n=await this._requester.request(r,"json",t);return ft._fixTextureEncodings(n),ft._addAbsoluteHrefTexture(n,r),n}_loadTexture(e,t,r,n,i){return 4===n||1===n||2===n?this._requester.request(e,"array-buffer",i).then(e=>({id:t,usage:r,data:e,encoding:n})):this._requester.request(e,"image",i).then(e=>({id:t,usage:r,data:e,encoding:n}))}loadTextures(e,t,r){let n=this._options.textureUsageMask;return Promise.all(t.map(t=>{if(0===(t.usage&n))return null;let i=function(e,t){if(null!=t)return e.find(e=>0!==(e.encoding&t))}(t.encodings,this._options.textureEncodings);if(null==i)return this._logger.error("#loadTextures",this._logLayer,`No known encoding for texture found on node ${e.id}`),Promise.reject();let a=e.resources.texture||e.id,s=`${this._layerUrl}/nodes/${a}/textures/${i.name}`;return this._loadTexture(s,t.id,t.usage,i.encoding,r)}))}_loadFeatureData(e,t){let r=`${this._layerUrl}/nodes/${e}/features/0`;return this._requester.request(r,"json",t)}_loadGeometry(e,t,r){let n=`${this._layerUrl}/nodes/${e}/geometries/${t}`;return this._requester.request(n,"array-buffer",r)}}var gt=r(36005);let mt=class extends((0,R.w6)((0,b.b)((0,y.q)((0,v.A)((0,E.j)((0,h.M)((0,_.d)((0,p.p)((0,a.OU)(m.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.path=null,this.definitionExpression=null,this._elevationQueryAbortController=new AbortController,this._elevationQueryWorkerContext=`i3s-elevation-query-${this.uid}`,this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,this._modificationsGeneration=0}destroy(){this._elevationQueryAbortController.abort();let e=this._elevationQueryWorkerHandle;this._elevationQueryWorkerHandle=null,this._elevationQueryWorkerSetup=null,e?.destroyContextAndSelf(this._elevationQueryWorkerContext),super.destroy()}initialize(){this.addHandles([(0,d.on)(()=>this.modifications,"after-changes",()=>{this.modifications=this.modifications,this._modificationsGeneration++},d.OH),(0,d.wB)(()=>this.modifications,()=>this._modificationsGeneration++,d.OH),(0,d.wB)(()=>this.memoizedElevationQueryDependencies,()=>this._abortElevationQueriesAfterDependencyChange(),d.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,Ye.f)(e,r),context:r}}set elevationInfo(e){(null==e||"absolute-height"===e.mode)&&this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get _elevationQueryWorker(){return this._elevationQueryWorkerHandle??=new Ke.Cm((e,t)=>Ne.nu.schedule(e,t))}get memoizedElevationQueryDependencies(){return[this.elevationInfo?.offset,this._modificationsGeneration]}async queryElevation(e,t,r){let a={stack:[],error:void 0,hasError:!1};try{let l=r?.noDataValue??Number.MAX_VALUE,u=this._elevationQueryWorker,h=new AbortController;e.addHandles((0,o.rE)(h),h),(0,n.mS)(a,(0,o.Bf)((0,o.hA)(()=>e.removeHandles(h))),!1);let d=AbortSignal.any([r?.signal,this._elevationQueryAbortController.signal,h.signal].filter(i.Ru));await this.load({signal:d}),(0,c.Te)(d);let f=S.q.fromGeometry(t),g={signal:d,elevationOffset:this.elevationInfo?.offset??0,scheduler:e.resourceController.scheduler};if(null==this._elevationQueryWorkerSetup){let e=this.store?.defaultGeometrySchema;null!=e&&(this._elevationQueryWorkerSetup=u.setLegacySchema(this._elevationQueryWorkerContext,e))}let m=await async function(e,t,r){let n=await e.indexInfo;if((0,c.Te)(r.signal),null==n)throw new s.A("integrated-mesh-elevation-query:index-missing","I3S index information is missing.");return"page"===n.type?new Le(e,t,r,n).promise:new Pe(e,t,r,n).promise}(this,f,g);(0,c.Te)(d);let p=m.coordinates[0].z===De;p&&(m.coordinates[0].z=l);let b=await m.project(t.spatialReference,d);(0,c.Te)(d);let _=b??f.clone(),y={geometry:_.export(),noDataValue:l};return r?.returnSampleInfo&&(y.sampleInfo=_.coordinates.map(()=>({demResolution:p?-1:1}))),y}catch(e){a.error=e,a.hasError=!0}finally{(0,n.hk)(a)}}_abortElevationQueriesAfterDependencyChange(){let e=this._elevationQueryAbortController;this._elevationQueryAbortController=new AbortController,e.abort()}async processElevationQueryGeometry(e,t){return await this._elevationQueryWorkerSetup,(0,c.Te)(t),this._elevationQueryWorker.invoke(e,t)}async _doLoad(e){let t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,c.QP)(e)}if((0,c.Te)(t),await this._fetchService(t),(0,c.Te)(t),null!=this._modificationsSource){let r=await Be.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);(0,c.Te)(t),this.setAtOrigin("modifications",r,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t),(0,c.Te)(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){return this._debouncedSaveOperations(0,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"})}get isUsedAsGroundLayer(){return!(0,l.A)("enable-feature:im-as-ground")||(0,Xe.S)(this.parent)||(0,He.Q)(this.parent)}get replacesTerrain(){return!1}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}get elevationQueryDataRequester(){return new rt(this.customParameters,this.apiKey)}get elevationQueryNodeLoader(){return new ft(this,this.elevationQueryDataRequester,u.A.getLogger("esri.layers.IntegratedMeshLayer"),this.store?.defaultGeometrySchema,[],{loadFeatureData:!1,textureUsageMask:0})}_validateElevationInfo(e){let t="Integrated mesh layers";(0,$e.XF)(u.A.getLogger(this),(0,$e.B)(t,"absolute-height",e)),(0,$e.XF)(u.A.getLogger(this),(0,$e.tW)(t,e))}};(0,n.Cg)([(0,f.MZ)({type:String,readOnly:!0})],mt.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.MZ)({type:["show","hide"]})],mt.prototype,"listMode",void 0),(0,n.Cg)([(0,f.MZ)({type:["IntegratedMeshLayer"]})],mt.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,f.MZ)({json:{read:!1},readOnly:!0})],mt.prototype,"type",void 0),(0,n.Cg)([(0,f.MZ)({type:ze.W4,readOnly:!0,clonable:!1})],mt.prototype,"nodePages",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.uV],readOnly:!0,clonable:!1})],mt.prototype,"materialDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.Ot],readOnly:!0,clonable:!1})],mt.prototype,"textureSetDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({type:[ze.L0],readOnly:!0,clonable:!1})],mt.prototype,"geometryDefinitions",void 0),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],mt.prototype,"serviceUpdateTimeStamp",void 0),(0,n.Cg)([(0,f.MZ)({type:Be.A,clonable:e=>e?.clone()??e}),(0,g.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],mt.prototype,"modifications",void 0),(0,n.Cg)([(0,f.MZ)({clonable:e=>e?{...e}:null})],mt.prototype,"_modificationsSource",void 0),(0,n.Cg)([(0,gt.w)(["web-scene","portal-item"],"modifications")],mt.prototype,"readModifications",null),(0,n.Cg)([(0,f.MZ)(M.Yj)],mt.prototype,"elevationInfo",null),(0,n.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],mt.prototype,"path",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"_elevationQueryWorker",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"_modificationsGeneration",void 0),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"memoizedElevationQueryDependencies",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"isUsedAsGroundLayer",null),(0,n.Cg)([(0,f.MZ)()],mt.prototype,"replacesTerrain",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryDataRequester",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],mt.prototype,"elevationQueryNodeLoader",null),mt=(0,n.Cg)([(0,f.$K)("esri.layers.IntegratedMeshLayer")],mt);const pt=mt},85707(e,t,r){var n=r(32198),i=r(91429),a=r(54239);r.d(t,["a",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.heightModelInfo=null}read(e,t){super.read(e,t),"service"===t?.origin&&2===this.heightModelInfo?.origin&&(this.heightModelInfo.associatedSpatialReference=this.getAtOrigin("spatialReference","service"))}};return(0,n.Cg)([(0,i.MZ)({readOnly:!0,type:a.A})],r.prototype,"heightModelInfo",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.HeightModelInfoMixin")],r),r}])},10292(e,t,r){r.d(t,{q:()=>o});var n=r(48526),i=r(86738),a=r(82799),s=r(99917);class o{constructor(e){this.geometry=e,this.spatialReference=e.spatialReference}export(){return this._exporter(this.coordinates,this.spatialReference)}clone(e){let t=new o(this.geometry);return t.spatialReference=this.spatialReference,t.coordinates=e??this.coordinates.map(e=>e.clone()),t._exporter=this._exporter,t}async project(e,t){if(this.spatialReference.equals(e))return this.clone();await(0,s.initializeProjection)([{source:this.spatialReference,dest:e}],{signal:t});let r=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),i=(0,s.project)(r,e);if(!i)return null;let a=this.coordinates.map((e,t)=>{let r=e.clone(),n=i.points[t];return r.x=n[0],r.y=n[1],r}),o=this.clone(a);return o.spatialReference=e,o}projectSync(e){if(this.spatialReference.equals(e))return this.clone();let t=new n.A({spatialReference:this.spatialReference,points:this.coordinates.map(e=>[e.x,e.y])}),r=(0,s.project)(t,e);if(!r)return null;let i=this.coordinates.map((e,t)=>{let n=e.clone(),i=r.points[t];return n.x=i[0],n.y=i[1],n}),a=this.clone(i);return a.spatialReference=e,a}static fromGeometry(e){let t=new o(e);if(e instanceof o)return t.coordinates=e.coordinates.map(e=>e.clone()),t._exporter=(t,r)=>{let n=e.clone(t);return n.spatialReference=r,n},t;switch(e.type){case"point":{let r=e,{hasZ:n,hasM:a}=r;return t.coordinates=n&&a?[new l(r.x,r.y,r.z,r.m)]:n?[new l(r.x,r.y,r.z)]:a?[new l(r.x,r.y,null,r.m)]:[new l(r.x,r.y)],t._exporter=(t,r)=>e.hasM?new i.A(t[0].x,t[0].y,t[0].z,t[0].m,r):new i.A(t[0].x,t[0].y,t[0].z,r),t}case"multipoint":{let r=e,{hasZ:i,hasM:a}=r;return t.coordinates=i&&a?r.points.map(e=>new l(e[0],e[1],e[2],e[3])):i?r.points.map(e=>new l(e[0],e[1],e[2])):a?r.points.map(e=>new l(e[0],e[1],null,e[2])):r.points.map(e=>new l(e[0],e[1])),t._exporter=(t,r)=>e.hasM?new n.A({points:t.map(e=>[e.x,e.y,e.z??0,e.m??0]),hasZ:!0,hasM:!0,spatialReference:r}):new n.A({points:t.map(e=>[e.x,e.y,e.z??0]),spatialReference:r}),t}case"polyline":{let r=e,n=[],i=[],{hasZ:s,hasM:o}=e,u=0;for(let e of r.paths)if(i.push([u,u+e.length]),u+=e.length,s&&o)for(let t of e)n.push(new l(t[0],t[1],t[2],t[3]));else if(s)for(let t of e)n.push(new l(t[0],t[1],t[2]));else if(o)for(let t of e)n.push(new l(t[0],t[1],null,t[2]));else for(let t of e)n.push(new l(t[0],t[1]));return t.coordinates=n,t._exporter=(t,r)=>{let n=e.hasM?t.map(e=>[e.x,e.y,e.z??0,e.m??0]):t.map(e=>[e.x,e.y,e.z??0]),s=i.map(e=>n.slice(e[0],e[1]));return new a.A({paths:s,hasM:e.hasM,hasZ:!0,spatialReference:r})},t}}}}class l{constructor(e,t,r=null,n=null,i=null,a=null){this.x=e,this.y=t,this.z=r,this.m=n,this.tile=i,this.elevationTile=a}clone(){return new l(this.x,this.y,this.z,this.m)}}},73179(e,t,r){r.d(t,{b:()=>l,h:()=>u});var n=r(4718),i=r(53966),a=r(84952),s=r(60694),o=r(10873);function l(e){let{nonStandardUrlAllowed:t=!1,separator:r}=e??{},a=(0,n.o8)(o.OZ),l=a.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,n,i){(0,s.LS)(this,e,r,t,i)}),{...a,set:function(e){if(null==e)return void this._set("url",e);let r=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",r.url),null!=r.layerId&&this._set("layerId",r.layerId)}}}function u(e,t){let{separator:r}=t??{},n=(0,a.An)(e.url);return null!=n&&(null==e.dynamicDataSource?null!=e.layerId&&(n.path=(0,a.fj)(n.path,r??"",e.layerId.toString())):n.path=(0,a.fj)(n.path,"dynamicLayer")),n}},89707(e,t,r){r.d(t,{H:()=>n});class n{constructor(e=1/0,t=-1/0){this.minElevation=e,this.maxElevation=t}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(e){return this.minElevation<=e.minElevation&&this.maxElevation>=e.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(e){let t=Math.min(this.minElevation,e.minElevation),r=Math.max(this.maxElevation,e.maxElevation),n=t!==this.minElevation||r!==this.maxElevation;return this.minElevation=t,this.maxElevation=r,n}expandElevationRangeValues(e,t){let r=Math.min(this.minElevation,e),n=Math.max(this.maxElevation,t),i=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,i}setElevationRange(e){this.minElevation=e.minElevation,this.maxElevation=e.maxElevation}setElevationRangeValues(e,t){this.minElevation=e,this.maxElevation=t}equals(e){return this.minElevation===e.minElevation&&this.maxElevation===e.maxElevation}}},62747(e,t,r){r.d(t,{W7:()=>a,hH:()=>s});var n=r(1843),i=r(65786);i.Y;class a extends i.Y{constructor(e,t,r){super(),this.hasVertexColors=e,this.hasNormals=t,this.textureCoordinateType=r}}function s(e){let t=(0,n.BP)().vec3f("position");return e.hasNormals&&t.vec2i16("normalCompressed",{glNormalized:!0}),1===e.textureCoordinateType?t.vec2f("uv0"):2===e.textureCoordinateType&&(t.vec2f("uv0"),t.vec4u16("uvRegion",{glNormalized:!0})),e.hasVertexColors&&t.vec4u8("color",{glNormalized:!0}),t.freeze()}},92359(e,t,r){r.d(t,{nu:()=>d,W6:()=>u}),r(4576),r(71511),r(44208),r(53966);var n=r(17676),i=(r(36708),r(44794),r(78659)),a=r(32198),s=r(69622),o=r(91429);let l=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,a.Cg)([(0,o.MZ)()],l.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,a.Cg)([(0,o.MZ)()],l.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),l=(0,a.Cg)([(0,o.$K)("esri.views.support.debugFlags")],l),new l,r(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,i.l5)(6.5),(0,i.l5)(1),(0,i.l5)(30),(0,i.l5)(1e3/30),(0,i.l5)(100),Symbol.dispose;const h=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};h.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,r){try{if((0,n.G4)(t)){let e=(0,n.NK)();return r?Promise.resolve(r(e)):Promise.reject(e)}return(0,n.z7)(e(h))}catch(e){return Promise.reject(e)}}reschedule(e,t,r){return this.schedule(e,t,r)}async scheduleGenerator(e,t,r){if((0,n.G4)(t)){let e=(0,n.NK)();if(r)return r(e);throw e}let i=e(h);for(;;){let e=i.next(h),a=(0,n.$X)(e)?await e:e;if((0,n.G4)(t)){let e=(0,n.NK)();if(r){let t=r(e),a=i.return(null);return(0,n.$X)(a)&&await(0,n.QZ)(a),t}let t=i.throw(e);throw(0,n.$X)(t)&&await(0,n.QZ)(t),e}if(a.done)return a.value}}}const d=new c}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[931,1560,2938,3312,5853],{52106(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),l=r(37838),s=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),y=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),b=r(60950),v=r(54339),w=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,s.OU)(u.o)){static{i=w.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let 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.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:h.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:x.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>l});var i=r(54639),n=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function l(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),n=r(14112),o=r(16930),l=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,l.fT)(e)?p("point",e,r):(0,l.Rg)(e)?p("polyline",e,r):(0,l.Bi)(e)?p("polygon",e,r):(0,l.U9)(e)?p("multipoint",e,r):(0,l.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let o=!1,l=!1;switch(e){case"point":if((0,n.e6)(t))return null;o=void 0!==t.z,l=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,l=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,l,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function l(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>l,IY:()=>o,Wq:()=>n,e6:()=>i})},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split("."),l=/^\s*\d+\s*$/;if(!r?.match||!l.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!l.test(o)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new n(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof n.A?Object.keys(e.items):s(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),n=a(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),g=p(e);if(g&&l.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let f,h=s(e)&&s(t);for(let i of y){let n,o=u(e,i),l=u(t,i);if((h||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(r&&r[i]&&"function"==typeof r[i])n=r[i]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;n={type:"complete",oldValue:o,newValue:l}}else n="object"==typeof o&&"object"==typeof l&&p(o)===p(l)?c(o,l):{type:"complete",oldValue:o,newValue:l};null!=n&&(null==f?f={type:"partial",diff:{[i]:n}}:f.diff[i]=n)}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>n,vD:()=>l,yS:()=>o});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let 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 o(){return`{${n().toUpperCase()}}`}function l(){return`{${n()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,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":{let r=[];for(let 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]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},52136(e,t,r){var i=r(32198),n=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),n=r(93637),o=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let n=new l.A;return n.read(i,r),[n]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(69540),o=r(25482),l=r(91429),s=r(56400);let a=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>c});var i=r(32198),n=r(69540),o=r(25482),l=r(91429),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let c=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),u=r(90629),p=r(91429),c=r(90360),d=r(73913),y=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),b=r(36005),v=r(43937);const w=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function x(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends s.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],o=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,v.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,v.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,v.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,v.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,c.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,c.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=n=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),o=r(25482),l=r(91429),s=r(32730),a=r(36005),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,n.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),o=r(7762),l=r(25482),s=r(91429);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let n=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(p(n.minScale),c(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,n){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>c,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>y,rU:()=>d,tH:()=>b,zA:()=>w});var i=r(799);const n=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function c(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(n,'" + ').replaceAll(o,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=f.exec(e)||h.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&v in e}r.d(t,["vK",0,v])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),n=r(53966),o=r(46499);const l=()=>n.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let n of e){let e=n.labelPlacement,o=p[t];if(!n.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!o)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(n);else{let i=o[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=n.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),n=r(53966),o=r(46140),l=r(95466),s=r(55674);class a{static async from(e,t,r){let l=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(let e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);let d=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});let y=await(0,s.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!l||!l.greaterEqual(4,0);g&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:l});let f=new u(r,g);return new a(g,p,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new l.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new l.A(t)}}class u extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>b});var i,n=r(32198),o=r(52106),l=r(66552),s=r(25482),a=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),y=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:n}=this;if(n)for(let e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,n]}=e,o=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=o.length;e<t;e++)l?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,n],scale:[o,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*o+i,e=>n-e*l,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){let o=e[t],l=r.fromJSON(o),s=o.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=i);let a=o.aggregateGeometries,u=l.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}n.push(l)}return n}_quantizePoints(e,t,r){let i,n,o=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==i||l!==n)&&(o.push([e-i,l-n]),i=e,n=l)}else i=t(s[0]),n=r(s[1]),o.push([i,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],l=this._quantizePoints(o,t,r);l&&n.push(l)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let o,l,s=(0,c.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,n=i.length;e<n;e++){let n=i[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{let o,l,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}if(i&&n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],b.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],b.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,n.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),n=r(66552),o=r(53966),l=r(91429),s=r(93223);const a=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,n,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);