@arcgis/core 6.0.0-next.40 → 6.0.0-next.41

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 (403) hide show
  1. package/Camera.js +1 -1
  2. package/applications/Components/arcadeFeatureUtils.d.ts +12 -0
  3. package/applications/Components/arcadeFeatureUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/00d43f02119167531d1b.js +1 -0
  6. package/assets/esri/core/workers/chunks/059cda6f11a91dbc9e28.js +1 -0
  7. package/assets/esri/core/workers/chunks/{1c406ab2bf99ac563316.js → 0696fa44a04b99738d7b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/073f0232135f71b6c7a5.js +1 -0
  9. package/assets/esri/core/workers/chunks/098ac10877d92fde1006.js +1 -0
  10. package/assets/esri/core/workers/chunks/0a29d87b6e58a3c6df8f.js +1 -0
  11. package/assets/esri/core/workers/chunks/0bf43d80cb40c2b43333.js +1 -0
  12. package/assets/esri/core/workers/chunks/0d04353843ccb7440342.js +1 -0
  13. package/assets/esri/core/workers/chunks/1866f832e5f52958bc97.js +1 -0
  14. package/assets/esri/core/workers/chunks/19e51cbb354954ddafbd.js +1 -0
  15. package/assets/esri/core/workers/chunks/1c7096eb48a3a7f27d4f.js +1 -0
  16. package/assets/esri/core/workers/chunks/1cc03067f8405285057c.js +1 -0
  17. package/assets/esri/core/workers/chunks/23f3692c7426173e8352.js +1 -0
  18. package/assets/esri/core/workers/chunks/24bdeafbb16ae83bb8c3.js +1 -0
  19. package/assets/esri/core/workers/chunks/2b27d3bc492e000bbe58.js +1 -0
  20. package/assets/esri/core/workers/chunks/2d64a13c2303e9cae613.js +1 -0
  21. package/assets/esri/core/workers/chunks/2dfe6af28cd1b29d5ebc.js +1 -0
  22. package/assets/esri/core/workers/chunks/2e760d04641755d1820d.js +1 -0
  23. package/assets/esri/core/workers/chunks/{0b21d0e2e5a91c34a108.js → 2f54e4feb554c1a7b9c4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/305eeaac0b4d5b79ebde.js +1 -0
  25. package/assets/esri/core/workers/chunks/353976c812ebf0c98549.js +1 -0
  26. package/assets/esri/core/workers/chunks/45aaefbdffe5e15dfb24.js +1 -0
  27. package/assets/esri/core/workers/chunks/{592b5db1459c02cf6a0c.js → 46504fc81f357bc7465a.js} +1 -1
  28. package/assets/esri/core/workers/chunks/4caebb64a365da18453f.js +1 -0
  29. package/assets/esri/core/workers/chunks/{2fcd7db1e192858a650e.js → 503ee206e7de1f65e291.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{76e80381fa6d1e084796.js → 54de7dc0597fc80d7a52.js} +1 -1
  31. package/assets/esri/core/workers/chunks/55c0c074e4afe05f5d4d.js +1 -0
  32. package/assets/esri/core/workers/chunks/598ba405e93ebccf7b2d.js +1 -0
  33. package/assets/esri/core/workers/chunks/5bfb962ca192f90a2724.js +1 -0
  34. package/assets/esri/core/workers/chunks/6699fac01ccd842851ba.js +1 -0
  35. package/assets/esri/core/workers/chunks/672a5390182b20d632be.js +1 -0
  36. package/assets/esri/core/workers/chunks/{00311d1b18d5952a014b.js → 6738b3d6bce34a1e8be2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/67c2e5953087dadfd245.js +1 -0
  38. package/assets/esri/core/workers/chunks/67caef2ecf0dc5f2eed3.js +1 -0
  39. package/assets/esri/core/workers/chunks/68fd7b314377d27aaa54.js +1 -0
  40. package/assets/esri/core/workers/chunks/6d863761f29f31a030eb.js +1 -0
  41. package/assets/esri/core/workers/chunks/{ce8ef2eec290e1df6b2a.js → 7390af96250e89194332.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7452b5ae971a9ff2e6e9.js +1 -0
  43. package/assets/esri/core/workers/chunks/7672c123cfb960f4ddad.js +1 -0
  44. package/assets/esri/core/workers/chunks/{9934e8e19f94e9169eea.js → 776b64a1e1a57878c34c.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{58716a3a6106a1b0fb9d.js → 832c887fdc5af4c08cf2.js} +1 -1
  46. package/assets/esri/core/workers/chunks/84fb27e3425515cd0e3f.js +1 -0
  47. package/assets/esri/core/workers/chunks/8b0be232723424dda320.js +1 -0
  48. package/assets/esri/core/workers/chunks/{7023651ed6398dcf8efb.js → 8b0efcc30184593a0812.js} +21 -21
  49. package/assets/esri/core/workers/chunks/8b38fad017c4c0d9e1ec.js +1 -0
  50. package/assets/esri/core/workers/chunks/{b2d6b1ac9fbb50c7c8ab.js → 929ca32ddbb43328ef31.js} +1 -1
  51. package/assets/esri/core/workers/chunks/98958203a5ca45b24d72.js +1 -0
  52. package/assets/esri/core/workers/chunks/a03f15f2cbc3fed291c2.js +1 -0
  53. package/assets/esri/core/workers/chunks/{22e73501e1435a896826.js → a5f17e9a025ac2b6e1bf.js} +1 -1
  54. package/assets/esri/core/workers/chunks/a6e846361bf5dd3a11c7.js +1 -0
  55. package/assets/esri/core/workers/chunks/af2087b75225d7d7dbd8.js +1 -0
  56. package/assets/esri/core/workers/chunks/afe3e89737fb45189a99.js +1 -0
  57. package/assets/esri/core/workers/chunks/b18459c1bed75dbdec08.js +1 -0
  58. package/assets/esri/core/workers/chunks/{f07fb9b3fa30d7ee1681.js → b386e921c273de3ac7a5.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{d03b82e962c70a3fd377.js → b4928831a2a13b2da745.js} +1 -1
  60. package/assets/esri/core/workers/chunks/b7205620ca248f4efc88.js +1 -0
  61. package/assets/esri/core/workers/chunks/{dae2036faa28dade2119.js → beccbfff549902733c4e.js} +1 -1
  62. package/assets/esri/core/workers/chunks/c5364ff8dd1358af3603.js +1 -0
  63. package/assets/esri/core/workers/chunks/{9e2c30b67bab5795306e.js → cb2329d1ea72ce5cc057.js} +1 -1
  64. package/assets/esri/core/workers/chunks/cd46d9b4a8de644e7332.js +1 -0
  65. package/assets/esri/core/workers/chunks/d0172d31389dbfaaa848.js +1 -0
  66. package/assets/esri/core/workers/chunks/da1e6962ba0c85c37953.js +1 -0
  67. package/assets/esri/core/workers/chunks/dff845574c0037a1dca6.js +1 -0
  68. package/assets/esri/core/workers/chunks/e0864ca82ffa3c9a0776.js +1 -0
  69. package/assets/esri/core/workers/chunks/e0cf6e1e21d0ee739009.js +1 -0
  70. package/assets/esri/core/workers/chunks/e69cd62f824ce7a22fa0.js +1 -0
  71. package/assets/esri/core/workers/chunks/{396299c22994c502e41c.js → efc1a90742813b55602e.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{c9feffb9884cfed52c4b.js → f190a3124d6d03417d73.js} +1 -1
  73. package/assets/esri/core/workers/chunks/f4135779bfdaf349352a.js +1 -0
  74. package/assets/esri/core/workers/chunks/f6f5937a1308f28bb959.js +1 -0
  75. package/assets/esri/core/workers/chunks/fd17c4a9e13bf77aa86a.js +1 -0
  76. package/assets/esri/core/workers/chunks/fdd2b35388f9fe42b623.js +1 -0
  77. package/assets/esri/core/workers/chunks/fe24e039385473bf77f9.js +1 -0
  78. package/chunks/cameraUtilsPlanar.js +1 -1
  79. package/chunks/cameraUtilsSpherical.js +1 -1
  80. package/config.js +1 -1
  81. package/core/Accessor.d.ts +1 -1
  82. package/core/Accessor.js +1 -1
  83. package/core/accessorSupport/DefaultsStore.js +1 -1
  84. package/core/accessorSupport/Properties.js +1 -1
  85. package/core/accessorSupport/Property.js +1 -1
  86. package/core/accessorSupport/watch.js +1 -1
  87. package/core/has.js +1 -1
  88. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  89. package/core/workers/workers.js +1 -6
  90. package/core/workers.d.ts +1 -2
  91. package/geometry/Extent.js +1 -1
  92. package/geometry/Geometry.js +1 -1
  93. package/geometry/Multipoint.js +1 -1
  94. package/geometry/Point.js +1 -1
  95. package/geometry/Polygon.js +1 -1
  96. package/geometry/Polyline.js +1 -1
  97. package/geometry/coordinateFormatter.js +1 -1
  98. package/geometry/operators/gx/operatorRelate.js +2 -0
  99. package/geometry/operators/relateOperator.js +1 -1
  100. package/identity/IdentityModal.js +1 -1
  101. package/kernel.js +1 -1
  102. package/layers/BaseElevationLayer.js +1 -1
  103. package/layers/BaseTileLayer.js +1 -1
  104. package/layers/CatalogLayer.js +1 -1
  105. package/layers/ElevationLayer.js +1 -1
  106. package/layers/FeatureLayer.js +1 -1
  107. package/layers/GeoRSSLayer.js +1 -1
  108. package/layers/ImageryLayer.js +1 -1
  109. package/layers/ImageryTileLayer.js +1 -1
  110. package/layers/IntegratedMeshLayer.js +1 -1
  111. package/layers/KMLLayer.js +1 -1
  112. package/layers/Layer.js +1 -1
  113. package/layers/LinkChartLayer.js +1 -1
  114. package/layers/MapImageLayer.js +1 -1
  115. package/layers/OpenStreetMapLayer.js +1 -1
  116. package/layers/PointCloudLayer.js +1 -1
  117. package/layers/SceneLayer.js +1 -1
  118. package/layers/StreamLayer.js +1 -1
  119. package/layers/SubtypeGroupLayer.js +1 -1
  120. package/layers/TileLayer.js +1 -1
  121. package/layers/VectorTileLayer.js +1 -1
  122. package/layers/WCSLayer.js +1 -1
  123. package/layers/WMSLayer.js +1 -1
  124. package/layers/WMTSLayer.js +1 -1
  125. package/layers/WebTileLayer.js +1 -1
  126. package/layers/graphics/sources/CSVSource.js +1 -1
  127. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  128. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  129. package/layers/graphics/sources/MemorySource.js +1 -1
  130. package/layers/graphics/sources/WFSSource.js +1 -1
  131. package/layers/graphics/sources/support/QueryTask.js +1 -1
  132. package/layers/mixins/ArcGISImageService.js +1 -1
  133. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  134. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  135. package/layers/raster/datasets/BaseRaster.js +1 -1
  136. package/layers/raster/datasets/MRFRaster.js +1 -1
  137. package/layers/raster/formats/tiffParser.js +1 -1
  138. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  139. package/layers/support/GeometryDescriptor.js +1 -1
  140. package/layers/support/KMLSublayer.js +1 -1
  141. package/layers/support/TileInfo.js +1 -1
  142. package/layers/support/featureLayerUtils.js +1 -1
  143. package/layers/support/tiles3DUtils.js +1 -1
  144. package/layers/support/wmtsUtils.js +1 -1
  145. package/layers/video/videoUtils.js +1 -1
  146. package/package.json +3 -3
  147. package/portal/PortalItem.js +1 -1
  148. package/rest/query/executePivotQuery.js +1 -1
  149. package/rest/query/operations/queryPivot.js +1 -1
  150. package/rest/query/operations/queryUtils.js +1 -1
  151. package/rest/support/PivotQuery.js +1 -1
  152. package/rest/support/Query.js +1 -1
  153. package/smartMapping/raster/support/adapters/ImageryLayerAdapter.js +1 -1
  154. package/symbols/PictureFillSymbol.js +1 -1
  155. package/symbols/PictureMarkerSymbol.js +1 -1
  156. package/symbols/SimpleFillSymbol.js +1 -1
  157. package/symbols/SimpleLineSymbol.js +1 -1
  158. package/symbols/SimpleMarkerSymbol.js +1 -1
  159. package/symbols/TextSymbol.js +1 -1
  160. package/symbols/cim/Rasterizer.js +1 -1
  161. package/symbols/cim/utils.js +1 -1
  162. package/views/2d/PaddedViewState.js +1 -1
  163. package/views/2d/ViewState.js +1 -1
  164. package/views/2d/engine/webgl/OverlayMultipoint.js +1 -1
  165. package/views/2d/engine/webgl/TextureManager.js +1 -1
  166. package/views/2d/engine/webgl/VideoScreenRenderer.js +1 -1
  167. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  168. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  169. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  170. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  171. package/views/3d/analysis/LineOfSight/LineOfSightController.js +1 -1
  172. package/views/3d/analysis/Viewshed/ViewshedComputedData.js +1 -1
  173. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  174. package/views/3d/layers/DrapedSubView3D.js +1 -1
  175. package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
  176. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  177. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  178. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  179. package/views/3d/layers/SceneLayerView3D.js +1 -1
  180. package/views/3d/layers/WMSLayerView3D.js +1 -1
  181. package/views/3d/layers/graphics/Graphics3DGraphicsPipeline.js +1 -1
  182. package/views/3d/layers/graphics/Graphics3DObjectStateSet.js +1 -1
  183. package/views/3d/layers/graphics/Graphics3DObjectStates.js +1 -1
  184. package/views/3d/layers/i3s/Highlights.js +1 -1
  185. package/views/3d/layers/support/SceneLayerViewRequiredFields.js +1 -1
  186. package/views/3d/layers/support/createFeatureFilterHighlight.js +2 -0
  187. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  188. package/views/3d/layers/support/highlightUtils.js +1 -1
  189. package/views/3d/layers/support/selectTiles3DSpatialReference.js +2 -0
  190. package/views/3d/support/cameraUtils.js +1 -1
  191. package/views/3d/support/earthUtils.js +1 -1
  192. package/views/3d/support/engineContent/line.js +1 -1
  193. package/views/3d/support/flow/geometryUtils.js +1 -1
  194. package/views/3d/support/hitTest.js +1 -1
  195. package/views/3d/terrain/TextureFader.js +1 -1
  196. package/views/3d/webgl-engine/Stage.js +1 -1
  197. package/views/3d/webgl-engine/createWebGLContext.js +2 -0
  198. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  199. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  200. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  201. package/views/3d/webgl-engine/materials/internal/ribbonLineBufferUtils.js +1 -1
  202. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  203. package/views/3d/webgl.d.ts +2 -1
  204. package/views/3d/webgl.js +1 -1
  205. package/views/SceneView.d.ts +7 -1
  206. package/views/SceneView.js +1 -1
  207. package/views/VideoView.js +1 -1
  208. package/views/draw/support/Box.js +1 -1
  209. package/views/layers/FeatureLikeLayerView.d.ts +3 -1
  210. package/views/layers/FeatureLikeLayerView.js +1 -1
  211. package/views/layers/GraphicsLayerView.d.ts +3 -1
  212. package/views/layers/ImageryLayerView.js +1 -1
  213. package/views/layers/ImageryTileLayerView.js +1 -1
  214. package/views/layers/SceneLayerView.d.ts +3 -2
  215. package/views/layers/SceneLayerView.js +1 -1
  216. package/views/support/Scheduler.js +1 -1
  217. package/views/types.d.ts +1 -0
  218. package/webscene/version.js +1 -1
  219. package/widgets/AreaMeasurement2D.js +1 -1
  220. package/widgets/AreaMeasurement3D.js +1 -1
  221. package/widgets/Attachments.js +1 -1
  222. package/widgets/Attribution.js +1 -1
  223. package/widgets/BasemapGallery.js +1 -1
  224. package/widgets/BasemapLayerList.js +1 -1
  225. package/widgets/BasemapToggle.js +1 -1
  226. package/widgets/BatchAttributeForm.js +1 -1
  227. package/widgets/Bookmarks.js +1 -1
  228. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  229. package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
  230. package/widgets/BuildingExplorer/BuildingLevelPicker/LevelItem.js +1 -1
  231. package/widgets/BuildingExplorer/BuildingPhasePicker/BuildingPhasePicker.js +1 -1
  232. package/widgets/BuildingExplorer.js +1 -1
  233. package/widgets/CatalogLayerList.js +1 -1
  234. package/widgets/Compass.js +1 -1
  235. package/widgets/CoordinateConversion.js +1 -1
  236. package/widgets/Daylight/support/SliderWithDropdown.js +1 -1
  237. package/widgets/Daylight.js +1 -1
  238. package/widgets/DirectLineMeasurement3D.js +1 -1
  239. package/widgets/Directions.js +1 -1
  240. package/widgets/DistanceMeasurement2D.js +1 -1
  241. package/widgets/Editor.js +1 -1
  242. package/widgets/ElevationProfile/components/LegendItem.js +1 -1
  243. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  244. package/widgets/ElevationProfile.js +1 -1
  245. package/widgets/Expand.js +1 -1
  246. package/widgets/Feature/FeatureAttachments.js +1 -1
  247. package/widgets/Feature/FeatureContent.js +1 -1
  248. package/widgets/Feature/FeatureExpression.js +1 -1
  249. package/widgets/Feature/FeatureFields.js +1 -1
  250. package/widgets/Feature/FeatureMedia.js +1 -1
  251. package/widgets/Feature/FeatureRelationship.js +1 -1
  252. package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
  253. package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
  254. package/widgets/Feature/support/FeatureElementInfo.js +1 -1
  255. package/widgets/Feature.js +1 -1
  256. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
  257. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  258. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationSettings.js +1 -1
  259. package/widgets/FeatureForm.js +1 -1
  260. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  261. package/widgets/FeatureTable.js +1 -1
  262. package/widgets/FeatureTemplates.js +1 -1
  263. package/widgets/Features/FeaturesDrillIn.js +1 -1
  264. package/widgets/Features.js +1 -1
  265. package/widgets/FloorFilter.js +1 -1
  266. package/widgets/Fullscreen.js +1 -1
  267. package/widgets/Histogram.js +1 -1
  268. package/widgets/HistogramRangeSlider.js +1 -1
  269. package/widgets/Home.js +1 -1
  270. package/widgets/LayerList/ListItemPanel.js +1 -1
  271. package/widgets/LayerList.js +1 -1
  272. package/widgets/Legend/styles/card/CardView.js +1 -1
  273. package/widgets/Legend/styles/card/ColorRamp.js +1 -1
  274. package/widgets/Legend/styles/card/LegendElement.js +1 -1
  275. package/widgets/Legend/styles/card/SizeRamp.js +1 -1
  276. package/widgets/Legend/styles/card/UnivariateAboveAndBelowRamp.js +1 -1
  277. package/widgets/Legend/styles/card/UnivariateColorSizeRamp.js +1 -1
  278. package/widgets/Legend/styles/classic/ClassicView.js +1 -1
  279. package/widgets/Legend/styles/classic/ColorRamp.js +1 -1
  280. package/widgets/Legend/styles/classic/LegendElement.js +1 -1
  281. package/widgets/Legend/styles/classic/SizeRamp.js +1 -1
  282. package/widgets/Legend/styles/classic/UnivariateAboveAndBelowRamp.js +1 -1
  283. package/widgets/Legend/styles/classic/UnivariateColorSizeRamp.js +1 -1
  284. package/widgets/Legend.js +1 -1
  285. package/widgets/LineOfSight.js +1 -1
  286. package/widgets/Locate.js +1 -1
  287. package/widgets/Measurement.js +1 -1
  288. package/widgets/NavigationToggle.js +1 -1
  289. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  290. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  291. package/widgets/OrientedImageryViewer/support/geometryUtils.js +1 -1
  292. package/widgets/OrientedImageryViewer.js +1 -1
  293. package/widgets/Popup.js +1 -1
  294. package/widgets/Print.js +1 -1
  295. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  296. package/widgets/ScaleBar.js +1 -1
  297. package/widgets/ScaleRangeSlider.js +1 -1
  298. package/widgets/Search/SearchResultRenderer.js +1 -1
  299. package/widgets/Search.js +1 -1
  300. package/widgets/ShadowCast/components/ShadowTooltip.js +1 -1
  301. package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
  302. package/widgets/ShadowCast.js +1 -1
  303. package/widgets/Sketch.js +1 -1
  304. package/widgets/Slice.js +1 -1
  305. package/widgets/Slider.js +1 -1
  306. package/widgets/Spinner.js +1 -1
  307. package/widgets/Swipe.js +1 -1
  308. package/widgets/TableList/ListItemPanel.js +1 -1
  309. package/widgets/TableList.js +1 -1
  310. package/widgets/TimeSlider.js +1 -1
  311. package/widgets/TimeZoneLabel.js +1 -1
  312. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +1 -1
  313. package/widgets/UtilityNetworkAssociations.js +1 -1
  314. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  315. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  316. package/widgets/UtilityNetworkTrace.js +1 -1
  317. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  318. package/widgets/ValuePicker/ValuePickerBaseComponent.js +1 -1
  319. package/widgets/ValuePicker/ValuePickerCollection.js +1 -1
  320. package/widgets/ValuePicker/ValuePickerCombobox.js +1 -1
  321. package/widgets/ValuePicker/ValuePickerLabel.js +1 -1
  322. package/widgets/ValuePicker/ValuePickerSlider.js +1 -1
  323. package/widgets/ValuePicker.js +1 -1
  324. package/widgets/Widget.js +1 -1
  325. package/widgets/Zoom.js +1 -1
  326. package/widgets/smartMapping/BinaryColorSizeSlider.js +1 -1
  327. package/widgets/smartMapping/ClassedColorSlider.js +1 -1
  328. package/widgets/smartMapping/ClassedSizeSlider.js +1 -1
  329. package/widgets/smartMapping/ColorSizeSlider.js +1 -1
  330. package/widgets/smartMapping/ColorSlider.js +1 -1
  331. package/widgets/smartMapping/HeatmapSlider.js +1 -1
  332. package/widgets/smartMapping/OpacitySlider.js +1 -1
  333. package/widgets/smartMapping/SizeSlider.js +1 -1
  334. package/widgets/smartMapping/SmartMappingSliderBase.js +1 -1
  335. package/widgets/support/ColorPicker.js +1 -1
  336. package/widgets/support/FilterBuilder.js +1 -1
  337. package/widgets/support/FilterCondition.js +1 -1
  338. package/widgets/support/GridControls.js +1 -1
  339. package/widgets/support/MeasurementWidgetContent.js +1 -1
  340. package/widgets/support/PluginSettingsControls.js +1 -1
  341. package/widgets/support/SelectionList.js +1 -1
  342. package/widgets/support/SelectionToolbar.d.ts +1 -1
  343. package/widgets/support/SelectionToolbar.js +1 -1
  344. package/widgets/support/SketchTooltipControls.js +1 -1
  345. package/widgets/support/SnappingControls.js +1 -1
  346. package/widgets/support/TimezonePicker.js +1 -1
  347. package/widgets/support/UnitSelect.js +1 -1
  348. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationList.js +1 -1
  349. package/assets/esri/core/workers/chunks/01803f76bc0d9f2cd566.js +0 -1
  350. package/assets/esri/core/workers/chunks/02940f7ddaf98e69521e.js +0 -1
  351. package/assets/esri/core/workers/chunks/07e5482e1fc69be5de09.js +0 -1
  352. package/assets/esri/core/workers/chunks/0c893837f67829757df7.js +0 -1
  353. package/assets/esri/core/workers/chunks/15950c2fb173b62ee0ec.js +0 -1
  354. package/assets/esri/core/workers/chunks/1a91443970d64a59521d.js +0 -1
  355. package/assets/esri/core/workers/chunks/20a2124cbe43e5527c40.js +0 -1
  356. package/assets/esri/core/workers/chunks/26ea39dfdf887f357fce.js +0 -1
  357. package/assets/esri/core/workers/chunks/276a0b549acf048e8673.js +0 -1
  358. package/assets/esri/core/workers/chunks/2c3612379111457c3221.js +0 -1
  359. package/assets/esri/core/workers/chunks/34467f7d84baffd772a3.js +0 -1
  360. package/assets/esri/core/workers/chunks/398ec098fffe6abceedd.js +0 -1
  361. package/assets/esri/core/workers/chunks/3b32a24488b3068f0cb7.js +0 -1
  362. package/assets/esri/core/workers/chunks/427d929dc7f89b0a1ea9.js +0 -1
  363. package/assets/esri/core/workers/chunks/432728c557be5dfa26b5.js +0 -1
  364. package/assets/esri/core/workers/chunks/4c240ca50f70bf30813f.js +0 -1
  365. package/assets/esri/core/workers/chunks/514cc15acb77dc85035c.js +0 -1
  366. package/assets/esri/core/workers/chunks/585ae43c7bcb86a26762.js +0 -1
  367. package/assets/esri/core/workers/chunks/5e48898cebb6dbaf09b5.js +0 -1
  368. package/assets/esri/core/workers/chunks/5ec5a6cef9ee9a8cc400.js +0 -1
  369. package/assets/esri/core/workers/chunks/601e1d020b8115497944.js +0 -1
  370. package/assets/esri/core/workers/chunks/687deb918eb48a963c8f.js +0 -1
  371. package/assets/esri/core/workers/chunks/6a21dc13a465757ba007.js +0 -1
  372. package/assets/esri/core/workers/chunks/6e910342ada398c98e30.js +0 -1
  373. package/assets/esri/core/workers/chunks/78818c2a898444f7e890.js +0 -1
  374. package/assets/esri/core/workers/chunks/7d2cbc767c336d15e4d5.js +0 -1
  375. package/assets/esri/core/workers/chunks/7d497df6e13162156342.js +0 -1
  376. package/assets/esri/core/workers/chunks/7dbf4c7480bf9c72820d.js +0 -1
  377. package/assets/esri/core/workers/chunks/80c234ee5276ea1645db.js +0 -1
  378. package/assets/esri/core/workers/chunks/966204d6dedc8149c3e9.js +0 -1
  379. package/assets/esri/core/workers/chunks/9ab0735e86cf8932bf9d.js +0 -1
  380. package/assets/esri/core/workers/chunks/a0356702f2d3f787aeac.js +0 -1
  381. package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +0 -1
  382. package/assets/esri/core/workers/chunks/ab0ea4042f4e13874aed.js +0 -1
  383. package/assets/esri/core/workers/chunks/ab98ade3257360015d6c.js +0 -1
  384. package/assets/esri/core/workers/chunks/b13d8f4e4e80ef00b1bd.js +0 -1
  385. package/assets/esri/core/workers/chunks/b15a8d4322f3b7819d2f.js +0 -1
  386. package/assets/esri/core/workers/chunks/b472c0a21ae29e653f7d.js +0 -1
  387. package/assets/esri/core/workers/chunks/b90271ce38522bcf813b.js +0 -1
  388. package/assets/esri/core/workers/chunks/ba91df9835cdea7698a9.js +0 -1
  389. package/assets/esri/core/workers/chunks/bd812dd75d2a3d7d0441.js +0 -1
  390. package/assets/esri/core/workers/chunks/bfe13ac9fa1aafb190a1.js +0 -1
  391. package/assets/esri/core/workers/chunks/c1cf3edce15f09648eb4.js +0 -1
  392. package/assets/esri/core/workers/chunks/c31830ee897d5a7f2582.js +0 -1
  393. package/assets/esri/core/workers/chunks/c48d97c38e821be17dc5.js +0 -1
  394. package/assets/esri/core/workers/chunks/c7ad62f54d2abe1d17a0.js +0 -1
  395. package/assets/esri/core/workers/chunks/cf21b217b13770757cb8.js +0 -1
  396. package/assets/esri/core/workers/chunks/d42a4f47843e075c56a8.js +0 -1
  397. package/assets/esri/core/workers/chunks/deb408bee61ca192b2ce.js +0 -1
  398. package/assets/esri/core/workers/chunks/e121d15b883184ee83e7.js +0 -1
  399. package/assets/esri/core/workers/chunks/e4042e43f0081fe49f7b.js +0 -1
  400. package/assets/esri/core/workers/chunks/e932951598499befabf5.js +0 -1
  401. package/assets/esri/core/workers/chunks/eaab787a5f2445be5e5a.js +0 -1
  402. package/assets/esri/core/workers/chunks/f06ef153e106b26a6748.js +0 -1
  403. package/assets/esri/core/workers/chunks/faae3c43048b42341536.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1504],{52106(e,t,r){r.d(t,{A:()=>_});var i,l,s=r(32198),o=r(40124),n=r(69540),a=r(51447),u=r(25482),p=r(53966),y=r(36708),h=r(24326),d=r(91429),f=r(12195),g=r(65864),c=r(50498),m=r(55156),b=r(60950),v=r(54339),S=r(94128),w=r(33910);const C=Symbol("meshGeometryHandles");function M(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 _=class extends((0,n.OU)(u.o)){static{i=S.Z}static{l=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,h.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 l({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:M(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.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 l={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(l.action=i),"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(C);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,y.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,y.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})],C)}};(0,s.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,g.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],_.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,d.MZ)({value:null})],_.prototype,"attributes",null),(0,s.Cg)([(0,d.MZ)({value:null,types:c.yR,json:{read:g.rS}})],_.prototype,"geometry",null),(0,s.Cg)([(0,d.MZ)()],_.prototype,"distance",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"layer",void 0),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"origin",void 0),(0,s.Cg)([(0,d.MZ)({type:o.A,value:null})],_.prototype,"popupTemplate",null),(0,s.Cg)([(0,d.MZ)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],_.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,d.MZ)({value:null,types:w.Es})],_.prototype,"symbol",null),(0,s.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],_.prototype,"_version",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,value:!0})],_.prototype,"visible",null),_=l=(0,s.Cg)([(0,d.$K)("esri.Graphic")],_)},38961(e,t,r){var i=r(32198),l=r(7762),s=r(36708),o=r(10107),n=r(64108),a=r(80559);let u=class extends l.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,a.fm)(()=>this._refresh(),s.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 l.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,o.MZ)()],u.prototype,"getCollections",void 0),(0,i.Cg)([(0,o.MZ)()],u.prototype,"getChildrenFunction",void 0),(0,i.Cg)([(0,o.MZ)()],u.prototype,"itemFilterFunction",void 0),u=(0,i.Cg)([(0,n.$)("esri.core.CollectionFlattener")],u);const p=u;r.d(t,["A",0,p])},46140(e,t,r){r.d(t,{A:()=>l});var i=r(49186);class l{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 l(this.major,this.minor,this._context)}static parse(e,t=""){let[r,s]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.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(!s?.match||!o.test(s)){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 l(parseInt(r,10),parseInt(s,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>h});var i=r(69622),l=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof i.A}function a(e){return e instanceof l.A?Object.keys(e.items):n(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof l.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function y(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),l=a(t);if(0===i.length&&0===l.length)return;if(!i.length||!l.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 s=l.filter(e=>!i.includes(e)),h=i.filter(e=>!l.includes(e)),d=i.filter(r=>l.includes(r)&&u(e,r)!==u(t,r)).concat(s,h).sort(),f=p(e);if(f&&o.has(f)&&d.length)return{type:"complete",oldValue:e,newValue:t};let g,c=n(e)&&n(t);for(let i of d){let l,s=u(e,i),o=u(t,i);if((c||"function"!=typeof s&&"function"!=typeof o)&&s!==o&&(null!=s||null!=o)){if(r&&r[i]&&"function"==typeof r[i])l=r[i]?.(s,o);else if(s instanceof Date&&o instanceof Date){if(s.getTime()===o.getTime())continue;l={type:"complete",oldValue:s,newValue:o}}else l="object"==typeof s&&"object"==typeof o&&p(s)===p(o)?y(s,o):{type:"complete",oldValue:s,newValue:o};null!=l&&(null==g?g={type:"partial",diff:{[i]:l}}:g.diff[i]=l)}}return g}function h(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}:y(e,t)}},99959(e,t,r){r.d(t,{A:()=>s});var i=r(32198),l=r(91429);let s=class{};s=(0,i.Cg)([(0,l.$K)("esri.graphic.GraphicOrigin")],s)},55156(e,t,r){r.d(t,{I:()=>l});const i=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},89808(e,t,r){const i=Symbol("getSliceableSymbol");r.d(t,["Q",0,i])},162(e,t,r){r.r(t),r.d(t,{default:()=>K});var i=r(32198),l=r(7762),s=r(38961),o=r(25728),n=r(17676),a=r(36708),u=r(84952),p=r(91429),y=r(5443),h=r(16930),d=r(4146),f=r(63074),g=r(34287),c=r(8303),m=r(54310),b=r(25036),v=r(10873),S=r(65529),w=r(25482),C=r(92474),M=r(799),_=r(78888),I=r(89808),A=r(99959);const x=Symbol("isKMLGraphicOrigin");var F;class P extends A.A{get[(F=x,I.Q)](){return this.layer}constructor(e,t){super(),this[F]=!0,this.type="kml",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var T=r(92602),L=r(70333),Z=(r(40124),r(56507)),O=r(4718),j=r(70328),G=r(537);r(65494),r(22671);const E={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function R(e){let t=e.folders||[],r=t.slice(),i=new Map,l=new Map,s=new Map,o=new Map,n=new Map,a={esriGeometryPoint:l,esriGeometryPolyline:s,esriGeometryPolygon:o};return(e.featureCollection?.layers||[]).forEach(e=>{let t=(0,O.o8)(e);t.featureSet.features=[];let r=e.featureSet.geometryType;i.set(r,t);let n=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?q(l,n,e.featureSet.features):"esriGeometryPolyline"===r?q(s,n,e.featureSet.features):"esriGeometryPolygon"===r&&q(o,n,e.featureSet.features)}),e.groundOverlays&&e.groundOverlays.forEach(e=>{n.set(e.id,e)}),t.forEach(t=>{t.networkLinkIds.forEach(i=>{let l=function(e,t,r){let i=function(e,t){let r;return t.some(t=>t.id===e&&(r=t,!0)),r}(e,r);return i&&(i.parentFolderId=t,i.networkLink=i),i}(i,t.id,e.networkLinks);l&&r.push(l)})}),r.forEach(e=>{if(e.featureInfos){e.points=(0,O.o8)(i.get("esriGeometryPoint")),e.polylines=(0,O.o8)(i.get("esriGeometryPolyline")),e.polygons=(0,O.o8)(i.get("esriGeometryPolygon")),e.mapImages=[];for(let t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{let r=a[t.type].get(t.id);r&&e[E[t.type]]?.featureSet.features.push(r);break}case"GroundOverlay":{let r=n.get(t.id);r&&e.mapImages.push(r);break}}e.fullExtent=$([e])}}),{folders:t,sublayers:r,extent:$(r)}}function k(e,t,r,i){let l=L.id?.findCredential(e);e=(0,u.a6)(e,{token:l?.token});let s=T.A.kmlServiceUrl;return(0,Z.A)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:i})}function N(e,t,r=null,i=[]){let l=[],s={},o=t.sublayers,n=new Set(t.folders.map(e=>e.id));return o.forEach(t=>{let o=new e;if(r?o.read(t,r):o.read(t),i.length&&n.has(o.id)&&(o.visible=i.includes(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){let e=s[t.parentFolderId];e.sublayers||=[],e.sublayers?.unshift(o)}else l.unshift(o)}),l}function q(e,t,r){r.forEach(r=>{e.set(r.attributes[t],r)})}function $(e){let t=(0,j.vt)(j.qv),r=(0,j.vt)(j.qv);for(let i of e){if(i.polygons?.featureSet?.features)for(let e of i.polygons.featureSet.features)(0,G.LJ)(t,e.geometry),(0,j.RF)(r,t);if(i.polylines?.featureSet?.features)for(let e of i.polylines.featureSet.features)(0,G.LJ)(t,e.geometry),(0,j.RF)(r,t);if(i.points?.featureSet?.features)for(let e of i.points.featureSet.features)(0,G.LJ)(t,e.geometry),(0,j.RF)(r,t);if(i.mapImages)for(let e of i.mapImages)(0,G.LJ)(t,e.extent),(0,j.RF)(r,t)}return(0,j.aI)(r,j.qv)?void 0:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:h.A.WGS84}}var J,U=r(36005);let z=J=class extends((0,S.Zt)((0,w.T)(C.x_))){constructor(e){super(e),this.description=null,this.fullExtent=null,this.id=null,this.networkLink=null,this.parent=null,this.sublayers=null,this.title=null,this.sourceJSON=null,this.layer=null,this.addHandles([(0,a.on)(()=>this.sublayers,"after-add",({item:e})=>{e.parent=this,e.layer=this.layer},a.OH),(0,a.on)(()=>this.sublayers,"after-remove",({item:e})=>{e.layer=e.parent=null},a.OH),(0,a.wB)(()=>this.sublayers,(e,t)=>{if(t)for(let e of t)e.layer=e.parent=null;if(e)for(let t of e)t.parent=this,t.layer=this.layer},a.OH),(0,a.wB)(()=>this.layer,e=>{if(this.sublayers)for(let t of this.sublayers)t.layer=e},a.OH)])}initialize(){(0,a.C_)(()=>this.networkLink).then(()=>(0,a.C_)(()=>!0===this.visible)).then(()=>this.load())}async load(e){if(!this.networkLink||this.networkLink.viewFormat)return this;let t=null==e?null:e.signal,r=this._fetchService(this._get("networkLink")?.href??"",t).then(e=>{let t=$(e.sublayers);this.fullExtent=y.A.fromJSON(t),this.sourceJSON=e;let r=(0,_.dp)(l.A.ofType(J),N(J,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer?.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")});return this.addResolvingPromise(r),this}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}get origin(){return this.layer?new P(this.layer,this):null}_fetchService(e,t){return k(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then(e=>R(e.data))}};(0,i.Cg)([(0,p.MZ)()],z.prototype,"description",void 0),(0,i.Cg)([(0,p.MZ)({type:y.A})],z.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)()],z.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,value:null})],z.prototype,"networkLink",void 0),(0,i.Cg)([(0,p.MZ)({json:{write:{allowNull:!0}}})],z.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:l.A.ofType(J),json:{write:{allowNull:!0}}})],z.prototype,"sublayers",void 0),(0,i.Cg)([(0,p.MZ)({value:null,json:{read:{source:"name",reader:e=>(0,M._e)(e)}}})],z.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({value:!0})],z.prototype,"visible",null),(0,i.Cg)([(0,U.w)("visible",["visibility"])],z.prototype,"readVisible",null),(0,i.Cg)([(0,p.MZ)()],z.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,p.MZ)()],z.prototype,"layer",void 0),(0,i.Cg)([(0,p.MZ)()],z.prototype,"origin",null),z=J=(0,i.Cg)([(0,p.$K)("esri.layers.support.KMLSublayer")],z);var H=r(43937);const V=["kml","xml"];let D=class extends((0,f.dM)((0,m.J)((0,b.j)((0,g.q)((0,c.A)((0,o.M)(d.A))))))){constructor(e){super(e),this._visibleFolders=[],this.allSublayers=new s.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=h.A.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.addHandles([(0,a.wB)(()=>this.sublayers,(e,t)=>{t&&t.forEach(e=>{e.parent=null,e.layer=null}),e&&e.forEach(e=>{e.parent=this,e.layer=this})},a.OH),this.on("sublayer-update",()=>this.notifyChange("fullExtent"))])}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}get sublayerById(){let e=new Map;for(let t of this.allSublayers)e.set(t.id,t);return e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return N(z,t,r,this._visibleFolders)}writeSublayers(e,t){let r=[],i=e.toArray();for(;i.length;){let e=i[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&i.push(...e.sublayers.toArray())),i.shift()}t.visibleFolders=r}get title(){let e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.e7)(this.url,V)||"KML":e}set title(e){this._set("title",e)}get visibleSublayers(){let e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e?.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"],supportsData:!1},e).catch(n.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){let t=R((await Promise.resolve().then(()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:k(this.url??"",this.outSpatialReference,this.refreshInterval,e))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;null!=this.extent&&(e=this.extent.clone());let t=r=>{if(r.sublayers)for(let i of r.sublayers.items)t(i),i.visible&&i.fullExtent&&(null==e?e=i.fullExtent.clone():e.union(i.fullExtent))};return t(this),e}};(0,i.Cg)([(0,p.MZ)({readOnly:!0})],D.prototype,"allSublayers",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],D.prototype,"sublayerById",null),(0,i.Cg)([(0,p.MZ)({type:h.A})],D.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],D.prototype,"path",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1,write:!1}})],D.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],D.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:["KML"]})],D.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({})],D.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:l.A.ofType(z),json:{write:{ignoreOrigin:!0}}})],D.prototype,"sublayers",void 0),(0,i.Cg)([(0,U.w)(["web-map","portal-item"],"sublayers",["visibleFolders"])],D.prototype,"readSublayersFromItemOrWebMap",null),(0,i.Cg)([(0,U.w)("service","sublayers",["sublayers"])],D.prototype,"readSublayers",null),(0,i.Cg)([(0,H.K)("sublayers")],D.prototype,"writeSublayers",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],D.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],D.prototype,"title",null),(0,i.Cg)([(0,p.MZ)(v.OZ)],D.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],D.prototype,"visibleSublayers",null),(0,i.Cg)([(0,p.MZ)({type:y.A})],D.prototype,"extent",void 0),(0,i.Cg)([(0,p.MZ)()],D.prototype,"fullExtent",null),D=(0,i.Cg)([(0,p.$K)("esri.layers.KMLLayer")],D);const K=D},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 l(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:()=>l})},8303(e,t,r){var i=r(32198),l=r(92602),s=r(70333),o=r(56507),n=r(60999),a=r(49186),u=r(36563),p=r(53966),y=r(97768),h=r(17676),d=r(84952),f=r(91429),g=r(77548),c=r(20655),m=r(80812),b=r(41318),v=r(10407),S=r(26121),w=r(36005),C=r(43937);const M={credential:null,user:null};r.d(t,["A",0,e=>{let t=e,_=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,y.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new m.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{let{load:i}=await r.e(1204).then(()=>r(41204));return(0,h.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||p.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e,t){if(!this.loaded||!this.portalItem?.id)return!1;let i=t?.signal?null:new AbortController;try{let{reload:l}=await r.e(1204).then(()=>r(41204));return i&&this.addHandles((0,u.rE)(i),"reloadFromPortal"),await l({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t?.signal?t:{signal:i.signal})}catch(e){throw(0,h.zf)(e)||p.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{i&&this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!l.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{let{features:{edit:r,fullEdit:i},content:{updateItem:l}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",l)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);let i,l,o=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,o);if(n)i=r.portal.url;else try{i=await(0,g.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!i||!(0,d.b8)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{let e=null==t?null:t.signal;l=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}if(!l)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(n?await r.reload():(r=new m.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,o)}catch(e){(0,h.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}_getUserPrivileges(e,t){let r=(0,v.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){let t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;let r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){let t=this.portalItem?.portal?.user;if(t)return t;let r=s.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;let i=`${r.owningSystemUrl}/sharing/rest`,l=c.A.getDefault();if(l&&l.loaded&&(0,d.S8)(l.restUrl)===(0,d.S8)(i))return l.user;let a=`${i}/community/self`,u=null==e?null:e.signal,p=await(0,n.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){return(0,S.wN)(this.portalItem,t)?(t?.messages?.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,f.MZ)({type:m.default})],_.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,i.Cg)([(0,C.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,i.Cg)([(0,f.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,i.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],_),_}])},96576(e,t,r){r.d(t,{A:()=>y});var i,l=r(32198),s=r(4718),o=r(91429),n=r(92438),a=r(63988),u=r(49849),p=r(93223);let y=i=class extends((0,a.h)(n.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,s.o8)(this.symbol),visualVariables:(0,s.o8)(this.visualVariables),authoringInfo:(0,s.o8)(this.authoringInfo)})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"description",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)(u.Wp)],y.prototype,"symbol",void 0),(0,l.Cg)([(0,p.e)({simple:"simple"})],y.prototype,"type",void 0),y=i=(0,l.Cg)([(0,o.$K)("esri.renderers.SimpleRenderer")],y)},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),l=r(53966),s=r(46140),o=r(95466),n=r(55674);class a{static async from(e,t,r){let o=e.dictionary_version?s.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),y={};if(t)for(let e in t)y[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)y.hasOwnProperty(t.name)||(y[t.name]=t.value);let h=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))h.delete(e);h.size&&l.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:h});let d=await(0,n.xR)(e.expression,null,y);if(!d)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let f=!o||!o.greaterEqual(4,0);f&&l.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});let g=new u(r,f);return new a(f,p,d,g)}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){l.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends n.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]}}},65494(e,t,r){r.d(t,{L:()=>a,r:()=>o});var i=r(90360),l=r(41214),s=r(59923);function o(e,t){return a(e,null,t)}const n=(0,i.C)({types:l.Hg});function a(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?((0,s.Yc)(r,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):n(e,t,r):null}},22671(e,t,r){r.d(t,{A:()=>b});var i,l=r(32198),s=r(52106),o=r(66552),n=r(25482),a=r(4718),u=r(91429),p=r(16930),y=r(60408),h=r(65864),d=r(50498),f=r(20437),g=r(36005),c=r(43937);const m=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends n.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:l}=this;if(l)for(let e of l)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,h.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,l]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((l-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,l],scale:[s,o]}=r,n=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;n=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*s+i,e=>l-e*o,n,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),l=[];for(let t=0;t<e.length;t++){let s=e[t],o=r.fromJSON(s),n=s.geometry?.spatialReference;null!=o.geometry&&!n&&(o.geometry.spatialReference=i);let a=s.aggregateGeometries,u=o.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}l.push(o)}return l}_quantizePoints(e,t,r){let i,l,s=[];for(let o=0,n=e.length;o<n;o++){let n=e[o];if(o>0){let e=t(n[0]),o=r(n[1]);(e!==i||o!==l)&&(s.push([e-i,o-l]),i=e,l=o)}else i=t(n[0]),l=r(n[1]),s.push([i,l])}return s.length>0?s: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,y.Bi)(e)?e.rings:e.paths,l=[];for(let e=0,s=i.length;e<s;e++){let s=i[e],o=this._quantizePoints(s,t,r);o&&l.push(o)}return l.length>0?((0,y.Bi)(e)?e.rings=l:e.paths=l,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,l){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 s,o,n=(0,y.Bi)(e)?e.rings:e.paths;for(let e=0,i=n.length;e<i;e++){let i=n[e];for(let e=0,l=i.length;e<l;e++){let l=i[e];e>0?(s+=l[0],o+=l[1]):(s=l[0],o=l[1]),l[0]=t(s),l[1]=r(o)}}if(i&&l)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=l(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(l)for(let e=0,t=n.length;e<t;e++){let t=n[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=l(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)),l&&null!=e.mmax&&null!=e.mmin&&(e.mmax=l(e.mmax),e.mmin=l(e.mmin))}:"multipoint"===e?e=>{let s,o,n=e.points;for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(s+=i[0],o+=i[1]):(s=i[0],o=i[1]),i[0]=t(s),i[1]=r(o)}if(i&&l)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2]),t[3]=l(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=i(t[2])}else if(l)for(let e=0,t=n.length;e<t;e++){let t=n[e];t[2]=l(t[2])}}:null}};(0,l.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,l.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],b.prototype,"features",void 0),(0,l.Cg)([(0,g.w)("features")],b.prototype,"readFeatures",null),(0,l.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,l.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,l.Cg)([(0,c.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,l.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,l.Cg)([(0,u.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,l.Cg)([(0,g.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,l.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,l.Cg)([(0,c.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,l.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,l.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},93470(e,t,r){const i=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,l,"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,s])},26121(e,t,r){r.d(t,{I6:()=>p,ci:()=>u,dL:()=>a,wN:()=>y});var i=r(49186),l=r(84952),s=r(77548),o=r(20655),n=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function u(e,t,r){let l=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new i.A(e,t,r));if(e.blockedRelativeUrls&&(l=l.concat(e.blockedRelativeUrls.map(e=>(0,n.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:i}=r;e&&(l=l.filter(({name:e})=>!(n.MG.has(e)||t.includes(e)))),i&&(l=l.filter(e=>"web-document-write:property-required"!==e.name))}if(l.length>0)throw new i.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:l})}function p(e){return(0,s.qd)(e).some(e=>!!e.charts?.length)}function y(e,t){let r=t?.portal,i=e?.id&&(e.portal||o.A.getDefault());return!!r&&!!i&&!(0,l.ut)(i.restUrl,r.restUrl)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7552],{65615(e,t,r){r.d(t,{A:()=>V});var i=r(32198),o=r(69540),s=r(25482),n=r(91429),a=r(78888),l=r(20437),p=r(66552),u=r(10107),d=r(79901),c=r(64108),y=r(93223),g=r(36005),h=r(90360),m=r(93849);let C=null,v=null;function w(){return v||=(0,h.C)({types:M()}),v}let S=null;function M(){return S||={key:"type",base:null,typeMap:{"data-layer":C,"map-layer":m.A}},S}var j;const f=(0,p.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let Z=j=class extends s.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return w()(e,t,r)}castLeftTableSource(e){return(0,a.aq)(M(),e)}readRightTableSource(e,t,r){return w()(e,t,r)}castRightTableSource(e){return(0,a.aq)(M(),e)}clone(){let{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:o}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:o};return new j(s)}};(0,i.Cg)([(0,y.e)({joinTable:"join-table"}),(0,u.MZ)({json:{write:{isRequired:!0}}})],Z.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Z.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],Z.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],Z.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,g.w)("leftTableSource")],Z.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,d.w)("leftTableSource")],Z.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],Z.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,g.w)("rightTableSource")],Z.prototype,"readRightTableSource",null),(0,i.Cg)([(0,d.w)("rightTableSource")],Z.prototype,"castRightTableSource",null),(0,i.Cg)([(0,y.e)(f)],Z.prototype,"joinType",void 0),Z=j=(0,i.Cg)([(0,c.$)("esri.rest.layerSources.JoinTableDataSource")],Z);const b=Z;var x,R=r(16930),T=r(50498);let F=x=class extends s.o{constructor(e){super(e),this.type="query-table"}clone(){let{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:o}=this,s={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:o};return new x(s)}};(0,i.Cg)([(0,y.e)({queryTable:"query-table"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],F.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"workspaceId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"query",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"oidFields",void 0),(0,i.Cg)([(0,n.MZ)({type:R.A,json:{write:!0}})],F.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.e)(T.gy)],F.prototype,"geometryType",void 0),F=x=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.QueryTableDataSource")],F);const P=F;var A;let D=A=class extends s.o{constructor(e){super(e),this.type="raster"}clone(){let{workspaceId:e,dataSourceName:t}=this;return new A({workspaceId:e,dataSourceName:t})}};(0,i.Cg)([(0,y.e)({raster:"raster"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],D.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],D.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],D.prototype,"workspaceId",void 0),D=A=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.RasterDataSource")],D);const O=D;var k;let I=k=class extends s.o{constructor(e){super(e),this.type="table"}clone(){let{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new k({workspaceId:e,gdbVersion:t,dataSourceName:r})}};(0,i.Cg)([(0,y.e)({table:"table"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],I.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"workspaceId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"dataSourceName",void 0),I=k=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.TableDataSource")],I);const N={key:"type",base:null,typeMap:{"join-table":b,"query-table":P,raster:O,table:I}};let U=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="data-layer"}toLayerSourceJSON(){return{source:this.toJSON()}}};(0,i.Cg)([(0,y.e)({dataLayer:"data-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],U.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],U.prototype,"fields",void 0),(0,i.Cg)([(0,n.MZ)({types:N,json:{write:!0}})],U.prototype,"dataSource",void 0),U=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicDataLayer")],U);const V=U;U.from=(0,a.dp)(U),S=null,v=null,C=U},93849(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),s=r(25482),n=r(91429),a=r(78888),l=r(93223);let p=i=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){let{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,o.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],p.prototype,"mapLayerId",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"gdbVersion",void 0),p=i=(0,o.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicMapLayer")],p)},29308(e,t,r){var i=r(32198),o=r(69540),s=r(25482),n=r(91429),a=r(78888),l=r(93223);let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="workspace-layer"}toLayerSourceJSON(){let{definitionExpression:e,...t}=this.toJSON();return{definitionExpression:e,source:t}}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"layerId",void 0),(0,i.Cg)([(0,l.e)({workspaceLayer:"workspace-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"workspaceId",void 0),p=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicWorkspaceLayer")],p);const u=p;p.from=(0,a.dp)(p),r.d(t,["A",0,u])},99614(e,t,r){var i=r(65615),o=r(29308);const s={key:"type",base:null,typeMap:{"data-layer":i.A,"workspace-layer":o.A}};r.d(t,["e",0,s])},27348(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(66552),n=r(25482),a=r(4718),l=r(91429),p=r(5443);const u=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let d=i=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o.Cg)([(0,l.MZ)({type:p.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"extent",void 0),(0,o.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],d.prototype,"mode",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:u.read,write:u.write}})],d.prototype,"originPosition",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"tolerance",void 0),d=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.QuantizationParameters")],d)},97552(e,t,r){r.d(t,{A:()=>F});var i=r(32198),o=r(66552),s=r(25482),n=r(4718),a=r(91429),l=r(78888),p=r(86738),u=r(16930),d=r(65864),c=r(50498),y=r(99614),g=r(69540);let h=class extends((0,g.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],h.prototype,"onFields",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"operator",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"searchTerm",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"searchType",void 0),h=(0,i.Cg)([(0,a.$K)("esri.rest.support.FullTextSearch")],h);const m=h;var C=r(93223);const v=new o.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),w=new o.J({ASC:"ascending",DESC:"descending"});let S=class extends((0,g.OU)(s.o)){constructor(e){super(e),this.returnDistance=null,this.referenceGeometry=null,this.order=null,this.outDistanceUnit=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],S.prototype,"returnDistance",void 0),(0,i.Cg)([(0,a.MZ)({types:c.yR,json:{name:"refGeometry",read:d.rS,write:!0}})],S.prototype,"referenceGeometry",void 0),(0,i.Cg)([(0,C.e)(w,{ignoreUnknown:!1})],S.prototype,"order",void 0),(0,i.Cg)([(0,C.e)(v,{ignoreUnknown:!1})],S.prototype,"outDistanceUnit",void 0),S=(0,i.Cg)([(0,a.$K)("esri.rest.support.OutDistance")],S);const M=S;var j,f=r(27348),Z=r(58174),b=r(7562),x=r(79677),R=r(43937);const T=new o.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let F=class extends s.o{static{j=this}static from(e){return(0,l.PZ)(j,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.datumTransformation=null,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnStatisticsAggregatedIds=!1,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnExceededLimitGeometries=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.outDistance=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){let r={};for(let t in e){let i=e[t];r[t]=Array.isArray(i)?i.map(e=>e instanceof Date?e.getTime():e):i instanceof Date?i.getTime():i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new j((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,datumTransformation:this.datumTransformation,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null==this.historicMoment?null:new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnStatisticsAggregatedIds:this.returnStatisticsAggregatedIds,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnExceededLimitGeometries:this.returnExceededLimitGeometries,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,outDistance:this.outDistance,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"aggregateIds",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,a.wg)("datumTransformation")],F.prototype,"castDatumTransformation",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],F.prototype,"distance",void 0),(0,i.Cg)([(0,a.MZ)({types:y.e,json:{write:!0}})],F.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"formatOf3DObjects",void 0),(0,i.Cg)([(0,a.MZ)({type:[m],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],F.prototype,"fullText",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({types:c.yR,json:{read:d.rS,write:!0}})],F.prototype,"geometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"having",void 0),(0,i.Cg)([(0,a.MZ)({type:Date})],F.prototype,"historicMoment",void 0),(0,i.Cg)([(0,R.K)("historicMoment")],F.prototype,"writeHistoricMoment",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>j.MAX_MAX_RECORD_COUNT_FACTOR?j.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],F.prototype,"maxRecordCountFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],F.prototype,"multipatchOption",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],F.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{name:"outSR",write:!0}})],F.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],F.prototype,"outStatistics",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"parameterValues",void 0),(0,i.Cg)([(0,R.K)("parameterValues")],F.prototype,"writeParameterValues",null),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],F.prototype,"pixelSize",void 0),(0,i.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],F.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],F.prototype,"rangeValues",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],F.prototype,"relationParameter",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"resultType",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy(e){return{enabled:e&&!!this.groupByFieldsForStatistics?.length&&!!this.outStatistics?.length}}}}})],F.prototype,"returnStatisticsAggregatedIds",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnCentroid",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitFeatures",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitGeometries",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnQueryGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnM",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],F.prototype,"returnZ",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],F.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,C.e)(Z.x,{ignoreUnknown:!1,name:"spatialRel"})],F.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],F.prototype,"start",void 0),(0,i.Cg)([(0,R.K)("start"),(0,R.K)("num")],F.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"sqlFormat",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"text",void 0),(0,i.Cg)([(0,a.MZ)({type:x.A,json:{write:!0}})],F.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"timeReferenceUnknownClient",void 0),(0,i.Cg)([(0,C.e)(T,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&!!this.distance}}}}})],F.prototype,"units",void 0),(0,i.Cg)([(0,a.MZ)({type:M,json:{write:!0}})],F.prototype,"outDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],F.prototype,"where",void 0),(0,i.Cg)([(0,R.K)("where")],F.prototype,"writeWhere",null),F=j=(0,i.Cg)([(0,a.$K)("esri.rest.support.Query")],F)},7562(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(66552),n=r(25482),a=r(4718),l=r(91429),p=r(43937);const u=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let d=i=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){("percentile-continuous"===this.statisticType||"percentile-discrete"===this.statisticType)&&(t.statisticParameters=(0,a.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxPointCount",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxRecordCount",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxVertexCount",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"outStatisticFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:u.read},write:{target:"statisticType",writer:u.write}}})],d.prototype,"statisticType",void 0),(0,o.Cg)([(0,l.MZ)({type:Object})],d.prototype,"statisticParameters",void 0),(0,o.Cg)([(0,p.K)("statisticParameters")],d.prototype,"writeStatisticParameters",null),d=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.StatisticDefinition")],d)},58174(e,t,r){const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});r.d(t,["x",0,i])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7201],{73354(t,e,n){n.d(e,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>c,f:()=>u,l:()=>h,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function i(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=n[0],u=n[1],f=n[2],c=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],_=n[12],M=n[13],b=n[14],x=0,v=0;for(let n=0;n<l;n++){let n=e[x],r=e[x+1],o=e[x+2];t[v]=h*n+c*r+p*o+_,t[v+1]=u*n+m*r+y*o+M,t[v+2]=f*n+d*r+g*o+b,x+=s,v+=i}return t}function o(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=n[0],u=n[1],f=n[2],c=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8],_=0,M=0;for(let n=0;n<l;n++){let n=e[_],r=e[_+1],o=e[_+2];t[M]=h*n+c*r+p*o,t[M+1]=u*n+m*r+y*o,t[M+2]=f*n+d*r+g*o,_+=s,M+=i}}function l(t,e,n,r=3,i=r){let s=Math.min(t.length/r,e.length/i),o=0,a=0;for(let l=0;l<s;l++)t[a]=n*e[o],t[a+1]=n*e[o+1],t[a+2]=n*e[o+2],o+=i,a+=r;return t}function h(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,i=3,s=i){let o=Math.min(t.length/i,e.length/s),a=0,l=0,h=1/2.2;for(let u=0;u<o;u++)t[l]=r*(n*e[a])**h,t[l+1]=r*(n*e[a+1])**h,t[l+2]=r*(n*e[a+2])**h,a+=s,l+=i}function f(t,e,n,i=3,s=i){let o=(0,r.k)(t.length,i,3),a=(0,r.k)(e.length,s,3),l=Math.min(o,a),h=0,u=0;for(let r=0;r<l;r++)t[u]=e[h]+n[0],t[u+1]=e[h+1]+n[1],t[u+2]=e[h+2]+n[2],h+=s,u+=i;return t}function c(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){let i=Math.min(t.length/n,e.length/r),s=0,o=0;for(let a=0;a<i;a++){let i=e[s],a=e[s+1],l=e[s+2],h=i*i+a*a+l*l;if(h>0){let e=1/Math.sqrt(h);t[o]=e*i,t[o+1]=e*a,t[o+2]=e*l}s+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:h,normalize:m,normalizeView:c,scale:l,scaleView:function(t,e,n){l(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){let r=Math.min(t.count,e.count),i=t.typedBuffer,s=t.typedBufferStride,o=e.typedBuffer,a=e.typedBufferStride,l=0,h=0;for(let t=0;t<r;t++)i[h]=o[l]>>n,i[h+1]=o[l+1]>>n,i[h+2]=o[l+2]>>n,l+=a,h+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:i,translate:f},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),a=n(88620),l=n(64108);const h=Symbol("ClonableMixin"),u=t=>{var e;let n=t,i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=h}clone(t){let e=(0,a.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,i={},l=new Map;for(let e in n){let o=n[e],a=r?.originOf(e),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;let u=this[e],f=null;if("function"==typeof h)f=h(u,t);else if("reference"===h)f=u;else if(f=(0,s.TU)(u,t),null!=u&&null==f)continue;0===a?l.set(e,f):i[e]=f}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let t=(0,a.oY)(h)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return h}};return i=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],i),i},f=u(i.A);n.d(e,["OU",0,u,"Pw",0,f])},9775(t,e,n){n.d(e,{A:()=>s});var r=n(62788),i=n(95488);class s{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,r.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},95488(t,e,n){n.d(e,{I:()=>i});var r=n(11406);class i extends r.T{notify(){let t=this._observers;if(t&&t.length>0){let e=t.slice();for(let t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p){return[t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>M,O7:()=>w,Qw:()=>h,Tl:()=>c,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>_,hZ:()=>o,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>f,mg:()=>l,o1:()=>R,sC:()=>v,t2:()=>I,t5:()=>C,tZ:()=>N,ut:()=>O});var r=n(51850),i=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function o(t,e,n,r,i,s,o,a,l,h,u,f,c,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t[9]=u,t[10]=f,t[11]=c,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],s=e[6],o=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return u(t,e)||a(t),t}function u(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],_=n*a-r*o,M=n*l-i*o,b=n*h-s*o,x=r*l-i*a,v=r*h-s*a,S=i*h-s*l,A=u*p-f*d,R=u*y-c*d,w=u*g-m*d,T=f*y-c*p,C=f*g-m*p,E=c*g-m*y,I=_*E-M*C+b*T+x*w-v*R+S*A;return I?(I=1/I,t[0]=(a*E-l*C+h*T)*I,t[1]=(i*C-r*E-s*T)*I,t[2]=(p*S-y*v+g*x)*I,t[3]=(c*v-f*S-m*x)*I,t[4]=(l*w-o*E-h*R)*I,t[5]=(n*E-i*w+s*R)*I,t[6]=(y*b-d*S-g*M)*I,t[7]=(u*S-c*b+m*M)*I,t[8]=(o*C-a*w+h*A)*I,t[9]=(r*w-n*C-s*A)*I,t[10]=(d*v-p*b+g*_)*I,t[11]=(f*b-u*v-m*_)*I,t[12]=(a*R-o*T-l*A)*I,t[13]=(n*T-r*R+i*A)*I,t[14]=(p*M-d*x-y*_)*I,t[15]=(u*x-f*M+c*_)*I,t):null}function f(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=e[8],c=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],_=e[15],M=n[0],b=n[1],x=n[2],v=n[3];return t[0]=M*r+b*a+x*f+v*p,t[1]=M*i+b*l+x*c+v*y,t[2]=M*s+b*h+x*m+v*g,t[3]=M*o+b*u+x*d+v*_,M=n[4],b=n[5],x=n[6],v=n[7],t[4]=M*r+b*a+x*f+v*p,t[5]=M*i+b*l+x*c+v*y,t[6]=M*s+b*h+x*m+v*g,t[7]=M*o+b*u+x*d+v*_,M=n[8],b=n[9],x=n[10],v=n[11],t[8]=M*r+b*a+x*f+v*p,t[9]=M*i+b*l+x*c+v*y,t[10]=M*s+b*h+x*m+v*g,t[11]=M*o+b*u+x*d+v*_,M=n[12],b=n[13],x=n[14],v=n[15],t[12]=M*r+b*a+x*f+v*p,t[13]=M*i+b*l+x*c+v*y,t[14]=M*s+b*h+x*m+v*g,t[15]=M*o+b*u+x*d+v*_,t}function c(t,e,n){let r=n[0],i=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*s+e[12],t[13]=e[1]*r+e[5]*i+e[9]*s+e[13],t[14]=e[2]*r+e[6]*i+e[10]*s+e[14],t[15]=e[3]*r+e[7]*i+e[11]*s+e[15];else{let n=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=o,t[2]=a,t[3]=l,t[4]=h,t[5]=u,t[6]=f,t[7]=c,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+h*i+m*s+e[12],t[13]=o*r+u*i+d*s+e[13],t[14]=a*r+f*i+p*s+e[14],t[15]=l*r+c*i+y*s+e[15]}return t}function m(t,e,n){let r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let o=r[0],a=r[1],l=r[2],h=Math.sqrt(o*o+a*a+l*l);if(h<=(0,i.FD)())return void s(t,e);h=1/h,o*=h,a*=h,l*=h;let u=Math.sin(n),f=Math.cos(n),c=1-f,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],_=e[5],M=e[6],b=e[7],x=e[8],v=e[9],S=e[10],A=e[11],R=o*o*c+f,w=a*o*c+l*u,T=l*o*c-a*u,C=o*a*c-l*u,E=a*a*c+f,I=l*a*c+o*u,O=o*l*c+a*u,N=a*l*c-o*u,P=l*l*c+f;t[0]=m*R+g*w+x*T,t[1]=d*R+_*w+v*T,t[2]=p*R+M*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*C+g*E+x*I,t[5]=d*C+_*E+v*I,t[6]=p*C+M*E+S*I,t[7]=y*C+b*E+A*I,t[8]=m*O+g*N+x*P,t[9]=d*O+_*N+v*P,t[10]=p*O+M*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[4],o=e[5],a=e[6],l=e[7],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*i+h*r,t[5]=o*i+u*r,t[6]=a*i+f*r,t[7]=l*i+c*r,t[8]=h*i-s*r,t[9]=u*i-o*r,t[10]=f*i-a*r,t[11]=c*i-l*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],o=n[2],l=Math.sqrt(r*r+s*s+o*o);if(l<=(0,i.FD)())return null;l=1/l,r*=l,s*=l,o*=l;let h=Math.sin(e),u=Math.cos(e),f=1-u;return t[0]=r*r*f+u,t[1]=s*r*f+o*h,t[2]=o*r*f-s*h,t[3]=0,t[4]=r*s*f-o*h,t[5]=s*s*f+u,t[6]=o*s*f+r*h,t[7]=0,t[8]=r*o*f+s*h,t[9]=s*o*f-r*h,t[10]=o*o*f+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){let r=e[0],i=e[1],s=e[2],o=e[3],a=r+r,l=i+i,h=s+s,u=r*a,f=r*l,c=r*h,m=i*l,d=i*h,p=s*h,y=o*a,g=o*l,_=o*h;return t[0]=1-(m+p),t[1]=f+_,t[2]=c-g,t[3]=0,t[4]=f-_,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=c+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const x=(0,r.vt)();function v(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],s=e[4],o=e[5],a=e[6],l=e[8],h=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(l*l+h*h+u*u),t}function A(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=e[3],l=i+i,h=s+s,u=o+o,f=i*l,c=i*h,m=i*u,d=s*h,p=s*u,y=o*u,g=a*l,_=a*h,M=a*u,b=r[0],x=r[1],v=r[2];return t[0]=(1-(d+y))*b,t[1]=(c+M)*b,t[2]=(m-_)*b,t[3]=0,t[4]=(c-M)*x,t[5]=(1-(f+y))*x,t[6]=(p+g)*x,t[7]=0,t[8]=(m+_)*v,t[9]=(p-g)*v,t[10]=(1-(f+d))*v,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,i){let s=e[0],o=e[1],a=e[2],l=e[3],h=s+s,u=o+o,f=a+a,c=s*h,m=s*u,d=s*f,p=o*u,y=o*f,g=a*f,_=l*h,M=l*u,b=l*f,x=r[0],v=r[1],S=r[2],A=i[0],R=i[1],w=i[2],T=(1-(p+g))*x,C=(m+b)*x,E=(d-M)*x,I=(m-b)*v,O=(1-(c+g))*v,N=(y+_)*v,P=(d+M)*S,L=(y-_)*S,B=(1-(c+p))*S;return t[0]=T,t[1]=C,t[2]=E,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=B,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(C*A+O*R+L*w),t[14]=n[2]+w-(E*A+N*R+B*w),t[15]=1,t}function T(t,e,n,r,i,s,o){let a=1/(n-e),l=1/(i-r),h=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*l,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*l,t[10]=(o+s)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*h,t[15]=0,t}function C(t,e,n,r){let s=e[0],o=e[1],l=e[2],h=s-n[0],u=o-n[1],f=l-n[2],c=(0,i.FD)();if(Math.abs(h)<c&&Math.abs(u)<c&&Math.abs(f)<c)return void a(t);let m=1/Math.sqrt(h*h+u*u+f*f);h*=m,u*=m,f*=m;let d=r[0],p=r[1],y=r[2],g=p*f-y*u,_=y*h-d*f,M=d*u-p*h;m=Math.sqrt(g*g+_*_+M*M),m?(m=1/m,g*=m,_*=m,M*=m):(g=0,_=0,M=0);let b=u*M-f*_,x=f*g-h*M,v=h*_-u*g;m=Math.sqrt(b*b+x*x+v*v),m?(m=1/m,b*=m,x*=m,v*=m):(b=0,x=0,v=0),t[0]=g,t[1]=b,t[2]=h,t[3]=0,t[4]=_,t[5]=x,t[6]=u,t[7]=0,t[8]=M,t[9]=v,t[10]=f,t[11]=0,t[12]=-(g*s+_*o+M*l),t[13]=-(b*s+x*o+v*l),t[14]=-(h*s+u*o+f*l),t[15]=1}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){let e=(0,i.FD)(),n=t[0],r=t[1],s=t[2],o=t[4],a=t[5],l=t[6],h=t[8],u=t[9],f=t[10];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+l*l+f*f))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=f,L=E;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=e[4],a=e[5],l=e[6],h=e[7],u=e[8],f=e[9],c=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(c*g-m*y)-f*(l*g-h*y)+p*(l*m-h*c),t[1]=-(r*(c*g-m*y)-f*(i*g-s*y)+p*(i*m-s*c)),t[2]=r*(l*g-h*y)-a*(i*g-s*y)+p*(i*h-s*l),t[3]=-(r*(l*m-h*c)-a*(i*m-s*c)+f*(i*h-s*l)),t[4]=-(o*(c*g-m*y)-u*(l*g-h*y)+d*(l*m-h*c)),t[5]=n*(c*g-m*y)-u*(i*g-s*y)+d*(i*m-s*c),t[6]=-(n*(l*g-h*y)-o*(i*g-s*y)+d*(i*h-s*l)),t[7]=n*(l*m-h*c)-o*(i*m-s*c)+u*(i*h-s*l),t[8]=o*(f*g-m*p)-u*(a*g-h*p)+d*(a*m-h*f),t[9]=-(n*(f*g-m*p)-u*(r*g-s*p)+d*(r*m-s*f)),t[10]=n*(a*g-h*p)-o*(r*g-s*p)+d*(r*h-s*a),t[11]=-(n*(a*m-h*f)-o*(r*m-s*f)+u*(r*h-s*a)),t[12]=-(o*(f*y-c*p)-u*(a*y-l*p)+d*(a*c-l*f)),t[13]=n*(f*y-c*p)-u*(r*y-i*p)+d*(r*c-i*f),t[14]=-(n*(a*y-l*p)-o*(r*y-i*p)+d*(r*l-i*a)),t[15]=n*(a*c-l*f)-o*(r*c-i*f)+u*(r*l-i*a),t},copy:s,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],l=t[7],h=t[8],u=t[9],f=t[10],c=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*o-n*s)*(f*y-c*p)-(e*a-r*s)*(u*y-c*d)+(e*l-i*s)*(u*p-f*d)+(n*a-r*o)*(h*y-c*m)-(n*l-i*o)*(h*p-f*m)+(r*l-i*a)*(h*d-u*m)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],s=t[2],o=t[3],a=t[4],l=t[5],h=t[6],u=t[7],f=t[8],c=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],_=t[15],M=e[0],b=e[1],x=e[2],v=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],C=e[9],E=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],B=(0,i.FD)();return Math.abs(n-M)<=B*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-b)<=B*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-x)<=B*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(o-v)<=B*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-S)<=B*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(l-A)<=B*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-R)<=B*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-w)<=B*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(f-T)<=B*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(c-C)<=B*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(m-E)<=B*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-I)<=B*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=B*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=B*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=B*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-L)<=B*Math.max(1,Math.abs(_),Math.abs(L))},exactEquals:I,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],s=e[3],o=n+n,a=r+r,l=i+i,h=n*o,u=r*o,f=r*a,c=i*o,m=i*a,d=i*l,p=s*o,y=s*a,g=s*l;return t[0]=1-f-d,t[1]=u+g,t[2]=c-y,t[3]=0,t[4]=u-g,t[5]=1-h-d,t[6]=m+p,t[7]=0,t[8]=c+y,t[9]=m-p,t[10]=1-h-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=x,r=-e[0],i=-e[1],s=-e[2],o=e[3],a=e[4],l=e[5],h=e[6],u=e[7],f=r*r+i*i+s*s+o*o;return f>0?(n[0]=2*(a*o+u*r+l*s-h*i)/f,n[1]=2*(l*o+u*i+h*r-a*s)/f,n[2]=2*(h*o+u*s+a*i-l*r)/f):(n[0]=2*(a*o+u*r+l*s-h*i),n[1]=2*(l*o+u*i+h*r-a*s),n[2]=2*(h*o+u*s+a*i-l*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:M,frustum:T,getRotation:A,getScale:S,getTranslation:v,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:h,isOrthoNormal:O,lookAt:C,mul:P,multiply:f,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,s,o){let a=1/(e-n),l=1/(r-i),h=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*l,t[14]=(o+s)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let s,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(s=1/(r-i),t[10]=(i+r)*s,t[14]=2*i*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+a),h=2/(i+s);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(o-a)*l*.5,t[9]=(i-s)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],h=e[8],u=e[9],f=e[10],c=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i-h*r,t[1]=o*i-u*r,t[2]=a*i-f*r,t[3]=l*i-c*r,t[8]=s*r+h*i,t[9]=o*r+u*i,t[10]=a*r+f*i,t[11]=l*r+c*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),s=e[0],o=e[1],a=e[2],l=e[3],h=e[4],u=e[5],f=e[6],c=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i+h*r,t[1]=o*i+u*r,t[2]=a*i+f*r,t[3]=l*i+c*r,t[4]=h*i-s*r,t[5]=u*i-o*r,t[6]=f*i-a*r,t[7]=c*i-l*r,t},scale:m,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:L,subtract:E,targetTo:function(t,e,n,r){let i=e[0],s=e[1],o=e[2],a=r[0],l=r[1],h=r[2],u=i-n[0],f=s-n[1],c=o-n[2],m=u*u+f*f+c*c;m>0&&(m=1/Math.sqrt(m),u*=m,f*=m,c*=m);let d=l*c-h*f,p=h*u-a*c,y=a*f-l*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=f*y-c*p,t[5]=c*d-u*y,t[6]=u*p-f*d,t[7]=0,t[8]=u,t[9]=f,t[10]=c,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:c,translateAffine:function(t,e,n){let r=n[0],i=n[1],o=n[2];return t!==e&&s(t,e),t[12]+=r,t[13]+=i,t[14]+=o,t},transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>o,Cc:()=>w,DI:()=>v,Io:()=>_,Ln:()=>g,Om:()=>A,Qr:()=>f,Re:()=>h,S8:()=>S,T9:()=>p,WQ:()=>l,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>C,fw:()=>I,gL:()=>E,hG:()=>M,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>B,t2:()=>P,tn:()=>c,ze:()=>x});var r=n(51850),i=n(34304);function s(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function _(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function M(t,e){let n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function b(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function x(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function v(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],i=e[2],s=n*n+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2];return t[0]=i*l-s*a,t[1]=s*o-r*l,t[2]=r*a-i*o,t}function w(t,e,n,r){let i=e[0],s=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=s+r*(n[1]-s),t[2]=o+r*(n[2]-o),t}function T(t,e,n){let r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*s+n[12],t[1]=n[1]*r+n[5]*i+n[9]*s+n[13],t[2]=n[2]*r+n[6]*i+n[10]*s+n[14],t}function C(t,e,n){let r=e[0],i=e[1],s=e[2];return t[0]=r*n[0]+i*n[3]+s*n[6],t[1]=r*n[1]+i*n[4]+s*n[7],t[2]=r*n[2]+i*n[5]+s*n[8],t}function E(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,i,s){let o=e[0],a=e[1],l=e[2],h=r*l-i*a,u=i*o-n*l,f=n*a-r*o,c=r*f-i*u,m=i*h-n*f,d=n*u-r*h,p=2*s;return t[0]=o+h*p+2*c,t[1]=a+u*p+2*m,t[2]=l+f*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;let n=t[0],r=t[1],s=t[2],o=e[0],a=e[1],l=e[2],h=(0,i.FD)();return Math.abs(n-o)<=h*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-l)<=h*Math.max(1,Math.abs(s),Math.abs(l))}function B(t,e,n){let r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const G=h,D=u,U=f,F=_,k=M,j=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:l,angle:function(t,e){S(O,t),S(N,e);let n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},applyTranslation:function(t,e,n){return t[0]=e[0]+n[12],t[1]=e[1]+n[13],t[2]=e[2]+n[14],t},bezier:function(t,e,n,r,i,s){let o=1-s,a=o*o,l=s*s,h=a*o,u=3*s*a,f=3*l*o,c=l*s;return t[0]=e[0]*h+n[0]*u+r[0]*f+i[0]*c,t[1]=e[1]*h+n[1]*u+r[1]*f+i[1]*c,t[2]=e[2]*h+n[2]*u+r[2]*f+i[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:R,crossAndNormalize:function(t,e,n){let r=e[0],i=e[1],s=e[2],o=n[0],a=n[1],l=n[2],h=i*l-s*a,u=s*o-r*l,f=r*a-i*o,c=Math.sqrt(h*h+u*u+f*f);return t[0]=h/c,t[1]=u/c,t[2]=f/c,t},direction:B,dist:F,distance:_,div:U,divide:f,dot:A,equals:L,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,s){let o=s*s,a=o*(2*s-3)+1,l=o*(s-2)+s,h=o*(s-1),u=o*(3-2*s);return t[0]=e[0]*a+n[0]*l+r[0]*h+i[0]*u,t[1]=e[1]*a+n[1]*l+r[1]*h+i[1]*u,t[2]=e[2]*a+n[2]*l+r[2]*h+i[2]*u,t},inverse:v,len:j,length:s,lerp:w,max:p,min:d,mul:D,multiply:u,negate:x,normalize:S,random:function(t,e=1){let n=i.Ov,r=2*n()*Math.PI,s=2*n()-1,o=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*e,t},rotateX:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){let i=[],s=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/j(t))},set:a,sign:m,sqrDist:k,sqrLen:Z,squaredDistance:M,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:G,subtract:h,transformMat3:C,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:E,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,j,"jb",0,G,"lo",0,k,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),i=n(71511),s=n(36563),o=n(53966),a=n(97768),l=n(17676),h=n(83027);class u{constructor(t,e,n,r,i={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,h.h)(t,{...i,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{i.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(let e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){let n=new f(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&=(this._thread.close(),null),this._promise=null;for(let t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){return this._invokeMethod(t,[e],n,r)}invokeMethodWithArgs(t,e,n,r){return this._invokeMethod(t,e,n,r)}_invokeMethod(t,e,n,r){if(this._thread){let i=this._transferLists[t],s=i?i(...e):[];return this._thread.apply(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(n),this._invokeMethod(t,e,n,r))):Promise.reject((0,l.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(c):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class f{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new i.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function c(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,i=n(32198),s=n(4576),o=n(4718),a=n(91429),l=n(5443),h=n(91075),u=n(86738),f=n(16930),c=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=f.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new l.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:n,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,n=t.spatialReference;return!(null!=e!=(null!=n)||null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference},r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;let[e,n,r,i]=this.points.splice(t,1)[0],s=new u.A({x:e,y:n,z:r,m:i,spatialReference:this.spatialReference});return this.notifyChange("points"),s}setPoint(t,e){return this._validateInputs(t)&&((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,i=n(32198),s=n(4718),o=n(91429),a=n(5443),l=n(91075),h=n(86738),u=n(16930),f=n(90634),c=n(56993),m=n(43937);let d=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:i}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let n=this.paths[t][e],r=this.hasZ,i=this.hasM;return r&&!i?new h.A({x:n[0],y:n[1],z:n[2],spatialReference:this.spatialReference}):i&&!r?new h.A({x:n[0],y:n[1],m:n[2],spatialReference:this.spatialReference}):r&&i?new h.A({x:n[0],y:n[1],z:n[2],m:n[3],spatialReference:this.spatialReference}):new h.A({x:n[0],y:n[1],spatialReference:this.spatialReference})}insertPoint(t,e,n){return this._validateInputs(t,e,!0)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new h.A({x:t[0],y:t[1],z:t[2],m:t[3],spatialReference:n}));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;let[n,r,i,s]=this.paths[t].splice(e,1)[0],o=new h.A({x:n,y:r,z:i,m:s,spatialReference:this.spatialReference});return this.notifyChange("paths"),o}setPoint(t,e,n){return this._validateInputs(t,e)&&((0,c.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths")),this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let r=this.paths[t];if(n&&(e<0||e>r.length)||!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>o});var r=n(51850),i=n(99917),s=n(9762);function o(t,e,n,r){if((0,i.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);let o=(0,i.tryProject)(t,n,r);return!!o&&(e[0]=o.x,e[1]=o.y,e[2]=o.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),i=n(16930),s=n(9762),o=n(65806);function a(t,e,n,i){return!(null==e||null==i||t.length<2)&&((0,r.canProjectWithoutEngine)(e,i)?(0,s.projectBuffer)(t,e,0,n,i,0,1):(l.x=t[0],l.y=t[1],l.z=t[2],l.spatialReference=e,(0,o.g)(l,n,i)))}const l={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:i.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>o,cj:()=>s,jh:()=>i});var r=n(9093);function i(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function s(t){return[...t]}function o(t){let e=(0,r.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>h});var r,i=n(32198),s=n(69540),o=n(25482),a=n(91429),l=n(93223);let h=class extends((0,s.OU)(o.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,i.Cg)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],h.prototype,"origin",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],h)},18251(t,e,n){n.d(e,{A:()=>h});var r=n(32198),i=n(69540),s=n(25482),o=n(91429),a=n(51850),l=n(93223);let h=class extends((0,i.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,l.e)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r.Cg)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,o.$K)("esri.geometry.support.MeshLocalVertexSpace")],h)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;let r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function l(t){return"object"==typeof t&&"vertexAttributes"in t}function h(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>h,Bi:()=>a,Pv:()=>u,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>l})},65864(t,e,n){n.d(e,{rS:()=>u,xD:()=>c});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),h=n(60408);function u(t){return null==t?null:t instanceof i.A?t:(0,h.fT)(t)?o.A.fromJSON(t):(0,h.Rg)(t)?l.A.fromJSON(t):(0,h.Bi)(t)?a.A.fromJSON(t):(0,h.U9)(t)?s.A.fromJSON(t):(0,h.ZC)(t)?r.A.fromJSON(t):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function c(t){return t&&f[t]||null}},80754(t,e,n){n.d(e,{kS:()=>h,kd:()=>l});var r=n(82799),i=n(16930),s=n(60408),o=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(t,e){return Math.ceil((t-e)/(2*e))}function h(t,e){if((0,o.Ed)(t))for(let n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(let t of n)if((0,o.aO)(t)){let[n,r]=t.c;n[0]+=e,r[0]+=e}else if((0,o.FG)(t)){let[n,r]=t.a;n[0]+=e,r[0]+=e}else if((0,o.n1)(t)){let[n,r,i]=t.b;n[0]+=e,r[0]+=e,i[0]+=e}else t[0]+=e;for(let n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(let t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>f,jZ:()=>u});var r=n(12195),i=n(19419),s=n(537),o=n(95108),a=n(60408),l=n(80754),h=n(21325);function u(t){return c(t,!0)}function f(t){return c(t,!1)}function c(t,e){if(null==t)return null;let n=t.spatialReference,i=(0,h.Vp)(n),o=(0,r.W)(t)?t.toJSON():t;if(!i)return o;let u=(0,h.K8)(n)?102100:4326,f=l.j7[u].maxX,c=l.j7[u].minX;if((0,a.fT)(o))return d(o,f,c);if((0,a.U9)(o))return o.points=o.points.map(t=>d(t,f,c)),o;if((0,a.ZC)(o))return m(o,i);if((0,a.Bi)(o)||(0,a.Rg)(o)){let t=(0,s.Rg)(b,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,c),i=2*f*r,a=0===i?o:(0,l.kS)(o,i);return n.xmin+=i,n.xmax+=i,n.xmax>f?_(a,f,e):n.xmin<c?_(a,c,e):a}return o}function m(t,e){if(!e)return t;let n=function(t,e){let n=[],{ymin:r,ymax:i,xmin:s,xmax:o}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:u,frameId:f}=p(t.xmin,e),{x:c,frameId:m}=p(t.xmax,e),d=u===c&&a>0;if(a>2*h){let t={xmin:s<o?u:c,ymin:r,xmax:h,ymax:i},e={xmin:l,ymin:r,xmax:s<o?c:u,ymax:i},a={xmin:0,ymin:r,xmax:h,ymax:i},d={xmin:l,ymin:r,xmax:0,ymax:i},p=[],g=[];y(t,a)&&p.push(f),y(t,d)&&g.push(f),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=f+1;t<m;t++)p.push(t),g.push(t);n.push(new M(t,[f]),new M(e,[m]),new M(a,p),new M(d,g))}else u>c||d?n.push(new M({xmin:u,ymin:r,xmax:h,ymax:i},[f]),new M({xmin:l,ymin:r,xmax:c,ymax:i},[m])):n.push(new M({xmin:u,ymin:r,xmax:c,ymax:i},[f]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){let r=t[0];if(r>e){let n=(0,l.kd)(r,e);t[0]=r+-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t[0]=r+-2*n*e}}else{let r=t.x;if(r>e){let n=(0,l.kd)(r,e);t.x+=-2*e*n}else if(r<n){let e=(0,l.kd)(r,n);t.x+=-2*n*e}}return t}function p(t,e){let n,[r,i]=e.valid,s=2*i,o=0;return t>i?(n=Math.ceil(Math.abs(t-i)/s),t-=n*s,o=n):t<r&&(n=Math.ceil(Math.abs(t-r)/s),t+=n*s,o=-n),{x:t,frameId:o}}function y(t,e){let{xmin:n,ymin:r,xmax:i,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,i,s)&&g(t,i,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function _(t,e,n=!0){let r=!(0,a.Rg)(t);if(r&&(0,o.m3)(t),n)return(new x).cut(t,e);let i=r?t.rings:t.paths,s=r?4:2,l=i.length,h=-2*e;for(let t=0;t<l;t++){let e=i[t];if(e&&e.length>=s){let t=[];for(let[n,...r]of e)t.push([n+h,...r]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class M{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,i.vt)();class x{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(let t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(let n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(let t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);let r=-2*this._xCut;for(let t of this._linesOut)if(t&&t.length>=this._minPts){for(let e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){let e=this._side(t[0]);if(e*this._prevSide===-1){let n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){let t=this._firstPt,e=this._prevPt;(t[0]!==e[0]||t[1]!==e[1])&&this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(v(t,e<=0?t[0]:this._xCut)),this._lineOut.push(v(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){let e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:+(t>this._xCut)}_intersect(t,e){let n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],i=Math.min(t.length,e.length);for(let s=2;s<i;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function v(t,e){let n=t.slice();return n[0]=e,n}function S(t,e,n){let r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=v(e,n):t.push(v(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>I,F8:()=>E,J2:()=>R,Yq:()=>T,_m:()=>w,iS:()=>C,wj:()=>O});var r=n(66552),i=n(73444),s=n(98623),o=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},_={...p,...y},M={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,..._},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,..._},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...d},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...p},"long-month-day-year-long-time-24":{...f,..._},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...d},"day-short-month-year-short-time-24":{...c,...g},"day-short-month-year-long-time":{...c,...p},"day-short-month-year-long-time-24":{...c,..._},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,..._},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),x={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function v(){let t=(0,i.lR)();return(t&&x[t])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:t})=>"month"===t)?.value.toLowerCase()&&(x.bs="sr-Latn-CS");let S=new WeakMap;const A=M["short-date-short-time"];function R(t){return M[t]}function w(t){let{dateStyle:e,timeStyle:n,hour12:r,year:i,month:s}=t,o={};return e?o.dateStyle=e:i&&(o.year=i,o.month=s||void 0),n&&!o.year&&(o.timeStyle=n,o.hour12="auto"===r?void 0:"always"===r),o}function T(t,e=A){return function(t){let e=S.get(t);if(!e){let n=v(),r=O(t.timeZone??"system"),i={...t,timeZone:r};e=new Intl.DateTimeFormat(n,i),S.set(t,e)}return e}(e).format(t)}function C(t,e=A){return T(new Date(t),{...e,...h,...l})}function E(t,e=A){return T(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function I(t,e=A){let n=o.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return T(n.toJSDate(),e);let r=0===n.offset?"UTC":e.timeZone,i={...e,timeZone:r};return n.toLocaleString(i,{locale:v()})}function O(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,i.Ml)(()=>{S=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>l,Ml:()=>y,QC:()=>f,lR:()=>u,oQ:()=>d});var r=n(36563);let i;n(44208);const s=globalThis.esriConfig?.locale,o=globalThis.document?.documentElement;function a(){let t=o?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function l(){return void 0===i&&(i=a()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=l()){return c(t)?.language}function f(t=l()){let e=c(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function c(t=l()){return h.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){let t=a();i!==t&&([...p].forEach(e=>e(t)),i=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),o&&new MutationObserver(()=>{g()}).observe(o,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>f,MU:()=>u,yf:()=>m});var r=n(35522),i=n(51850),s=n(10614),o=n(63907),a=n(74038);class l{constructor(t,e){this.data=t,this.indices=e}}class h{constructor(t,e,n,r,i){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=i}}function u(t,e,n,h,u){return!h||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,o){let a=new l(t.slice().buffer,e);if(!o)return a;let h=n[0].stride,u=a.data.byteLength/h;for(let t of n)if("normalCompressed"===t.name){let{offset:e}=t,n=new Int16Array(a.data),l=(0,i.vt)();for(let t=0;t<u;++t)(0,s.Tz)(l,n,t,h/2,e/2),(0,r.ei)(l,l,o),(0,s.aT)(n,t,l[0],l[1],l[2],h/2,e/2)}else if("normal"===t.name){let{offset:e}=t,n=new Float32Array(a.data),s=(0,i.vt)();for(let t=0;t<u;++t){let i=(t*h+e)/4;s[0]=n[i],s[1]=n[i+1],s[2]=n[i+2],(0,r.ei)(s,s,o),n[i]=s[0],n[i+1]=s[1],n[i+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){let i=n[0].stride,s=i/4,l=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),h=t.byteLength/i,u=1<n.length?n[1].offset/4:s,m=i+4;return n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,o.pe.SHORT,12,m,!0)),c(l,h,u,i,m,f(e,l,s,r))}(t,e,n,u)}function f(t,e,n,r){let i=t.length/3,s=e.length/n,{faceNormals:o,faceAreas:a,faceEdges:l,edgeFaces:h,vertexFaces:u,vertexFaceCountAndOffset:f}=function(t,e,n,r,i,s){let o=new Float32Array(3*i),a=new Float32Array(i),l=new Uint32Array(3*i),h=new Int32Array(2*(3*i)),u=3*i,f=new Uint32Array(u),c=new Uint32Array(2*n);for(let t=0;t<i;++t){let e=3*t;for(let t=0;t<3;++t)++c[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){let n=2*e;c[n+1]=t,t+=c[n]}for(let t=0;t<i;++t){let e=3*t;for(let n=0;n<3;++n)f[c[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)c[2*t+1]-=c[2*t]}let m=0,d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){let e=2*t,n=4*c[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){let r=Math.min(t,e),i=Math.max(t,e),s=t<e?0:1,o=2*r,a=p[o],l=p[o+1],u=-1;for(let t=a;t<l;t+=2)if(d[t]===i){u=d[t+1];break}return-1===u&&(u=m++,d[l]=i,d[l+1]=u,p[o+1]=l+2,h[2*u+(1-s)]=-1),h[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){let i=r[n],h=i*e,u=t[h],f=t[h+1],c=t[h+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],_=t[d+2],M=r[n+2],b=M*e,x=u-p,v=f-g,S=c-_,A=u-t[b],R=f-t[b+1],w=c-t[b+2],T=v*w-S*R,C=S*A-x*w,E=x*R-v*A,I=Math.sqrt(T*T+C*C+E*E)||1,O=n/3;a[O]=.5*I;let N=1/I;if(s){let t=s[0]*T+s[3]*C+s[6]*E,e=s[1]*T+s[4]*C+s[7]*E,n=s[2]*T+s[5]*C+s[8]*E;o[3*O]=t*N,o[3*O+1]=e*N,o[3*O+2]=n*N}else o[3*O]=T*N,o[3*O+1]=C*N,o[3*O+2]=E*N;let P=y(i,m,O),L=y(m,M,O),B=y(M,i,O);l[3*O]=P,l[3*O+1]=L,l[3*O+2]=B}return{faceNormals:o,faceAreas:a,faceEdges:l,vertexFaces:f,vertexFaceCountAndOffset:c,edgeFaces:h}}(e,n,s,t,i,r);return function(t,e,n,r,i,s){let o=new Uint8Array(e),a=new Uint32Array(e),l=new Uint32Array(3*e),h=0,u=new Uint32Array(e),f=0;for(let e=0;e<t.length;e+=3){let t=e/3;if(1===o[t])continue;o[t]=1;let c=n[3*t],m=n[3*t+1],d=n[3*t+2];for(f=0,u[f++]=t,l[0]=i[3*t],l[1]=i[3*t+1],l[2]=i[3*t+2],h=3,a[t]=t+1;h>0;){let e=l[--h];for(let r=0;r<2;++r){let y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;let g=n[3*y],_=n[3*y+1],M=n[3*y+2];if(Math.abs(1-(c*g+m*_+d*M))<p){u[f++]=y,o[y]=1;for(let t=0;t<3;++t){let n=i[3*y+t];n!==e&&(l[h++]=n)}}}}if(f>1){let t=0,e=0,i=0,s=0;for(let o=0;o<f;++o){let a=u[o],l=r[a];t+=l,e+=n[3*a]*l,i+=n[3*a+1]*l,s+=n[3*a+2]*l}let o=Math.sqrt(e*e+i*i+s*s)||1;e/=o,i/=o,s/=o;for(let o=0;o<f;++o){let a=u[o];n[3*a]=e,n[3*a+1]=i,n[3*a+2]=s,r[a]=t}}}}(t,i,o,a,l,h),d(i,s,t,o,a,u,f)}function c(t,e,n,r,i,s){let o=r/4,a=i/4,h=s.outputVertexCount,u=new Float32Array(h*a),f=new Uint32Array(u.buffer),c=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,i,s,o){for(let a=0;a<s;++a){let s=a*i,l=a*e;for(let e=0;e<n;++e)t[l+e]=r[s+e];t[l+n]=o[a];for(let e=n;e<i;++e)t[l+e+1]=r[s+e]}}(f,a,n,c,o,e,s.packedNormals),m(f,a,n,c,o,e,h,s.appendedVertexToOriginal,s.packedNormals,!0),new l(u.buffer,s.indices)}function m(t,e,n,r,i,s,o,a,l,h){for(let u=s;u<o;++u){let o=a[u-s]*i,f=u*e;for(let e=0;e<i;++e)t[f+e+(h&&e>=n?1:0)]=r[o+e];t[f+n]=l[u]}}function d(t,e,n,r,i,s,o){let a=3*t,l=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n),u=e,f=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),c=new ArrayBuffer(4*a),m=new Int16Array(c),d=new Uint32Array(c),p=0,g=0,_=new Uint32Array(t),M=0,b=1-y;for(let t=0;t<e;++t){p=o[2*t+1],g=p+o[2*t];let n=t;for(;p<g;){{let t=s[--g],e=3*t,o=r[e],a=r[e+1],l=r[e+2];M=0,_[M++]=t;let h=p;for(;h<g;){let t=s[h],e=3*t;if(o*r[e]+a*r[e+1]+l*r[e+2]>b){_[M++]=t;let e=--g;if(h<e){s[h]=s[e];continue}}++h}let u=0,f=0,c=0;if(1===M)u=o,f=a,c=l;else{for(let t=0;t<M;++t){let e=_[t],n=i[e],s=3*e;u+=r[s]*n,f+=r[s+1]*n,c+=r[s+2]*n}let t=Math.sqrt(u*u+f*f+c*c)||1;u/=t,f/=t,c/=t}{let t=1/(Math.abs(u)+Math.abs(f)+Math.abs(c)),e=u*t,r=f*t,i=e,s=r;c<=0&&(i=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));let o=2*n,a=Math.round(32767*i),l=Math.round(32767*s);m[o]=a<-32767?-32767:a>32767?32767:a,m[o+1]=l<-32767?-32767:l>32767?32767:l}}if(n!==t)for(let e=0;e<M;++e){let r=3*_[e];l[r]===t&&(l[r]=n),l[r+1]===t&&(l[r+1]=n),l[r+2]===t&&(l[r+2]=n)}if(p>=g)break;n=u++,f[n-e]=t}}return new h(l,d,f,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>R,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>b,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>E,process:()=>_,project:()=>S,setLegacySchema:()=>v,setModifications:()=>x,setModificationsSync:()=>T,test:()=>B,transformNormals:()=>A});var r=n(34727),i=n(77690),s=n(29242),o=n(58083),a=n(9093),l=n(16930),h=n(4197),u=n(95696),f=n(18251),c=n(73354),m=n(2741);function d(){p=null}let p;var y=n(89606),g=n(98697);async function _(t){w=await L();let e=[t.geometryBuffer];return{result:C(w,t,e),transferList:e}}async function M(t){w=await L();let e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,i,r);s.set(new Uint8Array(n));let o=w.dracoDecompressPointCloudData(i,s.byteLength);if(w._free(i),o.error.length>0)throw Error(`i3s.wasm: ${o.error}`);let a=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return a&&e.push(a.buffer),e.push(l.buffer),{result:{positions:l,featureIds:a},transferList:e}}async function b(t){await L(),I(t);let e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function x(t){await L(),T(t)}async function v(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function S(t){let e,{localMatrix:r,origin:i,positions:s,vertexSpace:o}=t,a=l.A.fromJSON(t.inSpatialReference),c=l.A.fromJSON(t.outSpatialReference),m=r?(0,h.Vj)(r):void 0,d=(0,h.cj)(i),[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(()=>n(9762)),Promise.resolve().then(()=>n(99917))]);await y(a,c);let g=[0,0,0];if(!p(d,a,0,g,c,0))throw Error("Failed to project");if("georeferenced"===o.type&&null==o.origin){if(e=new Float64Array(s.length),!p(s,a,0,e,c,0,e.length/3))throw Error("Failed to project")}else{let t="georeferenced"===o.type?u.A.fromJSON(o):f.A.fromJSON(o),{projectMeshVertexPositions:r}=await Promise.all([n.e(2258),n.e(2346)]).then(()=>n(74594)),i=r({vertexAttributes:{position:s},transform:m?{localMatrix:m}:void 0,vertexSpace:t,spatialReference:a},c);if(!i)throw Error("Failed to project");e=i}let _=e.length,[M,b,x]=g;for(let t=0;t<_;t+=3)e[t]-=M,e[t+1]-=b,e[t+2]-=x;return{result:{projected:e,original:s,projectedOrigin:g},transferList:[e.buffer,s.buffer]}}async function A({normalMatrix:t,normals:e}){let n=new Float32Array(e.length);return(0,c.b)(n,e,t),(0,r.or)(t)&&(0,c.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function R(t){O(t)}let w;function T(t){if(!w)return;let e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function C(t,e,n){let{context:r,globalTrafo:l,geometryElevationOffset:h,mbs:u,obbData:f,layouts:c,needNormals:m,computeNormals:d,elevationOffset:p,planetRadiusInGlobalMode:_,geometryBuffer:M,geometryDescriptor:b,geometryData:x,indexToVertexProjector:v,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(M.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,M.byteLength);T.set(new Uint8Array(M));let C=new Float64Array(t.HEAPU8.buffer,w,33);N(C,[NaN,NaN,NaN],0);let E=3;N(C,l,E),E+=16,N(C,u.center,E),E+=3,C[E++]=u.radius,f&&N(C,f,E++);let I={isDraco:!1,isLegacy:!1,color:c.some(t=>t.some(t=>"color"===t.name)),normal:m&&c.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:c.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:c.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!f,R,T.byteLength,b,I,w,p,v,S,A);if(t._free(w),t._free(R),O.error.length>0)throw Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;let P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,B=O.anchorIds.length>0?Array.from(O.anchorIds):null,G=O.anchors.length>0?Array.from(O.anchors):null,D=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=c[0].slice(),F=(0,i.z0)((0,s.vt)(),l),k=(0,y.MU)(O.interleavedVertedData,D,U,d&&!I.normal,F),j=O.positions.slice(),Z=function(t,e,n,r,i){let s=n?(0,a.o8)(n):(0,a.vt)();(0,o.lw)(s,e,s);let l=s[0],h=s[1],u=s[2],f=s[4],c=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],_=s[13],M=s[14],b=1/0,x=-1/0;for(let e=0;e<t.length;e+=3){let n=t[e],s=t[e+1],o=t[e+2],a=n*u+s*m+o*y+M,v=0;if(r>0){let t=n*l+s*f+o*d+g,e=n*h+s*c+o*p+_;v=Math.sqrt(t*t+e*e+a*a)-r}else v=a;v-=i,b=Math.min(b,v),x=Math.max(x,v)}return{minElevation:b,maxElevation:x}}(j,l,x?.geometries[0]?.transformation,_,h),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,V=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),Y=new g._b(U,k.data,k.indices,O.hasColors,O.hasModifications,{data:j,indices:V});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(k.data),n.push(k.indices.buffer),n.push(j.buffer),n.push(V.buffer),new g.sQ(P,L,B,G,Y,l,O.obb,Z.minElevation,Z.maxElevation)}function E(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;let{context:e,buffer:n}=t,r=w._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,i),o=new Float64Array(n);s.set(o),w.filterOBBs(e,r,i),o.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,d())}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w??=await(p??=(async()=>{try{return await(await n.e(2980).then(()=>n(82980))).default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})}catch(t){throw d(),t}})(),p),w}const B={transform:(t,e)=>w&&C(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{Cm:()=>m,H1:()=>M,Ir:()=>y,_b:()=>f,sQ:()=>c});var r=n(53966),i=n(15142),s=n(51850),o=n(35982),a=n(39829),l=n(99917),h=n(27993),u=n(89056);class f{constructor(t,e,n,r,i,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=i,this.positionData=s}}class c{constructor(t,e,n,r,i,s,o,a,l){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=i,this.globalTrafo=s,this.obb=o,this.geometryMinElevation=a,this.geometryMaxElevation=l}}class m extends o.B{constructor(t){super("SceneLayerWorker","process",{process:t=>[t.geometryBuffer],project:t=>[t.positions.buffer],transformNormals:t=>[t.normals.buffer]},t,{hasInitialize:!0}),this._schemasByContext=new Map,this._modificationsByContext=new Map}_onClientConnected(t){for(let[e,n]of this._schemasByContext)t.invoke("setLegacySchema",{context:e,jsonSchema:n}).catch(()=>{});for(let e of this._modificationsByContext.values())t.invoke("setModifications",e).catch(()=>{})}setModifications(t,e,n){let r={context:t,modifications:e,isGeodetic:n};return this._modificationsByContext.set(t,r),this.broadcast(r,"setModifications")}setLegacySchema(t,e){let n=JSON.stringify(e);return this._schemasByContext.set(t,n),this.broadcast({context:t,jsonSchema:n},"setLegacySchema")}destroyContext(t){return this._schemasByContext.delete(t),this._modificationsByContext.delete(t),this.broadcast(t,"destroyContext")}async destroyContextAndSelf(t){await this.destroyContext(t),this.destroy()}project(t,e){return this.invokeMethod("project",t,e)}transformNormals(t,e){return this.invokeMethod("transformNormals",t,e)}}const d=new i.A({deallocator:null}),p=(0,s.vt)();function y(t,e,n,i=!1){d.clear();let s=1/0,o=1/0,h=-1/0,f=-1/0,c=!1;for(let t of e){let e="clip"===t.type?2:+("mask"===t.type),m=t.geometry,p=m.spatialReference??n;if(p!==n&&!(0,l.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}let y=m.rings;if(p!==n){let t=g(m.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:m});continue}y=t}let M=y;if(i){let t=(0,u.jZ)(new a.A({rings:y,spatialReference:n}));null!=t&&(y=t.rings)}let b=1===M.length&&y.length>1?[...y.map(t=>[t]),M]:[y];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!_(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:m});else{c||=1===e;for(let t of b){d.push(e),d.push(t.length);for(let e of t){d.push(e.length);for(let t of e){let e=t[2]??0;d.push(t[0]),d.push(t[1]),d.push(e),s=Math.min(s,t[0]),o=Math.min(o,t[1]),h=Math.max(h,t[0]),f=Math.max(f,t[1])}}}}}if(null!=t)if(c){let e=1e-4;d.push(2),d.push(2),d.push(4),d.push(s-e),d.push(o-e),d.push(0),d.push(h+e),d.push(o-e),d.push(0),d.push(h+e),d.push(f+e),d.push(0),d.push(s-e),d.push(f+e),d.push(0),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0)}else d.push(1),d.push(1),d.push(4),d.push(t[0]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[1]),d.push(0),d.push(t[2]),d.push(t[3]),d.push(0),d.push(t[0]),d.push(t[3]),d.push(0);d.push(3);let m=new Float64Array(d.length);for(let t=0;t<d.length;++t)m[t]=d.at(t);return m}function g(t,e,n){let r=[];for(let i of t){let t=[];for(let r of i){if(!(0,h.F)(r,e,p,n)||!_(p))return null;t.push([p[0],p[1],p[2]])}r.push(t)}return r}function _(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(let r of e){let e=r.geometry,i=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==i&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){let i=e.rings[r];n+=1;for(let s=0;s<i.length;++s){let i=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,i)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>o,aT:()=>s});var r=n(34727),i=n(35522);function s(t,e,n,r,i,s=2,o=0){let l=1/(Math.abs(n)+Math.abs(r)+Math.abs(i)),h=n*l,u=r*l,f=i<=0?(h>=0?1:-1)*(1-Math.abs(u)):h,c=i<=0?(u>=0?1:-1)*(1-Math.abs(h)):u,m=e*s+o;t[m]=a(f),t[m+1]=a(c)}function o(t,e,n,r=2,s=0){let o=n*r+s,a=l(e[o]),h=l(e[o+1]),u=1-Math.abs(a)-Math.abs(h);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(h)),t[1]=(h>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=h),(0,i.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function l(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,i,s=!1,o=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=i,this.normalized=s,this.divisor=o,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(i),o={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,i,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,o,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8589],{16494(e,t,i){var r=i(8673);const s=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),a="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),o=new r.I({whiteList:s,onTagAttr:(e,t,i)=>{let r=`${t}="${i}"`;if(a.includes(t))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),n={sanitizeHtml:e=>o.sanitize(e)},l=new r.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);i.d(t,["KO",0,n,"Nd",0,l,"W5",0,o])},83027(e,t,i){const r=i(29953).ho;i.d(t,["h",0,r])},18589(e,t,i){i.r(t),i.d(t,{default:()=>Ve});var r=i(32198),s=i(40124),a=i(56507),o=i(69540),n=i(7762),l=i(49186),d=i(36563),u=i(4718),p=i(53966),y=i(97768),h=i(25728),c=i(93637),f=i(17676),g=i(39516),m=i(91429),b=i(89317),w=i(78247),v=i(16930),F=i(41910),I=i(55156),C=i(60950),M=i(89808),T=i(99959);const S=Symbol("isFeatureGraphicOrigin");var _;class E extends T.A{get[(_=S,C.ym)](){return this.layer}get[I.e](){return this.layer}get[M.Q](){return this.layer}get[F.e7](){return this.layer}constructor(e){super(),this[_]=!0,this.type="feature",this.layer=e}get id(){return this.layer.id}}var Z=i(4146),j=i(52106),O=i(92474),x=i(61893),A=i(83027),D=i(78888),q=i(5443),L=i(39829),P=i(50498),R=i(54339),k=i(59288),N=i(96520),G=i(22671),$=i(7695);let J=0,U=class extends((0,O.WV)((0,x.g)(n.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){let t=null==e?null:e.signal;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){let e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryFeatures",i.toJSON(),t),s=G.A.fromJSON(r);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return s;let a=this.layer.objectIdField;for(let e of s.features){let t=e.attributes[a],i=this._idToClientGeometry.get(t);void 0!==i&&(e.geometry=i)}return s.geometryType=this.layer.geometryType,s}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return await this._connection.invoke("queryFeatures",i.toJSON(),t)}async queryFeatureCount(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryFeatureCount",i.toJSON(),t)}async queryObjectIds(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex);return this._connection.invoke("queryObjectIds",i.toJSON(),t)}async queryExtent(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let i=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),r=await this._connection.invoke("queryExtent",i.toJSON(),t);return{count:r.count,extent:q.A.fromJSON(r.extent)}}async querySnapping(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();return this._connection.invoke("querySnapping",e,t)}async queryAttributeBins(e,t={}){if(await this.load(t),(0,f.G4)(t)||null==this._connection)throw(0,f.NK)();let r=(0,k.$)(e,this.layer.timeInfo,this.sourceJSON.timeInfo,this.layer.fieldsIndex),s=await this._connection.invoke("queryAttributeBins",r.toJSON(),t);return(await i.e(7745).then(()=>i(37745))).default.fromJSON(s)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");let t=this.layer.objectIdField,i=this.layer.uniqueIdFields,r=null,s=[],a=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);let o=e=>i?.length&&"attributes"in e?(0,R.r)(e,this.layer):"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(let t of e.deleteFeatures){let e=o(t);null!=e&&s.push(e)}let n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(let t of e.updateFeatures)if(a.push(this._serializeFeature(t)),n&&null!=t.geometry){let e=o(t);null!=e&&n.set(e,t)}(0,N.u)(r?r.features:null,a,this.layer.spatialReference);let{fullExtent:d,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:a,deletes:s});return this.fullExtent=d,r&&r.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;let i=[];for(let{geometry:r}of e)null!=r&&"mesh"===r.type&&!r.hasExtent&&!r.loaded&&i.push(r.load({signal:t}));i.length&&await Promise.all(i)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(let i of t.updateResults){if(!i.success)continue;let t=e.get(i.objectId);null!=t&&this._addIdToClientGeometry(t)}for(let e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){let t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){let t=new Map,i=Array(e.length),r=null;for(let s=0;s<e.length;s++){let a=e[s],o=this._serializeFeature(a);!r&&null!=a.geometry&&(r=a.geometry.type),i[s]=o,t.set(`${o.uid}`,a)}let s=this;return{features:i,inferredGeometryType:r,finish(e){let i=s.sourceJSON.objectIdField;for(let r in e){let a=e[r],o=t.get(r);o&&(o.attributes||={},-1===a?delete o.attributes[i]:o.attributes[i]=a,s._addIdToClientGeometry(o))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;let t=this.sourceJSON.objectIdField,i=e.attributes?.[t];null!=i&&this._idToClientGeometry.set(i,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){let{attributes:t}=e,i=this._geometryForSerialization(e),r=(J++).toString();return i?{uid:r,geometry:i.toJSON(),attributes:t}:{uid:r,attributes:t}}_geometryForSerialization(e){let{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?L.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,A.h)("MemorySourceWorker",{strategy:"dedicated",signal:e,registryTarget:this});let{fields:t,spatialReference:i,objectIdField:r,hasM:s,hasZ:a,timeInfo:o,dateFieldsTimeZone:n}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);let d=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{p.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));let{uniqueIdFields:u}=this.layer,y=u?.length?{type:u.length>1?"composite":"simple",fields:u.slice(),OIDFieldContainsHashValue:1!==u?.length||u.at(0)!==this.layer.objectIdField}:void 0,h={features:d.features,fields:t?.map(e=>e.toJSON()),geometryType:P.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||a,objectIdField:r,spatialReference:l?null:i&&i.toJSON(),timeInfo:o?.toJSON()??null,dateFieldsTimeZone:n,uniqueIdInfo:y},c=await this._connection.invoke("load",h,{signal:e});for(let e of c.warnings)p.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});c.featureErrors.length&&p.A.getLogger(this.layer).error("#load()",`Failed to load ${c.featureErrors.length} features due to errors. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}').`,c.featureErrors.map(e=>"\n\n- "+e.error.description).join(""));let f=c.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(d.inferredGeometryType)&&(f.geometryType=P.Ye.toJSON(d.inferredGeometryType)),this.sourceJSON=f,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),d.finish(c.assignedObjectIds)}};(0,r.Cg)([(0,$.u)({Type:j.A,ensureType:(0,D.dp)(j.A)})],U.prototype,"itemType",void 0),(0,r.Cg)([(0,m.MZ)()],U.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({constructOnly:!0})],U.prototype,"layer",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],U.prototype,"_workerGeometryType",null),(0,r.Cg)([(0,m.MZ)()],U.prototype,"sourceJSON",void 0),U=(0,r.Cg)([(0,m.$K)("esri.layers.graphics.sources.MemorySource")],U);var V=i(52136),K=i(18768),H=i(63074),B=i(69208),Q=i(75254),W=i(6455),z=i(47685),Y=i(87718),X=i(10086),ee=i(56658),te=i(34287),ie=i(32756),re=i(8303),se=i(69622);let ae=class extends se.A{constructor(e){super(e),this.updating=!1,this.status="unknown"}};(0,r.Cg)([(0,m.MZ)()],ae.prototype,"updating",void 0),(0,r.Cg)([(0,m.MZ)()],ae.prototype,"status",void 0),ae=(0,r.Cg)([(0,m.$K)("esri.layers.support.PublishingInfo")],ae);const oe=Symbol(),ne=e=>{var t;let i=e,s=class extends i{constructor(){super(...arguments),this[t]=!0}static{t=oe}get publishingInfo(){if(this.destroyed)return null;let e=this._get("publishingInfo");if(e)return e;let t=new ae;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0,i=async s=>{let a;e.updating=!0;try{a=await this.fetchPublishingStatus()}catch{a="unavailable"}("published"===a||"unavailable"===a)&&("publishing"===e.status&&this.refresh(),r.remove()),e.status=a,e.updating=!1,r.removed||(t=setTimeout(i,s,s+125))},r={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>r.remove()),i(250),this.addHandles(r)}};return(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,r.Cg)([(0,m.$K)("esri.layers.mixins.PublishableLayer")],s),s};var le=i(54310),de=i(23502),ue=i(25036),pe=i(82935),ye=i(63396),he=i(60694),ce=i(10873),fe=i(15426),ge=i(29005),me=i(33143),be=i(30279),we=i(16194),ve=i(17036),Fe=i(30524),Ie=i(46499),Ce=i(39383),Me=i(6666),Te=i(25482);let Se=class extends((0,o.OU)(Te.o)){constructor(e){super(e),this.enabled=!1,this.drawOrder=[]}};(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"enabled",void 0),(0,r.Cg)([(0,m.MZ)({type:[String],json:{write:!0,origins:{"web-scene":{write:!1}}}})],Se.prototype,"drawOrder",void 0),Se=(0,r.Cg)([(0,m.$K)("esri.layers.support.SymbolLayerDrawing")],Se);var _e=i(17311),Ee=i(91908),Ze=i(65494),je=i(8947),Oe=i(41214),xe=i(99614),Ae=i(97552),De=i(54218),qe=i(30291),Le=i(33910),Pe=i(78553),Re=i(59923),ke=i(36005),Ne=i(43937);const Ge="FeatureLayer";function $e(e){return e&&e instanceof n.A}const Je=(0,ve.p)();function Ue(e,t,i){let r=!!i?.writeLayerSchema;return{enabled:r,ignoreOrigin:r}}let Ve=class extends((0,de.Z)((0,X.j)((0,ee.J)((0,Y.F)(ne((0,z.w6)((0,W.FJ)((0,H.dM)((0,ie.fY)((0,pe.e)((0,Q.z)((0,ye.d)((0,ue.j)((0,le.J)((0,K.b)((0,te.q)((0,re.A)((0,h.M)((0,B.d)((0,V.p)((0,o.OU)(Z.A)))))))))))))))))))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new E(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.symbolLayerDrawing=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=v.A.WGS84,this.subtypeCode=null,this.subtypeField=null,this.subtypes=null,this.supportedPortalItemTypes=["Feature Service","Feature Collection","Scene Service"],this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,f.sg)(async(e,t,r)=>{let{save:s,saveAs:a}=await i.e(3359).then(()=>i(33359));switch(e){case 0:return s(this,t);case 1:return a(this,r,t)}})}destroy(){this.source?.destroy()}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}load(e){let t=null==e?null:e.signal;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);let i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(f.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&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,fe.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get _titleCreator(){let e=this._get("_titleCreator");return(0,y.pR)(e),new _e.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,Me.S$)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,i){return this._readEditingEnabled(t,!0,i)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,i,r){this._writeEditingEnabled(e,t,!0,r)}get effectiveEditingEnabled(){return(0,fe.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._hasMemorySource()||(this._override("fieldConfigurations",e),!this.loaded))return;let t=(0,we.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){if(!this._hasMemorySource())return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,we.QX)(this)||null}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,i,r){r?.writeLayerSchema&&(0,c.sM)(i,e?"Table":"Feature Layer",t)}readSymbolLayerDrawing(e,t){let i=t.layerDefinition?.drawingInfo,r=i?.renderer,s=i?.symbolLayerDrawing;return r&&s?new Se(s):null}readGlobalIdField(e,t){return(0,fe.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,fe.Zm)(t.layerDefinition||t)}writePopupTemplate(e,t,i,r){e&&(t[i]=e.toJSON({...r,writeFieldFormat:!r?.writeLayerSchema}))}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,Fe.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;let r=t.drawingInfo?.renderer;if(r){let e=(0,Ze.L)(r,t,i)??void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,fe.PD)(t,i)}get source(){return this._get("source")}set source(e){e||=null;let t=this._get("source");t!==e&&((Array.isArray(e)||e instanceof n.A)&&(e=new U({layer:this,items:e})),$e(t)&&this._resetMemorySource(t),$e(e)&&this._initMemorySource(e),this._set("source",e))}readSource(e,t){let i=G.A.fromJSON(t.featureSet);return new U({layer:this,items:i?.features??[]})}readTemplates(e,t){let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e=e?.map(e=>ge.A.fromJSON(e)),this._fixTemplates(e,r),this._fixTemplates(e,s),e}readTitle(e,t){let i=t.layerDefinition?.name??t.name,r=t.title||t.layerDefinition?.title;if(i){if("item-title"===this.sublayerTitleMode)return this.url?(0,he.yG)(this.url,i):i;let e=i;if(!e&&this.url){let t=(0,he.qg)(this.url);null!=t&&(e=t.title)}if(!e)return;let t=this.portalItem?.title;return"item-title-and-service-name"===this.sublayerTitleMode&&t&&t!==e&&(e=t+" - "+e),(0,he.cr)(e)}if("item-title"===this.sublayerTitleMode&&r)return r}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let i=(t=t.layerDefinition||t).typeIdField;if(i&&t.fields){i=i.toLowerCase();let e=t.fields.find(e=>e.name.toLowerCase()===i);e&&(i=e.name)}return i}readTypes(e,t){e=(t=t.layerDefinition||t).types;let i=t.editFieldsInfo,r=i?.creatorField,s=i?.editorField;return e?.map(e=>(e=me.A.fromJSON(e),this._fixTemplates(e.templates,r),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t,i){let r=await(0,fe.Xl)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,i,r){let s=await(0,fe.bt)(this,e,t,i,Ge,r);return this.lastEditsEventDate=new Date,s}async applyEdits(e,t){return(0,fe.ct)(this,e,t)}async uploadAssets(e,t){return(0,fe.rn)(this,e,t)}createFieldConfigurations(){return(0,we.xY)(this)}createPopupTemplate(e){return(0,qe.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});let{default:s}=await(0,f.qr)(Promise.all([i.e(893),i.e(7),i.e(6553)]).then(()=>i(60845)),e),a=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,d.Bf)((0,f.u7)(e,()=>a.cancelLoad())??(0,d.hA)()),!1),await a.load({signal:e}),a}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,fe.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;let t=null==this.subtypeCode?null:`${this.subtypeField} = ${this.subtypeCode}`;return e.where=(0,g.mA)(this.definitionExpression,t)||"1=1",e}async deleteAttachments(e,t,i){let r=await(0,fe.mm)(this,e,t,Ge,i);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,fe.WP)(this,e,Ge)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,fe.xd)(this.types,this.typeIdField,e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return(0,fe.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,fe.lV)(this,e,t,Ge)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(Ae.A.from(e)??i.createQuery(),t),s=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=s;return r}async queryObjectIds(e,t){return await(0,fe.sg)(this,e,t,Ge)}async queryFeatureCount(e,t){return(0,fe.Ye)(this,e,t,Ge)}async queryExtent(e,t){return(0,fe.B5)(this,e,t,Ge)}async queryRelatedFeatures(e,t){return(0,fe.hM)(this,e,t,Ge)}async queryRelatedFeaturesCount(e,t){return(0,fe.S2)(this,e,t,Ge)}async queryPivot(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryPivot||!s?.operations?.supportsQueryPivot)throw new l.A(Ge,"Layer source does not support queryPivot capability");let a=await i.e(9958).then(()=>i(29958)),o=await r.queryPivot(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopFeatures(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopFeatures capability");let a=await i.e(7561).then(()=>i(57561)),o=await r.queryTopFeatures(a.default.from(e),t),n=this.graphicOrigin;if(o?.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryAttributeBins(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryAttributeBins)throw new l.A(Ge,"Layer source does not support queryAttributeBins capability");(0,fe.ZJ)(e,s,Ge);let a=await i.e(4575).then(()=>i(14575)),o=await r.queryAttributeBins(a.default.from(e),t),n=this.graphicOrigin;if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this,e.origin=n;return o}async queryTopObjectIds(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopObjectIds capability");let a=await i.e(7561).then(()=>i(57561));return(await r.queryTopObjectIds(a.default.from(e),t)).filter(De.Et)}async queryTopFeaturesExtent(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryTopExtents capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopExtents(a.default.from(e),t)}async queryTopFeatureCount(e,t){let{source:r,capabilities:s}=await this.load();if(!r.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(Ge,"Layer source does not support queryFeatureCount capability");let a=await i.e(7561).then(()=>i(57561));return r.queryTopCount(a.default.from(e),t)}read(e,t){let i=e.featureCollection;if((i||"Feature Collection"===e.type)&&(this.resourceInfo=e),i){let{layers:e,showLegend:r}=i;1===e?.length&&(super.read(e[0],t),null!=r&&super.read({showLegend:r},t))}super.read(e,t),$e(this.source)&&"service"===t?.origin&&(["objectIdField","fields","timeInfo","dateFieldsTimeZone","uniqueIdFields"].forEach(e=>{this.revertToOrigin(e,"service")}),this.spatialReference||this.revertToOrigin("spatialReference","service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};let{origin:i,layerContainerType:r}=t;if(this.dynamicDataSource)return(0,Re.U4)(t,this,"a dynamic data source cannot be written to web scenes, web maps and feature service items"),null;if(this.isTable){if(("web-map"===i||"web-scene"===i)&&"tables"!==r)return(0,Re.U4)(t,this,"a table source can only be written to tables"),null;if(this._hasMemorySource())return(0,Re.U4)(t,this,"an in-memory table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&("web-map"===i||"web-scene"===i)&&"tables"===r)return(0,Re.U4)(t,this,"a non-table source cannot be written to tables in web maps or web scenes"),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(Ge,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Ee.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,i){let r=e.layerDefinition?.capabilities;if(r||(r=e.capabilities,t&&"web-map"===i?.origin&&!this._hasMemorySource()&&r))return this._hasEditingCapability(r)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,i,r){if(!e){let e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),i&&!r?.writeLayerSchema&&(t.capabilities=e)}}_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;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return 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(),this._verifyFields(),(0,Fe.yp)(this.renderer,this.fieldsIndex),(0,Fe.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,je.L)(this,{origin:"service"})}canReload(){return super.canReload()&&!this._hasMemorySource()}async reloadFromService(e){let t=this.source;await t.reload({signal:e}),await this.initLayerProperties(t)}async hasDataChanged(){return(0,fe.jp)(this)}async fetchPublishingStatus(){let e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){let e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{let i=e.prototype?.attributes;i&&t&&delete i[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return[...e.layers||[],...e.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id}};(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"_titleCreator",null),(0,r.Cg)([(0,m.MZ)(ce.zQ)],Ve.prototype,"attributeTableTemplate",void 0),(0,r.Cg)([(0,ke.w)("service","capabilities")],Ve.prototype,"readCapabilities",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Ve.prototype,"charts",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"createQueryVersion",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Ve.prototype,"copyright",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Ve.prototype,"displayField",void 0),(0,r.Cg)([(0,m.MZ)({types:Le.Es,readOnly:!0})],Ve.prototype,"defaultSymbol",void 0),(0,r.Cg)([(0,m.MZ)({types:xe.e})],Ve.prototype,"dynamicDataSource",void 0),(0,r.Cg)([(0,m.MZ)({type:Boolean})],Ve.prototype,"editingEnabled",null),(0,r.Cg)([(0,ke.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabled",null),(0,r.Cg)([(0,ke.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Ve.prototype,"readEditingEnabledFromWebMap",null),(0,r.Cg)([(0,Ne.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabled",null),(0,r.Cg)([(0,Ne.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Ve.prototype,"writeEditingEnabledToWebMap",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,m.MZ)({clonable:!1,readOnly:!0})],Ve.prototype,"featureTitleFields",null),(0,r.Cg)([(0,m.MZ)({type:[be.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t,i){return{enabled:!i?.writeLayerSchema,ignoreOrigin:1===this.originIdOf(t)}}}}})],Ve.prototype,"fieldConfigurations",null),(0,r.Cg)([(0,m.MZ)({...Je.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Ue}}}}})],Ve.prototype,"fields",void 0),(0,r.Cg)([(0,m.MZ)(Je.fieldsIndex)],Ve.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,m.MZ)({type:w.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Ve.prototype,"formTemplate",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Ve.prototype,"fullExtent",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Ue,writer(e,t,i){let r=e?fe.iX.toJSON(e):null;r&&(0,c.sM)(i,r,t)}}}},read:{source:"layerDefinition.geometryType",reader:fe.iX.read}}})],Ve.prototype,"geometryType",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],Ve.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Ve.prototype,"hasM",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Ve.prototype,"hasZ",void 0),(0,r.Cg)([(0,m.MZ)(ce.id)],Ve.prototype,"id",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Ve.prototype,"infoFor3D",void 0),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Ve.prototype,"isTable",void 0),(0,r.Cg)([(0,ke.w)("service","isTable",["type","geometryType"]),(0,ke.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Ve.prototype,"readIsTable",null),(0,r.Cg)([(0,Ne.K)("web-map","isTable")],Ve.prototype,"writeIsTable",null),(0,r.Cg)([(0,m.MZ)(ce.kF)],Ve.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,m.MZ)({type:[Ie.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:Ce.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:Ce.w,write:{layerContainerTypes:b.K}}})],Ve.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,m.MZ)({type:Se,json:{name:"layerDefinition.drawingInfo.symbolLayerDrawing",write:!0,origins:{"web-scene":{write:!1}}}})],Ve.prototype,"symbolLayerDrawing",void 0),(0,r.Cg)([(0,ke.w)(["portal-item","web-map"],"symbolLayerDrawing",["layerDefinition.drawingInfo.renderer","layerDefinition.drawingInfo.symbolLayerDrawing"])],Ve.prototype,"readSymbolLayerDrawing",null),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,i){(0,c.sM)(i,(0,Pe.p)(e),t)}}},e})())],Ve.prototype,"opacity",void 0),(0,r.Cg)([(0,m.MZ)(ce.fV)],Ve.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:["show","hide"],json:(()=>{let e=(0,u.o8)(ce.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Ve.prototype,"listMode",void 0),(0,r.Cg)([(0,ke.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Ve.prototype,"readGlobalIdField",null),(0,r.Cg)([(0,m.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Ue}}}}})],Ve.prototype,"objectIdField",void 0),(0,r.Cg)([(0,ke.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Ve.prototype,"readObjectIdField",null),(0,r.Cg)([(0,m.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:b.K}}})],Ve.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,m.MZ)(Je.outFields)],Ve.prototype,"outFields",void 0),(0,r.Cg)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Ve.prototype,"path",void 0),(0,r.Cg)([(0,m.MZ)(ce.M6)],Ve.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,m.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Ve.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,Ne.K)("popupTemplate")],Ve.prototype,"writePopupTemplate",null),(0,r.Cg)([(0,m.MZ)({readOnly:!0})],Ve.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,m.MZ)({types:Oe.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:Oe.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:b.K,overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,i)=>({ignoreOrigin:i?.writeLayerSchema,layerContainerTypes:b.K})}}})],Ve.prototype,"renderer",null),(0,r.Cg)([(0,ke.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,ke.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Ve.prototype,"readRenderer",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"resourceInfo",void 0),(0,r.Cg)([(0,m.MZ)((()=>{let e=(0,u.o8)(ce.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Ve.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,m.MZ)({clonable:!1})],Ve.prototype,"source",null),(0,r.Cg)([(0,ke.w)("portal-item","source",["featureSet"]),(0,ke.w)("web-map","source",["featureSet"])],Ve.prototype,"readSource",null),(0,r.Cg)([(0,m.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Ve.prototype,"spatialReference",void 0),(0,r.Cg)([(0,m.MZ)({type:Number})],Ve.prototype,"subtypeCode",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypeField",void 0),(0,r.Cg)([(0,m.MZ)({readOnly:!1})],Ve.prototype,"subtypes",void 0),(0,r.Cg)([(0,m.MZ)({type:[ge.A]})],Ve.prototype,"templates",void 0),(0,r.Cg)([(0,ke.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Ve.prototype,"readTemplates",null),(0,r.Cg)([(0,m.MZ)()],Ve.prototype,"title",void 0),(0,r.Cg)([(0,ke.w)("service","title",["name"]),(0,ke.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Ve.prototype,"readTitle",null),(0,r.Cg)([(0,ke.w)("web-map","title",["layerDefinition.name","title"])],Ve.prototype,"readTitleFromWebMap",null),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,m.MZ)({json:{read:!1}})],Ve.prototype,"type",void 0),(0,r.Cg)([(0,m.MZ)({type:String})],Ve.prototype,"typeIdField",void 0),(0,r.Cg)([(0,ke.w)("service","typeIdField"),(0,ke.w)("typeIdField",["layerDefinition.typeIdField"])],Ve.prototype,"readTypeIdField",null),(0,r.Cg)([(0,m.MZ)({type:[me.A]})],Ve.prototype,"types",void 0),(0,r.Cg)([(0,ke.w)("service","types",["types"]),(0,ke.w)("types",["layerDefinition.types"])],Ve.prototype,"readTypes",null),(0,r.Cg)([(0,m.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:b.K}}}}})],Ve.prototype,"visible",void 0),(0,r.Cg)([(0,ke.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Ve.prototype,"readVisible",null),Ve=(0,r.Cg)([(0,m.$K)("esri.layers.FeatureLayer")],Ve)},59288(e,t,i){i.d(t,{$:()=>o});var r=i(96184),s=i(36003),a=i(2991);function o(e,t,i,o){if(!e.timeExtent||!t&&!i)return e;let n=e.clone();if(t&&i){if(!(0,s.L)(t,r.A.fromJSON(i))){let i=(0,a.RZ)(e.timeExtent,t,o,e.where);i&&(n.where=i,n.timeExtent=void 0)}return n}return!t&&i?(n.timeExtent=void 0,n):(t&&!i&&(n.where=(0,a.RZ)(e.timeExtent,t,o,e.where),n.timeExtent=void 0),n)}},75254(e,t,i){i.d(t,{z:()=>c});var r=i(32198),s=i(91429),a=i(89317),o=i(69540),n=i(25482);let l=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.type=null,this.title=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:["change-from-average","change-from-first","change-from-previous","percent-change-from-average","percent-change-from-first","percent-change-from-previous"],json:{write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),l=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesCalculationMethod")],l);const d=l;let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.fieldName=null,this.timeValue=null}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"fieldName",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],u.prototype,"timeValue",void 0),u=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesFieldTimeMapping")],u);const p=u;var y=i(79677);let h=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.name=null,this.fieldTimeMappings=null,this.timeExtent=null,this.timeInterval=null,this.timeIntervalUnits=null,this.timeValueUnits=null,this.title=null,this.calculationMethods=null,this.type="time-series-fields"}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"name",void 0),(0,r.Cg)([(0,s.MZ)({type:[p],json:{write:{isRequired:!0}}})],h.prototype,"fieldTimeMappings",void 0),(0,r.Cg)([(0,s.MZ)({type:y.A,json:{write:!0}})],h.prototype,"timeExtent",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:{isRequired:!0}}})],h.prototype,"timeInterval",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeIntervalUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],h.prototype,"timeValueUnits",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r.Cg)([(0,s.MZ)({type:[d],json:{write:!0}})],h.prototype,"calculationMethods",void 0),(0,r.Cg)([(0,s.MZ)({type:String,readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,r.Cg)([(0,s.$K)("esri.layers.support.TimeSeriesInfo")],h);const c=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.dataSeriesInfos=null}};return(0,r.Cg)([(0,s.MZ)({type:[h],json:{read:{source:["layerDefinition.dataSeriesInfos","dataSeriesInfos"],reader:(e,t,i)=>(t?.layerDefinition?.dataSeriesInfos??t.dataSeriesInfos)?.filter(e=>"time-series-fields"===e.type).map(e=>h.fromJSON(e,i))},write:{target:"layerDefinition.dataSeriesInfos",enabled:!0,allowNull:!0,layerContainerTypes:a.K},origins:{"web-scene":{write:!1,read:!1}}}})],i.prototype,"dataSeriesInfos",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.DataSeriesLayer")],i),i}},47685(e,t,i){i.d(t,{Mk:()=>h,Zk:()=>p});var r=i(32198),s=i(65529),a=i(4718),o=i(91429),n=i(20816);const l=new s.bk;function d(e){return l.on("apply-edits",new WeakRef(e))}function u(e){return l.on("update-moment",new WeakRef(e))}function p(e,t,i=null,r=!1){let s=Promise.withResolvers();return r=null==t||r,l.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:s.promise}),s}const y=Symbol();function h(e){return"object"==typeof e&&!!e&&y in e}function c(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function f(e,t,i){let r=new URL(e).host,s=n.Z3.get(r),a=e=>!e||e===s;return a(t)&&a(i)||t===i}i.d(t,["w6",0,e=>{var t;let i=e,s=class extends i{static{t=y}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:s,result:o}=e,n=t===this.url,l=null!=i&&null!=this.layerId&&i===this.layerId,d=null!=i&&this.relationships?.some(e=>e.relatedTableId===i),u=c(this),p=c(this)&&f(t,r,this.gdbVersion);if(!n||u&&!p||!l&&!d&&!s)return;let y=o.then(e=>{if(this.lastEditsEventDate=new Date,l&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,a.o8)(e)),e;let i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){let{adds:t,updates:r,deletes:s}=i.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:s?s.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return this.emit("edits",o),o}let s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,a.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,a.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,s.historicMoment)&&this.emit("edits",s),s}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));y.catch(()=>{}),this.emit("apply-edits",{result:y})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:i,moment:r}=e,s=t===this.url,a=c(this),o=c(this)&&f(t,i,this.gdbVersion),n=c(this)&&!f(t,this.gdbVersion,null);s&&a&&o&&n&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(d(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(u(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,n.w5)(e,t)}};return(0,r.Cg)([(0,o.MZ)()],s.prototype,"lastEditsEventDate",void 0),s=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],s),s}])},63396(e,t,i){i.d(t,{d:()=>C});var r=i(32198),s=i(91429),a=i(41910),o=i(60950),n=i(99959);class l extends n.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}get[a.e7](){return this.trackInfoProvider}}var d=i(40124),u=i(69540),p=i(25482),y=i(93637),h=i(50820),c=i(10873),f=i(46499),g=i(41214);let m=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,r.Cg)([(0,s.MZ)({type:[f.A],json:{write:!0}})],m.prototype,"labelingInfo",void 0),(0,r.Cg)([(0,s.MZ)(c.kF)],m.prototype,"labelsVisible",void 0),(0,r.Cg)([(0,s.MZ)({types:g.Hg,json:{write:!0}})],m.prototype,"renderer",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"visible",void 0),m=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackPartInfo")],m);var b=i(96576),w=i(59868),v=i(10184),F=i(43937);let I=class extends((0,u.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new m({renderer:new b.A({symbol:w.UK.clone()})}),this.trackLines=new m({renderer:new b.A({symbol:w.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){let r=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,y.sM)(i,r,t)}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"enabled",void 0),(0,r.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],I.prototype,"fields",void 0),(0,r.Cg)([(0,F.K)("fields")],I.prototype,"writeFields",null),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"latestObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:v.A,json:{write:!0}})],I.prototype,"maxDisplayDuration",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],I.prototype,"maxDisplayObservationsPerTrack",void 0),(0,r.Cg)([(0,s.MZ)(c.M6)],I.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,s.MZ)({type:d.A,json:{name:"popupInfo",write:!0}})],I.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"previousObservations",void 0),(0,r.Cg)([(0,s.MZ)({type:m,json:{write:!0}})],I.prototype,"trackLines",void 0),(0,r.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],I.prototype,"timeField",void 0),I=(0,r.Cg)([(0,s.$K)("esri.layers.support.TrackInfo")],I);const C=e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,r.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,r.Cg)([(0,s.MZ)({type:I})],i.prototype,"trackInfo",void 0),i=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.TrackableLayer")],i),i}},17311(e,t,i){i.d(t,{A:()=>h});var r=i(32198),s=i(69622),a=i(4576),o=i(60999),n=i(7762),l=i(16494),d=i(91429),u=i(30524),p=i(43668);const y=/<br\s*\/*>/gi;let h=class extends s.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([i.e(3281),i.e(9301)]).then(()=>i(99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){let e=new n.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(let t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(let t of this.expressionsUsedInTitle)try{let i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"==typeof e?(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[]):[]}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){let e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(let t of this.calculatedExpressions?.toArray()??[])try{let i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(let t of i){let i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}let t=this._extractFieldNames(this.workingTitle);for(let i of t){let t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||=this.fieldsIndex.get(this.objectIdField)?.name??"",e?`{${e}}`:""}get workingTitle(){let e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){let r=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],i)).get(r)??""}async getTitles(e,t,i){let r=new Map,s=i?.timeZone??"system";try{let[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));let{fieldInfoMap:o,workingTitle:n}=this,d=n&&o;t.forEach(t=>{let u=t.getObjectId()??t.attributes[e.objectIdField],p=d?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,s).global,layer:e,text:n}):"";i?.removeHTML&&(p=l.Nd.sanitize(p).replaceAll(y," ")),r.set(u,p)})}catch{}return r}async _checkAndReQueryGraphics(e,t){let i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,u.Kl)(e,this.requiredFields))){let r=e.createQuery();r.where="1=1",r.outFields=[...this.requiredFields],r.objectIds=i;let s=await e.queryFeatures(r);if(s?.features.length===t.length)return s.features}return t}_createFieldInfoMap(e){let t=new Map;if(!e)return t;for(let i of e){if(!i.fieldName)continue;let e=this.fieldsIndex.get(i.fieldName)?.name??i.fieldName;i.fieldName=e,t.set(e.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){let r=this.effectivePopupTemplate?.fieldInfos??[],s={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){let i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(let e of this.calculatedExpressions)try{s[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}let a={...t.attributes,...s};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:a,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,u.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"_featureUtils",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"displayField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fieldInfoMap",null),(0,r.Cg)([(0,d.MZ)()],h.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"objectIdField",void 0),(0,r.Cg)([(0,d.MZ)()],h.prototype,"requiredFields",null),h=(0,r.Cg)([(0,d.$K)("esri.layers.support.TitleCreator")],h)},36003(e,t,i){function r(e,t){let i=e.startField===t.startField||!e.startField&&!t.startField,r=e.endField===t.endField||!e.endField&&!t.endField;return i&&r}i.d(t,{L:()=>r})},8947(e,t,i){i.d(t,{L:()=>o});var r=i(60999),s=i(17676),a=i(67076);async function o(e,t,i){let o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){let n=await(0,r.Ke)(o.populateFromStyle());if((0,s.Te)(i),!1===n.ok){let i=n.error;t?.messages&&t.messages.push(new a.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},96520(e,t,i){i.d(t,{u:()=>l});var r=i(86211),s=i(21325),a=i(52006);function o(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=i)}function n(e,t,i){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,a.yP)(t);e.length>2&&(e[2]*=i)}}function l(e,t,i){if(!e&&!t||!i)return;let s=(0,r.G9)(i);d(e,i,s),d(t,i,s)}function d(e,t,i){if(e)for(let r of e)u(r.geometry,t,i)}function u(e,t,i){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;let a=(0,r.G9)(e.spatialReference)/i;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("curveRings"in e)n(e,e.curveRings,a);else if("curvePaths"in e)n(e,e.curvePaths,a);else if("rings"in e)o(e,e.rings,a);else if("paths"in e)o(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=a)}},20816(e,t,i){i.d(t,{We:()=>n,ZJ:()=>l,w5:()=>d});var r=i(56507);const s=(0,i(13069).vD)(),a=new Map,o=new Map;async function n(e,t,i){if(!e||!i)return!1;if(!t)return!0;let s=new URL(e).host,o=a.get(s);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function l(e,t,r=!1){if(!e||!t)return!0;let a=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),n=o.get(a)?.entries();if(n)for(let[e,o]of n)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&r){let[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(()=>i(32186)),i.e(2558).then(()=>i(32558))]),n=await t(a,e,new r({sessionId:s,moment:o.moment}));return n.success&&o.stack?.clearForwardEdits(),n.success}return t}return!0}function d(e,t){if(!e)return!1;let i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=o.get(i)?.entries();if(r)for(let[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map,i.d(t,["TA",0,s,"Z3",0,a])}}]);
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{deg2rad as e,rad2deg as t}from"../core/mathUtils.js";import{fromZRotation as n,rotateX as r}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as i}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{fromValues as a}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as o,add as s,transformMat4 as c,scaleAndAdd as l,set as u}from"../core/libs/gl-matrix-2/math/vec3.js";import{create as d,fromValues as f}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../geometry/Extent.js";import m from"../geometry/Polygon.js";import{projectPointToVector as h}from"../geometry/projection/projectPointToVector.js";import{projectVectorToVector as g}from"../geometry/projection/projectVectorToVector.js";import{isClockwise as _}from"../geometry/support/coordsUtils.js";import{clipPolygonToExtent as v}from"../geometry/support/polygonExtentClipping.js";import{wrap as y}from"../geometry/support/ray.js";import{directionToHeadingTilt as b,createDirectionUp as x,clampLineSegmentToPlane as S}from"../views/3d/support/cameraUtilsInternal.js";const C=f(0,1,0),w=f(0,0,1),T=i(),E=d(),D=d();function O(t,i,a,s=x()){let{direction:l,up:u}=s;return n(T,-e(i)),r(T,T,e(a)),c(l,w,T),o(l,l,-1),c(u,C,T),s}function k(e,t,n,r){return b(t,n,r,w,C)}function A(e,t,n,r){let i=O(e,n,r),a=d();return o(a,i.direction,-t),s(a,a,e),{up:i.up,eye:a,heading:n,tilt:r}}function j(e){return t(e)}function M(t){return e(t)}function N(e,t,n,r,i){let a=e.renderSpatialReference,o=e.spatialReference??t.spatialReference;return h(t,E,a),h(t,D,a),E[0]-=n/2,D[0]+=n/2,E[1]-=r/2,D[1]+=r/2,g(E,a,E,o),g(D,a,D,o),i?(i.xmin=E[0],i.ymin=E[1],i.xmax=D[0],i.ymax=D[1],i.spatialReference=o):i=new p(E[0],E[1],D[0],D[1],o),i}function P(e,t){let n=e.frustum,{renderCoordsHelper:r}=e,i=r.getAltitude(t),o=e.spatialReference,s=e.state.camera.eye,c=[],l=n.planes[5];for(let e=0;e<4;e++){let t=n.lines[e];r.intersectInfiniteManifold(y(t.origin,t.direction),i,L)||F(L,n,r,t.endpoint,i),S(L,s,L,l),c.push(a(L[0],L[1]))}return I(v(c,r.extent),r,o)}function F(e,t,n,r,i){let a=t.lines[11].direction,o=(i-n.getAltitude(r))/a[2];l(e,r,a,o)}function I(e,t,n){let r=e.map(e=>(u(L,e[0],e[1],0),t.fromRenderCoords(L,L,n),[L[0],L[1]]));return r.length<=2?new m({spatialReference:n}):(r.push(r[0].slice()),_(r)||r.reverse(),new m({rings:[r],spatialReference:n}))}const L=d(),R=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:k,eyeForCenterWithHeadingTilt:A,eyeTiltToLookAtTilt:M,headingTiltToDirectionUp:O,lookAtTiltToEyeTilt:j,toArea:P,toExtent:N},Symbol.toStringTag,{value:`Module`}));export{M as a,N as b,R as c,k as d,A as e,O as h,j as l,P as t};
2
+ import{deg2rad as e,rad2deg as t}from"../core/mathUtils.js";import{fromZRotation as n,rotateX as r}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as i}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{fromValues as a}from"../core/libs/gl-matrix-2/factories/vec2f64.js";import{scale as o,add as s,transformMat4 as c,scaleAndAdd as l,set as u}from"../core/libs/gl-matrix-2/math/vec3.js";import{create as d,fromValues as f}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import p from"../geometry/Extent.js";import m from"../geometry/Polygon.js";import{projectPointToVector as h}from"../geometry/projection/projectPointToVector.js";import{projectVectorToVector as g}from"../geometry/projection/projectVectorToVector.js";import{isClockwise as _}from"../geometry/support/coordsUtils.js";import{clipPolygonToExtent as v}from"../geometry/support/polygonExtentClipping.js";import{wrap as y}from"../geometry/support/ray.js";import{directionToHeadingTilt as b,createDirectionUp as x,clampLineSegmentToPlane as S}from"../views/3d/support/cameraUtilsInternal.js";const C=f(0,1,0),w=f(0,0,1),T=i(),E=d(),D=d();function O(t,i,a,s=x()){let{direction:l,up:u}=s;return n(T,-e(i)),r(T,T,e(a)),c(l,w,T),o(l,l,-1),c(u,C,T),s}function k(e,t,n,r){return b(t,n,r,w,C)}function A(e,t,n,r){let i=O(e,n,r),a=d();return o(a,i.direction,-t),s(a,a,e),{up:i.up,eye:a,heading:n,tilt:r}}function j(e){return t(e)}function M(t){return e(t)}function N(e,t,n,r,i){let a=e.renderSpatialReference,o=e.spatialReference??t.spatialReference;return h(t,E,a),h(t,D,a),E[0]-=n/2,D[0]+=n/2,E[1]-=r/2,D[1]+=r/2,g(E,a,E,o),g(D,a,D,o),i?(i.xmin=E[0],i.ymin=E[1],i.xmax=D[0],i.ymax=D[1],i.spatialReference=o):i=new p({xmin:E[0],ymin:E[1],xmax:D[0],ymax:D[1],spatialReference:o}),i}function P(e,t){let n=e.frustum,{renderCoordsHelper:r}=e,i=r.getAltitude(t),o=e.spatialReference,s=e.state.camera.eye,c=[],l=n.planes[5];for(let e=0;e<4;e++){let t=n.lines[e];r.intersectInfiniteManifold(y(t.origin,t.direction),i,L)||F(L,n,r,t.endpoint,i),S(L,s,L,l),c.push(a(L[0],L[1]))}return I(v(c,r.extent),r,o)}function F(e,t,n,r,i){let a=t.lines[11].direction,o=(i-n.getAltitude(r))/a[2];l(e,r,a,o)}function I(e,t,n){let r=e.map(e=>(u(L,e[0],e[1],0),t.fromRenderCoords(L,L,n),[L[0],L[1]]));return r.length<=2?new m({spatialReference:n}):(r.push(r[0].slice()),_(r)||r.reverse(),new m({rings:[r],spatialReference:n}))}const L=d(),R=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:k,eyeForCenterWithHeadingTilt:A,eyeTiltToLookAtTilt:M,headingTiltToDirectionUp:O,lookAtTiltToEyeTilt:j,toArea:P,toExtent:N},Symbol.toStringTag,{value:`Module`}));export{M as a,N as b,R as c,k as d,A as e,O as h,j as l,P as t};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{cyclical2PI as e}from"../core/Cyclical.js";import{lerp as t,deg2rad as n,rad2deg as r,asinClamped as i,clamp as a}from"../core/mathUtils.js";import{fromRotation as o,rotate as s}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as c}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{normalize as l,cross as u,dot as d,length as f,scale as p,distance as m,transformMat4 as h,negate as g,lerp as _,sqrDist as v,scaleAndAdd as y}from"../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as b,clone as x,create as S,fromValues as C}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{set as w,squaredLength as T}from"../core/libs/gl-matrix-2/math/vec4.js";import{create as E}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{getEpsilon as D}from"../core/libs/gl-matrix-2/math/common.js";import{getReferenceEllipsoid as O}from"../geometry/ellipsoidUtils.js";import k from"../geometry/Extent.js";import A from"../geometry/Polygon.js";import j from"../geometry/SpatialReference.js";import{isClockwise as M}from"../geometry/support/coordsUtils.js";import{fromPoints as N,create as P}from"../geometry/support/lineSegment.js";import{gcsCyclical as F}from"../geometry/support/normalizeUtils.js";import{fromPositionAndNormal as I,create as L,isPointInClosedPositiveHalfspace as R,intersectLineOrRay as z,getNormal as ee}from"../geometry/support/plane.js";import{wrap as te}from"../geometry/support/ray.js";import{Sphere as ne}from"../geometry/support/sphere.js";import{geographicToWebMercator as re}from"../geometry/support/webMercatorUtils.js";import{Frustum as ie}from"../views/3d/state/Frustum.js";import{minNearDistanceInMeters as ae}from"../views/3d/state/NearFarHeuristic.js";import{directionToHeadingTilt as oe,createDirectionUp as se,clampLineSegmentToPlane as ce}from"../views/3d/support/cameraUtilsInternal.js";import{getLonDeltaForDistance as le}from"../views/3d/support/earthUtils.js";import{slerp as ue}from"../views/3d/support/mathUtils.js";const B=C(0,0,1),V=l(S(),C(1,1,1)),H=c(),U=S(),W=S();function G(e,t,r,i=se()){u(U,e,B),d(U,U)===0&&u(U,e,V),o(H,-n(t),e),s(H,H,-n(r),U);let{up:a,direction:c}=i;return u(a,U,e),l(a,a),h(a,a,H),l(c,e),g(c,c),h(c,c,H),i}function K(e,t,n,r){let i=U,a=W;return l(i,e),u(W,i,B),d(W,W)===0&&u(W,i,V),u(a,W,i),oe(t,n,r,i,a)}function q(e,t,r,a){let o={eye:S(),up:null,tilt:a,heading:r},s=U;s[0]=e[0],s[1]=e[2],s[2]=-e[1];let c=t,l=n(r),u=n(a),d=Math.sin(l),m=Math.cos(l),h=Math.sin(u),g=Math.cos(u),_=f(s),v;if(Math.abs(u)<1e-8)v=c+_;else{let e=_/h,t=i(c/e),n=Math.PI-u-t;v=e*Math.sin(n)}let y=h*h,b=m*m,x=c*c,C=g*c,w=x*y,T=b*w,E=v-C,D=E*E,O=T*(T+D-s[1]*s[1]);if(O<0)return p(o.eye,s,v/_),o.tilt=0,Y(o,e);let k=Math.sqrt(O),A=s[1]*E,j=T+D,M;if(M=m>0?-k+A:k+A,Math.abs(j)<1e-8)return _<1e-8?(o.eye[0]=0,o.eye[1]=0,o.eye[2]=c):p(o.eye,s,v/_),o.tilt=0,J(o.eye),Y(o,e);o.eye[1]=M/j;let N=d*d*w,P=h*c,F=m*P*o.eye[1],I=o.eye[1]*o.eye[1],L=1-I,R=Math.sqrt(L),z=T*I+N-2*F*R*E+L*D;return Math.abs(z)<1e-8?(p(o.eye,s,v/_),o.tilt=0,J(o.eye),Y(o,e)):(o.eye[0]=(L*(v*s[0]-C*s[0])-P*R*(s[0]*o.eye[1]*m+s[2]*d))/z,o.eye[2]=(L*(v*s[2]-C*s[2])-P*R*(s[2]*o.eye[1]*m-s[0]*d))/z,p(o.eye,o.eye,v),J(o.eye),Y(o,e))}function J(e){let t=e[1];e[1]=-e[2],e[2]=t}function Y(e,t){return e.up=G(t,e.heading,e.tilt).up,e}function X(e,t,n){let a=f(t),o=Math.sqrt(n*n+a*a-2*n*a*Math.cos(Math.PI-e)),s=i(n/(o/Math.sin(e)));return r(e-s)}function de(e,t,r){let a=n(e),o=f(t);return i(r/(o/Math.sin(a)))+a}function fe(t,i,a,o,s){let c,l,u,d,f=i.latitude,p=O(t.spatialReference).radius,m=i.longitude,h=le(f,a,p)/2;c=m-h,l=m+h;let g=n(f),_=(1+Math.sin(g))/(1-Math.sin(g)),v=(_+1)*Math.tan(o/p/2),y=v*v;u=1.5*Math.PI-2*Math.atan(.5*(v+Math.sqrt(4*_+y))),d=u+o/p;function b(t){let n=Math.PI/2;return t=e.normalize(t,-n),t>n&&(t=Math.PI-t),t}if(u=b(u),d=b(d),d<u){let e=d;d=u,u=e}if(u=Math.max(r(u),-90),d=Math.min(r(d),90),l=F.monotonic(c,l),l-c>180){let e=(l-c-180)/2;c+=e,l-=e}let x=t.spatialReference&&t.spatialReference.isGeographic?t.spatialReference:j.WGS84;return s?(s.xmin=c,s.ymin=u,s.xmax=l,s.ymax=d,s.spatialReference=x):s=new k(c,u,l,d,x),t.spatialReference&&t.spatialReference.isWebMercator&&re(s,!1,s),s}function pe(e,n){let{renderCoordsHelper:r}=e,i=e.state.camera.clone(),a=new ie(r);i.near=ae,a.update(i);let o=r.getAltitude(n),s=e.spatialReference,c=i.eye,l=_e(e),u=Z(e,n),d=i.aboveGround,f=a.planes[5],p=[],m=I(b,ye,L()),h=I(b,be,L());w($,0,0,0,0);for(let e=0;e<4;e++){let n=e===1&&!d||e===3&&d?1-l:0,i=e===1&&d||e===3&&!d?l:1,s=a.lines[e],g=a.lines[e===3?0:e+1];for(let a=0;a<u;a++){let l=a/u,d=e===1?1-(1-l)**2:e===3?l**2:l,y=a===0?0:t(n,i,d),b=_(Se,s.origin,g.origin,y),S=ue(s.direction,g.direction,y,xe);r.intersectManifoldClosestSilhouette(te(b,S),o,Q),ce(Q,c,Q,f),p.push(x(Q)),p.length!==0&&v(p.at(-1),Q);let C=+!!R(m,Q)|(R(h,Q)?2:0);$[C]=1}}p.length>2&&v(p[0],p.at(-1));let g=me(T($)>1?he(ge(p,m),h):[p],r,s);return new A({rings:g,spatialReference:s})}function Z(e,n){let{renderCoordsHelper:r,state:i}=e;if(i.viewingMode!==1)return 1;let o=r.getAltitude(n),s=r.referenceEllipsoid.radius,c=1+m(i.camera.eye,n)/(s+o),l=Math.sqrt(c*c-1),{minCurvature:u,maxCurvature:d,minSamples:f,maxSamples:p}=ve,h=a((l-u)/(d-u),0,1);return Math.round(t(f,p,h))}function me(e,t,n){let r=D()*2;return e.map(e=>{let i=[],a=!1;for(let o of e)t.fromRenderCoords(o,Q,n),Math.abs(o[0])<r&&Math.abs(o[1])<r?(i.push([null,Q[1]]),i.push([null,Q[1]]),a=!0):i.push([Q[0],Q[1]]);if(a)for(let e=0;e<i.length;e++){let t=i[e];if(t[0]!=null)continue;let n=i[e+1];t[0]=i.at(e===0?-1:e-1)[0],e++,n[0]=i.at(e===i.length-1?0:e+1)[0]}return i.push(i[0]),M(i)||i.reverse(),i})}function he(e,t){let n=[];for(let r of e)n.push(...ge(r,t));return n}function ge(e,t){let n=[],r=[],i=D();for(let a=0;a<e.length;a++){let o=e[a],s=a===e.length-1?e[0]:e[a+1],c=N(o,s,we),l=z(t,c.origin,c.vector,0,Q);switch(l){case 2:n.push(o);break;case 3:r.push(o);break;case 0:case 1:{let[e,a,s]=l===0?[1,n,r]:[-1,r,n],c=ee(t),u=y(S(),Q,c,e*i),d=y(S(),Q,c,e*-i);a.push(o),a.push(u),s.push(d)}}}let a=[];return n.length&&a.push(n),r.length&&a.push(r),a}function _e(e){let{renderCoordsHelper:t,state:n}=e,r=Math.abs(t.getAltitude(n.camera.center));return Ce.radius=t.referenceEllipsoid.radius+r,n.camera.sphereFrustumCoverage(Ce,t)}const ve={minCurvature:n(5),maxCurvature:n(50),minSamples:1,maxSamples:6},ye=C(1,0,0),be=C(0,1,0),xe=S(),Se=S(),Q=S(),Ce=new ne,we=P(),$=E(),Te=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:K,eyeForCenterWithHeadingTilt:q,eyeTiltToLookAtTilt:de,getCurvatureSamples:Z,headingTiltToDirectionUp:G,lookAtTiltToEyeTilt:X,toArea:pe,toExtent:fe},Symbol.toStringTag,{value:`Module`}));export{de as a,fe as b,Te as c,K as d,q as e,Z as g,G as h,X as l,pe as t};
2
+ import{cyclical2PI as e}from"../core/Cyclical.js";import{lerp as t,deg2rad as n,rad2deg as r,asinClamped as i,clamp as a}from"../core/mathUtils.js";import{fromRotation as o,rotate as s}from"../core/libs/gl-matrix-2/math/mat4.js";import{create as c}from"../core/libs/gl-matrix-2/factories/mat4f64.js";import{normalize as l,cross as u,dot as d,length as f,scale as p,distance as m,transformMat4 as h,negate as g,lerp as _,sqrDist as v,scaleAndAdd as y}from"../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as b,clone as x,create as S,fromValues as C}from"../core/libs/gl-matrix-2/factories/vec3f64.js";import{set as w,squaredLength as T}from"../core/libs/gl-matrix-2/math/vec4.js";import{create as E}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{getEpsilon as D}from"../core/libs/gl-matrix-2/math/common.js";import{getReferenceEllipsoid as O}from"../geometry/ellipsoidUtils.js";import k from"../geometry/Extent.js";import A from"../geometry/Polygon.js";import j from"../geometry/SpatialReference.js";import{isClockwise as M}from"../geometry/support/coordsUtils.js";import{fromPoints as N,create as P}from"../geometry/support/lineSegment.js";import{gcsCyclical as F}from"../geometry/support/normalizeUtils.js";import{fromPositionAndNormal as I,create as L,isPointInClosedPositiveHalfspace as R,intersectLineOrRay as z,getNormal as ee}from"../geometry/support/plane.js";import{wrap as te}from"../geometry/support/ray.js";import{Sphere as ne}from"../geometry/support/sphere.js";import{geographicToWebMercator as re}from"../geometry/support/webMercatorUtils.js";import{Frustum as ie}from"../views/3d/state/Frustum.js";import{minNearDistanceInMeters as ae}from"../views/3d/state/NearFarHeuristic.js";import{directionToHeadingTilt as oe,createDirectionUp as se,clampLineSegmentToPlane as ce}from"../views/3d/support/cameraUtilsInternal.js";import{getLonDeltaForDistance as le}from"../views/3d/support/earthUtils.js";import{slerp as ue}from"../views/3d/support/mathUtils.js";const B=C(0,0,1),V=l(S(),C(1,1,1)),H=c(),U=S(),W=S();function G(e,t,r,i=se()){u(U,e,B),d(U,U)===0&&u(U,e,V),o(H,-n(t),e),s(H,H,-n(r),U);let{up:a,direction:c}=i;return u(a,U,e),l(a,a),h(a,a,H),l(c,e),g(c,c),h(c,c,H),i}function K(e,t,n,r){let i=U,a=W;return l(i,e),u(W,i,B),d(W,W)===0&&u(W,i,V),u(a,W,i),oe(t,n,r,i,a)}function q(e,t,r,a){let o={eye:S(),up:null,tilt:a,heading:r},s=U;s[0]=e[0],s[1]=e[2],s[2]=-e[1];let c=t,l=n(r),u=n(a),d=Math.sin(l),m=Math.cos(l),h=Math.sin(u),g=Math.cos(u),_=f(s),v;if(Math.abs(u)<1e-8)v=c+_;else{let e=_/h,t=i(c/e),n=Math.PI-u-t;v=e*Math.sin(n)}let y=h*h,b=m*m,x=c*c,C=g*c,w=x*y,T=b*w,E=v-C,D=E*E,O=T*(T+D-s[1]*s[1]);if(O<0)return p(o.eye,s,v/_),o.tilt=0,Y(o,e);let k=Math.sqrt(O),A=s[1]*E,j=T+D,M;if(M=m>0?-k+A:k+A,Math.abs(j)<1e-8)return _<1e-8?(o.eye[0]=0,o.eye[1]=0,o.eye[2]=c):p(o.eye,s,v/_),o.tilt=0,J(o.eye),Y(o,e);o.eye[1]=M/j;let N=d*d*w,P=h*c,F=m*P*o.eye[1],I=o.eye[1]*o.eye[1],L=1-I,R=Math.sqrt(L),z=T*I+N-2*F*R*E+L*D;return Math.abs(z)<1e-8?(p(o.eye,s,v/_),o.tilt=0,J(o.eye),Y(o,e)):(o.eye[0]=(L*(v*s[0]-C*s[0])-P*R*(s[0]*o.eye[1]*m+s[2]*d))/z,o.eye[2]=(L*(v*s[2]-C*s[2])-P*R*(s[2]*o.eye[1]*m-s[0]*d))/z,p(o.eye,o.eye,v),J(o.eye),Y(o,e))}function J(e){let t=e[1];e[1]=-e[2],e[2]=t}function Y(e,t){return e.up=G(t,e.heading,e.tilt).up,e}function X(e,t,n){let a=f(t),o=Math.sqrt(n*n+a*a-2*n*a*Math.cos(Math.PI-e)),s=i(n/(o/Math.sin(e)));return r(e-s)}function de(e,t,r){let a=n(e),o=f(t);return i(r/(o/Math.sin(a)))+a}function fe(t,i,a,o,s){let c,l,u,d,f=i.latitude,p=O(t.spatialReference).radius,m=i.longitude,h=le(f,a,p)/2;c=m-h,l=m+h;let g=n(f),_=(1+Math.sin(g))/(1-Math.sin(g)),v=(_+1)*Math.tan(o/p/2),y=v*v;u=1.5*Math.PI-2*Math.atan(.5*(v+Math.sqrt(4*_+y))),d=u+o/p;function b(t){let n=Math.PI/2;return t=e.normalize(t,-n),t>n&&(t=Math.PI-t),t}if(u=b(u),d=b(d),d<u){let e=d;d=u,u=e}if(u=Math.max(r(u),-90),d=Math.min(r(d),90),l=F.monotonic(c,l),l-c>180){let e=(l-c-180)/2;c+=e,l-=e}let x=t.spatialReference&&t.spatialReference.isGeographic?t.spatialReference:j.WGS84;return s?(s.xmin=c,s.ymin=u,s.xmax=l,s.ymax=d,s.spatialReference=x):s=new k({xmin:c,ymin:u,xmax:l,ymax:d,spatialReference:x}),t.spatialReference&&t.spatialReference.isWebMercator&&re(s,!1,s),s}function pe(e,n){let{renderCoordsHelper:r}=e,i=e.state.camera.clone(),a=new ie(r);i.near=ae,a.update(i);let o=r.getAltitude(n),s=e.spatialReference,c=i.eye,l=_e(e),u=Z(e,n),d=i.aboveGround,f=a.planes[5],p=[],m=I(b,ye,L()),h=I(b,be,L());w($,0,0,0,0);for(let e=0;e<4;e++){let n=e===1&&!d||e===3&&d?1-l:0,i=e===1&&d||e===3&&!d?l:1,s=a.lines[e],g=a.lines[e===3?0:e+1];for(let a=0;a<u;a++){let l=a/u,d=e===1?1-(1-l)**2:e===3?l**2:l,y=a===0?0:t(n,i,d),b=_(Se,s.origin,g.origin,y),S=ue(s.direction,g.direction,y,xe);r.intersectManifoldClosestSilhouette(te(b,S),o,Q),ce(Q,c,Q,f),p.push(x(Q)),p.length!==0&&v(p.at(-1),Q);let C=+!!R(m,Q)|(R(h,Q)?2:0);$[C]=1}}p.length>2&&v(p[0],p.at(-1));let g=me(T($)>1?he(ge(p,m),h):[p],r,s);return new A({rings:g,spatialReference:s})}function Z(e,n){let{renderCoordsHelper:r,state:i}=e;if(i.viewingMode!==1)return 1;let o=r.getAltitude(n),s=r.referenceEllipsoid.radius,c=1+m(i.camera.eye,n)/(s+o),l=Math.sqrt(c*c-1),{minCurvature:u,maxCurvature:d,minSamples:f,maxSamples:p}=ve,h=a((l-u)/(d-u),0,1);return Math.round(t(f,p,h))}function me(e,t,n){let r=D()*2;return e.map(e=>{let i=[],a=!1;for(let o of e)t.fromRenderCoords(o,Q,n),Math.abs(o[0])<r&&Math.abs(o[1])<r?(i.push([null,Q[1]]),i.push([null,Q[1]]),a=!0):i.push([Q[0],Q[1]]);if(a)for(let e=0;e<i.length;e++){let t=i[e];if(t[0]!=null)continue;let n=i[e+1];t[0]=i.at(e===0?-1:e-1)[0],e++,n[0]=i.at(e===i.length-1?0:e+1)[0]}return i.push(i[0]),M(i)||i.reverse(),i})}function he(e,t){let n=[];for(let r of e)n.push(...ge(r,t));return n}function ge(e,t){let n=[],r=[],i=D();for(let a=0;a<e.length;a++){let o=e[a],s=a===e.length-1?e[0]:e[a+1],c=N(o,s,we),l=z(t,c.origin,c.vector,0,Q);switch(l){case 2:n.push(o);break;case 3:r.push(o);break;case 0:case 1:{let[e,a,s]=l===0?[1,n,r]:[-1,r,n],c=ee(t),u=y(S(),Q,c,e*i),d=y(S(),Q,c,e*-i);a.push(o),a.push(u),s.push(d)}}}let a=[];return n.length&&a.push(n),r.length&&a.push(r),a}function _e(e){let{renderCoordsHelper:t,state:n}=e,r=Math.abs(t.getAltitude(n.camera.center));return Ce.radius=t.referenceEllipsoid.radius+r,n.camera.sphereFrustumCoverage(Ce,t)}const ve={minCurvature:n(5),maxCurvature:n(50),minSamples:1,maxSamples:6},ye=C(1,0,0),be=C(0,1,0),xe=S(),Se=S(),Q=S(),Ce=new ne,we=P(),$=E(),Te=Object.freeze(Object.defineProperty({__proto__:null,directionToHeadingTilt:K,eyeForCenterWithHeadingTilt:q,eyeTiltToLookAtTilt:de,getCurvatureSamples:Z,headingTiltToDirectionUp:G,lookAtTiltToEyeTilt:X,toArea:pe,toExtent:fe},Symbol.toStringTag,{value:`Module`}));export{de as a,fe as b,Te as c,K as d,q as e,Z as g,G as h,X as l,pe as t};
package/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),t.assetsPath||(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.40/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
2
+ import"./core/has.js";import{deepMerge as e}from"./core/object.js";const t={apiKey:void 0,apiKeys:{scopes:[]},applicationName:``,applicationUrl:globalThis.location?.href,assetsPath:``,fontsUrl:`https://static.arcgis.com/fonts`,geometryServiceUrl:`https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer`,geoRSSServiceUrl:`https://utility.arcgis.com/sharing/rss`,kmlServiceUrl:`https://utility.arcgis.com/sharing/kml`,userPrivilegesApplied:!0,portalUrl:`https://www.arcgis.com`,respectPrefersReducedMotion:!0,routeServiceUrl:`https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World`,workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:[`arcgis.com`,`arcgisonline.com`,`esrikr.com`,`premiumservices.blackbridge.com`,`esripremium.accuweather.com`,`gbm.digitalglobe.com`,`firstlook.digitalglobe.com`,`msi.digitalglobe.com`],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:`high`,proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(e(t,globalThis.esriConfig,!0),delete t.has),t.assetsPath||(t.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@6.0.0-next.41/assets`,t.defaultAssetsPath=t.assetsPath);export{t as default};
@@ -22,7 +22,7 @@ export default class Accessor {
22
22
  * @see [Guide - Implementing Accessor](https://developers.arcgis.com/javascript/latest/implementing-accessor/)
23
23
  */
24
24
  static createSubclass(classDefinition?: any): typeof Accessor;
25
- constructor(...args: any[]);
25
+ constructor(properties?: any);
26
26
  /**
27
27
  * The name of the class. The declared class name is formatted as `esri.folder.className`.
28
28
  *
package/core/Accessor.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{deprecatedFunction as e}from"./deprecate.js";import t from"./Handles.js";import n from"./Logger.js";import{destroyMaybe as r}from"./maybe.js";import{beforeDestroySymbol as i}from"./accessorSupport/beforeDestroy.js";import{get as a}from"./accessorSupport/get.js";import{Lifecycle as o}from"./accessorSupport/Lifecycle.js";import{getPropertiesMetadata as s}from"./accessorSupport/metadata.js";import c from"./accessorSupport/Properties.js";import{set as l}from"./accessorSupport/set.js";import{getAccessorInterceptor as u}from"./accessorSupport/testSupport.js";import{removeTarget as d,watch as f}from"./accessorSupport/watch.js";import{property as p}from"./accessorSupport/decorators/property.js";import{subclass as m}from"./accessorSupport/decorators/subclass.js";var h,g;function _(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case`object`:return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case`boolean`:return{type:Boolean,value:e};case`string`:return{type:String,value:e};case`number`:return{type:Number,value:e};case`function`:return{type:e,value:null};default:return}}const v=Symbol(`Accessor-Handles`),y=Symbol(`Accessor-Initialized`);class b{static{h=v,g=y}static createSubclass(e={}){if(Array.isArray(e))throw Error(`Multi-inheritance unsupported since 4.16`);let{properties:t,declaredClass:n,constructor:r}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let i=this;class a extends i{constructor(...e){super(...e),this.inherited=null,r&&r.apply(this,e)}}s(a.prototype);for(let t in e){let n=e[t];typeof n==`function`?a.prototype[t]=function(...e){let r=this.inherited;this.inherited=function(...e){if(i.prototype[t])return i.prototype[t].apply(this,e)};let a;try{a=n.apply(this,e)}catch(e){throw this.inherited=r,e}return this.inherited=r,a}:a.prototype[t]=e[t]}for(let e in t){let n=_(t[e]);p(n)(a.prototype,e)}return m(n)(a)}static freeze(e){return e instanceof b?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof b?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[h]=null,this[g]=!1,this.constructor===b)throw Error(`[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor`);let t=new c(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),u()?.onInstanceConstruct(this)}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[y]=!0}initialize(){}[i](){this[v]=r(this[v])}destroy(){this.destroyed||(d(this),this.__accessor__.destroy(),u()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[y]}get destroyed(){return this.__accessor__?.lifecycle===o.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===o.DESTROYING||!1}commitProperty(e){a(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return l(this,e,t),this}watch(t,r,i){return e(n.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:`reactiveUtils.watch`,version:`4.32`,see:`https://arcg.is/1vaqf42#watch`,warnOnce:!0}),f(this,t,r,i)}addHandles(e,n){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[v]??=new t).add(e,n)}removeHandles(e){this[v]?.remove(e)}removeAllHandles(){this[v]?.removeAll()}removeHandlesReference(e){this[v]?.removeReference(e)}hasHandles(e){return this[v]?.has(e)===!0}_override(e,t){t===void 0?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){t==null?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}export{b as default};
2
+ import{deprecatedFunction as e}from"./deprecate.js";import t from"./Handles.js";import n from"./Logger.js";import{destroyMaybe as r}from"./maybe.js";import{beforeDestroySymbol as i}from"./accessorSupport/beforeDestroy.js";import{get as a}from"./accessorSupport/get.js";import{Lifecycle as o}from"./accessorSupport/Lifecycle.js";import{getPropertiesMetadata as s}from"./accessorSupport/metadata.js";import c from"./accessorSupport/Properties.js";import{set as l}from"./accessorSupport/set.js";import{getAccessorInterceptor as u}from"./accessorSupport/testSupport.js";import{removeTarget as d,watch as f}from"./accessorSupport/watch.js";import{property as p}from"./accessorSupport/decorators/property.js";import{subclass as m}from"./accessorSupport/decorators/subclass.js";var h,g;function _(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case`object`:return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case`boolean`:return{type:Boolean,value:e};case`string`:return{type:String,value:e};case`number`:return{type:Number,value:e};case`function`:return{type:e,value:null};default:return}}const v=Symbol(`Accessor-Handles`),y=Symbol(`Accessor-Initialized`);class b{static{h=v,g=y}static createSubclass(e={}){let{properties:t,declaredClass:n,constructor:r}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let i=this;class a extends i{constructor(...e){super(...e),this.inherited=null,r&&r.apply(this,e)}}s(a.prototype);for(let t in e){let n=e[t];typeof n==`function`?a.prototype[t]=function(...e){let r=this.inherited;this.inherited=function(...e){if(i.prototype[t])return i.prototype[t].apply(this,e)};let a;try{a=n.apply(this,e)}catch(e){throw this.inherited=r,e}return this.inherited=r,a}:a.prototype[t]=e[t]}for(let e in t){let n=_(t[e]);p(n)(a.prototype,e)}return m(n)(a)}static freeze(e){return e instanceof b?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof b?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(e){if(this[h]=null,this[g]=!1,new.target===b)throw Error(`[accessor] cannot instantiate Accessor directly.`);let t=new c(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),arguments.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.(e)??e),u()?.onInstanceConstruct(this)}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[y]=!0}initialize(){}[i](){this[v]=r(this[v])}destroy(){this.destroyed||(d(this),this.__accessor__.destroy(),u()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[y]}get destroyed(){return this.__accessor__?.lifecycle===o.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===o.DESTROYING||!1}commitProperty(e){a(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return l(this,e,t),this}watch(t,r,i){return e(n.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:`reactiveUtils.watch`,version:`4.32`,see:`https://arcg.is/1vaqf42#watch`,warnOnce:!0}),f(this,t,r,i)}addHandles(e,n){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[v]??=new t).add(e,n)}removeHandles(e){this[v]?.remove(e)}removeAllHandles(){this[v]?.removeAll()}removeHandlesReference(e){this[v]?.removeReference(e)}hasHandles(e){return this[v]?.has(e)===!0}_override(e,t){t===void 0?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){t==null?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}export{b as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{clone as e}from"../lang.js";class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(n){let r=new t;return this._values.forEach((t,i)=>{n&&n.has(i)||r.set(i,e(t.value),t.origin)}),r}get(e,t){t=this._normalizeOrigin(t);let n=this._values.get(e);return t==null||n?.origin===t?n?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return e==null?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(r=this._normalizeOrigin(r),r===0){let t=this._values.get(e);if(t?.origin!=null&&t.origin>r)return}this._values.set(e,new n(t,r))}delete(e,t){t=this._normalizeOrigin(t),(t==null||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return t=this._normalizeOrigin(t),t==null?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},n)=>e(t,n))}_normalizeOrigin(e){if(e!=null)return e===0?e:7}}class n{constructor(e,t){this.value=e,this.origin=t}}export{t as DefaultsStore};
2
+ import{clone as e}from"../lang.js";class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(n){let r=new t;return this._values.forEach((t,i)=>{n&&n.has(i)||r.set(i,e(t.value),t.origin)}),r}get(e,t){t=this._normalizeOrigin(t);let n=this._values.get(e);return t==null||n?.origin===t?n?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return e==null?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(r=this._normalizeOrigin(r),r===0){let t=this._values.get(e);if(t?.origin!=null&&t.origin>r)return}this._values.set(e,new n(t,r))}delete(e,t){t=this._normalizeOrigin(t),(t==null||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return t=this._normalizeOrigin(t),t==null?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),t!=null&&this._values.get(e)?.origin===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},n)=>e(t,n))}_normalizeOrigin(e){if(e!=null)return e===0?e:7}}class n{constructor(e,t){this.value=e,this.origin=t}}export{t as DefaultsStore};