@arcgis/core 5.0.0-next.51 → 5.0.0-next.53

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 (1859) hide show
  1. package/AttributeBinsGraphic.d.ts +22 -3
  2. package/Basemap.d.ts +337 -3
  3. package/Camera.d.ts +160 -3
  4. package/CameraLayout.d.ts +43 -3
  5. package/Color.d.ts +270 -3
  6. package/Graphic.d.ts +400 -3
  7. package/Ground.d.ts +270 -3
  8. package/Map.d.ts +509 -3
  9. package/PopupTemplate.d.ts +964 -3
  10. package/Viewpoint.d.ts +104 -3
  11. package/WebDocument2D.d.ts +402 -3
  12. package/WebLinkChart.d.ts +280 -3
  13. package/WebMap.d.ts +174 -3
  14. package/WebScene.d.ts +662 -3
  15. package/analysis/Analysis.d.ts +43 -3
  16. package/analysis/AreaMeasurementAnalysis.d.ts +128 -3
  17. package/analysis/DimensionAnalysis.d.ts +112 -3
  18. package/analysis/DimensionSimpleStyle.d.ts +114 -3
  19. package/analysis/DirectLineMeasurementAnalysis.d.ts +129 -3
  20. package/analysis/DistanceMeasurementAnalysis.d.ts +85 -3
  21. package/analysis/ElevationProfile/ElevationProfileDisplayUnits.d.ts +20 -3
  22. package/analysis/ElevationProfile/ElevationProfileLine.d.ts +61 -3
  23. package/analysis/ElevationProfile/ElevationProfileLineChartOptions.d.ts +22 -3
  24. package/analysis/ElevationProfile/ElevationProfileLineGround.d.ts +43 -3
  25. package/analysis/ElevationProfile/ElevationProfileLineInput.d.ts +48 -3
  26. package/analysis/ElevationProfile/ElevationProfileLineQuery.d.ts +118 -3
  27. package/analysis/ElevationProfile/ElevationProfileLineScene.d.ts +95 -3
  28. package/analysis/ElevationProfile/ElevationProfileLineViewOptions.d.ts +31 -3
  29. package/analysis/ElevationProfile/ElevationProfileViewOptions.d.ts +23 -3
  30. package/analysis/ElevationProfile/elevationProfileLineTypes.d.ts +8 -0
  31. package/analysis/ElevationProfileAnalysis.d.ts +184 -3
  32. package/analysis/FeatureReference.d.ts +19 -0
  33. package/analysis/LengthDimension.d.ts +120 -3
  34. package/analysis/LineOfSightAnalysis.d.ts +124 -3
  35. package/analysis/LineOfSightAnalysisObserver.d.ts +77 -3
  36. package/analysis/LineOfSightAnalysisTarget.d.ts +69 -3
  37. package/analysis/ShadowCast/DiscreteOptions.d.ts +44 -3
  38. package/analysis/ShadowCast/MinDurationOptions.d.ts +70 -0
  39. package/analysis/ShadowCast/MinDurationOptions.js +5 -0
  40. package/analysis/ShadowCast/TotalDurationOptions.d.ts +45 -0
  41. package/analysis/ShadowCast/{DurationOptions.js → TotalDurationOptions.js} +1 -1
  42. package/analysis/ShadowCast/types.d.ts +9 -3
  43. package/analysis/ShadowCastAnalysis.d.ts +185 -3
  44. package/analysis/ShadowCastAnalysis.js +1 -1
  45. package/analysis/SliceAnalysis.d.ts +152 -3
  46. package/analysis/SlicePlane.d.ts +74 -3
  47. package/analysis/Viewshed.d.ts +116 -3
  48. package/analysis/ViewshedAnalysis.d.ts +100 -3
  49. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +28 -3
  50. package/analysis/VolumeMeasurement/VolumeMeasurementDisplayUnits.d.ts +22 -3
  51. package/analysis/VolumeMeasurement/VolumeMeasurementInputUnits.d.ts +20 -3
  52. package/analysis/VolumeMeasurement/volumeMeasurementUtils.d.ts +2 -0
  53. package/analysis/VolumeMeasurementAnalysis.d.ts +162 -3
  54. package/analysis/dimensionUtils.d.ts +2 -0
  55. package/analysis/interfaces.d.ts +12 -0
  56. package/analysis/support/AnalysisOriginWebScene.d.ts +24 -3
  57. package/applications/Components/QuantityFormatter.d.ts +84 -3
  58. package/applications/Components/SelectionOperation.d.ts +32 -2
  59. package/applications/Components/SketchTooltipControls.d.ts +26 -2
  60. package/applications/Components/actionUtils.d.ts +12 -2
  61. package/applications/Components/analysisUtils.d.ts +145 -6
  62. package/applications/Components/arcadeEditorUtils.d.ts +21 -3
  63. package/applications/Components/arcadeFeatureUtils.d.ts +37 -4
  64. package/applications/Components/baUtils.d.ts +61 -0
  65. package/applications/Components/basemapUtils.d.ts +8 -2
  66. package/applications/Components/drawUtils.d.ts +13 -2
  67. package/applications/Components/featureUtils.d.ts +86 -10
  68. package/applications/Components/fontUtils.d.ts +10 -2
  69. package/applications/Components/formatUtils.d.ts +8 -2
  70. package/applications/Components/getDefaultUnits.d.ts +9 -2
  71. package/applications/Components/gfxUtils.d.ts +3 -2
  72. package/applications/Components/imageryUtils.d.ts +165 -9
  73. package/applications/Components/layerOriginUtils.d.ts +63 -5
  74. package/applications/Components/layersEffectsJsonUtils.d.ts +9 -2
  75. package/applications/Components/previewSymbol2D.d.ts +10 -2
  76. package/applications/Components/reactiveUtils.d.ts +46 -6
  77. package/applications/Components/sanitizerUtils.d.ts +6 -2
  78. package/applications/Components/stringUtils.d.ts +41 -5
  79. package/applications/Components/styleUtils.d.ts +8 -2
  80. package/applications/Components/svgUtils.d.ts +37 -4
  81. package/applications/Components/testUtils.d.ts +15 -3
  82. package/applications/Components/viewUtils.d.ts +8 -2
  83. package/applications/Components/webStyleSymbolUtils.d.ts +18 -2
  84. package/applications/Excalibur/videoViewUtils.d.ts +32 -2
  85. package/applications/ExperienceBuilder/sketchUtils.d.ts +62 -6
  86. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +55 -3
  87. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +160 -10
  88. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +50 -8
  89. package/applications/KnowledgeStudio/reshape.d.ts +170 -4
  90. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +46 -5
  91. package/applications/MapViewer/layerUtils.d.ts +10 -2
  92. package/applications/MapViewer/mediaUtils.d.ts +62 -4
  93. package/applications/MapViewer/templateUtils.d.ts +97 -5
  94. package/applications/SceneViewer/colorUtils.d.ts +10 -2
  95. package/applications/SceneViewer/devEnvironmentUtils.d.ts +30 -4
  96. package/applications/SceneViewer/layerUtils.d.ts +22 -3
  97. package/applications/SceneViewer/sceneViewerUtils.d.ts +248 -24
  98. package/applications/SceneViewer/symbolUtils.d.ts +10 -2
  99. package/applications/Urban/meshUtils.d.ts +14 -2
  100. package/applications/WebEditor/sketchUtils.d.ts +39 -3
  101. package/arcade/arcadeAsyncRuntime.js +1 -1
  102. package/arcade/arcadeCompiler.js +1 -1
  103. package/arcade/arcadeRuntime.js +1 -1
  104. package/arcade/compilerUtils.js +1 -1
  105. package/arcade/containerUtils.js +1 -1
  106. package/arcade/featureSetUtils.js +1 -1
  107. package/arcade/featureset/actions/GroupBy.js +1 -1
  108. package/arcade/featureset/actions/OrderBy.js +1 -1
  109. package/arcade/featureset/support/shared.d.ts +16 -0
  110. package/arcade/functions/convertdirection.js +1 -1
  111. package/arcade/functions/date.js +1 -1
  112. package/arcade/functions/feature.js +1 -1
  113. package/arcade/functions/featuresetbase.js +1 -1
  114. package/arcade/functions/featuresetgeom.js +1 -1
  115. package/arcade/functions/featuresetstring.js +1 -1
  116. package/arcade/functions/fieldStats.js +1 -1
  117. package/arcade/functions/geomasync.js +1 -1
  118. package/arcade/functions/geometry.js +1 -1
  119. package/arcade/functions/geomsync.js +1 -1
  120. package/arcade/functions/knowledgegraph.js +1 -1
  121. package/arcade/functions/maths.js +1 -1
  122. package/arcade/functions/string.js +1 -1
  123. package/arcade/functions/track.js +1 -1
  124. package/arcade/geometry/functions.js +1 -1
  125. package/arcade/languageUtils.js +1 -1
  126. package/arcade/parser.js +1 -1
  127. package/arcade/treeAnalysis.js +1 -1
  128. package/arcade/validation/arcadeValidator.js +1 -1
  129. package/arcade.d.ts +752 -3
  130. package/assets/esri/core/workers/RemoteClient.js +1 -1
  131. package/assets/esri/core/workers/chunks/{4e01e509a761a9d00b52.js → 0359ac6d938e0df936d0.js} +1 -1
  132. package/assets/esri/core/workers/chunks/{f609b256df9eb3803464.js → 058fb2cd6387acfd458c.js} +1 -1
  133. package/assets/esri/core/workers/chunks/{001a7a4cf6fe74432ed6.js → 0eb6b9c638a5fcfe9bab.js} +1 -1
  134. package/assets/esri/core/workers/chunks/{dee9867b3379e024ae96.js → 33154a245eeca4ba38c6.js} +1 -1
  135. package/assets/esri/core/workers/chunks/{e9e0f1c355f963cbea74.js → 6b8c15f3970289e73a47.js} +1 -1
  136. package/assets/esri/core/workers/chunks/{29286234be26680245f6.js → 7763cf4a9a4343c28591.js} +1 -1
  137. package/assets/esri/core/workers/chunks/7972954801b82e7afc72.js +1 -0
  138. package/assets/esri/core/workers/chunks/a3f23f08337e101e4e64.js +1 -0
  139. package/assets/esri/core/workers/chunks/be80ed6e2955eabe912f.js +1 -0
  140. package/assets/esri/core/workers/chunks/{b14f9a46e583e1625a2b.js → bf5a120bc0c4851dbb69.js} +1 -1
  141. package/assets/esri/core/workers/chunks/cef873da468668eb95cb.js +1035 -0
  142. package/assets/esri/core/workers/chunks/d63cf90d1356d1f10138.js +1 -0
  143. package/assets/esri/core/workers/chunks/{92ec96aa743cabc9475d.js → d677b378449257103ec4.js} +1 -1
  144. package/assets/esri/core/workers/chunks/df0e5570174bf0942d7a.js +1 -0
  145. package/assets/esri/core/workers/chunks/dfbbead4c24d13682891.js +1 -0
  146. package/assets/esri/themes/base/widgets/_OrientedImageryViewerNavigationUI.scss +5 -31
  147. package/assets/esri/themes/dark/main.css +1 -1
  148. package/assets/esri/themes/light/main.css +1 -1
  149. package/assets/esri/themes/light/view.css +1 -1
  150. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis.json +1 -0
  151. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -0
  152. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -0
  153. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -0
  154. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -0
  155. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -0
  156. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -0
  157. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -0
  158. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -0
  159. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_en.json +1 -0
  160. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -0
  161. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -0
  162. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -0
  163. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -0
  164. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -0
  165. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -0
  166. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -0
  167. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -0
  168. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -0
  169. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -0
  170. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -0
  171. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -0
  172. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -0
  173. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -0
  174. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -0
  175. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -0
  176. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -0
  177. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -0
  178. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -0
  179. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -0
  180. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -0
  181. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -0
  182. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -0
  183. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -0
  184. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -0
  185. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -0
  186. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -0
  187. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -0
  188. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -0
  189. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -0
  190. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -0
  191. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ar.json +1 -1
  192. package/assets/esri/widgets/support/GridControls/t9n/GridControls_bg.json +1 -1
  193. package/assets/esri/widgets/support/GridControls/t9n/GridControls_bs.json +1 -1
  194. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ca.json +1 -1
  195. package/assets/esri/widgets/support/GridControls/t9n/GridControls_cs.json +1 -1
  196. package/assets/esri/widgets/support/GridControls/t9n/GridControls_da.json +1 -1
  197. package/assets/esri/widgets/support/GridControls/t9n/GridControls_de.json +1 -1
  198. package/assets/esri/widgets/support/GridControls/t9n/GridControls_el.json +1 -1
  199. package/assets/esri/widgets/support/GridControls/t9n/GridControls_es.json +1 -1
  200. package/assets/esri/widgets/support/GridControls/t9n/GridControls_et.json +1 -1
  201. package/assets/esri/widgets/support/GridControls/t9n/GridControls_fi.json +1 -1
  202. package/assets/esri/widgets/support/GridControls/t9n/GridControls_fr.json +1 -1
  203. package/assets/esri/widgets/support/GridControls/t9n/GridControls_he.json +1 -1
  204. package/assets/esri/widgets/support/GridControls/t9n/GridControls_hr.json +1 -1
  205. package/assets/esri/widgets/support/GridControls/t9n/GridControls_hu.json +1 -1
  206. package/assets/esri/widgets/support/GridControls/t9n/GridControls_id.json +1 -1
  207. package/assets/esri/widgets/support/GridControls/t9n/GridControls_it.json +1 -1
  208. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ja.json +1 -1
  209. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ko.json +1 -1
  210. package/assets/esri/widgets/support/GridControls/t9n/GridControls_lt.json +1 -1
  211. package/assets/esri/widgets/support/GridControls/t9n/GridControls_lv.json +1 -1
  212. package/assets/esri/widgets/support/GridControls/t9n/GridControls_nl.json +1 -1
  213. package/assets/esri/widgets/support/GridControls/t9n/GridControls_no.json +1 -1
  214. package/assets/esri/widgets/support/GridControls/t9n/GridControls_pl.json +1 -1
  215. package/assets/esri/widgets/support/GridControls/t9n/GridControls_pt-BR.json +1 -1
  216. package/assets/esri/widgets/support/GridControls/t9n/GridControls_pt-PT.json +1 -1
  217. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ro.json +1 -1
  218. package/assets/esri/widgets/support/GridControls/t9n/GridControls_ru.json +1 -1
  219. package/assets/esri/widgets/support/GridControls/t9n/GridControls_sk.json +1 -1
  220. package/assets/esri/widgets/support/GridControls/t9n/GridControls_sl.json +1 -1
  221. package/assets/esri/widgets/support/GridControls/t9n/GridControls_sr.json +1 -1
  222. package/assets/esri/widgets/support/GridControls/t9n/GridControls_sv.json +1 -1
  223. package/assets/esri/widgets/support/GridControls/t9n/GridControls_th.json +1 -1
  224. package/assets/esri/widgets/support/GridControls/t9n/GridControls_tr.json +1 -1
  225. package/assets/esri/widgets/support/GridControls/t9n/GridControls_uk.json +1 -1
  226. package/assets/esri/widgets/support/GridControls/t9n/GridControls_vi.json +1 -1
  227. package/assets/esri/widgets/support/GridControls/t9n/GridControls_zh-CN.json +1 -1
  228. package/assets/esri/widgets/support/GridControls/t9n/GridControls_zh-HK.json +1 -1
  229. package/assets/esri/widgets/support/GridControls/t9n/GridControls_zh-TW.json +1 -1
  230. package/chunks/GlowComposition.glsl.js +2 -2
  231. package/chunks/aiServices.js +1 -1
  232. package/chunks/array.js +1 -1
  233. package/chunks/index.js +1 -1
  234. package/chunks/languageUtils.js +1 -1
  235. package/colorUtils.d.ts +13 -0
  236. package/config.d.ts +459 -3
  237. package/config.js +1 -1
  238. package/core/Accessor.d.ts +297 -3
  239. package/core/Clonable.d.ts +17 -3
  240. package/core/Collection.d.ts +856 -3
  241. package/core/Error.d.ts +54 -3
  242. package/core/Evented.d.ts +63 -3
  243. package/core/Handles.d.ts +91 -3
  244. package/core/Identifiable.d.ts +19 -3
  245. package/core/JSONSupport.d.ts +38 -3
  246. package/core/Loadable.d.ts +49 -3
  247. package/core/Logger.d.ts +29 -0
  248. package/core/Message.d.ts +2 -0
  249. package/core/MultiOriginJSONSupport.d.ts +13 -0
  250. package/core/NumericIdentifiable.d.ts +6 -0
  251. package/core/Promise.d.ts +50 -3
  252. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +6 -0
  253. package/core/Version.d.ts +7 -0
  254. package/core/WriteableMultiOriginJSONMixin.d.ts +6 -0
  255. package/core/accessorSupport/ObservableBase.js +1 -1
  256. package/core/accessorSupport/Properties.js +1 -1
  257. package/core/accessorSupport/Property.js +1 -1
  258. package/core/accessorSupport/PropertyOrigin.d.ts +2 -0
  259. package/core/accessorSupport/decorators/subclass.js +1 -1
  260. package/core/accessorSupport/decorators.d.ts +131 -5
  261. package/core/accessorSupport/interfaces.d.ts +50 -0
  262. package/core/accessorSupport/tracking/ObservationHandle.js +1 -1
  263. package/core/accessorSupport/tracking/TrackingTarget.js +1 -1
  264. package/core/accessorSupport/tracking.js +1 -1
  265. package/core/interfaces.d.ts +26 -0
  266. package/core/lang.d.ts +18 -2
  267. package/core/promiseUtils.d.ts +220 -8
  268. package/core/quantity.d.ts +35 -5
  269. package/core/reactiveUtils.d.ts +308 -6
  270. package/core/scheduling.d.ts +95 -3
  271. package/core/sql/WhereClause.d.ts +94 -3
  272. package/core/sql/WhereGrammar.d.ts +316 -0
  273. package/core/sql/sql92grammar.d.ts +12 -0
  274. package/core/sql.d.ts +51 -3
  275. package/core/string.d.ts +3 -0
  276. package/core/time.d.ts +2 -0
  277. package/core/timeUtils.d.ts +2 -0
  278. package/core/units.d.ts +32 -12
  279. package/core/urlUtils.d.ts +126 -12
  280. package/core/workers/Connection.d.ts +271 -3
  281. package/core/workers/workers.d.ts +21 -0
  282. package/core/workers.d.ts +74 -2
  283. package/editing/interfaces.d.ts +7 -0
  284. package/editing/sharedTemplates/SharedTemplate.d.ts +20 -3
  285. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +40 -3
  286. package/editing/sharedTemplates/interfaces.d.ts +2 -0
  287. package/effects/FocusArea.d.ts +79 -3
  288. package/effects/FocusAreaOutline.d.ts +22 -3
  289. package/effects/FocusAreaStyle.d.ts +2 -0
  290. package/effects/FocusAreas.d.ts +67 -3
  291. package/form/ExpressionInfo.d.ts +73 -3
  292. package/form/FormTemplate.d.ts +302 -3
  293. package/form/elements/AttachmentElement.d.ts +100 -3
  294. package/form/elements/Element.d.ts +77 -3
  295. package/form/elements/FieldElement.d.ts +260 -3
  296. package/form/elements/GroupElement.d.ts +135 -3
  297. package/form/elements/RelationshipElement.d.ts +102 -3
  298. package/form/elements/TextElement.d.ts +73 -3
  299. package/form/elements/UtilityNetworkAssociationsElement.d.ts +80 -3
  300. package/form/elements/inputs/BarcodeScannerInput.d.ts +16 -3
  301. package/form/elements/inputs/ComboBoxInput.d.ts +38 -3
  302. package/form/elements/inputs/DatePickerInput.d.ts +29 -3
  303. package/form/elements/inputs/DateTimeOffsetPickerInput.d.ts +44 -3
  304. package/form/elements/inputs/DateTimePickerInput.d.ts +56 -3
  305. package/form/elements/inputs/Input.d.ts +5 -0
  306. package/form/elements/inputs/RadioButtonsInput.d.ts +39 -3
  307. package/form/elements/inputs/SwitchInput.d.ts +39 -3
  308. package/form/elements/inputs/TextAreaInput.d.ts +30 -3
  309. package/form/elements/inputs/TextBoxInput.d.ts +31 -3
  310. package/form/elements/inputs/TextInput.d.ts +18 -3
  311. package/form/elements/inputs/TimePickerInput.d.ts +41 -3
  312. package/form/elements/inputs/attachments/AttachmentInput.d.ts +100 -3
  313. package/form/elements/inputs/attachments/AudioInput.d.ts +37 -3
  314. package/form/elements/inputs/attachments/DocumentInput.d.ts +29 -3
  315. package/form/elements/inputs/attachments/ImageInput.d.ts +37 -3
  316. package/form/elements/inputs/attachments/Input.d.ts +5 -0
  317. package/form/elements/inputs/attachments/SignatureInput.d.ts +34 -3
  318. package/form/elements/inputs/attachments/VideoInput.d.ts +37 -3
  319. package/form/elements/inputs/attachments/support/inputs.d.ts +10 -0
  320. package/form/elements/inputs.d.ts +73 -23
  321. package/form/elements.d.ts +69 -15
  322. package/form/support/formUtils.d.ts +4 -0
  323. package/geometry/Circle.d.ts +102 -3
  324. package/geometry/Extent.d.ts +188 -3
  325. package/geometry/Geometry.d.ts +64 -3
  326. package/geometry/HeightModelInfo.d.ts +77 -3
  327. package/geometry/Mesh.d.ts +604 -3
  328. package/geometry/Multipoint.d.ts +60 -3
  329. package/geometry/Point.d.ts +154 -3
  330. package/geometry/Polygon.d.ts +198 -3
  331. package/geometry/Polyline.d.ts +135 -3
  332. package/geometry/SpatialReference.d.ts +238 -3
  333. package/geometry/coordinateFormatter.d.ts +254 -13
  334. package/geometry/geodesicUtils.d.ts +19 -0
  335. package/geometry/geometryEngine.d.ts +667 -39
  336. package/geometry/geometryEngineInterfaces.d.ts +59 -0
  337. package/geometry/interfaces.d.ts +2 -0
  338. package/geometry/operators/affineTransformOperator.d.ts +26 -4
  339. package/geometry/operators/alphaShapeOperator.d.ts +54 -4
  340. package/geometry/operators/areaOperator.d.ts +30 -3
  341. package/geometry/operators/autoCompleteOperator.d.ts +21 -3
  342. package/geometry/operators/boundaryOperator.d.ts +34 -4
  343. package/geometry/operators/bufferOperator.d.ts +69 -4
  344. package/geometry/operators/centroidOperator.d.ts +19 -3
  345. package/geometry/operators/clipOperator.d.ts +29 -4
  346. package/geometry/operators/containsOperator.d.ts +26 -4
  347. package/geometry/operators/convexHullOperator.d.ts +45 -5
  348. package/geometry/operators/crossesOperator.d.ts +29 -4
  349. package/geometry/operators/cutOperator.d.ts +19 -3
  350. package/geometry/operators/densifyOperator.d.ts +73 -4
  351. package/geometry/operators/differenceOperator.d.ts +28 -4
  352. package/geometry/operators/disjointOperator.d.ts +27 -4
  353. package/geometry/operators/distanceOperator.d.ts +29 -3
  354. package/geometry/operators/equalsOperator.d.ts +26 -4
  355. package/geometry/operators/extendOperator.d.ts +40 -3
  356. package/geometry/operators/generalizeOperator.d.ts +55 -4
  357. package/geometry/operators/geodesicBufferOperator.d.ts +88 -6
  358. package/geometry/operators/geodesicProximityOperator.d.ts +122 -8
  359. package/geometry/operators/geodeticAreaOperator.d.ts +55 -5
  360. package/geometry/operators/geodeticDensifyOperator.d.ts +67 -6
  361. package/geometry/operators/geodeticDistanceOperator.d.ts +56 -5
  362. package/geometry/operators/geodeticLengthOperator.d.ts +55 -5
  363. package/geometry/operators/geodeticUtilsOperator.d.ts +104 -5
  364. package/geometry/operators/graphicBufferOperator.d.ts +74 -3
  365. package/geometry/operators/integrateOperator.d.ts +19 -3
  366. package/geometry/operators/intersectionOperator.d.ts +74 -5
  367. package/geometry/operators/intersectsOperator.d.ts +26 -4
  368. package/geometry/operators/isNearOperator.d.ts +31 -3
  369. package/geometry/operators/labelPointOperator.d.ts +27 -4
  370. package/geometry/operators/lengthOperator.d.ts +30 -3
  371. package/geometry/operators/linesToPolygonsOperator.d.ts +19 -3
  372. package/geometry/operators/locateBetweenOperator.d.ts +23 -3
  373. package/geometry/operators/minimumBoundingCircleOperator.d.ts +38 -4
  374. package/geometry/operators/multiPartToSinglePartOperator.d.ts +33 -3
  375. package/geometry/operators/offsetOperator.d.ts +74 -4
  376. package/geometry/operators/overlapsOperator.d.ts +27 -4
  377. package/geometry/operators/polygonOverlayOperator.d.ts +61 -3
  378. package/geometry/operators/polygonSlicerOperator.d.ts +68 -5
  379. package/geometry/operators/projectOperator.d.ts +58 -6
  380. package/geometry/operators/proximityOperator.d.ts +81 -5
  381. package/geometry/operators/relateOperator.d.ts +34 -5
  382. package/geometry/operators/reshapeOperator.d.ts +24 -3
  383. package/geometry/operators/shapePreservingProjectOperator.d.ts +77 -6
  384. package/geometry/operators/simplifyOGCOperator.d.ts +61 -5
  385. package/geometry/operators/simplifyOperator.d.ts +63 -5
  386. package/geometry/operators/support/GeographicTransformation.d.ts +61 -3
  387. package/geometry/operators/support/GeographicTransformationStep.d.ts +62 -3
  388. package/geometry/operators/support/Transformation.d.ts +168 -3
  389. package/geometry/operators/support/geodeticCurveType.d.ts +2 -0
  390. package/geometry/operators/support/geographicTransformationUtils.d.ts +113 -5
  391. package/geometry/operators/support/projectionTransformation.d.ts +16 -0
  392. package/geometry/operators/support/proximityResult.d.ts +24 -0
  393. package/geometry/operators/symmetricDifferenceOperator.d.ts +27 -4
  394. package/geometry/operators/touchesOperator.d.ts +26 -4
  395. package/geometry/operators/unionOperator.d.ts +27 -4
  396. package/geometry/operators/withinOperator.d.ts +26 -4
  397. package/geometry/support/MeshComponent.d.ts +134 -3
  398. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +36 -3
  399. package/geometry/support/MeshLocalVertexSpace.d.ts +28 -3
  400. package/geometry/support/MeshMaterial.d.ts +197 -3
  401. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +149 -3
  402. package/geometry/support/MeshTexture.d.ts +159 -3
  403. package/geometry/support/MeshTextureTransform.d.ts +44 -3
  404. package/geometry/support/MeshTransform.d.ts +51 -3
  405. package/geometry/support/MeshVertexAttributes.d.ts +33 -0
  406. package/geometry/support/MeshVertexSpace.d.ts +4 -0
  407. package/geometry/support/geodesicUtils.d.ts +147 -6
  408. package/geometry/support/interfaces.d.ts +3 -0
  409. package/geometry/support/jsonUtils.d.ts +26 -3
  410. package/geometry/support/meshUtils/elevation.d.ts +16 -0
  411. package/geometry/support/meshUtils/elevationSampler.d.ts +9 -0
  412. package/geometry/support/meshUtils/exporters/gltf/interfaces.d.ts +11 -0
  413. package/geometry/support/meshUtils/georeference.d.ts +10 -0
  414. package/geometry/support/meshUtils/interfaces.d.ts +150 -0
  415. package/geometry/support/meshUtils.d.ts +144 -8
  416. package/geometry/support/normalizeUtils.d.ts +66 -3
  417. package/geometry/support/typeUtils.d.ts +14 -0
  418. package/geometry/support/webMercatorUtils.d.ts +75 -8
  419. package/geometry.d.ts +98 -15
  420. package/geometry.js +1 -1
  421. package/graphic/GraphicOrigin.d.ts +15 -3
  422. package/graphic/VectorTileGraphicOrigin.d.ts +30 -3
  423. package/ground/NavigationConstraint.d.ts +19 -0
  424. package/identity/Credential.d.ts +74 -3
  425. package/identity/IdentityManager.d.ts +30 -3
  426. package/identity/IdentityManagerBase.d.ts +348 -0
  427. package/identity/OAuthInfo.d.ts +184 -3
  428. package/identity/ServerInfo.d.ts +61 -3
  429. package/interfaces.d.ts +7130 -144795
  430. package/intl/date.d.ts +11 -0
  431. package/intl/locale.d.ts +7 -0
  432. package/intl/messages.d.ts +48 -0
  433. package/intl/number.d.ts +22 -0
  434. package/intl/substitute.d.ts +161 -0
  435. package/intl/t9n.d.ts +23 -0
  436. package/intl.d.ts +629 -21
  437. package/kernel.d.ts +21 -3
  438. package/kernel.js +1 -1
  439. package/layers/BaseDynamicLayer.d.ts +187 -3
  440. package/layers/BaseElevationLayer.d.ts +243 -3
  441. package/layers/BaseTileLayer.d.ts +343 -3
  442. package/layers/BingMapsLayer.d.ts +128 -3
  443. package/layers/BlendMode.d.ts +2 -0
  444. package/layers/BuildingSceneLayer.d.ts +407 -3
  445. package/layers/CSVLayer.d.ts +1467 -3
  446. package/layers/CSVLayer.js +1 -1
  447. package/layers/CatalogLayer.d.ts +661 -3
  448. package/layers/DimensionLayer.d.ts +146 -3
  449. package/layers/ElevationLayer.d.ts +207 -3
  450. package/layers/FeatureLayer.d.ts +2188 -3
  451. package/layers/GeoJSONLayer.d.ts +1833 -3
  452. package/layers/GeoRSSLayer.d.ts +142 -3
  453. package/layers/GraphicsLayer.d.ts +260 -3
  454. package/layers/GroupLayer.d.ts +251 -3
  455. package/layers/ImageryLayer.d.ts +371 -3
  456. package/layers/ImageryTileLayer.d.ts +836 -3
  457. package/layers/IntegratedMesh3DTilesLayer.d.ts +191 -3
  458. package/layers/IntegratedMeshLayer.d.ts +212 -3
  459. package/layers/KMLLayer.d.ts +65 -3
  460. package/layers/KnowledgeGraphLayer.d.ts +600 -3
  461. package/layers/Layer.d.ts +519 -3
  462. package/layers/LayerListMode.d.ts +2 -0
  463. package/layers/LayerType.d.ts +2 -0
  464. package/layers/LineOfSightLayer.d.ts +169 -3
  465. package/layers/LinkChartLayer.d.ts +318 -3
  466. package/layers/MapImageLayer.d.ts +717 -3
  467. package/layers/MapNotesLayer.d.ts +194 -3
  468. package/layers/MediaLayer.d.ts +217 -3
  469. package/layers/OGCFeatureLayer.d.ts +455 -3
  470. package/layers/OpenStreetMapLayer.d.ts +68 -3
  471. package/layers/OrientedImageryLayer.d.ts +1037 -3
  472. package/layers/ParquetLayer.d.ts +717 -3
  473. package/layers/PointCloudLayer.d.ts +407 -3
  474. package/layers/RouteLayer.d.ts +436 -3
  475. package/layers/SceneLayer.d.ts +1291 -3
  476. package/layers/StreamLayer.d.ts +971 -3
  477. package/layers/SubtypeGroupLayer.d.ts +908 -3
  478. package/layers/TileLayer.d.ts +227 -3
  479. package/layers/UnknownLayer.d.ts +30 -3
  480. package/layers/UnsupportedLayer.d.ts +34 -3
  481. package/layers/VectorTileLayer.d.ts +935 -3
  482. package/layers/VideoLayer.d.ts +603 -3
  483. package/layers/ViewshedLayer.d.ts +132 -3
  484. package/layers/VoxelLayer.d.ts +657 -3
  485. package/layers/WCSLayer.d.ts +264 -3
  486. package/layers/WFSLayer.d.ts +848 -3
  487. package/layers/WMSLayer.d.ts +859 -3
  488. package/layers/WMTSLayer.d.ts +111 -3
  489. package/layers/WebTileLayer.d.ts +139 -3
  490. package/layers/buildingSublayers/BuildingComponentSublayer.d.ts +333 -3
  491. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +66 -3
  492. package/layers/buildingSublayers/BuildingSublayer.d.ts +64 -3
  493. package/layers/buildingSublayers/utils.d.ts +4 -0
  494. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +60 -3
  495. package/layers/catalog/CatalogFootprintLayer.d.ts +707 -3
  496. package/layers/catalog/catalogUtils.d.ts +42 -3
  497. package/layers/effects/interfaces.d.ts +276 -0
  498. package/layers/graphics/editingSupport.d.ts +251 -0
  499. package/layers/graphics/sources/ParquetSource.d.ts +26 -0
  500. package/layers/interfaces.d.ts +470 -0
  501. package/layers/knowledgeGraph/IdTypePair.d.ts +8 -0
  502. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.d.ts +73 -0
  503. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +794 -3
  504. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.d.ts +6 -0
  505. package/layers/knowledgeGraph/LayoutMode.d.ts +3 -0
  506. package/layers/mixins/APIKeyMixin.d.ts +30 -3
  507. package/layers/mixins/ArcGISCachedService.d.ts +28 -3
  508. package/layers/mixins/ArcGISImageService.d.ts +1298 -3
  509. package/layers/mixins/ArcGISMapService.d.ts +102 -3
  510. package/layers/mixins/ArcGISService.d.ts +6 -0
  511. package/layers/mixins/BlendLayer.d.ts +241 -3
  512. package/layers/mixins/CustomParametersMixin.d.ts +28 -3
  513. package/layers/mixins/DisplayFilteredLayer.d.ts +148 -3
  514. package/layers/mixins/EditBusLayer.d.ts +37 -0
  515. package/layers/mixins/FeatureEffectLayer.d.ts +122 -3
  516. package/layers/mixins/FeatureLayerBase.d.ts +572 -3
  517. package/layers/mixins/FeatureReductionLayer.d.ts +152 -3
  518. package/layers/mixins/ImageryTileMixin.d.ts +398 -3
  519. package/layers/mixins/OperationalLayer.d.ts +25 -3
  520. package/layers/mixins/OrderedLayer.d.ts +134 -3
  521. package/layers/mixins/PortalLayer.d.ts +158 -3
  522. package/layers/mixins/PublishableLayer.d.ts +44 -3
  523. package/layers/mixins/RasterJobHandlerMixin.d.ts +6 -0
  524. package/layers/mixins/RasterPresetRendererMixin.d.ts +36 -3
  525. package/layers/mixins/RefreshableLayer.d.ts +92 -3
  526. package/layers/mixins/ScaleRange.d.ts +7 -0
  527. package/layers/mixins/ScaleRangeLayer.d.ts +80 -3
  528. package/layers/mixins/SceneService.d.ts +96 -3
  529. package/layers/mixins/SublayersOwner.d.ts +73 -3
  530. package/layers/mixins/TemporalLayer.d.ts +291 -3
  531. package/layers/mixins/TemporalSceneLayer.d.ts +176 -3
  532. package/layers/mixins/TrackableLayer.d.ts +32 -3
  533. package/layers/mixins/properties/ILayerWithGetFeatureTitle.d.ts +13 -0
  534. package/layers/mixins/properties/ILayerWithGetField.d.ts +6 -0
  535. package/layers/mixins/properties/ILayerWithSave.d.ts +11 -0
  536. package/layers/ogc/wcsUtils.d.ts +22 -2
  537. package/layers/ogc/wfsUtils.d.ts +168 -3
  538. package/layers/orientedImagery/core/ElevationSourceDefinitions.d.ts +8 -0
  539. package/layers/orientedImagery/interfaces.d.ts +57 -0
  540. package/layers/orientedImagery/transformations/imageToWorld.d.ts +44 -2
  541. package/layers/orientedImagery/transformations/interfaces.d.ts +98 -0
  542. package/layers/orientedImagery/transformations/worldToImage.d.ts +42 -2
  543. package/layers/pointCloudFilters/PointCloudBitfieldFilter.d.ts +51 -3
  544. package/layers/pointCloudFilters/PointCloudFilter.d.ts +57 -3
  545. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +48 -3
  546. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +50 -3
  547. package/layers/pointCloudFilters/typeUtils.d.ts +5 -0
  548. package/layers/raster/datasets/interfaces.d.ts +2 -0
  549. package/layers/raster/datasets/pixelReader.d.ts +10 -0
  550. package/layers/raster/datasets/wcsCapabilitiesParser.d.ts +48 -0
  551. package/layers/raster/datasets/wcsCoverageParser.d.ts +352 -0
  552. package/layers/raster/functions/changeDetectionUtils.d.ts +2 -0
  553. package/layers/raster/functions/creators/createAppearenceFunctions.d.ts +70 -0
  554. package/layers/raster/functions/creators/createBandIndexFunctions.d.ts +244 -0
  555. package/layers/raster/functions/creators/createChangeFunctions.d.ts +9 -0
  556. package/layers/raster/functions/creators/createConversionFunctions.d.ts +16 -0
  557. package/layers/raster/functions/creators/createDataManagementFunctions.d.ts +186 -0
  558. package/layers/raster/functions/creators/createLocalFunctions.d.ts +41 -0
  559. package/layers/raster/functions/creators/createMultiRasterAnalysisFunctions.d.ts +25 -0
  560. package/layers/raster/functions/creators/createStatisticsFunctions.d.ts +43 -0
  561. package/layers/raster/functions/creators/createSurfaceFunctions.d.ts +99 -0
  562. package/layers/raster/functions/focalStatUtils.d.ts +2 -0
  563. package/layers/raster/functions/interfaces.d.ts +71 -0
  564. package/layers/support/AggregateField.d.ts +143 -3
  565. package/layers/support/BuildingFieldStatistics.d.ts +23 -0
  566. package/layers/support/BuildingFilter.d.ts +74 -3
  567. package/layers/support/BuildingFilterBlock.d.ts +32 -0
  568. package/layers/support/BuildingFilterMode.d.ts +3 -0
  569. package/layers/support/BuildingFilterModeSolid.d.ts +8 -0
  570. package/layers/support/BuildingFilterModeWireFrame.d.ts +18 -0
  571. package/layers/support/BuildingFilterModeXRay.d.ts +8 -0
  572. package/layers/support/BuildingSummaryStatistics.d.ts +35 -3
  573. package/layers/support/CodedValue.d.ts +11 -0
  574. package/layers/support/CodedValueDomain.d.ts +37 -3
  575. package/layers/support/ContingencyConstraintViolation.d.ts +2 -0
  576. package/layers/support/ContingentValue.d.ts +2 -0
  577. package/layers/support/ContingentValuesResult.d.ts +2 -0
  578. package/layers/support/ControlPoint.d.ts +44 -0
  579. package/layers/support/ControlPointsGeoreference.d.ts +179 -3
  580. package/layers/support/CornersGeoreference.d.ts +126 -3
  581. package/layers/support/DateTimeFieldFormat.d.ts +145 -3
  582. package/layers/support/DimensionalDefinition.d.ts +88 -3
  583. package/layers/support/DisplayFilter.d.ts +46 -3
  584. package/layers/support/DisplayFilterInfo.d.ts +79 -3
  585. package/layers/support/Domain.d.ts +19 -3
  586. package/layers/support/EditFieldsInfo.d.ts +21 -0
  587. package/layers/support/EditingCapabilities.d.ts +21 -0
  588. package/layers/support/ElevationQuery.d.ts +35 -0
  589. package/layers/support/ElevationQueryContext.d.ts +37 -0
  590. package/layers/support/ElevationSampler.d.ts +119 -3
  591. package/layers/support/ElevationTileData.d.ts +12 -0
  592. package/layers/support/ExpressionInfo.d.ts +49 -3
  593. package/layers/support/ExtentAndRotationGeoreference.d.ts +65 -3
  594. package/layers/support/FacilityLayerInfo.d.ts +27 -3
  595. package/layers/support/FeatureEffect.d.ts +130 -3
  596. package/layers/support/FeatureFilter.d.ts +337 -3
  597. package/layers/support/FeatureReduction.d.ts +3 -0
  598. package/layers/support/FeatureReductionBinning.d.ts +618 -3
  599. package/layers/support/FeatureReductionCluster.d.ts +1188 -3
  600. package/layers/support/FeatureReductionSelection.d.ts +45 -3
  601. package/layers/support/FeatureTemplate.d.ts +45 -3
  602. package/layers/support/FeatureType.d.ts +36 -3
  603. package/layers/support/Field.d.ts +183 -3
  604. package/layers/support/FieldConfiguration.d.ts +158 -3
  605. package/layers/support/FieldFormat.d.ts +5 -0
  606. package/layers/support/FieldGroup.d.ts +2 -0
  607. package/layers/support/FieldValueType.d.ts +2 -0
  608. package/layers/support/FieldsIndex.d.ts +96 -3
  609. package/layers/support/GeometryFieldsInfo.d.ts +24 -3
  610. package/layers/support/GeoreferenceBase.d.ts +3 -0
  611. package/layers/support/I3SLayer.d.ts +9 -0
  612. package/layers/support/ImageElement.d.ts +122 -3
  613. package/layers/support/InheritedDomain.d.ts +18 -3
  614. package/layers/support/KMLMapImage.d.ts +28 -0
  615. package/layers/support/KMLSublayer.d.ts +50 -3
  616. package/layers/support/LOD.d.ts +37 -3
  617. package/layers/support/LabelClass.d.ts +396 -3
  618. package/layers/support/LabelExpressionInfo.d.ts +25 -0
  619. package/layers/support/LayerFloorInfo.d.ts +23 -3
  620. package/layers/support/LevelLayerInfo.d.ts +35 -3
  621. package/layers/support/LocalMediaElementSource.d.ts +86 -3
  622. package/layers/support/MapImage.d.ts +43 -3
  623. package/layers/support/MediaElementBase.d.ts +181 -3
  624. package/layers/support/MosaicRule.d.ts +216 -3
  625. package/layers/support/MultidimensionalSubset.d.ts +88 -3
  626. package/layers/support/NumberFieldFormat.d.ts +105 -3
  627. package/layers/support/OrderByInfo.d.ts +50 -3
  628. package/layers/support/ParquetGeometryEncodingBase.d.ts +9 -0
  629. package/layers/support/ParquetGeometryEncodingLocation.d.ts +28 -3
  630. package/layers/support/ParquetGeometryEncodingWkb.d.ts +31 -3
  631. package/layers/support/PixelBlock.d.ts +97 -3
  632. package/layers/support/PlaybackInfo.d.ts +43 -3
  633. package/layers/support/PublishingInfo.d.ts +38 -3
  634. package/layers/support/PurgeOptions.d.ts +23 -0
  635. package/layers/support/RangeDomain.d.ts +23 -3
  636. package/layers/support/RasterBandInfo.d.ts +47 -3
  637. package/layers/support/RasterFunction.d.ts +121 -3
  638. package/layers/support/RasterFunctionProperties.d.ts +2 -0
  639. package/layers/support/RasterInfo.d.ts +179 -3
  640. package/layers/support/RasterSensorInfo.d.ts +49 -3
  641. package/layers/support/RasterTypes.d.ts +15 -0
  642. package/layers/support/Relationship.d.ts +73 -3
  643. package/layers/support/RouteStopSymbols.d.ts +98 -3
  644. package/layers/support/RouteSymbols.d.ts +150 -3
  645. package/layers/support/SceneFilter.d.ts +72 -3
  646. package/layers/support/SceneModification.d.ts +79 -3
  647. package/layers/support/SceneModifications.d.ts +40 -3
  648. package/layers/support/SimpleBandStatistics.d.ts +10 -0
  649. package/layers/support/SiteLayerInfo.d.ts +24 -3
  650. package/layers/support/SpriteSource.d.ts +42 -0
  651. package/layers/support/StreamConnection.d.ts +65 -3
  652. package/layers/support/Sublayer.d.ts +1122 -3
  653. package/layers/support/Subtype.d.ts +36 -3
  654. package/layers/support/SubtypeSublayer.d.ts +935 -3
  655. package/layers/support/TelemetryData.d.ts +47 -3
  656. package/layers/support/TelemetryDisplay.d.ts +51 -3
  657. package/layers/support/TileInfo.d.ts +174 -3
  658. package/layers/support/TileMatrixSet.d.ts +34 -3
  659. package/layers/support/TimeInfo.d.ts +109 -3
  660. package/layers/support/TrackInfo.d.ts +312 -3
  661. package/layers/support/TrackPartInfo.d.ts +188 -3
  662. package/layers/support/VideoElement.d.ts +73 -3
  663. package/layers/support/VideoTimeExtent.d.ts +34 -3
  664. package/layers/support/WMSSublayer.d.ts +161 -3
  665. package/layers/support/WMTSStyle.d.ts +32 -3
  666. package/layers/support/WMTSSublayer.d.ts +92 -3
  667. package/layers/support/arcadeUtils.d.ts +84 -2
  668. package/layers/support/csvUtils.d.ts +43 -2
  669. package/layers/support/domains.d.ts +5 -0
  670. package/layers/support/editableLayers.d.ts +11 -0
  671. package/layers/support/exifUtils.d.ts +21 -0
  672. package/layers/support/fieldFormatUtils.d.ts +4 -0
  673. package/layers/support/fieldType.d.ts +2 -0
  674. package/layers/support/fieldUtils.d.ts +130 -10
  675. package/layers/support/interfaces.d.ts +411 -0
  676. package/layers/support/layerUtils.d.ts +4 -0
  677. package/layers/support/media.d.ts +39 -0
  678. package/layers/support/parquetUtils.d.ts +26 -2
  679. package/layers/support/rasterFunctionConstants.d.ts +632 -17
  680. package/layers/support/rasterFunctionUtils.d.ts +2110 -119
  681. package/layers/support/source/DataLayerSource.d.ts +168 -0
  682. package/layers/support/source/MapLayerSource.d.ts +54 -0
  683. package/layers/support/source/QueryTableDataSource.d.ts +66 -0
  684. package/layers/support/source/RasterDataSource.d.ts +35 -0
  685. package/layers/support/source/TableDataSource.d.ts +38 -0
  686. package/layers/support/source/types.d.ts +4 -0
  687. package/layers/support/wmsUtils.d.ts +73 -0
  688. package/layers/support/wmtsUtils.d.ts +2 -0
  689. package/layers/video/IVideoController.d.ts +44 -0
  690. package/layers/video/videoUtils.d.ts +5 -0
  691. package/layers/voxel/VoxelColorStop.d.ts +23 -0
  692. package/layers/voxel/VoxelDynamicSection.d.ts +47 -3
  693. package/layers/voxel/VoxelFormat.d.ts +24 -0
  694. package/layers/voxel/VoxelIsosurface.d.ts +44 -0
  695. package/layers/voxel/VoxelOpacityStop.d.ts +21 -0
  696. package/layers/voxel/VoxelRangeFilter.d.ts +20 -0
  697. package/layers/voxel/VoxelSlice.d.ts +44 -3
  698. package/layers/voxel/VoxelTransferFunctionStyle.d.ts +64 -3
  699. package/layers/voxel/VoxelUniqueValue.d.ts +35 -0
  700. package/layers/voxel/VoxelVariable.d.ts +36 -3
  701. package/layers/voxel/VoxelVariableStyle.d.ts +91 -3
  702. package/layers/voxel/VoxelVolume.d.ts +47 -3
  703. package/layers/voxel/VoxelVolumeStyle.d.ts +76 -3
  704. package/linkChart/ChronologicalLayoutSettings.d.ts +136 -3
  705. package/linkChart/LayoutSettings.d.ts +39 -3
  706. package/linkChart/LinkChartProperties.d.ts +72 -3
  707. package/linkChart/NonspatialDataDisplay.d.ts +23 -3
  708. package/linkChart/OrganicLayoutSettings.d.ts +56 -3
  709. package/linkChart/interfaces.d.ts +4 -0
  710. package/networks/CircuitManager.d.ts +182 -3
  711. package/networks/Network.d.ts +294 -3
  712. package/networks/UnitIdentifierManager.d.ts +102 -3
  713. package/networks/UtilityNetwork.d.ts +447 -3
  714. package/networks/UtilityNetworkTraceAnalysis.d.ts +126 -0
  715. package/networks/UtilityNetworkTraceAnalysis.js +5 -0
  716. package/networks/support/Circuit.d.ts +290 -3
  717. package/networks/support/CircuitLocation.d.ts +40 -3
  718. package/networks/support/CircuitPath.d.ts +48 -3
  719. package/networks/support/CircuitPathConnectivityElement.d.ts +25 -3
  720. package/networks/support/CircuitSection.d.ts +157 -3
  721. package/networks/support/NamedTraceConfiguration.d.ts +69 -3
  722. package/networks/support/NetworkSystemLayers.d.ts +167 -3
  723. package/networks/support/Subcircuit.d.ts +54 -3
  724. package/networks/support/Terminal.d.ts +30 -3
  725. package/networks/support/TerminalConfiguration.d.ts +42 -3
  726. package/networks/support/TopologyValidationJobInfo.d.ts +115 -3
  727. package/networks/support/TraceConfiguration.d.ts +62 -3
  728. package/networks/support/TraceJobInfo.d.ts +142 -3
  729. package/networks/support/UNTraceConfiguration.d.ts +155 -3
  730. package/networks/support/jsonTypes.d.ts +289 -0
  731. package/networks/support/typeUtils.d.ts +18 -0
  732. package/networks/support/utils.d.ts +25 -0
  733. package/package.json +3 -3
  734. package/pointCloudRenderers.d.ts +68 -11
  735. package/pointCloudRenderers.js +1 -1
  736. package/popup/ElementExpressionInfo.d.ts +148 -3
  737. package/popup/ExpressionInfo.d.ts +78 -3
  738. package/popup/FieldInfo.d.ts +380 -3
  739. package/popup/LayerOptions.d.ts +55 -3
  740. package/popup/RelatedRecordsInfo.d.ts +39 -3
  741. package/popup/content/AttachmentsContent.d.ts +129 -3
  742. package/popup/content/BarChartMediaInfo.d.ts +52 -3
  743. package/popup/content/ColumnChartMediaInfo.d.ts +53 -3
  744. package/popup/content/Content.d.ts +42 -3
  745. package/popup/content/CustomContent.d.ts +121 -3
  746. package/popup/content/ExpressionContent.d.ts +111 -3
  747. package/popup/content/FieldsContent.d.ts +96 -3
  748. package/popup/content/ImageMediaInfo.d.ts +63 -3
  749. package/popup/content/LineChartMediaInfo.d.ts +53 -3
  750. package/popup/content/MediaContent.d.ts +117 -3
  751. package/popup/content/PieChartMediaInfo.d.ts +52 -3
  752. package/popup/content/RelationshipContent.d.ts +110 -3
  753. package/popup/content/TextContent.d.ts +79 -3
  754. package/popup/content/UtilityNetworkAssociationsContent.d.ts +83 -3
  755. package/popup/content/mixins/ChartMediaInfo.d.ts +20 -3
  756. package/popup/content/mixins/MediaInfo.d.ts +30 -3
  757. package/popup/content/support/ChartMediaInfoValue.d.ts +101 -3
  758. package/popup/content/support/ChartMediaInfoValueSeries.d.ts +37 -3
  759. package/popup/content/support/ImageMediaInfoValue.d.ts +22 -3
  760. package/popup/content/support/mediaInfoTypes.d.ts +7 -0
  761. package/popup/content.d.ts +123 -19
  762. package/popup/interfaces.d.ts +49 -0
  763. package/popup/support/AttachmentsOrderByInfo.d.ts +38 -3
  764. package/popup/support/FieldInfoFormat.d.ts +203 -3
  765. package/popup/support/RelatedRecordsInfoFieldOrder.d.ts +32 -3
  766. package/popup/support/UtilityNetworkAssociationType.d.ts +37 -3
  767. package/portal/Portal.d.ts +727 -3
  768. package/portal/PortalFolder.d.ts +33 -3
  769. package/portal/PortalGroup.d.ts +146 -3
  770. package/portal/PortalItem.d.ts +517 -3
  771. package/portal/PortalItemResource.d.ts +47 -3
  772. package/portal/PortalQueryParams.d.ts +131 -3
  773. package/portal/PortalQueryResult.d.ts +23 -3
  774. package/portal/PortalRating.d.ts +21 -3
  775. package/portal/PortalUser.d.ts +278 -3
  776. package/portal/interfaces.d.ts +138 -0
  777. package/portal/jsonTypes.d.ts +182 -0
  778. package/portal/support/resourceUtils.d.ts +56 -0
  779. package/rasterRenderers.d.ts +105 -16
  780. package/rasterRenderers.js +1 -1
  781. package/renderers/ClassBreaksRenderer.d.ts +441 -3
  782. package/renderers/DictionaryRenderer.d.ts +157 -3
  783. package/renderers/DotDensityRenderer.d.ts +379 -3
  784. package/renderers/DotDensityRenderer.js +1 -1
  785. package/renderers/FlowRenderer.d.ts +339 -3
  786. package/renderers/HeatmapRenderer.d.ts +319 -3
  787. package/renderers/PieChartRenderer.d.ts +339 -3
  788. package/renderers/PointCloudClassBreaksRenderer.d.ts +75 -3
  789. package/renderers/PointCloudRGBRenderer.d.ts +28 -3
  790. package/renderers/PointCloudRenderer.d.ts +90 -3
  791. package/renderers/PointCloudStretchRenderer.d.ts +78 -3
  792. package/renderers/PointCloudUniqueValueRenderer.d.ts +79 -3
  793. package/renderers/RasterColormapRenderer.d.ts +77 -3
  794. package/renderers/RasterShadedReliefRenderer.d.ts +110 -3
  795. package/renderers/RasterStretchRenderer.d.ts +183 -3
  796. package/renderers/Renderer.d.ts +121 -3
  797. package/renderers/SimpleRenderer.d.ts +159 -3
  798. package/renderers/UniqueValueRenderer.d.ts +737 -3
  799. package/renderers/VectorFieldRenderer.d.ts +203 -3
  800. package/renderers/interfaces.d.ts +78 -0
  801. package/renderers/mixins/VisualVariablesMixin.d.ts +166 -3
  802. package/renderers/support/AttributeColorInfo.d.ts +79 -3
  803. package/renderers/support/AuthoringInfo.d.ts +195 -3
  804. package/renderers/support/AuthoringInfoClassBreakInfo.d.ts +20 -0
  805. package/renderers/support/AuthoringInfoFieldInfo.d.ts +32 -0
  806. package/renderers/support/AuthoringInfoVisualVariable.d.ts +150 -3
  807. package/renderers/support/ClassBreakInfo.d.ts +79 -3
  808. package/renderers/support/ColormapInfo.d.ts +31 -3
  809. package/renderers/support/DotDensityLegendOptions.d.ts +11 -0
  810. package/renderers/support/HeatmapColorStop.d.ts +33 -3
  811. package/renderers/support/HeatmapLegendOptions.d.ts +24 -0
  812. package/renderers/support/OthersCategory.d.ts +46 -0
  813. package/renderers/support/RasterPresetRenderer.d.ts +47 -3
  814. package/renderers/support/RendererLegendOptions.d.ts +21 -0
  815. package/renderers/support/UniqueValue.d.ts +47 -3
  816. package/renderers/support/UniqueValueClass.d.ts +164 -3
  817. package/renderers/support/UniqueValueGroup.d.ts +112 -3
  818. package/renderers/support/UniqueValueInfo.d.ts +69 -3
  819. package/renderers/support/colorRampUtils.d.ts +4 -0
  820. package/renderers/support/interfaces.d.ts +2 -0
  821. package/renderers/support/jsonUtils.d.ts +15 -2
  822. package/renderers/support/pointCloud/ColorClassBreakInfo.d.ts +34 -0
  823. package/renderers/support/pointCloud/ColorModulation.d.ts +23 -0
  824. package/renderers/support/pointCloud/ColorUniqueValueInfo.d.ts +21 -0
  825. package/renderers/support/pointCloud/PointSizeAlgorithm.d.ts +3 -0
  826. package/renderers/support/pointCloud/PointSizeFixedSizeAlgorithm.d.ts +17 -0
  827. package/renderers/support/pointCloud/PointSizeSplatAlgorithm.d.ts +15 -0
  828. package/renderers/support/pointCloudTypeUtils.d.ts +6 -0
  829. package/renderers/support/rasterRendererHelper.d.ts +37 -0
  830. package/renderers/support/rasterTypeUtils.d.ts +9 -0
  831. package/renderers/support/typeUtils.d.ts +11 -0
  832. package/renderers/support/utils.d.ts +37 -3
  833. package/renderers/visualVariables/ColorVariable.d.ts +92 -3
  834. package/renderers/visualVariables/OpacityVariable.d.ts +78 -3
  835. package/renderers/visualVariables/RotationVariable.d.ts +83 -3
  836. package/renderers/visualVariables/SizeVariable.d.ts +393 -3
  837. package/renderers/visualVariables/VisualVariable.d.ts +60 -3
  838. package/renderers/visualVariables/support/ColorSizeStop.d.ts +47 -3
  839. package/renderers/visualVariables/support/ColorStop.d.ts +39 -3
  840. package/renderers/visualVariables/support/OpacityStop.d.ts +31 -3
  841. package/renderers/visualVariables/support/SizeStop.d.ts +87 -3
  842. package/renderers/visualVariables/support/SizeVariableLegendOptions.d.ts +12 -0
  843. package/renderers/visualVariables/support/VisualVariableLegendOptions.d.ts +16 -0
  844. package/renderers.d.ts +120 -18
  845. package/renderers.js +1 -1
  846. package/request/interfaces.d.ts +363 -0
  847. package/request.d.ts +10 -3
  848. package/rest/closestFacility.d.ts +16 -2
  849. package/rest/featureService/FeatureService.d.ts +150 -3
  850. package/rest/featureService/interfaces.d.ts +391 -0
  851. package/rest/featureService/utils.d.ts +18 -2
  852. package/rest/find.d.ts +30 -2
  853. package/rest/geometryService/cut.d.ts +7 -0
  854. package/rest/geometryService/fromGeoCoordinateString.d.ts +28 -0
  855. package/rest/geometryService/toGeoCoordinateString.d.ts +25 -0
  856. package/rest/geometryService.d.ts +506 -23
  857. package/rest/geoprocessor/GPOptions.d.ts +71 -3
  858. package/rest/geoprocessor.d.ts +89 -3
  859. package/rest/identify.d.ts +19 -2
  860. package/rest/imageService.d.ts +348 -21
  861. package/rest/interfaces.d.ts +85 -0
  862. package/rest/knowledgeGraph/DataModel.d.ts +305 -3
  863. package/rest/knowledgeGraph/Entity.d.ts +83 -3
  864. package/rest/knowledgeGraph/EntityType.d.ts +82 -3
  865. package/rest/knowledgeGraph/FieldIndex.d.ts +45 -3
  866. package/rest/knowledgeGraph/GraphAddFieldIndexResult.d.ts +12 -3
  867. package/rest/knowledgeGraph/GraphAddNamedTypesResult.d.ts +30 -3
  868. package/rest/knowledgeGraph/GraphAddPropertyResult.d.ts +12 -3
  869. package/rest/knowledgeGraph/GraphAnyValue.d.ts +5 -0
  870. package/rest/knowledgeGraph/GraphApplyEdits.d.ts +273 -3
  871. package/rest/knowledgeGraph/GraphApplyEditsResult.d.ts +321 -3
  872. package/rest/knowledgeGraph/GraphDataModelOperationResult.d.ts +34 -3
  873. package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.d.ts +13 -3
  874. package/rest/knowledgeGraph/GraphDeleteFieldIndexResult.d.ts +12 -3
  875. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.d.ts +14 -3
  876. package/rest/knowledgeGraph/GraphDeletePropertyResult.d.ts +12 -3
  877. package/rest/knowledgeGraph/GraphNamedObject.d.ts +23 -3
  878. package/rest/knowledgeGraph/GraphObject.d.ts +91 -3
  879. package/rest/knowledgeGraph/GraphObjectType.d.ts +105 -3
  880. package/rest/knowledgeGraph/GraphProperty.d.ts +199 -3
  881. package/rest/knowledgeGraph/GraphQuery.d.ts +44 -3
  882. package/rest/knowledgeGraph/GraphQueryResult.d.ts +75 -3
  883. package/rest/knowledgeGraph/GraphQueryResultHeader.d.ts +12 -3
  884. package/rest/knowledgeGraph/GraphQueryStreaming.d.ts +391 -3
  885. package/rest/knowledgeGraph/GraphQueryStreamingResult.d.ts +177 -3
  886. package/rest/knowledgeGraph/GraphSearch.d.ts +92 -3
  887. package/rest/knowledgeGraph/GraphSearchStreaming.d.ts +117 -3
  888. package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.d.ts +12 -3
  889. package/rest/knowledgeGraph/GraphUpdatePropertyResult.d.ts +12 -3
  890. package/rest/knowledgeGraph/GraphUpdateSearchIndexResult.d.ts +12 -3
  891. package/rest/knowledgeGraph/InputQuantizationParameters.d.ts +61 -3
  892. package/rest/knowledgeGraph/KnowledgeGraph.d.ts +178 -3
  893. package/rest/knowledgeGraph/OutputQuantizationParameters.d.ts +85 -3
  894. package/rest/knowledgeGraph/Path.d.ts +116 -3
  895. package/rest/knowledgeGraph/Relationship.d.ts +57 -3
  896. package/rest/knowledgeGraph/RelationshipType.d.ts +41 -3
  897. package/rest/knowledgeGraph/SearchIndex.d.ts +76 -3
  898. package/rest/knowledgeGraph/ServiceDefinition.d.ts +251 -3
  899. package/rest/knowledgeGraph/SourceTypeValueBehavior.d.ts +18 -3
  900. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsConfiguration.d.ts +176 -3
  901. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsEntity.d.ts +28 -3
  902. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsPathFilter.d.ts +52 -3
  903. package/rest/knowledgeGraph/toolService/findPaths/CIMFilteredFindPathsResultJSON.d.ts +118 -0
  904. package/rest/knowledgeGraph/toolService/findPaths/CIMKGTraversalDirection.d.ts +31 -3
  905. package/rest/knowledgeGraph/toolService/findPaths/FindPathsToolSettings.d.ts +22 -3
  906. package/rest/knowledgeGraph/wasmInterface/KnowledgeWasmInterface.d.ts +3 -0
  907. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.d.ts +20 -0
  908. package/rest/knowledgeGraphService.d.ts +981 -26
  909. package/rest/lastMileDelivery/interfaces.d.ts +10 -0
  910. package/rest/lastMileDelivery.d.ts +133 -10
  911. package/rest/locator.d.ts +50 -5
  912. package/rest/networkService.d.ts +12 -2
  913. package/rest/networks/circuits/support/CircuitTraceResult.d.ts +41 -3
  914. package/rest/networks/circuits/support/CircuitVerifyResult.d.ts +22 -3
  915. package/rest/networks/circuits/support/ExportCircuitsParameters.d.ts +15 -0
  916. package/rest/networks/circuits/support/QueryCircuitsParameters.d.ts +23 -0
  917. package/rest/networks/queryAssociations.d.ts +12 -2
  918. package/rest/networks/support/AggregatedGeometry.d.ts +31 -3
  919. package/rest/networks/support/Association.d.ts +107 -3
  920. package/rest/networks/support/AssociationGeometriesResult.d.ts +27 -3
  921. package/rest/networks/support/FunctionResult.d.ts +18 -3
  922. package/rest/networks/support/NetworkElement.d.ts +82 -3
  923. package/rest/networks/support/QueryAssociationsParameters.d.ts +101 -3
  924. package/rest/networks/support/QueryAssociationsResult.d.ts +52 -3
  925. package/rest/networks/support/QueryNamedTraceConfigurationsParameters.d.ts +14 -0
  926. package/rest/networks/support/SynthesizeAssociationGeometriesParameters.d.ts +65 -3
  927. package/rest/networks/support/TelecomNetworkElement.d.ts +24 -3
  928. package/rest/networks/support/TraceLocation.d.ts +84 -3
  929. package/rest/networks/support/TraceParameters.d.ts +69 -3
  930. package/rest/networks/support/TraceResult.d.ts +66 -3
  931. package/rest/networks/support/ValidateNetworkTopologyParameters.d.ts +66 -3
  932. package/rest/networks/support/ValidateNetworkTopologyResult.d.ts +72 -3
  933. package/rest/networks/synthesizeAssociationGeometries.d.ts +12 -2
  934. package/rest/networks/trace.d.ts +12 -2
  935. package/rest/networks/unitIdentifiers/support/UnitQueryResult.d.ts +17 -3
  936. package/rest/operations/generalize.d.ts +3 -0
  937. package/rest/places.d.ts +120 -4
  938. package/rest/print.d.ts +61 -3
  939. package/rest/query/support/AttachmentInfo.d.ts +73 -3
  940. package/rest/query.d.ts +329 -13
  941. package/rest/route.d.ts +56 -2
  942. package/rest/serviceArea.d.ts +94 -2
  943. package/rest/support/AddressCandidate.d.ts +47 -3
  944. package/rest/support/AddressToLocationsParameters.d.ts +112 -0
  945. package/rest/support/AddressesToLocationsParameters.d.ts +50 -0
  946. package/rest/support/AlgorithmicColorRamp.d.ts +60 -3
  947. package/rest/support/ArealUnit.d.ts +21 -3
  948. package/rest/support/AreasAndLengthsParameters.d.ts +49 -3
  949. package/rest/support/AttachmentQuery.d.ts +169 -3
  950. package/rest/support/AttributeBinsFeatureSet.d.ts +28 -3
  951. package/rest/support/AttributeBinsGrouping.d.ts +34 -3
  952. package/rest/support/AttributeBinsQuery.d.ts +161 -3
  953. package/rest/support/AutoIntervalBinParameters.d.ts +47 -3
  954. package/rest/support/BaseImageMeasureParameters.d.ts +45 -3
  955. package/rest/support/BaseImageMeasureResult.d.ts +15 -3
  956. package/rest/support/BaseImageMeasureResultValue.d.ts +19 -0
  957. package/rest/support/BinParametersBase.d.ts +193 -3
  958. package/rest/support/BufferParameters.d.ts +91 -3
  959. package/rest/support/CameraInfo.d.ts +19 -3
  960. package/rest/support/CameraInfoMixin.d.ts +23 -0
  961. package/rest/support/ClosestFacilityParameters.d.ts +587 -3
  962. package/rest/support/ClosestFacilitySolveResult.d.ts +243 -3
  963. package/rest/support/ColorRamp.d.ts +24 -3
  964. package/rest/support/DataFile.d.ts +36 -3
  965. package/rest/support/DataLayer.d.ts +97 -3
  966. package/rest/support/DateBinParameters.d.ts +115 -3
  967. package/rest/support/DateBinTimeInterval.d.ts +22 -3
  968. package/rest/support/DateBinUtils.d.ts +2 -0
  969. package/rest/support/DensifyParameters.d.ts +47 -3
  970. package/rest/support/DirectionLine.d.ts +96 -3
  971. package/rest/support/DirectionPoint.d.ts +106 -3
  972. package/rest/support/DirectionsEvent.d.ts +35 -3
  973. package/rest/support/DirectionsFeature.d.ts +110 -3
  974. package/rest/support/DirectionsFeatureSet.d.ts +106 -3
  975. package/rest/support/DirectionsString.d.ts +12 -0
  976. package/rest/support/DistanceParameters.d.ts +63 -3
  977. package/rest/support/FeatureSet.d.ts +92 -3
  978. package/rest/support/FetchPlaceParameters.d.ts +56 -3
  979. package/rest/support/FindImagesParameters.d.ts +49 -3
  980. package/rest/support/FindImagesResult.d.ts +29 -3
  981. package/rest/support/FindParameters.d.ts +68 -3
  982. package/rest/support/FindResult.d.ts +34 -3
  983. package/rest/support/FixedBoundariesBinParameters.d.ts +42 -3
  984. package/rest/support/FixedIntervalBinParameters.d.ts +49 -3
  985. package/rest/support/GPMessage.d.ts +22 -3
  986. package/rest/support/GeneralizeParameters.d.ts +30 -3
  987. package/rest/support/IdentifyParameters.d.ts +259 -3
  988. package/rest/support/IdentifyResult.d.ts +31 -3
  989. package/rest/support/ImageAngleParameters.d.ts +52 -3
  990. package/rest/support/ImageAngleResult.d.ts +34 -3
  991. package/rest/support/ImageAreaParameters.d.ts +51 -3
  992. package/rest/support/ImageAreaResult.d.ts +29 -3
  993. package/rest/support/ImageBoundaryParameters.d.ts +24 -3
  994. package/rest/support/ImageBoundaryResult.d.ts +26 -3
  995. package/rest/support/ImageDistanceParameters.d.ts +53 -3
  996. package/rest/support/ImageDistanceResult.d.ts +40 -3
  997. package/rest/support/ImageGPSInfo.d.ts +47 -3
  998. package/rest/support/ImageGPSInfoParameters.d.ts +58 -3
  999. package/rest/support/ImageGPSInfoResult.d.ts +30 -3
  1000. package/rest/support/ImageHeightParameters.d.ts +51 -3
  1001. package/rest/support/ImageHeightResult.d.ts +23 -3
  1002. package/rest/support/ImageHistogramParameters.d.ts +139 -3
  1003. package/rest/support/ImageIdentifyParameters.d.ts +184 -3
  1004. package/rest/support/ImageIdentifyResult.d.ts +53 -3
  1005. package/rest/support/ImageInspectionInfo.d.ts +54 -3
  1006. package/rest/support/ImageMeasureResultAngleValue.d.ts +12 -0
  1007. package/rest/support/ImageMeasureResultAreaValue.d.ts +12 -0
  1008. package/rest/support/ImageMeasureResultLengthValue.d.ts +12 -0
  1009. package/rest/support/ImageParameters.d.ts +91 -3
  1010. package/rest/support/ImagePixelLocationParameters.d.ts +25 -3
  1011. package/rest/support/ImagePixelLocationResult.d.ts +23 -3
  1012. package/rest/support/ImagePointParameters.d.ts +40 -3
  1013. package/rest/support/ImagePointResult.d.ts +30 -3
  1014. package/rest/support/ImageSample.d.ts +36 -3
  1015. package/rest/support/ImageSampleParameters.d.ts +128 -3
  1016. package/rest/support/ImageSampleResult.d.ts +23 -3
  1017. package/rest/support/ImageToMapMultirayParameters.d.ts +49 -3
  1018. package/rest/support/ImageToMapParameters.d.ts +57 -3
  1019. package/rest/support/ImageUrlParameters.d.ts +26 -3
  1020. package/rest/support/ImageUrlResult.d.ts +17 -3
  1021. package/rest/support/ImageVolume.d.ts +31 -3
  1022. package/rest/support/ImageVolumeParameters.d.ts +71 -3
  1023. package/rest/support/ImageVolumeResult.d.ts +23 -3
  1024. package/rest/support/JobInfo.d.ts +174 -3
  1025. package/rest/support/LastMileDeliveryParameters.d.ts +310 -3
  1026. package/rest/support/LegendLayer.d.ts +21 -3
  1027. package/rest/support/LengthsParameters.d.ts +47 -3
  1028. package/rest/support/LinearUnit.d.ts +20 -3
  1029. package/rest/support/LocateSetting.d.ts +23 -3
  1030. package/rest/support/LocateSettingBase.d.ts +37 -3
  1031. package/rest/support/LocateSettingSource.d.ts +24 -3
  1032. package/rest/support/LocateSettings.d.ts +31 -3
  1033. package/rest/support/LocateSettingsOverrides.d.ts +41 -3
  1034. package/rest/support/LocationToAddressParameters.d.ts +52 -0
  1035. package/rest/support/MapToImageParameters.d.ts +43 -3
  1036. package/rest/support/MeasureAreaFromImageResult.d.ts +34 -3
  1037. package/rest/support/MeasureFromImageParameters.d.ts +31 -3
  1038. package/rest/support/MeasureLengthFromImageResult.d.ts +25 -3
  1039. package/rest/support/MultipartColorRamp.d.ts +43 -3
  1040. package/rest/support/NAMessage.d.ts +25 -3
  1041. package/rest/support/NetworkAttribute.d.ts +9 -0
  1042. package/rest/support/NetworkFeatureSet.d.ts +17 -3
  1043. package/rest/support/NetworkServiceDescription.d.ts +14 -0
  1044. package/rest/support/NetworkUrl.d.ts +20 -3
  1045. package/rest/support/NormalizationBinParametersMixin.d.ts +57 -3
  1046. package/rest/support/OffsetParameters.d.ts +40 -3
  1047. package/rest/support/ParameterValue.d.ts +67 -3
  1048. package/rest/support/PlaceResult.d.ts +119 -3
  1049. package/rest/support/PlacesParameters.d.ts +46 -3
  1050. package/rest/support/PlacesQueryParameters.d.ts +252 -3
  1051. package/rest/support/PlacesQueryResult.d.ts +76 -3
  1052. package/rest/support/PointBarrier.d.ts +78 -3
  1053. package/rest/support/PolygonBarrier.d.ts +67 -3
  1054. package/rest/support/PolylineBarrier.d.ts +81 -3
  1055. package/rest/support/PrintParameters.d.ts +31 -3
  1056. package/rest/support/PrintTemplate.d.ts +468 -3
  1057. package/rest/support/ProjectParameters.d.ts +56 -3
  1058. package/rest/support/QuantizationParameters.d.ts +47 -0
  1059. package/rest/support/Query.d.ts +748 -3
  1060. package/rest/support/QueryMixin.d.ts +204 -3
  1061. package/rest/support/RasterData.d.ts +58 -3
  1062. package/rest/support/RelationParameters.d.ts +53 -3
  1063. package/rest/support/RelationshipQuery.d.ts +147 -3
  1064. package/rest/support/RouteInfo.d.ts +117 -3
  1065. package/rest/support/RouteParameters.d.ts +644 -3
  1066. package/rest/support/RouteResult.d.ts +183 -3
  1067. package/rest/support/RouteSolveResult.d.ts +83 -3
  1068. package/rest/support/ServiceAreaParameters.d.ts +525 -3
  1069. package/rest/support/ServiceAreaSolveResult.d.ts +123 -3
  1070. package/rest/support/StatisticDefinition.d.ts +209 -3
  1071. package/rest/support/Stop.d.ts +166 -3
  1072. package/rest/support/SuggestLocationsParameters.d.ts +32 -0
  1073. package/rest/support/SuggestionCandidate.d.ts +17 -0
  1074. package/rest/support/TopFeaturesQuery.d.ts +351 -3
  1075. package/rest/support/TopFilter.d.ts +79 -3
  1076. package/rest/support/TravelMode.d.ts +155 -3
  1077. package/rest/support/TrimExtendParameters.d.ts +53 -3
  1078. package/rest/support/colorRamps.d.ts +6 -0
  1079. package/rest/support/fileFormat.d.ts +4 -0
  1080. package/rest/support/interfaces.d.ts +87 -0
  1081. package/rest/support/layoutTemplate.d.ts +2 -0
  1082. package/rest/support/reportTemplate.d.ts +2 -0
  1083. package/rest/symbolService.d.ts +59 -2
  1084. package/rest/versionManagement/gdbVersion/support/AlterVersionParameters.d.ts +15 -0
  1085. package/rest/versionManagement/gdbVersion/support/PostResult.d.ts +18 -0
  1086. package/rest/versionManagement/gdbVersion/support/ReconcileParameters.d.ts +22 -0
  1087. package/rest/versionManagement/gdbVersion/support/ReconcileResult.d.ts +30 -0
  1088. package/rest/versionManagement/support/CreateVersionParameters.d.ts +17 -0
  1089. package/rest/versionManagement/support/GetVersionInfosParameters.d.ts +14 -0
  1090. package/smartMapping/heuristics/binLevel.d.ts +18 -3
  1091. package/smartMapping/heuristics/interfaces.d.ts +101 -0
  1092. package/smartMapping/heuristics/scaleRange.d.ts +21 -3
  1093. package/smartMapping/heuristics/sizeRange.d.ts +32 -3
  1094. package/smartMapping/labels/bins.d.ts +66 -2
  1095. package/smartMapping/labels/clusters.d.ts +88 -2
  1096. package/smartMapping/popup/clusters.d.ts +39 -2
  1097. package/smartMapping/popup/interfaces.d.ts +25 -0
  1098. package/smartMapping/popup/support/utils.d.ts +13 -0
  1099. package/smartMapping/popup/templates.d.ts +36 -2
  1100. package/smartMapping/raster/renderers/classBreaks.d.ts +35 -2
  1101. package/smartMapping/raster/renderers/colormap.d.ts +22 -2
  1102. package/smartMapping/raster/renderers/flow.d.ts +145 -2
  1103. package/smartMapping/raster/renderers/interfaces.d.ts +26 -0
  1104. package/smartMapping/raster/renderers/rgb.d.ts +65 -2
  1105. package/smartMapping/raster/renderers/shadedRelief.d.ts +40 -2
  1106. package/smartMapping/raster/renderers/stretch.d.ts +60 -2
  1107. package/smartMapping/raster/renderers/uniqueValue.d.ts +44 -2
  1108. package/smartMapping/raster/renderers/vectorField.d.ts +46 -2
  1109. package/smartMapping/raster/support/adapters/interfaces.d.ts +5 -0
  1110. package/smartMapping/raster/support/colorRamps.d.ts +102 -6
  1111. package/smartMapping/raster/support/utils.d.ts +44 -3
  1112. package/smartMapping/renderers/color.d.ts +1039 -8
  1113. package/smartMapping/renderers/dotDensity.d.ts +161 -2
  1114. package/smartMapping/renderers/heatmap.d.ts +177 -3
  1115. package/smartMapping/renderers/location.d.ts +143 -2
  1116. package/smartMapping/renderers/opacity.d.ts +183 -2
  1117. package/smartMapping/renderers/pieChart.d.ts +238 -3
  1118. package/smartMapping/renderers/predominance.d.ts +263 -2
  1119. package/smartMapping/renderers/relationship.d.ts +328 -3
  1120. package/smartMapping/renderers/size.d.ts +986 -8
  1121. package/smartMapping/renderers/support/rendererUtils.d.ts +48 -2
  1122. package/smartMapping/renderers/support/spikeUtils.d.ts +38 -3
  1123. package/smartMapping/renderers/type.d.ts +371 -3
  1124. package/smartMapping/renderers/univariateColorSize.d.ts +443 -3
  1125. package/smartMapping/statistics/classBreaks.d.ts +21 -3
  1126. package/smartMapping/statistics/heatmapStatistics.d.ts +17 -3
  1127. package/smartMapping/statistics/histogram.d.ts +31 -3
  1128. package/smartMapping/statistics/interfaces.d.ts +571 -0
  1129. package/smartMapping/statistics/predominantCategories.d.ts +17 -3
  1130. package/smartMapping/statistics/summaryStatistics.d.ts +27 -3
  1131. package/smartMapping/statistics/summaryStatisticsForAge.d.ts +19 -3
  1132. package/smartMapping/statistics/support/ageUtils.d.ts +52 -2
  1133. package/smartMapping/statistics/support/predominanceUtils.d.ts +90 -2
  1134. package/smartMapping/statistics/types.d.ts +32 -3
  1135. package/smartMapping/statistics/uniqueValues.d.ts +25 -3
  1136. package/smartMapping/support/adapters/interfaces.d.ts +18 -0
  1137. package/smartMapping/support/binningUtils.d.ts +11 -0
  1138. package/smartMapping/support/clusterUtils.d.ts +11 -0
  1139. package/smartMapping/support/utils.d.ts +4 -0
  1140. package/smartMapping/symbology/color.d.ts +184 -9
  1141. package/smartMapping/symbology/dotDensity.d.ts +107 -5
  1142. package/smartMapping/symbology/flow.d.ts +128 -6
  1143. package/smartMapping/symbology/heatmap.d.ts +129 -6
  1144. package/smartMapping/symbology/interfaces.d.ts +859 -0
  1145. package/smartMapping/symbology/location.d.ts +74 -4
  1146. package/smartMapping/symbology/pieChart.d.ts +114 -6
  1147. package/smartMapping/symbology/predominance.d.ts +136 -6
  1148. package/smartMapping/symbology/relationship.d.ts +135 -6
  1149. package/smartMapping/symbology/size.d.ts +73 -4
  1150. package/smartMapping/symbology/support/colorRamps.d.ts +84 -5
  1151. package/smartMapping/symbology/type.d.ts +141 -6
  1152. package/statistics/interfaces.d.ts +13 -0
  1153. package/support/BasemapStyle.d.ts +126 -3
  1154. package/support/LayersMixin.d.ts +244 -3
  1155. package/support/MapFloorInfo.d.ts +38 -3
  1156. package/support/TablesMixin.d.ts +297 -3
  1157. package/support/actions/ActionBase.d.ts +88 -3
  1158. package/support/actions/ActionButton.d.ts +37 -3
  1159. package/support/actions/ActionToggle.d.ts +33 -3
  1160. package/support/modeUtils.d.ts +2 -0
  1161. package/support/popupUtils.d.ts +257 -5
  1162. package/support/revision.js +1 -1
  1163. package/support/timeUtils.d.ts +64 -3
  1164. package/symbols/CIMSymbol.d.ts +280 -3
  1165. package/symbols/ExtrudeSymbol3DLayer.d.ts +191 -3
  1166. package/symbols/FillSymbol.d.ts +55 -3
  1167. package/symbols/FillSymbol3DLayer.d.ts +267 -3
  1168. package/symbols/Font.d.ts +305 -3
  1169. package/symbols/IconSymbol3DLayer.d.ts +291 -3
  1170. package/symbols/LabelSymbol3D.d.ts +173 -3
  1171. package/symbols/LineStyleMarker3D.d.ts +81 -3
  1172. package/symbols/LineSymbol.d.ts +57 -3
  1173. package/symbols/LineSymbol3D.d.ts +76 -3
  1174. package/symbols/LineSymbol3DLayer.d.ts +288 -3
  1175. package/symbols/LineSymbolMarker.d.ts +76 -3
  1176. package/symbols/MarkerSymbol.d.ts +101 -3
  1177. package/symbols/MeshSymbol3D.d.ts +81 -3
  1178. package/symbols/ObjectSymbol3DLayer.d.ts +312 -3
  1179. package/symbols/PathSymbol3DLayer.d.ts +301 -3
  1180. package/symbols/PictureFillSymbol.d.ts +195 -3
  1181. package/symbols/PictureMarkerSymbol.d.ts +166 -3
  1182. package/symbols/PointSymbol3D.d.ts +174 -3
  1183. package/symbols/PolygonSymbol3D.d.ts +105 -3
  1184. package/symbols/SimpleFillSymbol.d.ts +159 -3
  1185. package/symbols/SimpleLineSymbol.d.ts +184 -3
  1186. package/symbols/SimpleMarkerSymbol.d.ts +259 -3
  1187. package/symbols/Symbol.d.ts +118 -3
  1188. package/symbols/Symbol3D.d.ts +88 -3
  1189. package/symbols/Symbol3DLayer.d.ts +68 -3
  1190. package/symbols/TextSymbol.d.ts +553 -3
  1191. package/symbols/TextSymbol3DLayer.d.ts +250 -3
  1192. package/symbols/WaterSymbol3DLayer.d.ts +128 -3
  1193. package/symbols/WebStyleSymbol.d.ts +174 -3
  1194. package/symbols/callouts/Callout3D.d.ts +29 -3
  1195. package/symbols/callouts/LineCallout3D.d.ts +111 -3
  1196. package/symbols/callouts/LineCallout3DBorder.d.ts +26 -0
  1197. package/symbols/cim/CIMTypes.d.ts +2181 -0
  1198. package/symbols/cim/enums.d.ts +50 -0
  1199. package/symbols/edges/Edges3D.d.ts +70 -3
  1200. package/symbols/edges/SketchEdges3D.d.ts +43 -3
  1201. package/symbols/edges/SolidEdges3D.d.ts +44 -3
  1202. package/symbols/interfaces.d.ts +26 -0
  1203. package/symbols/patterns/LinePattern3D.d.ts +5 -0
  1204. package/symbols/patterns/LineStylePattern3D.d.ts +61 -3
  1205. package/symbols/patterns/Pattern3D.d.ts +5 -0
  1206. package/symbols/patterns/StylePattern3D.d.ts +57 -3
  1207. package/symbols/support/ElevationInfo.d.ts +68 -3
  1208. package/symbols/support/FeatureExpressionInfo.d.ts +20 -3
  1209. package/symbols/support/IconSymbol3DLayerResource.d.ts +28 -0
  1210. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +31 -0
  1211. package/symbols/support/OccludedVisibility.d.ts +2 -0
  1212. package/symbols/support/StyleOrigin.d.ts +27 -3
  1213. package/symbols/support/Symbol3DAnchorPosition2D.d.ts +18 -0
  1214. package/symbols/support/Symbol3DAnchorPosition3D.d.ts +24 -0
  1215. package/symbols/support/Symbol3DFillMaterial.d.ts +18 -0
  1216. package/symbols/support/Symbol3DHalo.d.ts +29 -0
  1217. package/symbols/support/Symbol3DIconOutline.d.ts +33 -0
  1218. package/symbols/support/Symbol3DMaterial.d.ts +22 -0
  1219. package/symbols/support/Symbol3DOutline.d.ts +47 -0
  1220. package/symbols/support/Symbol3DTextBackground.d.ts +16 -0
  1221. package/symbols/support/Symbol3DVerticalOffset.d.ts +55 -3
  1222. package/symbols/support/cimConversionUtils.d.ts +19 -2
  1223. package/symbols/support/cimSymbolUtils.d.ts +84 -8
  1224. package/symbols/support/interfaces.d.ts +65 -0
  1225. package/symbols/support/jsonUtils.d.ts +33 -2
  1226. package/symbols/support/materialUtils.d.ts +2 -0
  1227. package/symbols/support/symbolUtils.d.ts +243 -9
  1228. package/symbols/support/textUtils.d.ts +10 -0
  1229. package/symbols/support/typeUtils.d.ts +86 -0
  1230. package/symbols/support/webStyleAcceptedFormats.d.ts +2 -0
  1231. package/symbols.d.ts +380 -53
  1232. package/symbols.js +1 -1
  1233. package/tables/AttributeTableTemplate.d.ts +97 -3
  1234. package/tables/elements/AttributeTableAttachmentElement.d.ts +38 -3
  1235. package/tables/elements/AttributeTableElement.d.ts +37 -3
  1236. package/tables/elements/AttributeTableFieldElement.d.ts +35 -3
  1237. package/tables/elements/AttributeTableGroupElement.d.ts +52 -3
  1238. package/tables/elements/AttributeTableRelationshipElement.d.ts +26 -3
  1239. package/tables/elements.d.ts +69 -11
  1240. package/tables/support/FieldOrder.d.ts +13 -0
  1241. package/tables/support/tablesUtils.d.ts +5 -0
  1242. package/time/TimeExtent.d.ts +121 -3
  1243. package/time/TimeInterval.d.ts +46 -3
  1244. package/time/interfaces.d.ts +8 -0
  1245. package/unionTypes.d.ts +60 -18
  1246. package/versionManagement/VersionManagementService.d.ts +490 -3
  1247. package/versionManagement/VersionManager.d.ts +177 -3
  1248. package/versionManagement/VersioningState.d.ts +189 -3
  1249. package/versionManagement/support/jsonTypes.d.ts +114 -0
  1250. package/versionManagement/support/type.d.ts +4 -0
  1251. package/versionManagement/utils.d.ts +40 -3
  1252. package/versionManagement/versionAdapters/interfaces.d.ts +21 -0
  1253. package/versionManagement/versionAdapters/utils.d.ts +33 -3
  1254. package/views/2d/MapViewConstraints.d.ts +76 -0
  1255. package/views/2d/ViewState.d.ts +116 -3
  1256. package/views/2d/ViewStateManager.d.ts +2 -0
  1257. package/views/2d/analysis/AnalysisView2D.d.ts +5 -0
  1258. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +76 -3
  1259. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +76 -3
  1260. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +153 -3
  1261. package/views/2d/analysis/interfaces.d.ts +5 -0
  1262. package/views/2d/constraints/GeometryConstraint.d.ts +4 -0
  1263. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  1264. package/views/2d/interfaces.d.ts +67 -0
  1265. package/views/2d/layers/BaseLayerView2D.d.ts +271 -3
  1266. package/views/2d/layers/BaseLayerViewGL2D.d.ts +438 -3
  1267. package/views/2d/layers/LayerView2D.d.ts +6 -0
  1268. package/views/2d/layers/features/FeaturePipelineWorkerProxy.d.ts +32 -0
  1269. package/views/2d/layers/support/MediaLayerInteractionOptions.d.ts +2 -0
  1270. package/views/2d/layers/support/clusterUtils.d.ts +6 -0
  1271. package/views/2d/layers/support/interfaces.d.ts +86 -0
  1272. package/views/3d/analysis/AnalysisView3D.d.ts +5 -0
  1273. package/views/3d/analysis/AreaMeasurementAnalysisView3D.d.ts +104 -3
  1274. package/views/3d/analysis/Dimension/types.d.ts +6 -2
  1275. package/views/3d/analysis/DimensionAnalysisView3D.d.ts +151 -3
  1276. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +26 -3
  1277. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.d.ts +106 -3
  1278. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +154 -3
  1279. package/views/3d/analysis/LineOfSight/types.d.ts +1 -2
  1280. package/views/3d/analysis/LineOfSightAnalysisResult.d.ts +28 -3
  1281. package/views/3d/analysis/LineOfSightAnalysisView3D.d.ts +123 -3
  1282. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +5 -0
  1283. package/views/3d/analysis/ShadowCastAnalysisView3D.d.ts +69 -3
  1284. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  1285. package/views/3d/analysis/Slice/types.d.ts +6 -2
  1286. package/views/3d/analysis/SliceAnalysisView3D.d.ts +119 -3
  1287. package/views/3d/analysis/Viewshed/types.d.ts +6 -2
  1288. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +129 -3
  1289. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementError.d.ts +36 -3
  1290. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementResult.d.ts +35 -3
  1291. package/views/3d/analysis/VolumeMeasurement/types.d.ts +1 -2
  1292. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +95 -3
  1293. package/views/3d/analysis/interfaces.d.ts +27 -0
  1294. package/views/3d/constraints/AltitudeConstraint.d.ts +17 -0
  1295. package/views/3d/constraints/ClipDistanceConstraint.d.ts +23 -0
  1296. package/views/3d/constraints/Constraints.d.ts +39 -0
  1297. package/views/3d/constraints/TiltConstraint.d.ts +25 -0
  1298. package/views/3d/environment/CloudyWeather.d.ts +54 -3
  1299. package/views/3d/environment/FoggyWeather.d.ts +54 -3
  1300. package/views/3d/environment/RainyWeather.d.ts +63 -3
  1301. package/views/3d/environment/SceneViewEnvironment.d.ts +36 -0
  1302. package/views/3d/environment/SnowyWeather.d.ts +69 -3
  1303. package/views/3d/environment/SunLighting.d.ts +70 -3
  1304. package/views/3d/environment/SunnyWeather.d.ts +54 -3
  1305. package/views/3d/environment/VirtualLighting.d.ts +49 -3
  1306. package/views/3d/environment/atmosphereUtils.js +1 -1
  1307. package/views/3d/environment/lightingUtils.d.ts +4 -0
  1308. package/views/3d/environment/weather.d.ts +9 -0
  1309. package/views/3d/glTF/internal/resourceUtils.d.ts +10 -0
  1310. package/views/3d/interactive/visualElements/DrapedVisualElementResources.d.ts +2 -0
  1311. package/views/3d/interfaces.d.ts +69 -0
  1312. package/views/3d/layers/support/MediaLayerInteractionOptions.d.ts +27 -0
  1313. package/views/3d/layers/support/MediaLayerInteractionReshapeOptions.d.ts +15 -0
  1314. package/views/3d/state/NearFarHeuristic.js +1 -1
  1315. package/views/3d/support/LayerPerformanceInfo.d.ts +49 -3
  1316. package/views/3d/support/QualityProfile.d.ts +2 -0
  1317. package/views/3d/support/SceneViewPerformanceInfo.d.ts +56 -3
  1318. package/views/3d/terrain/OverlayManager.js +1 -1
  1319. package/views/3d/webgl/ManagedColorAttachment.d.ts +7 -0
  1320. package/views/3d/webgl/ManagedDepthAttachment.d.ts +7 -0
  1321. package/views/3d/webgl/ManagedFBO.d.ts +94 -3
  1322. package/views/3d/webgl/ManagedFBOAttachment.d.ts +3 -0
  1323. package/views/3d/webgl/ManagedFBOResource.d.ts +15 -0
  1324. package/views/3d/webgl/RenderCamera.d.ts +91 -3
  1325. package/views/3d/webgl/RenderNode.d.ts +318 -3
  1326. package/views/3d/webgl-engine/lighting/SceneLighting.d.ts +33 -0
  1327. package/views/3d/webgl-engine/shaders/ToneMapping.glsl.js +18 -2
  1328. package/views/3d/webgl.d.ts +207 -6
  1329. package/views/BasemapView.d.ts +40 -3
  1330. package/views/BreakpointsOwner.d.ts +132 -3
  1331. package/views/DOMContainer.d.ts +193 -3
  1332. package/views/GroundView.d.ts +73 -3
  1333. package/views/HitTestItem3D.d.ts +20 -0
  1334. package/views/HitTestOptions.d.ts +25 -0
  1335. package/views/IBreakpointsOwner.d.ts +55 -0
  1336. package/views/IObjectId.d.ts +2 -0
  1337. package/views/ISceneView.d.ts +5 -0
  1338. package/views/IView.d.ts +43 -0
  1339. package/views/LinkChartView.d.ts +99 -3
  1340. package/views/Magnifier.d.ts +95 -3
  1341. package/views/MapView.d.ts +498 -3
  1342. package/views/MapViewOrSceneView.d.ts +4 -0
  1343. package/views/PopupView.d.ts +183 -3
  1344. package/views/SceneView.d.ts +1706 -3
  1345. package/views/SceneViewHitTestResult.d.ts +64 -0
  1346. package/views/Theme.d.ts +68 -3
  1347. package/views/VideoView.d.ts +122 -3
  1348. package/views/View.d.ts +768 -3
  1349. package/views/View2D.d.ts +1025 -3
  1350. package/views/ViewAnimation.d.ts +73 -3
  1351. package/views/ViewingMode.d.ts +2 -0
  1352. package/views/Viewport2DBaseMixin.d.ts +6 -0
  1353. package/views/Viewport2DMixin.d.ts +62 -0
  1354. package/views/analysis/AnalysisView.d.ts +12 -0
  1355. package/views/analysis/AreaMeasurement/types.d.ts +37 -3
  1356. package/views/analysis/DistanceMeasurement/types.d.ts +16 -3
  1357. package/views/analysis/ElevationProfile/ElevationProfileError.d.ts +34 -3
  1358. package/views/analysis/ElevationProfile/ElevationProfileResult.d.ts +51 -3
  1359. package/views/analysis/ElevationProfile/interfaces.d.ts +73 -0
  1360. package/views/analysis/ElevationProfile/types.d.ts +21 -4
  1361. package/views/analysis/LengthDimensionResult.d.ts +19 -3
  1362. package/views/analysis/types.d.ts +5 -2
  1363. package/views/animation/easing.d.ts +5 -0
  1364. package/views/draw/Draw.d.ts +146 -3
  1365. package/views/draw/DrawAction.d.ts +107 -3
  1366. package/views/draw/DrawingMode.d.ts +2 -0
  1367. package/views/draw/MultipointDrawAction.d.ts +187 -3
  1368. package/views/draw/PointDrawAction.d.ts +109 -3
  1369. package/views/draw/PolygonDrawAction.d.ts +209 -3
  1370. package/views/draw/PolylineDrawAction.d.ts +205 -3
  1371. package/views/draw/SegmentDrawAction.d.ts +99 -3
  1372. package/views/draw/input/CursorUpdateEvents.d.ts +22 -0
  1373. package/views/draw/input/DrawCompleteEvent.d.ts +21 -0
  1374. package/views/draw/input/VertexAddEvent.d.ts +20 -0
  1375. package/views/draw/input/VertexRemoveEvent.d.ts +20 -0
  1376. package/views/draw/interfaces.d.ts +15 -0
  1377. package/views/draw/support/drawUtils.d.ts +7 -0
  1378. package/views/input/IViewEvents.d.ts +602 -0
  1379. package/views/input/Input.d.ts +18 -3
  1380. package/views/input/gamepad/GamepadInputDevice.d.ts +42 -3
  1381. package/views/input/gamepad/GamepadSettings.d.ts +43 -3
  1382. package/views/input/interfaces.d.ts +2 -0
  1383. package/views/interactive/Tooltip.d.ts +20 -3
  1384. package/views/interactive/sketch/SketchLabelOptions.d.ts +76 -3
  1385. package/views/interactive/sketch/SketchTooltipOptions.d.ts +109 -3
  1386. package/views/interactive/sketch/SketchTooltipVisibleElements.d.ts +85 -0
  1387. package/views/interactive/sketch/SketchValueOptions.d.ts +61 -3
  1388. package/views/interactive/sketch/Units.d.ts +26 -0
  1389. package/views/interactive/sketch/interfaces.d.ts +2 -0
  1390. package/views/interactive/snapping/FeatureSnappingLayerSource.d.ts +65 -3
  1391. package/views/interactive/snapping/SnappingOptions.d.ts +142 -3
  1392. package/views/interactive/tooltip/interfaces.d.ts +2 -0
  1393. package/views/interfaces.d.ts +274 -0
  1394. package/views/layers/BuildingComponentSublayerView.d.ts +306 -3
  1395. package/views/layers/BuildingComponentSublayerView.js +1 -1
  1396. package/views/layers/BuildingSceneLayerView.d.ts +106 -3
  1397. package/views/layers/CSVLayerView.d.ts +17 -3
  1398. package/views/layers/CatalogDynamicGroupLayerView.d.ts +27 -3
  1399. package/views/layers/CatalogFootprintLayerView.d.ts +20 -3
  1400. package/views/layers/CatalogLayerView.d.ts +30 -3
  1401. package/views/layers/DimensionLayerView.d.ts +45 -3
  1402. package/views/layers/DimensionLayerViewMixin.d.ts +98 -0
  1403. package/views/layers/FeatureLayerView.d.ts +27 -3
  1404. package/views/layers/FeatureLayerViewMixin.d.ts +755 -3
  1405. package/views/layers/GeoJSONLayerView.d.ts +17 -3
  1406. package/views/layers/GeoRSSLayerView.d.ts +14 -3
  1407. package/views/layers/GraphicsLayerView.d.ts +39 -3
  1408. package/views/layers/GroupLayerView.d.ts +23 -3
  1409. package/views/layers/HighlightLayerViewMixin.d.ts +147 -3
  1410. package/views/layers/HighlightableLayerView.d.ts +8 -0
  1411. package/views/layers/ImageryLayerView.d.ts +20 -3
  1412. package/views/layers/ImageryLayerViewMixin.d.ts +126 -0
  1413. package/views/layers/ImageryTileLayerView.d.ts +13 -3
  1414. package/views/layers/ImageryTileLayerViewMixin.d.ts +13 -0
  1415. package/views/layers/KMLLayerView.d.ts +26 -3
  1416. package/views/layers/LayerView.d.ts +107 -3
  1417. package/views/layers/LineOfSightLayerView.d.ts +35 -3
  1418. package/views/layers/LineOfSightLayerViewMixin.d.ts +78 -0
  1419. package/views/layers/MediaLayerView.d.ts +35 -3
  1420. package/views/layers/MediaLayerViewMixin.d.ts +101 -0
  1421. package/views/layers/OGCFeatureLayerView.d.ts +21 -3
  1422. package/views/layers/ParquetLayerView.d.ts +15 -3
  1423. package/views/layers/PointCloudLayerView.d.ts +139 -3
  1424. package/views/layers/RefreshableLayerView.d.ts +6 -0
  1425. package/views/layers/SceneLayerView.d.ts +432 -3
  1426. package/views/layers/StreamLayerView.d.ts +466 -3
  1427. package/views/layers/VectorTileLayerView.d.ts +17 -3
  1428. package/views/layers/ViewshedLayerView.d.ts +36 -3
  1429. package/views/layers/ViewshedLayerViewMixin.d.ts +98 -0
  1430. package/views/layers/WFSLayerView.d.ts +17 -3
  1431. package/views/navigation/Navigation.d.ts +136 -3
  1432. package/views/navigation/NavigationActionMap.d.ts +48 -3
  1433. package/views/navigation/gamepad/GamepadSettings.d.ts +64 -3
  1434. package/views/navigation/interfaces.d.ts +5 -0
  1435. package/views/support/AttributionItem.d.ts +12 -3
  1436. package/views/support/HighlightOptions.d.ts +240 -3
  1437. package/views/support/colorUtils.d.ts +39 -3
  1438. package/views/support/interfaces.d.ts +87 -0
  1439. package/views/ui/DefaultUI.d.ts +83 -3
  1440. package/views/ui/Padding.d.ts +11 -0
  1441. package/views/ui/UI.d.ts +229 -3
  1442. package/views/ui/interfaces.d.ts +50 -0
  1443. package/views/viewType.d.ts +2 -0
  1444. package/views/webgl/Texture.d.ts +6 -0
  1445. package/views/webgl/enums.d.ts +38 -0
  1446. package/webdoc/GeotriggersInfo.d.ts +21 -3
  1447. package/webdoc/IPSInfo.d.ts +37 -3
  1448. package/webdoc/Widgets.d.ts +22 -0
  1449. package/webdoc/applicationProperties/Search.d.ts +49 -3
  1450. package/webdoc/applicationProperties/SearchLayer.d.ts +29 -3
  1451. package/webdoc/applicationProperties/SearchLayerField.d.ts +28 -3
  1452. package/webdoc/applicationProperties/SearchTable.d.ts +27 -3
  1453. package/webdoc/applicationProperties/SearchTableField.d.ts +28 -3
  1454. package/webdoc/applicationProperties/Viewing.d.ts +25 -3
  1455. package/webdoc/geotriggersInfo/DeviceLocationFeed.d.ts +30 -3
  1456. package/webdoc/geotriggersInfo/ExpressionInfo.d.ts +28 -3
  1457. package/webdoc/geotriggersInfo/FeatureFenceParameters.d.ts +50 -3
  1458. package/webdoc/geotriggersInfo/FeatureFilter.d.ts +40 -3
  1459. package/webdoc/geotriggersInfo/FeatureLayerSource.d.ts +24 -3
  1460. package/webdoc/geotriggersInfo/FenceGeotrigger.d.ts +90 -3
  1461. package/webdoc/geotriggersInfo/Geotrigger.d.ts +15 -3
  1462. package/webdoc/geotriggersInfo/GeotriggerNotificationOptions.d.ts +40 -3
  1463. package/webdoc/geotriggersInfo/support/typeUtils.d.ts +6 -0
  1464. package/webdoc/ips/AppleIPSProperties.d.ts +19 -3
  1465. package/webdoc/ips/Configuration.d.ts +42 -3
  1466. package/webdoc/ips/GNSSProperties.d.ts +19 -3
  1467. package/webdoc/ips/PathSnappingProperties.d.ts +31 -3
  1468. package/webdoc/ips/PositioningService.d.ts +21 -3
  1469. package/webdoc/ips/SmoothingProperties.d.ts +19 -3
  1470. package/webdoc/support/SlideThumbnail.d.ts +13 -0
  1471. package/webdoc/support/thumbnailUtils.d.ts +7 -0
  1472. package/webdoc/support/webdocSaveUtils.d.ts +19 -0
  1473. package/webdoc/widgets/FloorFilter.d.ts +37 -0
  1474. package/webdoc/widgets/TimeSlider.d.ts +53 -3
  1475. package/webmap/ApplicationProperties.d.ts +21 -3
  1476. package/webmap/Bookmark.d.ts +87 -3
  1477. package/webmap/InitialViewProperties.d.ts +81 -3
  1478. package/webmap/Version.d.ts +3 -0
  1479. package/webmap/background/ColorBackground.d.ts +39 -3
  1480. package/webscene/ApplicationProperties.d.ts +25 -3
  1481. package/webscene/Environment.d.ts +104 -3
  1482. package/webscene/InitialViewProperties.d.ts +91 -3
  1483. package/webscene/Presentation.d.ts +41 -3
  1484. package/webscene/Slide.d.ts +347 -3
  1485. package/webscene/SlideLegendInfo.d.ts +20 -3
  1486. package/webscene/SunLighting.d.ts +52 -3
  1487. package/webscene/Version.d.ts +3 -0
  1488. package/webscene/VirtualLighting.d.ts +37 -3
  1489. package/webscene/background/Background.d.ts +24 -3
  1490. package/webscene/background/ColorBackground.d.ts +83 -3
  1491. package/webscene/support/Description.d.ts +14 -0
  1492. package/webscene/support/FeatureReference.d.ts +46 -3
  1493. package/webscene/support/FeatureReferenceGlobalId.d.ts +26 -3
  1494. package/webscene/support/FeatureReferenceId.d.ts +27 -3
  1495. package/webscene/support/FeatureReferenceObjectId.d.ts +28 -3
  1496. package/webscene/support/LayerReference.d.ts +26 -3
  1497. package/webscene/support/SlideElements.d.ts +63 -3
  1498. package/webscene/support/SlideEnvironment.d.ts +24 -0
  1499. package/webscene/support/SlideGround.d.ts +10 -0
  1500. package/webscene/support/SlidePopupInfo.d.ts +53 -3
  1501. package/webscene/support/SlideVisibleLayer.d.ts +23 -0
  1502. package/webscene/support/Title.d.ts +14 -0
  1503. package/webscene/support/featureReferenceUtils.d.ts +4 -0
  1504. package/webscene/types.d.ts +76 -4
  1505. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +200 -3
  1506. package/widgets/AreaMeasurement2D.d.ts +218 -3
  1507. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.d.ts +180 -3
  1508. package/widgets/AreaMeasurement3D.d.ts +215 -3
  1509. package/widgets/Attachments/AttachmentsViewModel.d.ts +90 -3
  1510. package/widgets/Attachments/interfaces.d.ts +19 -0
  1511. package/widgets/Attachments.d.ts +159 -3
  1512. package/widgets/Attribution/AttributionViewModel.d.ts +38 -3
  1513. package/widgets/Attribution.d.ts +103 -3
  1514. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +79 -3
  1515. package/widgets/BasemapGallery/interfaces.d.ts +69 -0
  1516. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +32 -3
  1517. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +45 -3
  1518. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +95 -3
  1519. package/widgets/BasemapGallery.d.ts +199 -3
  1520. package/widgets/BasemapLayerList/BasemapLayerListViewModel.d.ts +75 -3
  1521. package/widgets/BasemapLayerList/BasemapLayerListVisibleElements.d.ts +76 -0
  1522. package/widgets/BasemapLayerList/interfaces.d.ts +2 -0
  1523. package/widgets/BasemapLayerList.d.ts +431 -3
  1524. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +76 -3
  1525. package/widgets/BasemapToggle.d.ts +153 -3
  1526. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +254 -3
  1527. package/widgets/BatchAttributeForm/VisibleElements.d.ts +13 -0
  1528. package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +33 -3
  1529. package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +41 -3
  1530. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +88 -3
  1531. package/widgets/BatchAttributeForm/inputs/GroupInput.d.ts +36 -3
  1532. package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +37 -3
  1533. package/widgets/BatchAttributeForm/inputs/SingleFeatureInput.d.ts +26 -3
  1534. package/widgets/BatchAttributeForm/inputs/TextElementInput.d.ts +24 -3
  1535. package/widgets/BatchAttributeForm/inputs/interfaces.d.ts +7 -0
  1536. package/widgets/BatchAttributeForm/interfaces.d.ts +53 -0
  1537. package/widgets/BatchAttributeForm.d.ts +190 -3
  1538. package/widgets/Bookmarks/BookmarksViewModel.d.ts +193 -3
  1539. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +66 -0
  1540. package/widgets/Bookmarks/interfaces.d.ts +45 -0
  1541. package/widgets/Bookmarks.d.ts +367 -3
  1542. package/widgets/BuildingExplorer/BuildingExplorerViewModel.d.ts +63 -3
  1543. package/widgets/BuildingExplorer/BuildingLevel.d.ts +17 -3
  1544. package/widgets/BuildingExplorer/BuildingNumericFilterViewModel.d.ts +64 -0
  1545. package/widgets/BuildingExplorer/BuildingPhase.d.ts +21 -3
  1546. package/widgets/BuildingExplorer.d.ts +183 -3
  1547. package/widgets/CatalogLayerList/CatalogLayerListViewModel.d.ts +124 -3
  1548. package/widgets/CatalogLayerList/CatalogLayerListVisibleElements.d.ts +58 -0
  1549. package/widgets/CatalogLayerList/interfaces.d.ts +2 -0
  1550. package/widgets/CatalogLayerList.d.ts +317 -3
  1551. package/widgets/Compass/CompassViewModel.d.ts +63 -3
  1552. package/widgets/Compass.d.ts +130 -3
  1553. package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +198 -3
  1554. package/widgets/CoordinateConversion/support/Conversion.d.ts +68 -3
  1555. package/widgets/CoordinateConversion/support/Format.d.ts +109 -3
  1556. package/widgets/CoordinateConversion.d.ts +322 -3
  1557. package/widgets/Daylight/DaylightViewModel.d.ts +121 -3
  1558. package/widgets/Daylight/VisibleElements.d.ts +46 -0
  1559. package/widgets/Daylight/support/daylightUtils.d.ts +4 -0
  1560. package/widgets/Daylight.d.ts +272 -3
  1561. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.d.ts +187 -3
  1562. package/widgets/DirectLineMeasurement3D.d.ts +230 -3
  1563. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +82 -3
  1564. package/widgets/DirectionalPad/VisibleElements.d.ts +33 -0
  1565. package/widgets/DirectionalPad/constants.d.ts +2 -0
  1566. package/widgets/DirectionalPad/utils.d.ts +11 -0
  1567. package/widgets/DirectionalPad.d.ts +154 -3
  1568. package/widgets/Directions/DirectionsViewModel.d.ts +278 -3
  1569. package/widgets/Directions/DirectionsVisibleElements.d.ts +40 -0
  1570. package/widgets/Directions.d.ts +435 -3
  1571. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +194 -3
  1572. package/widgets/DistanceMeasurement2D.d.ts +218 -3
  1573. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +62 -3
  1574. package/widgets/Editor/CreateFeaturesWorkflowData.d.ts +51 -3
  1575. package/widgets/Editor/EditorViewModel.d.ts +453 -3
  1576. package/widgets/Editor/Edits.d.ts +27 -3
  1577. package/widgets/Editor/MergeFeaturesWorkflow.d.ts +39 -3
  1578. package/widgets/Editor/MergeFeaturesWorkflowData.d.ts +17 -3
  1579. package/widgets/Editor/SplitFeatureWorkflow.d.ts +76 -3
  1580. package/widgets/Editor/SplitFeatureWorkflowData.d.ts +84 -3
  1581. package/widgets/Editor/UpdateFeaturesWorkflow.d.ts +15 -3
  1582. package/widgets/Editor/UpdateFeaturesWorkflowData.d.ts +65 -3
  1583. package/widgets/Editor/UpdateWorkflow.d.ts +37 -3
  1584. package/widgets/Editor/UpdateWorkflowData.d.ts +27 -3
  1585. package/widgets/Editor/VisibleElements.d.ts +99 -0
  1586. package/widgets/Editor/Workflow.d.ts +110 -3
  1587. package/widgets/Editor/interfaces.d.ts +165 -0
  1588. package/widgets/Editor/support/EditorEditingCapabilities.d.ts +27 -0
  1589. package/widgets/Editor/support/EditorItem.d.ts +114 -3
  1590. package/widgets/Editor/support/splitFeatureUtils.d.ts +7 -0
  1591. package/widgets/Editor.d.ts +694 -3
  1592. package/widgets/ElevationProfile/ElevationProfileInteraction.d.ts +13 -0
  1593. package/widgets/ElevationProfile/ElevationProfileLine.d.ts +74 -3
  1594. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +66 -3
  1595. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +72 -3
  1596. package/widgets/ElevationProfile/ElevationProfileLineQuery.d.ts +121 -3
  1597. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +77 -3
  1598. package/widgets/ElevationProfile/ElevationProfileViewModel.d.ts +164 -3
  1599. package/widgets/ElevationProfile/ElevationProfileVisibleElements.d.ts +60 -0
  1600. package/widgets/ElevationProfile/elevationProfileLineTypes.d.ts +6 -0
  1601. package/widgets/ElevationProfile/interfaces.d.ts +103 -0
  1602. package/widgets/ElevationProfile/support/constants.d.ts +14 -0
  1603. package/widgets/ElevationProfile.d.ts +329 -3
  1604. package/widgets/Expand/ExpandViewModel.d.ts +52 -3
  1605. package/widgets/Expand.d.ts +279 -3
  1606. package/widgets/Feature/FeatureViewModel.d.ts +305 -3
  1607. package/widgets/Feature/interfaces.d.ts +115 -0
  1608. package/widgets/Feature/support/FeatureContentMixin.d.ts +6 -0
  1609. package/widgets/Feature/support/arcadeFeatureUtils.d.ts +4 -0
  1610. package/widgets/Feature.d.ts +395 -3
  1611. package/widgets/FeatureForm/EditableInput.d.ts +36 -3
  1612. package/widgets/FeatureForm/FeatureFormViewModel.d.ts +335 -3
  1613. package/widgets/FeatureForm/FieldInput.d.ts +110 -3
  1614. package/widgets/FeatureForm/GroupInput.d.ts +41 -3
  1615. package/widgets/FeatureForm/InputBase.d.ts +8 -3
  1616. package/widgets/FeatureForm/RelationshipInput.d.ts +52 -3
  1617. package/widgets/FeatureForm/TextElementInput.d.ts +49 -3
  1618. package/widgets/FeatureForm/UtilityNetworkAssociationInput.d.ts +35 -3
  1619. package/widgets/FeatureForm/VisibleElements.d.ts +13 -0
  1620. package/widgets/FeatureForm/interfaces.d.ts +18 -0
  1621. package/widgets/FeatureForm.d.ts +303 -3
  1622. package/widgets/FeatureTable/ActionColumn.d.ts +52 -3
  1623. package/widgets/FeatureTable/AttachmentsColumn.d.ts +92 -3
  1624. package/widgets/FeatureTable/ColumnMenuVisibleElements.d.ts +18 -0
  1625. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +1096 -3
  1626. package/widgets/FeatureTable/FieldColumn.d.ts +139 -3
  1627. package/widgets/FeatureTable/Grid/Column.d.ts +225 -3
  1628. package/widgets/FeatureTable/Grid/EditorColumn.d.ts +15 -0
  1629. package/widgets/FeatureTable/Grid/GridViewModel.d.ts +5 -0
  1630. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +32 -3
  1631. package/widgets/FeatureTable/Grid/interfaces.d.ts +57 -0
  1632. package/widgets/FeatureTable/Grid/support/interfaces.d.ts +56 -0
  1633. package/widgets/FeatureTable/RelationshipColumn.d.ts +96 -3
  1634. package/widgets/FeatureTable/TableMenuVisibleElements.d.ts +54 -0
  1635. package/widgets/FeatureTable/VisibleElements.d.ts +81 -0
  1636. package/widgets/FeatureTable/support/AttachmentsColumnTemplate.d.ts +26 -3
  1637. package/widgets/FeatureTable/support/AttachmentsViewOptions.d.ts +73 -3
  1638. package/widgets/FeatureTable/support/ColumnTemplate.d.ts +23 -3
  1639. package/widgets/FeatureTable/support/ColumnTemplateBase.d.ts +221 -3
  1640. package/widgets/FeatureTable/support/EditableColumnTemplateMixin.d.ts +44 -0
  1641. package/widgets/FeatureTable/support/FieldColumnTemplate.d.ts +90 -3
  1642. package/widgets/FeatureTable/support/GroupColumnTemplate.d.ts +114 -3
  1643. package/widgets/FeatureTable/support/RelationshipColumnTemplate.d.ts +28 -3
  1644. package/widgets/FeatureTable/support/TableTemplate.d.ts +153 -3
  1645. package/widgets/FeatureTable/support/interfaces.d.ts +190 -0
  1646. package/widgets/FeatureTable.d.ts +1686 -3
  1647. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +210 -3
  1648. package/widgets/FeatureTemplates/TemplateItem.d.ts +42 -3
  1649. package/widgets/FeatureTemplates/TemplateItemGroup.d.ts +36 -3
  1650. package/widgets/FeatureTemplates/VisibleElements.d.ts +16 -0
  1651. package/widgets/FeatureTemplates/interfaces.d.ts +98 -0
  1652. package/widgets/FeatureTemplates.d.ts +272 -3
  1653. package/widgets/Features/FeaturesViewModel.d.ts +756 -3
  1654. package/widgets/Features/FeaturesVisibleElements.d.ts +72 -0
  1655. package/widgets/Features.d.ts +501 -3
  1656. package/widgets/FloorFilter/FloorFilterViewModel.d.ts +38 -3
  1657. package/widgets/FloorFilter.d.ts +123 -3
  1658. package/widgets/Fullscreen/FullscreenViewModel.d.ts +38 -3
  1659. package/widgets/Fullscreen.d.ts +93 -3
  1660. package/widgets/Histogram/HistogramViewModel.d.ts +98 -3
  1661. package/widgets/Histogram/interfaces.d.ts +33 -0
  1662. package/widgets/Histogram.d.ts +320 -3
  1663. package/widgets/HistogramRangeSlider/HistogramRangeSliderViewModel.d.ts +151 -3
  1664. package/widgets/HistogramRangeSlider/interfaces.d.ts +2 -0
  1665. package/widgets/HistogramRangeSlider.d.ts +442 -3
  1666. package/widgets/Home/HomeViewModel.d.ts +108 -3
  1667. package/widgets/Home.d.ts +182 -3
  1668. package/widgets/LayerList/LayerListViewModel.d.ts +148 -3
  1669. package/widgets/LayerList/LayerListVisibleElements.d.ts +66 -0
  1670. package/widgets/LayerList/ListItem.d.ts +292 -3
  1671. package/widgets/LayerList/ListItemPanel.d.ts +204 -3
  1672. package/widgets/LayerList/interfaces.d.ts +36 -0
  1673. package/widgets/LayerList.d.ts +505 -3
  1674. package/widgets/Legend/LegendViewModel.d.ts +130 -3
  1675. package/widgets/Legend/styles/card/CardView.d.ts +24 -0
  1676. package/widgets/Legend/styles/classic/ClassicView.d.ts +10 -0
  1677. package/widgets/Legend/support/ActiveLayerInfo.d.ts +129 -3
  1678. package/widgets/Legend.d.ts +332 -3
  1679. package/widgets/LineOfSight/LineOfSightTarget.d.ts +47 -3
  1680. package/widgets/LineOfSight/LineOfSightViewModel.d.ts +240 -3
  1681. package/widgets/LineOfSight.d.ts +204 -3
  1682. package/widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel.d.ts +83 -3
  1683. package/widgets/Locate/LocateViewModel.d.ts +124 -3
  1684. package/widgets/Locate.d.ts +248 -3
  1685. package/widgets/Measurement/MeasurementViewModel.d.ts +128 -3
  1686. package/widgets/Measurement/interfaces.d.ts +6 -0
  1687. package/widgets/Measurement.d.ts +258 -3
  1688. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +67 -3
  1689. package/widgets/NavigationToggle.d.ts +107 -3
  1690. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +96 -3
  1691. package/widgets/OrientedImageryViewer/components/Arrow.js +5 -0
  1692. package/widgets/OrientedImageryViewer/components/NavigationNode.js +1 -1
  1693. package/widgets/OrientedImageryViewer/components/NavigationUI360.js +1 -1
  1694. package/widgets/OrientedImageryViewer/components/imageNavigationUtils.js +1 -1
  1695. package/widgets/OrientedImageryViewer/css.js +1 -1
  1696. package/widgets/OrientedImageryViewer/interfaces.d.ts +8 -0
  1697. package/widgets/OrientedImageryViewer.d.ts +170 -3
  1698. package/widgets/Popup/PopupViewModel.d.ts +23 -3
  1699. package/widgets/Popup/PopupVisibleElements.d.ts +62 -0
  1700. package/widgets/Popup/actions.d.ts +4 -0
  1701. package/widgets/Popup/interfaces.d.ts +148 -0
  1702. package/widgets/Popup.d.ts +757 -3
  1703. package/widgets/Print/CustomTemplate.d.ts +113 -3
  1704. package/widgets/Print/FileLink.d.ts +75 -0
  1705. package/widgets/Print/PrintViewModel.d.ts +462 -3
  1706. package/widgets/Print/TemplateOptions.d.ts +218 -3
  1707. package/widgets/Print/interfaces.d.ts +59 -0
  1708. package/widgets/Print.d.ts +415 -3
  1709. package/widgets/ScaleBar/ScaleBarViewModel.d.ts +35 -3
  1710. package/widgets/ScaleBar.d.ts +127 -3
  1711. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +111 -3
  1712. package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +67 -3
  1713. package/widgets/ScaleRangeSlider/interfaces.d.ts +85 -0
  1714. package/widgets/ScaleRangeSlider.d.ts +182 -3
  1715. package/widgets/Search/LayerSearchSource.d.ts +97 -3
  1716. package/widgets/Search/LocatorSearchSource.d.ts +383 -3
  1717. package/widgets/Search/SearchResultRenderer.d.ts +82 -3
  1718. package/widgets/Search/SearchSource.d.ts +204 -3
  1719. package/widgets/Search/SearchViewModel.d.ts +666 -3
  1720. package/widgets/Search/support/interfaces.d.ts +67 -0
  1721. package/widgets/Search/types.d.ts +115 -10
  1722. package/widgets/Search/types.js +1 -1
  1723. package/widgets/Search.d.ts +660 -3
  1724. package/widgets/ShadowCast/DiscreteOptions.d.ts +52 -3
  1725. package/widgets/ShadowCast/DurationMode.d.ts +3 -0
  1726. package/widgets/ShadowCast/DurationOptions.d.ts +45 -3
  1727. package/widgets/ShadowCast/ShadowCastViewModel.d.ts +117 -3
  1728. package/widgets/ShadowCast/ShadowCastVisibleElements.d.ts +81 -0
  1729. package/widgets/ShadowCast/ShadowVisualizationType.d.ts +3 -0
  1730. package/widgets/ShadowCast/ThresholdOptions.d.ts +86 -3
  1731. package/widgets/ShadowCast.d.ts +171 -3
  1732. package/widgets/Sketch/CreateToolVisibilityMap.d.ts +60 -0
  1733. package/widgets/Sketch/SelectionToolVisibilityMap.d.ts +18 -0
  1734. package/widgets/Sketch/SketchViewModel.d.ts +1001 -3
  1735. package/widgets/Sketch/VisibleElements.d.ts +113 -0
  1736. package/widgets/Sketch/support/interfaces.d.ts +559 -0
  1737. package/widgets/Sketch.d.ts +822 -3
  1738. package/widgets/Slice/SliceViewModel.d.ts +194 -3
  1739. package/widgets/Slice.d.ts +205 -3
  1740. package/widgets/Slider/SliderViewModel.d.ts +299 -3
  1741. package/widgets/Slider/interfaces.d.ts +270 -0
  1742. package/widgets/Slider.d.ts +839 -3
  1743. package/widgets/Swipe/SwipeViewModel.d.ts +104 -3
  1744. package/widgets/Swipe/interfaces.d.ts +25 -0
  1745. package/widgets/Swipe.d.ts +177 -3
  1746. package/widgets/TableList/ListItem.d.ts +157 -3
  1747. package/widgets/TableList/ListItemPanel.d.ts +197 -3
  1748. package/widgets/TableList/TableListViewModel.d.ts +155 -3
  1749. package/widgets/TableList/TableListVisibleElements.d.ts +58 -0
  1750. package/widgets/TableList/interfaces.d.ts +22 -0
  1751. package/widgets/TableList.d.ts +348 -3
  1752. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +629 -3
  1753. package/widgets/TimeSlider/interfaces.d.ts +117 -0
  1754. package/widgets/TimeSlider.d.ts +1023 -3
  1755. package/widgets/TimeZoneLabel.d.ts +131 -3
  1756. package/widgets/Track/TrackViewModel.d.ts +124 -3
  1757. package/widgets/Track/interfaces.d.ts +5 -0
  1758. package/widgets/Track.d.ts +276 -3
  1759. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.d.ts +129 -3
  1760. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  1761. package/widgets/UtilityNetworkAssociations/VisibleElements.d.ts +53 -0
  1762. package/widgets/UtilityNetworkAssociations/VisibleElementsSettingsPane.d.ts +36 -0
  1763. package/widgets/UtilityNetworkAssociations.d.ts +225 -3
  1764. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.d.ts +516 -3
  1765. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  1766. package/widgets/UtilityNetworkTrace/support/ResultAreaHandler.d.ts +15 -0
  1767. package/widgets/UtilityNetworkTrace.d.ts +307 -3
  1768. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.d.ts +126 -3
  1769. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
  1770. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +71 -3
  1771. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +1 -1
  1772. package/widgets/UtilityNetworkValidateTopology.d.ts +127 -3
  1773. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +6 -0
  1774. package/widgets/ValuePicker/ValuePickerCollection.d.ts +64 -3
  1775. package/widgets/ValuePicker/ValuePickerCombobox.d.ts +78 -3
  1776. package/widgets/ValuePicker/ValuePickerLabel.d.ts +53 -3
  1777. package/widgets/ValuePicker/ValuePickerSlider.d.ts +194 -3
  1778. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +14 -0
  1779. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +25 -0
  1780. package/widgets/ValuePicker/interfaces.d.ts +57 -0
  1781. package/widgets/ValuePicker.d.ts +630 -3
  1782. package/widgets/VersionManagement/VersionManagementViewModel.d.ts +179 -3
  1783. package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
  1784. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +204 -3
  1785. package/widgets/VideoPlayer.d.ts +118 -3
  1786. package/widgets/Weather/VisibleElements.d.ts +16 -0
  1787. package/widgets/Weather/WeatherViewModel.d.ts +41 -3
  1788. package/widgets/Weather/enums.d.ts +9 -0
  1789. package/widgets/Weather.d.ts +114 -3
  1790. package/widgets/Widget.d.ts +188 -3
  1791. package/widgets/Zoom/ZoomViewModel.d.ts +43 -3
  1792. package/widgets/Zoom.d.ts +100 -3
  1793. package/widgets/interfaces.d.ts +521 -0
  1794. package/widgets/smartMapping/BinaryColorSizeSlider/BinaryColorSizeSliderViewModel.d.ts +14 -3
  1795. package/widgets/smartMapping/BinaryColorSizeSlider.d.ts +331 -3
  1796. package/widgets/smartMapping/ClassedColorSlider/ClassedColorSliderViewModel.d.ts +42 -3
  1797. package/widgets/smartMapping/ClassedColorSlider/interfaces.d.ts +19 -0
  1798. package/widgets/smartMapping/ClassedColorSlider.d.ts +268 -3
  1799. package/widgets/smartMapping/ClassedSizeSlider/ClassedSizeSliderViewModel.d.ts +39 -3
  1800. package/widgets/smartMapping/ClassedSizeSlider/interfaces.d.ts +18 -0
  1801. package/widgets/smartMapping/ClassedSizeSlider.d.ts +273 -3
  1802. package/widgets/smartMapping/ColorSizeSlider/ColorSizeSliderViewModel.d.ts +86 -3
  1803. package/widgets/smartMapping/ColorSizeSlider.d.ts +347 -3
  1804. package/widgets/smartMapping/ColorSlider/ColorSliderViewModel.d.ts +40 -3
  1805. package/widgets/smartMapping/ColorSlider.d.ts +287 -3
  1806. package/widgets/smartMapping/HeatmapSlider/HeatmapSliderViewModel.d.ts +60 -3
  1807. package/widgets/smartMapping/HeatmapSlider.d.ts +170 -3
  1808. package/widgets/smartMapping/OpacitySlider/OpacitySliderViewModel.d.ts +43 -3
  1809. package/widgets/smartMapping/OpacitySlider.d.ts +267 -3
  1810. package/widgets/smartMapping/SizeSlider/SizeSliderViewModel.d.ts +55 -3
  1811. package/widgets/smartMapping/SizeSlider.d.ts +354 -3
  1812. package/widgets/smartMapping/SmartMappingPrimaryHandleSliderViewModel.d.ts +49 -3
  1813. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +309 -3
  1814. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +403 -3
  1815. package/widgets/smartMapping/interfaces.d.ts +13 -0
  1816. package/widgets/smartMapping/support/interfaces.d.ts +66 -0
  1817. package/widgets/smartMapping/support/utils.d.ts +28 -4
  1818. package/widgets/support/AnalysisViewModel.d.ts +5 -0
  1819. package/widgets/support/AnchorElementViewModel.d.ts +3 -0
  1820. package/widgets/support/GeolocationPositioning.d.ts +105 -3
  1821. package/widgets/support/GoTo.d.ts +26 -3
  1822. package/widgets/support/GridControls/GridControlsViewModel.d.ts +163 -3
  1823. package/widgets/support/GridControls/VisibleElements.d.ts +74 -0
  1824. package/widgets/support/GridControls/interfaces.d.ts +2 -0
  1825. package/widgets/support/GridControls.d.ts +153 -3
  1826. package/widgets/support/Heading.d.ts +7 -0
  1827. package/widgets/support/InteractiveToolViewModel.d.ts +4 -0
  1828. package/widgets/support/SnappingControls/SnappingControlsViewModel.d.ts +33 -3
  1829. package/widgets/support/SnappingControls/VisibleElements.d.ts +89 -0
  1830. package/widgets/support/SnappingControls.d.ts +180 -3
  1831. package/widgets/support/forms/formUtils.d.ts +2 -0
  1832. package/widgets/support/forms/interfaces.d.ts +2 -0
  1833. package/widgets/support/goToUtils.d.ts +26 -0
  1834. package/widgets/support/interfaces.d.ts +56 -0
  1835. package/widgets/support/widget.d.ts +160 -18
  1836. package/analysis/ShadowCast/DurationOptions.d.ts +0 -4
  1837. package/analysis/ShadowCast/ThresholdOptions.d.ts +0 -4
  1838. package/analysis/ShadowCast/ThresholdOptions.js +0 -5
  1839. package/analysis/ShadowCast/types.js +0 -5
  1840. package/assets/esri/core/workers/chunks/2c3b65a756439a93b4d6.js +0 -1
  1841. package/assets/esri/core/workers/chunks/45fe2b6cbb957c521291.js +0 -1
  1842. package/assets/esri/core/workers/chunks/7891825d5cdca03d2db0.js +0 -1
  1843. package/assets/esri/core/workers/chunks/99baa5f97131e8689887.js +0 -1019
  1844. package/assets/esri/core/workers/chunks/c9942ca57f542582ab4d.js +0 -1
  1845. package/assets/esri/core/workers/chunks/de3da4d31a7529761565.js +0 -1
  1846. package/assets/esri/core/workers/chunks/e7c08a03772f7fccd949.js +0 -1
  1847. package/smartMapping/statistics/types.js +0 -5
  1848. package/unionTypes.js +0 -5
  1849. package/views/3d/analysis/Dimension/types.js +0 -5
  1850. package/views/3d/analysis/DirectLineMeasurement/types.js +0 -5
  1851. package/views/3d/analysis/LineOfSight/types.js +0 -5
  1852. package/views/3d/analysis/Slice/types.js +0 -5
  1853. package/views/3d/analysis/Viewshed/types.js +0 -5
  1854. package/views/3d/analysis/VolumeMeasurement/types.js +0 -5
  1855. package/views/analysis/AreaMeasurement/types.js +0 -5
  1856. package/views/analysis/DistanceMeasurement/types.js +0 -5
  1857. package/views/analysis/ElevationProfile/types.js +0 -5
  1858. package/views/analysis/types.js +0 -5
  1859. package/webscene/types.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3345,3548,4342,7548,7694],{159:(e,t,r)=>{r.d(t,{A:()=>o});var i,n=r(31635),a=r(69622),s=r(91429),l=r(99157);let o=i=class extends a.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,s.MZ)({type:[l.A],nonNullable:!0})],o.prototype,"steps",void 0),o=i=(0,n.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],o)},4146:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(31635),n=r(11254),a=r(49186),s=r(65529),l=r(4902),o=r(92474),u=r(53966),c=r(74887),d=r(84952),p=r(91429),h=r(5443),y=r(16930),f=r(92602),m=r(79677);let g=0,_=class extends((0,s.Zt)((0,l.s)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(5710)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new a.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new a.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,p.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i.Cg)([(0,p.MZ)({type:h.A})],_.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i.Cg)([(0,p.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:y.A})],_.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],_.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],_.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({type:m.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i.Cg)([(0,p.$K)("esri.layers.Layer")],_)},6797:(e,t,r)=>{r.d(t,{Ui:()=>p});var i=r(69622),n=r(7762),a=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function o(e){return e instanceof n.A?Object.keys(e.items):l(e)?(0,a.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=o(e),n=o(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const a=n.filter(e=>!i.includes(e)),p=i.filter(e=>!n.includes(e)),h=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(a,p).sort(),y=c(e);if(y&&s.has(y)&&h.length)return{type:"complete",oldValue:e,newValue:t};let f;const m=l(e)&&l(t);for(const i of h){const n=u(e,i),a=u(t,i);let s;if((m||"function"!=typeof n&&"function"!=typeof a)&&n!==a&&(null!=n||null!=a)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,a);else if(n instanceof Date&&a instanceof Date){if(n.getTime()===a.getTime())continue;s={type:"complete",oldValue:n,newValue:a}}else s="object"==typeof n&&"object"==typeof a&&c(n)===c(a)?d(n,a):{type:"complete",oldValue:n,newValue:a};null!=s&&(null!=f?f.diff[i]=s:f={type:"partial",diff:{[i]:s}})}}return f}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(37539);function n(e,t,r,n,a,s,l=Math.floor(e.length/3)){const o=(0,i.jd)(t,a);if(null==o)return!1;if(o===i.pO){if(e===n&&r===s)return!0;const t=r+3*l;for(let i=r,a=s;i<t;i++,a++)n[a]=e[i]??0;return!0}const u=r+3*l;for(let t=r,i=s;t<u;t+=3,i+=3)o(e,t,n,i);return!0}},10536:(e,t,r)=>{function i(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=i(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{z:()=>i})},16215:(e,t,r)=>{r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},16494:(e,t,r)=>{r.d(t,{Nd:()=>l,W5:()=>s});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),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"],s=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(a.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17126:(e,t,r)=>{r.d(t,{dw:()=>s,qD:()=>l,qW:()=>o});var i=r(11254),n=r(21325),a=r(10536);function s(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),r.outFields&&!t?.returnCountOnly?r.outFields.includes("*")?r.outFields="*":r.outFields=r.outFields.join(","):delete r.outFields,r.outSR&&(r.outSR=(0,n.YX)(r.outSR)),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function l(e,t,r){const i=await u(e,t,r),n=i.data,a=n.geometryType,s=n.spatialReference,l={};for(const e of n.relatedRecordGroups){const t={fields:void 0,geometryType:a,spatialReference:s,hasZ:!!n.hasZ,hasM:!!n.hasM,features:e.relatedRecords};if(null!=e.objectId)l[e.objectId]=t;else for(const r of Object.keys(e))"relatedRecords"!==r&&(l[e[r]]=t)}return{...i,data:l}}async function o(e,t,r){const i=await u(e,t,r,{returnCountOnly:!0}),n=i.data,a={};for(const e of n.relatedRecordGroups)null!=e.objectId&&(a[e.objectId]=e.count);return{...i,data:a}}async function u(e,t,r={},n){const l=(0,a.z)({...e.query,f:"json",...n,...s(t,n)});return(0,i.A)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...l}})}},17311:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69622),a=r(4576),s=r(60999),l=r(7762),o=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let h=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(9926).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{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(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);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||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,n=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,u=l&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:l}):"";r?.removeHTML&&(d=o.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const n=await e.queryFeatures(i);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const a={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:a,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"requiredFields",null),h=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],h)},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,n=r(31635),a=r(52106),s=r(66552),l=r(25482),o=r(4718),u=r(91429),c=r(16930),d=r(60408),p=r(65864),h=r(50498),y=r(20437),f=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,a.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,p.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const 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,o.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,a=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=a.length;e<t;e++)s?.(a[e].geometry)||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[a,s]}=r;let l=null,o=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;o=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*a+i,e=>n-e*s,l,o);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const a=e[t],s=r.fromJSON(a),l=a.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const o=a.aggregateGeometries,u=s.aggregateGeometries;if(o&&null!=u)for(const e in u){const t=u[e],r=o[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(s)}return n}_quantizePoints(e,t,r){let i,n;const a=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===n||(a.push([e-i,s-n]),i=e,n=s)}else i=t(l[0]),n=r(l[1]),a.push([i,n])}return a.length>0?a: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=>{const i=(0,d.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,a=i.length;e<a;e++){const a=i[e],s=this._quantizePoints(a,t,r);s&&n.push(s)}return n.length>0?((0,d.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const a=(0,d.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=a.length;e<i;e++){const i=a[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}}if(i&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const a=e.points;let s,l;for(let e=0,i=a.length;e<i;e++){const i=a[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[a.A],json:{write:!0}})],_.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],_.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0},29005:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(69540),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:o.read,write:o.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},30235:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(48938),n=r(87449),a=r(11221),s=r(33325),l=r(80609),o=r(4576),u=r(39516),c=r(91075),d=r(68654),p=r(33143),h=r(20437);class y extends a.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerMemory",this._removeGeometry=!1,this._overrideFields=null,this._forceIsTable=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),!0===e.isTable&&(this._forceIsTable=!0),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return s.gO}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}get gdbVersion(){return""}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||this._layer.objectIdField===r||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this._databaseType=0,this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,this.subtypeField=("subtypeField"in this._layer?this._layer.subtypeField:null)??"",this.subtypes="subtypes"in this._layer?this._layer.subtypes:null,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}isTable(){return this._forceIsTable||"isTable"in this._layer&&this._layer.isTable||"table"===this._layer.type||!this._layer.geometryType}async _queryAll(){return(await this.query({abortSignal:i._})).features}_queryLayerFeaturesJSON(e){return"queryFeaturesJSON"in this._layer?this._layer.queryFeaturesJSON(e):this._layer.source.queryFeaturesJSON(e)}async query(e){await this._ensureLoaded();let t="",r=!1;if(null!=e.orderBy&&(t=e.orderBy.constructClause(),r=!0),this.isTable()&&null!=e.spatialFilter)return a.An;const i=this._createQuery();return i.where=(0,u.mA)(i.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,l.YY)(e.where,0)),null!=e.spatialFilter&&(i.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),i.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),i.geometry=e.spatialFilter.geometry),i.outSpatialReference=this.spatialReference,i.orderByFields=""!==t?t.split(","):null,{filterApplied:!0,spatialFilterApplied:!0,ordered:r,features:async function*(){const t=await this._queryLayerFeaturesJSON(i);(0,n.dZ)(e.abortSignal);for(const e of(0,o.Ho)(t.features,this._maxQueryRate()))(0,a.Rn)(e,t.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new n.dr("NeverReach")}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,e.outFields=this._overrideFields??["*"],e.returnGeometry=!this._removeGeometry,e}_makeRelationshipEnum(e){if(e.includes("esriSpatialRelRelation"))return"relation";switch(e){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return e}_makeRelationshipParam(e){return e.includes("esriSpatialRelRelation")?e.split(":")[1]:""}relationshipMetadata(){return[]}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}static create(e,t){let r=e.layerDefinition.objectIdField;const i=e.layerDefinition.typeIdField??"",n=[];if(e.layerDefinition.types)for(const t of e.layerDefinition.types)n.push(p.A.fromJSON(t));let a=e.layerDefinition.geometryType;void 0===a&&(a=e.featureSet.geometryType||"");let s=e.featureSet.features;if(!r){let t=!1;for(const i of e.layerDefinition.fields)if("oid"===i.type||"esriFieldTypeOID"===i.type){r=i.name,t=!0;break}if(!1===t){let t="FID",i=!0,n=0;for(;i;){let r=!0;for(const i of e.layerDefinition.fields)if(i.name===t){r=!1;break}!0===r?i=!1:(n++,t="FID"+n.toString())}e.layerDefinition.fields.push({type:"esriFieldTypeOID",name:t,alias:t});const a=[];for(let r=0;r<s.length;r++)a.push({geometry:e.featureSet.features[r].geometry,attributes:{...e.featureSet.features[r].attributes,[t]:r}});s=a,r=t}}const l=[];for(const t of e.layerDefinition.fields)t instanceof h.A?l.push(t):l.push(h.A.fromJSON(t));let o=a;switch(o||(o=""),o){case"esriGeometryPoint":o="point";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryEnvelope":o="extent";break;case"esriGeometryMultipoint":o="multipoint";break;case"":case"esriGeometryNull":o="esriGeometryNull"}if("esriGeometryNull"!==o){const e=t.toJSON();for(const t of s)t.geometry&&t.geometry instanceof c.A==0&&(t.geometry.type=o,void 0===t.geometry.spatialReference&&(t.geometry.spatialReference=e))}else for(const e of s)e.geometry&&(e.geometry=null);const u={outFields:["*"],source:s,fields:l,hasZ:!0===e.layerDefinition.hasZ||!0===e.featureSet.hasZ,hasM:!0===e.layerDefinition.hasM||!0===e.featureSet.hasM,types:n,typeIdField:i,objectIdField:r,spatialReference:t},f="esriGeometryNull"===o||null===o;f||(u.geometryType=o);const m=new d.default(u);return e.layerDefinition.subtypeField&&e.layerDefinition.subtypes&&m.read({subtypes:e.layerDefinition.subtypes,subtypeField:e.layerDefinition.subtypeField}),new y({layer:m,spatialReference:t,isTable:f})}async queryAttachments(){return[]}async getFeatureByObjectId(e){const t=this._createQuery();t.where=this.objectIdField+"="+e.toString();const r=await this._queryLayerFeaturesJSON(t);return 1===r.features.length?((0,a.Rn)(r.features,r.spatialReference??this.spatialReference.toJSON()),r.features[0]):null}serviceUrl(){return""}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return"preferredTimeZone"in this._layer?this._layer.preferredTimeZone:null}get dateFieldsTimeZone(){return"dateFieldsTimeZone"in this._layer?this._layer.dateFieldsTimeZone:null}get datesInUnknownTimezone(){return"datesInUnknownTimezone"in this._layer&&this._layer.datesInUnknownTimezone}get editFieldsInfo(){return"editFieldsInfo"in this._layer?this._layer.editFieldsInfo:null}get timeInfo(){return this._layer.timeInfo}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}},30445:(e,t,r)=>{r.r(t),r.d(t,{constructAssociationMetaDataFeatureSetFromUrl:()=>U,constructFeatureSet:()=>P,constructFeatureSetFromPortalItem:()=>V,constructFeatureSetFromRelationship:()=>G,constructFeatureSetFromUrl:()=>Z,convertToFeatureSet:()=>J,createFeatureSetCollectionFromMap:()=>Q,createFeatureSetCollectionFromService:()=>z,initialiseMetaDataCache:()=>E});var i=r(11254);class n{constructor(){this.declaredRootClass="esri.arcade.featureSetCollection",this._layerById={},this._layerByName={}}add(e,t,r){this._layerById[t]=r,this._layerByName[e]=r}async featureSetByName(e,t=!0,r=["*"]){return void 0===this._layerByName[e]?null:this._layerByName[e]}async featureSetById(e,t=!0,r=["*"]){return void 0===this._layerById[e]?null:this._layerById[e]}castToText(e=!1){return"object, FeatureSetCollection"}}var a=r(78878),s=r(35704),l=r(70333),o=r(48938),u=r(61454),c=r(66395),d=r(87449),p=r(11221),h=r(33325),y=r(80609),f=r(50145),m=r(4576),g=r(80200),_=r(39516),w=r(88368),b=r(68654),F=r(17126),I=r(54546),v=r(61956),S=r(7562);function T(e,t){null==e.clause&&(e.clause=function(e){if(0===e.length)throw new d.dr("NeverReach");const t=[];for(let r=0;r<e.length;r++){const i=e[r],n=[`"${i.name.replaceAll('"','""')}" ${i.asc?">":"<"} @last_${r}`];for(let t=0;t<r;t++){const r=e[t];n.push(`"${r.name.replaceAll('"','""')}" = @last_${t}`)}t.push(n.join(" AND "))}const r=t.join(" OR ");return w.A.create(r)}(e.keyFields));for(let r=0;r<e.keyFields.length;r++){const i=e.keyFields[r].name;e.clause.parameters[`last_${r}`]=t.attributes[i]}}class R extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerDynamic",this._removeGeometry=!1,this._overrideFields=null,this._requestStandardised=!1,this._useDefinitionExpression=!0,this._recentlyUsedQueries=null,this._featureSetQueryInterceptor=null,this._featureSetInfo=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry),e.lrucache&&(this._recentlyUsedQueries=e.lrucache),e.interceptor&&(this._featureSetQueryInterceptor=e.interceptor)}_maxQueryRate(){return h.gO}get urlQueryPath(){return this._layer.parsedUrl.path||""}convertQueryToLruCacheKey(e){const t=this.urlQueryPath+","+(0,h.JB)(e.toJSON());return(0,g.d)(t,g.T.String)}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}if(this._layer.source&&this._layer.source.sourceJSON){const e=this._layer.source.sourceJSON.currentVersion;!0===this._layer.source.sourceJSON.useStandardizedQueries?(this._databaseType=1,null!=e&&e>=10.61&&(this._databaseType=0)):null!=e&&(e>=10.5&&(this._databaseType=1,this._requestStandardised=!0),e>=10.61&&(this._databaseType=0))}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this.subtypeField=this._layer.subtypeField??"",this.subtypes=this._layer.subtypes,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}async _runDatabaseProbe(e){await this._ensureLoaded();const t=new v.A;this.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t.where=e.replace("OBJECTID",this._layer.objectIdField);try{return await this._layer.queryObjectIds(t),!0}catch{return!1}}_canUsePagination(){return!(!this._layer.capabilities||!this._layer.capabilities.query||!0!==this._layer.capabilities.query.supportsPagination)}_cacheableFeatureSetSourceKey(){return this._layer.url}get gdbVersion(){return this._layer&&this._layer.capabilities&&this._layer.capabilities.data&&this._layer.capabilities.data.isVersioned?this._layer.gdbVersion||"SDE.DEFAULT":""}nativeCapabilities(){return{title:this._layer.title??"",source:this,canQueryRelated:!0,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:this._requestStandardised}}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){return await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter?p.An:this._canUsePagination()?this._queryUsingPaging(e):this._queryUsingIdSetTraversal(e)}async _queryUsingPaging(e){let t="",r=!1;null!=e.orderBy&&!0===this._layer.capabilities?.query?.supportsOrderBy&&(t=e.orderBy.constructClause(),r=!0);const i=await this.databaseType(),n=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,i);let a=this._maxQueryRate();const s=this._layer.capabilities?.query.maxRecordCount;null!=s&&s<a&&(a=s);const l=!0!==this._removeGeometry,o=this._overrideFields??this._fieldsIncludingObjectId(["*"]),u=this._createQuery();return u.where=(0,_.mA)(u.where,n),null!=e.spatialFilter&&(u.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),u.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),u.geometry=e.spatialFilter.geometry),u.orderByFields=""!==t?t.split(","):null,u.outFields=o,u.returnGeometry=l,u.outSpatialReference=this.spatialReference,{ordered:r,filterApplied:!0,spatialFilterApplied:!0,features:this._queryPaginated(u,a,e.abortSignal)}}async*_queryPaginated(e,t,r){let i;e.num=t,e.start=0;do{(0,d.dZ)(r),i=await this.executeQuery(e,"execute"),yield i.features,e.start+=t}while(!0===i.exceededTransferLimit)}async _queryUsingIdSetTraversal(e){let t="",r=!1;null!=e.orderBy&&this._layer.capabilities&&this._layer.capabilities.query&&!0===this._layer.capabilities.query.supportsOrderBy&&(t=e.orderBy.constructClause(),r=!0);const i=await this.databaseType(),n=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,i),a=this._createQuery();a.where=(0,_.mA)(a.where,n),null!=e.spatialFilter&&(a.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),a.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),a.geometry=e.spatialFilter.geometry),a.orderByFields=""!==t?t.split(","):null,a.outSpatialReference=this.spatialReference;const s=await this.executeQuery(a,"executeForIds");if((0,d.dZ)(e.abortSignal),null==s||s.length<=0)return p.An;let l=this._maxQueryRate();const o=this._layer.capabilities?.query.maxRecordCount;null!=o&&o<l&&(l=o);const u=this._createQuery();return a.outFields=this._overrideFields??this._fieldsIncludingObjectId(["*"]),a.returnGeometry=!0!==this._removeGeometry,a.outSpatialReference=this.spatialReference,{ordered:r,filterApplied:!0,spatialFilterApplied:!0,features:this._traverseIdSet(u,s,l,e.abortSignal)}}async*_traverseIdSet(e,t,r,i){for(let n=0;n<t.length;n+=r){e.objectIds=t.slice(n,n+r),(0,d.dZ)(i);const a=await this.executeQuery(e,"execute");yield a.features}}async queryStat(e){await this._ensureLoaded();const t=this._layer.capabilities?.query,r=!!t?.supportsSqlExpression,i=!!t?.supportsStatistics,n=!!t?.supportsDistinct,a=(0,f.Dp)(e.stat);if("count"===a)return n?this._queryCount(e):{calculated:!1};const s=e.field;if(null==s)return{calculated:!1};if(!1===i||!1===(0,y.DA)(s)&&!1===r||!1===s.isStandardized)return null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(e.stat,s,e.limit??h.gO,e.abortSignal);if("distinct"===a)return!1===n?null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(a,s,e.limit??h.gO,e.abortSignal):{calculated:!1};const l=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:null};const o=this._createQuery();o.where=(0,_.mA)(o.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,l)),null!=e.spatialFilter&&(o.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),o.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),o.geometry=e.spatialFilter.geometry);const u=new S.A;u.statisticType=a,u.onStatisticField=(0,y.YY)(s,l),u.outStatisticFieldName="ARCADE_STAT_RESULT",o.returnGeometry=!1;let c="ARCADE_STAT_RESULT";o.outStatistics=[u];const p=await this.executeQuery(o,"execute");if(!p.hasOwnProperty("features")||0===p.features.length)throw new d.dr("InvalidStatResponse");let m=!1;const g=p.fields??[];for(const e of g)if("ARCADE_STAT_RESULT"===e.name.toUpperCase()){c=e.name,"esriFieldTypeDate"===e.type&&(m=!0);break}const w=p.features[0].attributes[c];return{calculated:!0,result:m&&null!=w?new Date(w):w}}async _queryCount(e){const t=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:0};const r=this._createQuery();return r.where=(0,_.mA)(r.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t)),null!=e.spatialFilter&&(r.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),r.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),r.geometry=e.spatialFilter.geometry),r.returnGeometry=!1,{calculated:!0,result:await this.executeQuery(r,"executeForCount")}}async canQueryAggregate(e){await this._ensureLoaded();let t=!1;const r=this._layer.capabilities?.query,i=!0===r?.supportsSqlExpression;if(null!=r&&!0===r.supportsStatistics&&!0===r.supportsOrderBy&&(t=!0),t)for(const r of e.statistics)(!1===r.workingexpr?.isStandardized||!1===(0,y.DA)(r.workingexpr)&&!1===i)&&(t=!1);return t}async queryAggregate(e){if(await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter)return p.An;const t=await this.databaseType(),r=e.groupBy,i=e.orderBy;let n=null;if(!this._layer.capabilities.query.supportsPaginationOnAggregatedQueries){const e=this.getFieldsIndex();n={keyFields:r.map((t,r)=>({name:e.normalizeFieldName(t)??t,asc:null==i||1===i._directions[r]}))}}let a="",s=!1;null!=i&&!0===this._layer.capabilities?.query?.supportsOrderBy&&(null==n||(0,m.MJ)(r,0,r.length,i._fields,0,Math.min(i._fields.length,r.length),(e,t)=>e.toLowerCase()===t.toLowerCase()))&&(a=i.constructClause(),s=!0),""===a&&(a=r.join(","));const l=e.statistics.map(e=>new S.A({onStatisticField:null!==e.workingexpr?(0,y.YY)(e.workingexpr,t):"",outStatisticFieldName:e.field,statisticType:e.toStatisticsName()}));let o=this._maxQueryRate();const u=this._layer.capabilities?.query.maxRecordCount;null!=u&&u<o&&(o=u);const c=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t),d=this._createQuery();return d.where=(0,_.mA)(d.where,c),null!=e.spatialFilter&&(d.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),d.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),d.geometry=e.spatialFilter.geometry),d.orderByFields=""!==a?a.split(","):null,d.outFields=["*"],d.outStatistics=l,d.groupByFieldsForStatistics=r,d.returnGeometry=!1,null==n?{filterApplied:!0,spatialFilterApplied:!0,ordered:s,features:this._queryPaginated(d,o,e.abortSignal)}:{filterApplied:!0,spatialFilterApplied:!0,ordered:s,features:this._queryKeysetPaginated(d,n,e.abortSignal)}}async*_queryKeysetPaginated(e,t,r){const i=e.where;for(;;){if(null!=t.clause){if(!this._layer.capabilities.query.supportsOrderBy)throw new d.dr("NotImplemented");e.where=(0,_.mA)(i,(0,y.YY)(t.clause,await this.databaseType()))}const n=await this.executeQuery(e,"execute");if((0,d.dZ)(r),!n.hasOwnProperty("features"))throw new d.dr("InvalidStatResponse");if(yield n.features,0===n.features.length||!0!==n.exceededTransferLimit)break;T(t,n.features.at(-1))}}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),this._requestStandardised&&(e.sqlFormat="standard"),this._useDefinitionExpression?"subtype-group"===this._layer.type&&(e.where=this._layer.definitionExpression):e.where=null,e}executeQuery(e,t){const r="execute"===t?async e=>{const t=await this._layer.source.queryFeaturesJSON(e);return(0,p.Rn)(t.features,t.spatialReference??this.spatialReference.toJSON()),t}:"executeForCount"===t?this._layer.queryFeatureCount.bind(this._layer):this._layer.queryObjectIds.bind(this._layer);let i=null;if(this._recentlyUsedQueries){const t=this.convertQueryToLruCacheKey(e);i=this._recentlyUsedQueries.getFromCache(t),null===i&&(i=r(e),this._recentlyUsedQueries.addToCache(t,i),i=i.catch(e=>{throw this._recentlyUsedQueries?.removeFromCache(t),e}))}return this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:e,method:t}),null===i&&(i=r(e)),i}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}isTable(){return this._layer.isTable||null===this._layer.geometryType||"table"===this._layer.type||""===this._layer.geometryType||"esriGeometryNull"===this._layer.geometryType}_makeRelationshipEnum(e){if(e.includes("esriSpatialRelRelation"))return"relation";switch(e){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return e}_makeRelationshipParam(e){return e.includes("esriSpatialRelRelation")?e.split(":")[1]:""}static create(e,t,r,i,n){const a=new b.default({url:e,outFields:null===t?["*"]:t});return new R({layer:a,spatialReference:r,lrucache:i,interceptor:n})}relationshipMetadata(){return this._layer&&this._layer.source&&this._layer.source.sourceJSON?.relationships?this._layer.source.sourceJSON.relationships:[]}serviceUrl(){return(0,h.Qi)(this._layer.parsedUrl.path)}async queryAttachments(e,t,r,i,n){const a=this._layer;if(!function(e){const t=e.capabilities;return t?.data.supportsAttachment&&t?.operations.supportsQueryAttachments}(a))return[];const s=new I.A({objectIds:[e],returnMetadata:n});(t&&t>0||r&&r>0)&&(s.size=[t&&t>0?t:0,r&&r>0?r:t+1]),i&&i.length>0&&(s.attachmentTypes=i),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:a,query:s,method:"attachments"});const l=await a.queryAttachments(s);return l?.[e]?l[e].map(t=>{const r=`${this._layer.parsedUrl.path}/${e}/attachments/${t.id}`;let i=null;return n&&t.exifInfo&&(i=c.A.convertJsonToArcade(t.exifInfo,"system",!0)),new u.A(t.id,t.name,t.contentType,t.size,r,i,t.keywords??null)}):[]}async queryRelatedFeatures(e){const t=(0,F.dw)(e);t.f="json",this._requestStandardised&&(t.sqlFormat="standard"),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preRequestCallback({layer:this._layer,queryPayload:t,method:"relatedrecords",url:this._layer.parsedUrl.path+"/queryRelatedRecords"});const r=await(0,i.A)(this._layer.parsedUrl.path+"/queryRelatedRecords",{responseType:"json",query:t});if(r.data){const e={},t=r.data;if(t?.relatedRecordGroups){const r=t.spatialReference,i=!0===t.exceededTransferLimit;for(const n of t.relatedRecordGroups)(0,p.Rn)(n.relatedRecords,r),e[n.objectId]={features:n.relatedRecords,exceededTransferLimit:i}}return e}throw new d.dr("InvalidRequest")}async getFeatureByObjectId(e,t){const r=this._createQuery();r.outFields=t,r.returnGeometry=!1,r.outSpatialReference=this.spatialReference,r.where=(0,_.mA)(r.where,this.objectIdField+"="+e.toString()),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:r,method:"execute"});const i=await this._layer.source.queryFeaturesJSON(r);return 1===i.features.length?((0,p.Rn)(i.features,i.spatialReference??this.spatialReference.toJSON()),i.features[0]):null}async getIdentityUser(){await this.load();const e=l.id?.findCredential(this._layer.url);return e?e.userId:null}async getOwningSystemUrl(){await this.load();const e=l.id?.findServerInfo(this._layer.url);if(e)return e.owningSystemUrl??"";let t=this._layer.url;const r=t.toLowerCase().indexOf("/rest/services");if(t=r>-1?t.slice(0,r):t,t){t+="/rest/info";try{const e=await(0,i.A)(t,{query:{f:"json"}});let r="";return e.data?.owningSystemUrl&&(r=e.data.owningSystemUrl),r}catch{return""}}return""}getDataSourceFeatureSet(){const e=new R({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._overrideFields??void 0,includeGeometry:!this._removeGeometry,lrucache:this._recentlyUsedQueries??void 0,interceptor:this._featureSetQueryInterceptor??void 0});return e._useDefinitionExpression=!1,e}get preferredTimeZone(){return this._layer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._layer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._layer.datesInUnknownTimezone??!1}get editFieldsInfo(){return this._layer.editFieldsInfo??null}get timeInfo(){return this._layer.timeInfo??null}async getFeatureSetInfo(){if(this._featureSetInfo)return this._featureSetInfo;let e=null,t="serviceItemId"in this._layer?this._layer.serviceItemId:null;const r=this._layer.parsedUrl?.path??null;if(r){const n=await(0,i.A)(r,{responseType:"json",query:{f:"json"}});e=n?.data?.name??null,t=n?.data?.serviceItemId??null}const n=this._layer.title&&null!==(this._layer.parent??null);return this._featureSetInfo={layerId:this._layer.layerId,layerName:""===e?null:e,itemId:""===t?null:t,serviceLayerUrl:""===r?null:r,webMapLayerId:n?this._layer.id??null:null,webMapLayerTitle:n?this._layer.title??null:null,className:null,objectClassId:null},this._featureSetInfo}}var A=r(30235),C=r(52006);class x extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerOGC",this._outFields=null,this._returnGeometry=!0,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),null!=e.outFields&&(this._outFields=e.outFields),null!=e.includeGeometry&&(this._returnGeometry=e.includeGeometry)}_maxQueryRate(){return this._layer.effectiveMaxRecordCount}async loadImpl(){return this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),null!=this._outFields)if(1===this._outFields.length&&"*"===this._outFields[0])this._outFields=null;else{const e=new Set(this._outFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({name:t})=>t===this._layer.objectIdField||e.has(t.toLowerCase())),this._outFields=this.fields.map(({name:e})=>e)}this.objectIdField=this._layer.objectIdField,this.hasZ=!!this._layer.hasZ,this.hasM=!1,this.typeIdField=this._layer.typeIdField??"",this.types=this._layer.types??null;const e=this._layer.source.getSource().layerDefinition.featureCount;null!=e&&e>=0&&(this._totalCount=e)}isTable(){return this._layer.isTable}async _queryAll(){await this._ensureLoaded();const e=this._layer.createQuery();return e.outSpatialReference=this.spatialReference,this._queryPaginated(e,this._layer.effectiveMaxRecordCount,o._)}async query(e){await this._ensureLoaded();const t=this._layer.createQuery();if(t.outSpatialReference=this.spatialReference,null!=e.spatialFilter&&!(0,C.Ed)(e.spatialFilter.geometry))switch(e.spatialFilter.relation){case"esriSpatialRelIntersects":case"esriSpatialRelContains":case"esriSpatialRelOverlaps":case"esriSpatialRelWithin":case"esriSpatialRelTouches":case"esriSpatialRelCrosses":t.geometry=e.spatialFilter.geometry.extent}return this._hasCachedFeatures||null==t.geometry?{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:await this.queryAll(e.abortSignal)}:{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter||"extent"===e.spatialFilter.geometry.type&&"esriSpatialRelIntersects"===e.spatialFilter.relation,ordered:!1,features:this._queryPaginated(t,this._layer.effectiveMaxRecordCount,e.abortSignal)}}async*_queryPaginated(e,t,r){let i;e.num=t,e.start=0;do{(0,d.dZ)(r),i=await this._layer.source.queryFeaturesJSON(e);const t=i.spatialReference??this.spatialReference.toJSON();yield i.features.map(e=>{const r={};for(const t of this.fields)r[t.name]=e.attributes[t.name];let i=null;return this._returnGeometry&&!this.isTable()&&null!=e.geometry&&(e.geometry.spatialReference=t,i=e.geometry),{geometry:i,attributes:r}}),e.start+=i.features.length}while(!0===i.exceededTransferLimit)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new d.dr("NeverReach")}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}async queryAttachments(){return[]}serviceUrl(){return""}relationshipMetadata(){return[]}get gdbVersion(){return""}getFeatureByObjectId(){throw new d.dr("NeverReach")}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return null}get dateFieldsTimeZone(){return null}get datesInUnknownTimezone(){return!1}get editFieldsInfo(){return null}get timeInfo(){return this._layer.timeInfo}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}var M=r(26591);class L extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerRelated",this._removeGeometry=!1,this._overrideFields=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),this._findObjectId=e.objectId,this.relationship=e.relationship,this._relatedLayer=e.relatedLayer,void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return h.gO}async loadImpl(){return await Promise.all([this._layer.load(),this._relatedLayer.load()]),this._initialiseFeatureSet(),this}nativeCapabilities(){return this._relatedLayer.nativeCapabilities()}_initialiseFeatureSet(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._relatedLayer.geometryType,this.fields=this._relatedLayer.fields.slice(),this.hasZ=this._relatedLayer.hasZ,this.hasM=this._relatedLayer.hasM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}const e=this._layer.nativeCapabilities();e&&(this._databaseType=e.databaseType),this.objectIdField=this._relatedLayer.objectIdField,this.globalIdField=this._relatedLayer.globalIdField,this.hasM=this._relatedLayer.supportsM,this.hasZ=this._relatedLayer.supportsZ,this.typeIdField=this._relatedLayer.typeIdField,this.types=this._relatedLayer.types,this.subtypeField=this._relatedLayer.subtypeField,this.subtypes=this._relatedLayer.subtypes}async databaseType(){return this._databaseType=await this._relatedLayer.databaseType(),this._databaseType}isTable(){return this._relatedLayer.isTable()}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){if(await this._ensureLoaded(),await this.databaseType(),this.isTable()&&null!=e.spatialFilter)return p.An;const t=this._layer.nativeCapabilities();if(!1===t.canQueryRelated)return p.An;if(t.capabilities?.queryRelated.supportsPagination)return this._queryUsingPaging(t.source,e);let r="",i=!1;null!=e.orderBy&&!0===t.capabilities?.queryRelated.supportsOrderBy&&(r=e.orderBy.constructClause(),i=!0);const n=new M.default;return n.objectIds=[this._findObjectId],n.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),n.relationshipId=this.relationship.id,n.where="1=1",n.returnGeometry=!0!==this._removeGeometry,n.outSpatialReference=this.spatialReference,n.orderByFields=""!==r?r.split(","):null,{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:i,features:async function*(){const r=await t.source.queryRelatedFeatures(n);(0,d.dZ)(e.abortSignal),yield r[this._findObjectId]?r[this._findObjectId].features:[]}.apply(this)}}async _queryUsingPaging(e,t){let r="",i=!1;const n=this._layer.nativeCapabilities();null!=t.orderBy&&!0===n.capabilities?.queryRelated.supportsOrderBy&&(r=t.orderBy.constructClause(),i=!0),await this.databaseType();let a=this._maxQueryRate();const s=n.capabilities?.query.maxRecordCount;null!=s&&s<a&&(a=s);const l=new M.default;return l.relationshipId=this.relationship.id,l.objectIds=[this._findObjectId],l.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),l.where="1=1",l.orderByFields=""!==r?r.split(","):null,l.returnGeometry=!0!==this._removeGeometry,l.outSpatialReference=this.spatialReference,{filterApplied:null==t.where,spatialFilterApplied:null==t.spatialFilter,ordered:i,features:this._queryPaginated(e,l,a,t.abortSignal)}}async*_queryPaginated(e,t,r,i){let n;t.num=r,t.start=0;do{(0,d.dZ)(i),n=(await e.queryRelatedFeatures(t))[this._findObjectId]??{exceededTransferLimit:!1,features:[]},yield n.features,t.start+=r}while(!0===n.exceededTransferLimit)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new d.dr("NeverReach")}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}get gdbVersion(){return this._relatedLayer.gdbVersion}relationshipMetadata(){return this._relatedLayer.relationshipMetadata()}serviceUrl(){return this._relatedLayer.serviceUrl()}queryAttachments(e,t,r,i,n){return this._relatedLayer.queryAttachments(e,t,r,i,n)}getFeatureByObjectId(e,t){return this._relatedLayer.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._relatedLayer.getOwningSystemUrl()}getIdentityUser(){return this._relatedLayer.getIdentityUser()}getDataSourceFeatureSet(){return this._relatedLayer}get preferredTimeZone(){return this._relatedLayer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._relatedLayer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._relatedLayer.datesInUnknownTimezone}get editFieldsInfo(){return this._relatedLayer.editFieldsInfo??null}get timeInfo(){return this._relatedLayer.timeInfo??null}getFeatureSetInfo(){return this._relatedLayer.getFeatureSetInfo()}}var j=r(23732),O=r(92474),k=r(4146),q=r(80812);function E(){null===j.A.applicationCache&&(j.A.applicationCache=new j.A)}async function N(e,t,r){if(j.A.applicationCache){const r=j.A.applicationCache.getLayerInfo(e);if(r){const i=await r;return new b.default({url:e,outFields:t,sourceJSON:i})}const i=new b.default({url:e,outFields:t}),n=(async()=>(await i.load(),i.sourceJSON))();if(j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,n);try{return await n,i}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}return await n,i}if(null!=r){const i=r.getCachedLayerMetadata(e);if(i){const r=await i;return new b.default({url:e,outFields:t,sourceJSON:r})}const n=new b.default({url:e,outFields:t}),a=(async()=>(await n.load(),n.sourceJSON))();r.setCachedLayerMetadata(e,a);try{return await a,n}catch(t){throw r.removeCachedLayerMetadata(e,a),t}}return new b.default({url:e,outFields:t})}async function Z(e,t,r,i,n,a=null){return P(await N(e,["*"],n),t,r,i,n,a)}function P(e,t=null,r=null,i=!0,n=null,a=null){switch(e.type){case"catalog-footprint":return P(e.parent,t,r,i,n,a);case"subtype-sublayer":{const l=P(e.parent,t,r,i,n,a);return new s.A({parentfeatureset:l,whereclause:w.A.create(e.parent.subtypeField+"="+e.subtypeCode.toString(),{fieldsIndex:e.parent.fieldsIndex,timeZone:l.dateFieldsTimeZoneDefaultUTC})})}case"csv":case"geojson":case"knowledge-graph-sublayer":case"wfs":return new A.A({layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:n,interceptor:a});case"catalog":case"feature":case"oriented-imagery":case"subtype-group":{const s={layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:n,interceptor:a};return!e.url&&e.source?new A.A(s):new R(s)}case"ogc-feature":return new x({layer:e,spatialReference:t,outFields:r,includeGeometry:i});default:throw new Error(`Unsupported layer type: ${e.type}`)}}async function D(e,t){if(null!==j.A.applicationCache){const t=j.A.applicationCache.getLayerInfo(e);if(null!==t)return t}if(null!=t){const r=t.getCachedServiceMetadata(e);if(null!=r)return r}const r=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"},authMode:"no-prompt"});if(t.data){const e=t.data;return e.layers||(e.layers=[]),e.tables||(e.tables=[]),e}return{layers:[],tables:[]}})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,r);try{return await r}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}if(null!=t){t.setCachedServiceMetadata(e,r);try{return await r}catch(i){throw t.removeCachedServiceMetadata(e,r),i}}return r}async function U(e,t,r){const n={metadata:null,networkId:-1,unVersion:3,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map,queryelem:null,layerNameLkp:{},lkp:null},a=await D(e,null);if(n.metadata=a,void 0!==a.controllerDatasetLayers?.utilityNetworkLayerId&&null!==a.controllerDatasetLayers.utilityNetworkLayerId){if(a.layers)for(const e of a.layers)n.layerNameLkp[e.id]=e.name;if(a.tables)for(const e of a.tables)n.layerNameLkp[e.id]=e.name;const l=a.controllerDatasetLayers.utilityNetworkLayerId;n.networkId=l;const o=await async function(e,t){const r="QUERYDATAELEMTS:"+t.toString()+":"+e;if(null!==j.A.applicationCache){const e=j.A.applicationCache.getLayerInfo(r);if(null!==e)return e}const n=(async()=>{const r=await(0,i.A)(e+"/queryDataElements",{method:"post",responseType:"json",query:{layers:JSON.stringify([t.toString()]),f:"json"}});if(r.data){const e=r.data;if(e.layerDataElements?.[0])return e.layerDataElements[0]}throw new d.dr("DataElementsNotFound")})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(r,n);try{return await n}catch(e){throw j.A.applicationCache.clearLayerInfo(r),e}}return n}(e,l);if(o){n.queryelem=o,n.queryelem?.dataElement&&void 0!==n.queryelem.dataElement.schemaGeneration&&(n.unVersion=n.queryelem.dataElement.schemaGeneration),n.lkp={},n.queryelem.dataElement.domainNetworks||(n.queryelem.dataElement.domainNetworks=[]);for(const e of n.queryelem.dataElement.domainNetworks){for(const t of e.edgeSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:n.layerNameLkp[t.layerId]??null};n.layerIdLookup.set(e.layerId,e),n.sourceIdLookup.set(e.sourceId,e),e.className&&(n.lkp[e.className]=e)}for(const t of e.junctionSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:n.layerNameLkp[t.layerId]??null};n.layerIdLookup.set(e.layerId,e),n.sourceIdLookup.set(e.sourceId,e),e.className&&(n.lkp[e.className]=e)}}if(n.queryelem.dataElement.terminalConfigurations)for(const e of n.queryelem.dataElement.terminalConfigurations)for(const t of e.terminals)n.terminals.push({terminalId:t.terminalId,terminalName:t.terminalName});const a=await async function(e){if(null!==j.A.applicationCache){const t=j.A.applicationCache.getLayerInfo(e);if(null!==t)return t}const t=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"}});return t.data?t.data:null})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,t);try{return await t}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}return t}(e+"/"+l);if(void 0!==a.systemLayers?.associationsTableId&&null!==a.systemLayers.associationsTableId){let i=null;if(r&&n.unVersion<8){const r=[];n.unVersion>=4&&(r.push("STATUS"),r.push("PERCENTALONG")),i=await Z(e+"/"+a.systemLayers.associationsTableId,t,["OBJECTID","FROMNETWORKSOURCEID","TONETWORKSOURCEID","FROMGLOBALID","TOGLOBALID","TOTERMINALID","FROMTERMINALID","ASSOCIATIONTYPE","ISCONTENTVISIBLE","GLOBALID",...r],!1,null,null),await i.load(),n.unVersion>=4&&(i=new s.A({parentfeatureset:i,whereclause:w.A.create("STATUS NOT IN (1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63)",{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC})}),await i.load())}return{lkp:n.lkp,associations:i,unVersion:n.unVersion,terminals:n.terminals,layerIdLookup:n.layerIdLookup,sourceIdLookup:n.sourceIdLookup}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}async function G(e,t,r,i=null,n=null,a=!0,s=null,l=null){let o=e.serviceUrl();if(!o)return null;o=o.endsWith("/")?o+t.relatedTableId.toString():o+"/"+t.relatedTableId.toString();const u=await Z(o,i,n,a,s,l);return new L({layer:e,relatedLayer:u,relationship:t,objectId:r,spatialReference:i,outFields:n,includeGeometry:a,lrucache:s,interceptor:l})}class B extends n{constructor(e,t=null,r=null,i=null){super(),this._map=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this._instantLayers=[]}_makeAndAddFeatureSet(e,t=!0,r=null){const i=P(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache,this._interceptor);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async featureSetByName(e,t=!0,r=null){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetByName(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.title===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=this._map.allLayers.find(t=>(0,h.eB)(t)&&t.title===e);if(null!=n)return this._makeAndAddFeatureSet(n,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,h.eB)(t)&&t.title===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetById(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.id===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=this._map.allLayers.find(t=>(0,h.eB)(t)&&t.id===e);if(n)return this._makeAndAddFeatureSet(n,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,h.eB)(t)&&t.id===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}}class $ extends n{constructor(e,t=null,r=null,i=null){super(),this._url=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this.metadata=null,this._instantLayers=[]}get url(){return this._url}_makeAndAddFeatureSet(e,t=!0,r=null){const i=P(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async _loadMetaData(){const e=await D(this._url,this._lrucache);return this.metadata=e,e}load(){return this._loadMetaData()}clone(){return new $(this._url,this._overrideSpatialReference,this._lrucache,this._interceptor)}async featureSetByName(e,t=!0,r=null){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.title===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=await this._loadMetaData();let a=null;for(const t of n.layers??[])t.name===e&&(a=t);if(!a)for(const t of n.tables??[])t.name===e&&(a=t);if(a){const e=await N(this._url+"/"+a.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);e=null!=e?e.toString():"";for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.id===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=await this._loadMetaData();let a=null;for(const t of n.layers??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(a=t);if(!a)for(const t of n.tables??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(a=t);if(a){const e=await N(this._url+"/"+a.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}}function Q(e,t,r=null,i=null){return new B(e,t,r,i)}function z(e,t,r=null,i=null){return new $(e,t,r,i)}function J(e,t,r,i,n){if(null===e)return null;if((0,a.m)(e)){switch(t){case"datasource":return e.getDataSourceFeatureSet();case"parent":return e;case"root":return e.getRootFeatureSet()}return null}if(e instanceof k.A&&(0,h.NI)(e)){const a=e;switch(t){case"datasource":return P(a,n,"outFields"in a?a.outFields:null,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return P(a,n,"outFields"in a?a.outFields:null,!0,r,i)}return null}if((0,a.a1)(e)){switch(t){case"datasource":return P(e.parent,n,e.parent.outFields,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return P(e,n,e.parent.outFields,!0,r,i)}return null}return null}async function V(e,t,r,i,n,a,s,l=null){if(j.A.applicationCache){const o=j.A.applicationCache.getLayerInfo(e+":"+a.url);if(o)return K(await o,t,r,i,n,s,l)}if(null!=s){const o=s.getCachedPortalItem(a.url,e);if(null!=o)return await K(await o,t,r,i,n,s,l)}const o=new q.default({id:e,portal:a}).load();j.A.applicationCache?j.A.applicationCache.setLayerInfo(e+":"+a.url,o):null!=s&&s.setCachedPortalItem(a.url,e,o);try{return await K(await o,t,r,i,n,s,l)}catch(t){throw j.A.applicationCache&&j.A.applicationCache.clearLayerInfo(e+":"+a.url),null!=s&&s.removeCachedPortalItem(a.url,e,o),t}}async function K(e,t,r,i,n,a,s){let l;if("Feature Service"===e.type||"Map Service"===e.type)l=await N((0,h.Qi)(e.url??"")+"/"+t,["*"],a);else{if(t)throw new Error(`layerId=${t} provided for ${e.type} item`);if(null!=a){const t=a.getCachedPortalItemLayer(e.portal.url,e.id);if(null!=t)l=await t;else{const t=k.A.fromPortalItem(e);a.setCachedPortalItemLayer(e.portal.url,e.id,t);try{l=await t}catch(r){throw a.removeCachedPortalItemLayer(e.portal.url,e.id,t),r}}}else l=await k.A.fromPortalItem(e)}return P(l,r,i,n,a,s)}},32730:(e,t,r)=>{r.d(t,{BI:()=>m,D3:()=>y,XJ:()=>f,lc:()=>h,mX:()=>_,rU:()=>g,tH:()=>v});var i=r(799);const n="__begin__",a="__end__",s=new RegExp(n,"ig"),l=new RegExp(a,"ig"),o=new RegExp("^"+n,"i"),u=new RegExp(a+"$","i"),c='"',d=c+" + ",p=" + "+c;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return _(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function _(e){let t;return e?(t=(0,i.HC)(e,e=>n+'$feature["'+e+'"]'+a),t=o.test(t)?t.replace(o,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(s,d).replaceAll(l,p)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,F=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=b.exec(e)||F.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>o});var i=r(31635),n=r(93637),a=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const o={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const a=e.find(e=>!!e.field);a&&(0,n.sM)(r,[a.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,a.MZ)(o)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(31635),n=r(69540),a=r(25482),s=r(91429),l=r(8631),o=r(29005),u=r(36005),c=r(43937);let d=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},35704:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(48938),n=r(87449),a=r(11221),s=r(33325),l=r(80609),o=r(88368);class u extends a.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.AttributeFilter",this._maxProcessing=1e3,this._parent=e.parentfeatureset,e.whereclause instanceof o.A?(this._whereClause=e.whereclause,this._whereClauseFunction=null):(this._whereClauseFunction=e.whereclause,this._whereClause=null)}_initialiseFeatureSet(){this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(e){let t=e.where;null!==this._whereClauseFunction||(null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause),await this._ensureLoaded();const r=await this._parent.query({...e,where:t});return(0,n.dZ)(e.abortSignal),r.filterApplied&&null==this._whereClauseFunction?r:{...r,features:this._applyFilter(r.features,e.abortSignal)}}async*_applyFilter(e,t){for await(const r of e)if((0,n.dZ)(t),null!=this._whereClause){const e=r.filter(e=>this._whereClause.testFeature(e));e.length>0&&(yield e)}else if(null!=this._whereClauseFunction){const e=[];for(const t of r)await this._whereClauseFunction(t)&&e.push(t);e.length>0&&(yield e)}else yield r}async queryStat(e){if(null!==this._whereClauseFunction)return null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??s.gO,e.abortSignal):{calculated:!1};let t=this._whereClause;null!=e.where&&null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,e.where));const r=await this._parent.queryStat({...e,where:t});return r.calculated?r:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??s.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){if(null!==this._whereClauseFunction)return!1;let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.canQueryAggregate({...e,where:t})}async queryAggregate(e){let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.queryAggregate({...e,where:t})}getFieldsIndex(){return this._parent.getFieldsIndex()}}},37352:(e,t,r)=>{r.d(t,{A:()=>o});var i,n=r(31635),a=r(7762),s=r(25482),l=r(91429);let o=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new a.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"floorField",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllLevelIds",void 0),o=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],o)},37539:(e,t,r)=>{r.d(t,{pO:()=>f,jd:()=>p,Tp:()=>h,w5:()=>d});var i=r(34727),n=r(86211),a=r(73941),s=r(79258);Math.PI;const l=s.$O.radius,o=s.$O.eccentricitySquared,u={a1:l*o,a2:l*o*l*o,a3:l*o*o/2,a4:l*o*l*o*2.5,a5:l*o+l*o*o/2,a6:1-o};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=r(21325);const d={2:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:g,11:_,2:f,4:C},5:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:g,11:_,2:f,4:C},7:{5:null,7:f,9:null,10:f,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:F,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/k,a=O-2*Math.atan(Math.exp(-e[t+1]/k)),s=k+(e[t+2]??0),l=Math.cos(a)*s;r[i]=Math.cos(n)*l,r[i+1]=Math.sin(n)*l,r[i+2]=Math.sin(a)*s},6:null,8:null,0:null,3:f,11:function(e,t,r,i){m(e,t,r,i),_(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),C(r,i,r,i)}},4:{5:x,7:null,9:null,10:x,1:function(e,t,r,i){x(e,t,r,i),v(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){x(e,t,r,i),g(r,i,r,i)},11:function(e,t,r,i){x(e,t,r,i),_(r,i,r,i)},2:x,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),g(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),_(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),C(r,i,r,i)}},6:{5:null,7:R,9:null,10:R,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:v,6:I,8:F,0:null,3:g,11:_,2:f,4:C},11:{5:w,7:null,9:null,10:w,1:function(e,t,r,i){w(e,t,r,i),v(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){w(e,t,r,i),g(r,i,r,i)},11:f,2:w,4:function(e,t,r,i){w(e,t,r,i),C(r,i,r,i)}}};function p(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(M.source.spatialReference===e&&M.dest.spatialReference===t)return M;const r=y(e,M.source),i=y(t,M.dest);return 0===r&&0===i?(0,c.aI)(e,t)?M.projector=f:M.projector=null:M.projector=d[r][i],M}function y(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,a.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===a.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===a.FY.wkt?t.spatialReferenceId=6:e.wkt===a.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=j*(e[t]/k),r[i+1]=j*(O-2*Math.atan(Math.exp(-e[t+1]/k))),r[i+2]=e[t+2]??0}function g(e,t,r,n){!function(e,t,r,n,a){const s=.4999999*Math.PI,l=(0,i.qE)(L*e[t+1],-s,s),o=Math.sin(l);r[n++]=L*e[t]*a.radius,r[n++]=a.halfSemiMajorAxis*Math.log((1+o)/(1-o)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function _(e,t,r,i){r[i]=e[t]*q,r[i+1]=e[t+1]*q,r[i+2]=e[t+2]??0}function w(e,t,r,i){r[i]=e[t]*E,r[i+1]=e[t+1]*E,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const a=n+(e[t+2]??0),s=L*e[t],l=L*e[t+1],o=Math.cos(l)*a;r[i]=Math.cos(s)*o,r[i+1]=Math.sin(s)*o,r[i+2]=Math.sin(l)*a}function F(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function I(e,t,r,i){b(e,t,r,i,s.sH.radius)}function v(e,t,r,i){b(e,t,r,i,s.$O.radius)}function S(e,t,r,n,a){const s=e[t],l=e[t+1],o=e[t+2]??0,u=Math.sqrt(s*s+l*l+o*o),c=(0,i.YN)(o/(0===u?1:u)),d=Math.atan2(l,s);r[n++]=j*d,r[n++]=j*c,r[n]=u-a}function T(e,t,r,i){S(e,t,r,i,s.Sw.radius)}function R(e,t,r,i){S(e,t,r,i,s.sH.radius)}function A(e,t,r,i){S(e,t,r,i,s.$O.radius)}function C(e,t,r,i){!function(e,t,r,i,n){const a=L*e[t],s=L*e[t+1],l=e[t+2]??0,o=Math.sin(s),u=Math.cos(s),c=n.radius/Math.sqrt(1-n.eccentricitySquared*o*o);r[i++]=(c+l)*u*Math.cos(a),r[i++]=(c+l)*u*Math.sin(a),r[i++]=(c*(1-n.eccentricitySquared)+l)*o}(e,t,r,i,s.$O)}function x(e,t,r,i){const n=u,a=e[t],l=e[t+1],o=e[t+2]??0;let c,d,p,h,y,f,m,g,_,w,b,F,I,v,S,T,R,A,C,x,M;c=Math.abs(o),d=a*a+l*l,p=Math.sqrt(d),h=d+o*o,y=Math.sqrt(h),x=Math.atan2(l,a),f=o*o/h,m=d/h,v=n.a2/y,S=n.a3-n.a4/y,m>.3?(g=c/y*(1+m*(n.a1+v+f*S)/y),C=Math.asin(g),w=g*g,_=Math.sqrt(1-w)):(_=p/y*(1-f*(n.a5-v-m*S)/y),C=Math.acos(_),w=1-_*_,g=Math.sqrt(w)),b=1-s.$O.eccentricitySquared*w,F=s.$O.radius/Math.sqrt(b),I=n.a6*F,v=p-F*_,S=c-I*g,R=_*v+g*S,T=_*S-g*v,A=T/(I/b+R),C+=A,M=R+T*A/2,o<0&&(C=-C),r[i++]=j*x,r[i++]=j*C,r[i]=M}const M={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},L=(0,i.kU)(1),j=(0,i.KJ)(1),O=.5*Math.PI,k=s.$O.radius,q=k*Math.PI/180,E=180/(k*Math.PI)},41366:(e,t,r)=>{r.d(t,{K:()=>d,Q:()=>o});var i=r(31635),n=r(66552),a=r(53966),s=r(91429),l=r(93223);const o=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(o,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},41560:(e,t,r)=>{r.d(t,{Ch:()=>s,mW:()=>a});var i=r(34727),n=r(39516);function a(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const a=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(a&&((0,i.gg)(t,a[0])||(0,i.ZH)(r,a[1])))return"";const s=Array.from(l(e,t,r)),o=function(e,t,r){if(0===e.length)return!0;const n=c(e.at(0)?.minScale),a=d(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(a,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(c(n.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return o&&"1=1"!==o?o:""}function*l(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)o(i.minScale,i.maxScale,t,r)&&(yield i)}}function o(e,t,r,n){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45067:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(31635),n=r(69540),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new a.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:o.read,write:o.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},46140:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(49186);let n=class e{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)}validate(e){if(this.major!==e.major){const 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 e(this.major,this.minor,this._context)}static parse(t,r=""){const[n,a]=t.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!a?.match||!s.test(a))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(n,10),o=parseInt(a,10);return new e(l,o,r)}}},52136:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(31635),n=r(91429);const a=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},55674:(e,t,r)=>{r.d(t,{Ad:()=>h,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>y});var i=r(66131),n=r(49186),a=(r(44208),r(44729)),s=r(15032),l=r(65864),o=r(95466),u=r(43668),c=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return f.create(e,t,null,["$feature","$view"])}function y(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:a,Dictionary:s}=await(0,u.l)();let l;try{l=a.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const o=a.scriptUsesGeometryEngine(l);o&&await a.enableGeometrySupport(),await a.loadDependentModules(new Set,l,null,!1,o);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=a.compileScript(l,c);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const h=new s;return h.immutable=!1,h.setField("scale",0),new f(e,a,l,d,t,h,p,s)}constructor(e,t,r,i,n,a,s,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=a,this._configDict=s,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:a}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=a?null!=r?i.lY.epochToArcadeDate(a,r):i.lY.unknownEpochToArcadeDate(a):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new o.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return a.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},62815:(e,t,r)=>{r.d(t,{N:()=>s});var i=r(86211),n=r(73941),a=r(21325);function s(e,t,r){if(null==t||null==r||r.vcsWkid||(0,a.aI)(t,r)||(0,n.xP)(t)||(0,n.xP)(r))return;const s=(0,i.G9)(t)/(0,i.G9)(r);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}},73681:(e,t,r)=>{r.d(t,{n:()=>o});var i=r(49186),n=r(53966),a=r(46140),s=r(95466),l=r(55674);class o{static async from(e,t,r){const s=e.dictionary_version?a.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const h=await(0,l.xR)(e.expression,null,d);if(!h)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!s||!s.greaterEqual(4,0);y&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const f=new u(r,y);return new o(y,c,h,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},77548:(e,t,r)=>{r.d(t,{Gh:()=>g,tk:()=>h,BR:()=>p,wI:()=>d,G$:()=>f,$x:()=>y,Ov:()=>o,UC:()=>a,W_:()=>u,OP:()=>m,TU:()=>l,XX:()=>s,jy:()=>c});var i=r(70333),n=r(11254);function a(e){return null!=e&&"object"==typeof e&&"type"in e&&"knowledge-graph-sublayer"===e.type}r(7762),r(84952),r(36563),r(36708),r(4146),new WeakMap,r(16215);const s={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function l(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function o(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function u(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function c(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"feature"===e.type}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}async function d(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const a=e.toLowerCase().indexOf("/rest/services");if(-1===a)return null;const s=`${e.slice(0,a)}/rest/info`,l=null!=t?t.signal:null,{data:o}=await(0,n.A)(s,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function h(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function y(e,t){return null}function f(e){return null}function m(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function g(e,t){if(!t||!m(e))return;const r=(e.url,null);r&&(e.url=r)}},79677:(e,t,r)=>{r.d(t,{A:()=>d});var i,n=r(31635),a=r(25482),s=r(88930),l=r(91429),o=r(98623),u=r(36005),c=r(43937);let d=class extends a.o{static{i=this}static get allTime(){return p}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=o.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let n=this.end;if(n){const r=(0,s.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;let s,l;return n>=t&&n<=r?s=n:t>=n&&t<=a&&(s=t),r>=n&&r<=a?l=r:a>=t&&a<=r&&(l=a),null==s||null==l||isNaN(s)||isNaN(l)?i.empty:new i({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(e,t,r=o.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:a,end:l}=this;return null!=a&&(n.start=(0,s.S1)(a,e,t,r)),null!=l&&(n.end=(0,s.S1)(l,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],d.prototype,"writeStart",null),d=i=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],d);const p=new d,h=new d({start:void 0,end:void 0})},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>Q,isEqualBaseGCS:()=>$,isLoaded:()=>x,isLoadedOrLoad:()=>M,isLoadedOrLoadFor:()=>L,load:()=>O,project:()=>k,projectAsync:()=>G,projectExtent:()=>te,projectMany:()=>q,projectMultipoint:()=>K,projectOrLoad:()=>N,projectOrLoadMany:()=>Z,projectPoint:()=>J,projectPolygon:()=>X,projectPolyline:()=>W,projectWithoutEngine:()=>z,requiresLoad:()=>j,test:()=>U,tryProject:()=>E,unload:()=>D});var i=r(49186),n=r(74887),a=r(62788),s=r(95488),l=r(51850),o=r(21276),u=r(73941),c=r(5443),d=r(91075),p=r(48526),h=r(86738),y=r(39829),f=r(82799),m=r(16930),g=r(159),_=r(9762),w=r(37539);function b(e,t,r,i,n,a){return F[0]=e,F[1]=t,F[2]=r,(0,_.projectBuffer)(F,i,0,n,a,0)}const F=(0,l.vt)();var I=r(21325);let v=null,S=null,T=null,R=null,A={};const C=new s.I;function x(){return!!(S?.isLoaded()&&T?.isLoaded()&&R?.isLoaded())}function M(){return!!x()||((0,a.gc)(C),O(),!1)}function L(e,t){return!e||!t||B(e,t)||M()}function j(e,t){return!B(e,t)&&!x()}async function O(e){null==v&&(v=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(S=e,S.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await v,(0,n.Te)(e),C.notify()}function k(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,o.H)(e),q(e,e[0].spatialReference,t,r)):((0,o.f)(e),q([e],e.spatialReference,t,r)[0])}function q(e,t,r,i){if(null==t||null==r)return e;if(B(t,r,i))return e.map(e=>z(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return q(e.map(e=>z(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return q(e,t,m.A.WGS84).map(e=>z(e,m.A.WGS84,r));if(!x())throw new P;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:R.getTransformation(t,r,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let n=A[e];n||(n=R.getTransformation(t,r)||new g.A,A[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?S.executeMany(e,r,i):T.executeMany(e,r,i)}function E(e,t,r){try{return k(e,t,r)}catch(e){if(e instanceof P)return null;throw e}}function N(e,t){const r=Z([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function Z(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,I.aI)(r.spatialReference,t)&&(0,I.fn)(r.spatialReference)&&(0,I.fn)(t)&&!B(r.spatialReference,t))return(0,a.gc)(C),{pending:O(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?k(e,t,r):null)}}class P extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){v=null,S=null,T=null,R=null,A={}}const U={get loadPromise(){return v}};async function G(e,t,r){if((0,n.Te)(r),!e)return e;const i=Z(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),G(e,t,r);const a=i.geometries??[];return Array.isArray(e)?a:a[0]}function B(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,w.jd)(e,t))}function $(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),i=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return r&&i}async function Q(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!B(t,r,n))return O(i)}else if(e&&t&&!B(e,t,r))return O(i);return(0,n.NO)(i)}function z(e,t,r){return e?"x"in e?V(e,t,new h.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new y.A,r,0):"paths"in e?H(e,t,new f.A,r,0):"points"in e?Y(e,t,new p.A,r,0):null:null}function J(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,i)}function V(e,t,r,i,n){ne[0]=e.x,ne[1]=e.y;const a=e.z;return ne[2]=void 0!==a?a:n,(0,_.projectBuffer)(ne,t,0,ne,i,0)?(r.x=ne[0],r.y=ne[1],r.spatialReference=i,void 0!==a||(0,u.xP)(i)?(r.z=ne[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function K(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Y(e,e.spatialReference,t,r,i)}function Y(e,t,r,i,n){const{points:a,hasZ:s,hasM:l}=e,o=[],c=a.length,d=[];for(const e of a)d.push(e[0],e[1],s?e[2]:n);if(!(0,_.projectBuffer)(d,t,0,d,i,0,c))return null;const p=s||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,r=d[t],i=d[t+1];p&&l?o.push([r,i,d[t+2],a[e][3]]):p?o.push([r,i,d[t+2]]):l?o.push([r,i,a[e][2]]):o.push([r,i])}return r.points=o,r.spatialReference=i,r.hasZ=s,r.hasM=l,r}function W(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){const{paths:a,hasZ:s,hasM:l}=e,o=[];if(!ie(a,s??!1,l??!1,t,o,i,n))return null;const c=s||(0,u.xP)(i);return r.paths=o,r.spatialReference=i,r.hasZ=c,r.hasM=l,r}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,i)}function ee(e,t,r,i,n){const{rings:a,hasZ:s,hasM:l}=e,o=[];if(!ie(a,s??!1,l??!1,t,o,i,n))return null;const c=s||(0,u.xP)(i);return r.rings=o,r.spatialReference=i,r.hasZ=c,r.hasM=l,r}function te(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,i)}function re(e,t,r,i,n){const{xmin:a,ymin:s,xmax:l,ymax:o,hasZ:c,hasM:d}=e;if(!b(a,s,c?e.zmin:n,t,ne,i))return null;const p=c||(0,u.xP)(i);return r.xmin=ne[0],r.ymin=ne[1],p&&(r.zmin=ne[2]),b(l,o,c?e.zmax:n,t,ne,i)?(r.xmax=ne[0],r.ymax=ne[1],p&&(r.zmax=ne[2]),d&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function ie(e,t,r,i,n,a,s=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:s);if(!(0,_.projectBuffer)(l,i,0,l,a,0))return!1;let o=0;n.length=0;const c=t||(0,u.xP)(a);for(const t of e){const e=new Array;for(const i of t)c&&r?e.push([l[o++],l[o++],l[o++],i[3]]):c?e.push([l[o++],l[o++],l[o++]]):r?(e.push([l[o++],l[o++],i[2]]),o++):(e.push([l[o++],l[o++]]),o++);n.push(e)}return!0}const ne=(0,l.vt)()},91880:(e,t,r)=>{r.d(t,{A:()=>u});var i,n=r(31635),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:o.apiValues,json:{type:o.jsonValues,read:o.read,write:o.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},99157:(e,t,r)=>{r.d(t,{A:()=>l});var i,n=r(31635),a=r(69622),s=r(91429);let l=i=class extends a.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,s.MZ)()],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"wkt",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3345,3548,4342,7548,7694],{159:(e,t,r)=>{r.d(t,{A:()=>o});var i,n=r(31635),a=r(69622),s=r(91429),l=r(99157);let o=i=class extends a.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new i;for(let t=this.steps.length-1;t>=0;t--){const r=this.steps[t];e.steps.push(r.getInverse())}return e}};(0,n.Cg)([(0,s.MZ)({type:[l.A],nonNullable:!0})],o.prototype,"steps",void 0),o=i=(0,n.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformation")],o)},4146:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(31635),n=r(11254),a=r(49186),s=r(65529),l=r(4902),o=r(92474),u=r(53966),c=r(74887),d=r(84952),p=r(91429),h=r(5443),y=r(16930),f=r(92602),m=r(79677);let g=0,_=class extends((0,s.Zt)((0,l.s)(o.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new h.A(-180,-90,180,90,y.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(5710)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||f.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new a.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new a.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,p.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i.Cg)([(0,p.MZ)({type:h.A})],_.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i.Cg)([(0,p.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:y.A})],_.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],_.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],_.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({type:m.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i.Cg)([(0,p.$K)("esri.layers.Layer")],_)},6797:(e,t,r)=>{r.d(t,{Ui:()=>p});var i=r(69622),n=r(7762),a=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function o(e){return e instanceof n.A?Object.keys(e.items):l(e)?(0,a.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=o(e),n=o(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const a=n.filter(e=>!i.includes(e)),p=i.filter(e=>!n.includes(e)),h=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(a,p).sort(),y=c(e);if(y&&s.has(y)&&h.length)return{type:"complete",oldValue:e,newValue:t};let f;const m=l(e)&&l(t);for(const i of h){const n=u(e,i),a=u(t,i);let s;if((m||"function"!=typeof n&&"function"!=typeof a)&&n!==a&&(null!=n||null!=a)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,a);else if(n instanceof Date&&a instanceof Date){if(n.getTime()===a.getTime())continue;s={type:"complete",oldValue:n,newValue:a}}else s="object"==typeof n&&"object"==typeof a&&c(n)===c(a)?d(n,a):{type:"complete",oldValue:n,newValue:a};null!=s&&(null!=f?f.diff[i]=s:f={type:"partial",diff:{[i]:s}})}}return f}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},9762:(e,t,r)=>{r.r(t),r.d(t,{projectBuffer:()=>n});var i=r(37539);function n(e,t,r,n,a,s,l=Math.floor(e.length/3)){const o=(0,i.jd)(t,a);if(null==o)return!1;if(o===i.pO){if(e===n&&r===s)return!0;const t=r+3*l;for(let i=r,a=s;i<t;i++,a++)n[a]=e[i]??0;return!0}const u=r+3*l;for(let t=r,i=s;t<u;t+=3,i+=3)o(e,t,n,i);return!0}},10536:(e,t,r)=>{function i(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=i(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{z:()=>i})},16215:(e,t,r)=>{r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},16494:(e,t,r)=>{r.d(t,{Nd:()=>l,W5:()=>s});var i=r(37330);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),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"],s=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(a.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),l=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17126:(e,t,r)=>{r.d(t,{dw:()=>s,qD:()=>l,qW:()=>o});var i=r(11254),n=r(21325),a=r(10536);function s(e,t){const r=e.toJSON();return r.objectIds&&(r.objectIds=r.objectIds.join(",")),r.orderByFields&&(r.orderByFields=r.orderByFields.join(",")),r.outFields&&!t?.returnCountOnly?r.outFields.includes("*")?r.outFields="*":r.outFields=r.outFields.join(","):delete r.outFields,r.outSR&&(r.outSR=(0,n.YX)(r.outSR)),r.dynamicDataSource&&(r.layer=JSON.stringify({source:r.dynamicDataSource}),delete r.dynamicDataSource),r}async function l(e,t,r){const i=await u(e,t,r),n=i.data,a=n.geometryType,s=n.spatialReference,l={};for(const e of n.relatedRecordGroups){const t={fields:void 0,geometryType:a,spatialReference:s,hasZ:!!n.hasZ,hasM:!!n.hasM,features:e.relatedRecords};if(null!=e.objectId)l[e.objectId]=t;else for(const r of Object.keys(e))"relatedRecords"!==r&&(l[e[r]]=t)}return{...i,data:l}}async function o(e,t,r){const i=await u(e,t,r,{returnCountOnly:!0}),n=i.data,a={};for(const e of n.relatedRecordGroups)null!=e.objectId&&(a[e.objectId]=e.count);return{...i,data:a}}async function u(e,t,r={},n){const l=(0,a.z)({...e.query,f:"json",...n,...s(t,n)});return(0,i.A)(e.path+"/queryRelatedRecords",{...r,query:{...r.query,...l}})}},17311:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(31635),n=r(69622),a=r(4576),s=r(60999),l=r(7762),o=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let h=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??r.e(9926).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{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(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);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||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,n=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:a}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:l}=this,u=l&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?a({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:l}):"";r?.removeHTML&&(d=o.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(a.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const n=await e.queryFeatures(i);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const a={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:a,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],h.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],h.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],h.prototype,"requiredFields",null),h=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],h)},22671:(e,t,r)=>{r.d(t,{A:()=>_});var i,n=r(31635),a=r(52106),s=r(66552),l=r(25482),o=r(4718),u=r(91429),c=r(16930),d=r(60408),p=r(65864),h=r(50498),y=r(20437),f=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,a.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,p.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=c.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const 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,o.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,a=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=a.length;e<t;e++)s?.(a[e].geometry)||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[a,s]}=r;let l=null,o=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;o=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*a+i,e=>n-e*s,l,o);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=c.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const a=e[t],s=r.fromJSON(a),l=a.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const o=a.aggregateGeometries,u=s.aggregateGeometries;if(o&&null!=u)for(const e in u){const t=u[e],r=o[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(s)}return n}_quantizePoints(e,t,r){let i,n;const a=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===n||(a.push([e-i,s-n]),i=e,n=s)}else i=t(l[0]),n=r(l[1]),a.push([i,n])}return a.length>0?a: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=>{const i=(0,d.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,a=i.length;e<a;e++){const a=i[e],s=this._quantizePoints(a,t,r);s&&n.push(s)}return n.length>0?((0,d.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const a=(0,d.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=a.length;e<i;e++){const i=a[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(s+=n[0],l+=n[1]):(s=n[0],l=n[1]),n[0]=t(s),n[1]=r(l)}}if(i&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const a=e.points;let s,l;for(let e=0,i=a.length;e<i;e++){const i=a[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=i(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){const t=a[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[a.A],json:{write:!0}})],_.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],_.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0},29005:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(31635),n=r(69540),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:o.read,write:o.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],u)},30235:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(48938),n=r(87449),a=r(11221),s=r(33325),l=r(80609),o=r(4576),u=r(39516),c=r(91075),d=r(68654),p=r(33143),h=r(20437);class y extends a.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerMemory",this._removeGeometry=!1,this._overrideFields=null,this._forceIsTable=!1,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),!0===e.isTable&&(this._forceIsTable=!0),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return s.gO}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}get gdbVersion(){return""}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||this._layer.objectIdField===r||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this._databaseType=0,this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,this.subtypeField=("subtypeField"in this._layer?this._layer.subtypeField:null)??"",this.subtypes="subtypes"in this._layer?this._layer.subtypes:null,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}isTable(){return this._forceIsTable||"isTable"in this._layer&&this._layer.isTable||"table"===this._layer.type||!this._layer.geometryType}async _queryAll(){return(await this.query({abortSignal:i._})).features}_queryLayerFeaturesJSON(e){return"queryFeaturesJSON"in this._layer?this._layer.queryFeaturesJSON(e):this._layer.source.queryFeaturesJSON(e)}async query(e){await this._ensureLoaded();let t="",r=!1;if(null!=e.orderBy&&(t=e.orderBy.constructClause(),r=!0),this.isTable()&&null!=e.spatialFilter)return a.An;const i=this._createQuery();return i.where=(0,u.mA)(i.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,l.YY)(e.where,0)),null!=e.spatialFilter&&(i.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),i.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),i.geometry=e.spatialFilter.geometry),i.outSpatialReference=this.spatialReference,i.orderByFields=""!==t?t.split(","):null,{filterApplied:!0,spatialFilterApplied:!0,ordered:r,features:async function*(){const t=await this._queryLayerFeaturesJSON(i);(0,n.dZ)(e.abortSignal);for(const e of(0,o.Ho)(t.features,this._maxQueryRate()))(0,a.Rn)(e,t.spatialReference??this.spatialReference.toJSON()),yield e}.apply(this)}}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new n.dr("NeverReach")}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,e.outFields=this._overrideFields??["*"],e.returnGeometry=!this._removeGeometry,e}_makeRelationshipEnum(e){if(e.includes("esriSpatialRelRelation"))return"relation";switch(e){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return e}_makeRelationshipParam(e){return e.includes("esriSpatialRelRelation")?e.split(":")[1]:""}relationshipMetadata(){return[]}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}static create(e,t){let r=e.layerDefinition.objectIdField;const i=e.layerDefinition.typeIdField??"",n=[];if(e.layerDefinition.types)for(const t of e.layerDefinition.types)n.push(p.A.fromJSON(t));let a=e.layerDefinition.geometryType;void 0===a&&(a=e.featureSet.geometryType||"");let s=e.featureSet.features;if(!r){let t=!1;for(const i of e.layerDefinition.fields)if("oid"===i.type||"esriFieldTypeOID"===i.type){r=i.name,t=!0;break}if(!1===t){let t="FID",i=!0,n=0;for(;i;){let r=!0;for(const i of e.layerDefinition.fields)if(i.name===t){r=!1;break}!0===r?i=!1:(n++,t="FID"+n.toString())}e.layerDefinition.fields.push({type:"esriFieldTypeOID",name:t,alias:t});const a=[];for(let r=0;r<s.length;r++)a.push({geometry:e.featureSet.features[r].geometry,attributes:{...e.featureSet.features[r].attributes,[t]:r}});s=a,r=t}}const l=[];for(const t of e.layerDefinition.fields)t instanceof h.A?l.push(t):l.push(h.A.fromJSON(t));let o=a;switch(o||(o=""),o){case"esriGeometryPoint":o="point";break;case"esriGeometryPolyline":o="polyline";break;case"esriGeometryPolygon":o="polygon";break;case"esriGeometryEnvelope":o="extent";break;case"esriGeometryMultipoint":o="multipoint";break;case"":case"esriGeometryNull":o="esriGeometryNull"}if("esriGeometryNull"!==o){const e=t.toJSON();for(const t of s)t.geometry&&t.geometry instanceof c.A==0&&(t.geometry.type=o,void 0===t.geometry.spatialReference&&(t.geometry.spatialReference=e))}else for(const e of s)e.geometry&&(e.geometry=null);const u={outFields:["*"],source:s,fields:l,hasZ:!0===e.layerDefinition.hasZ||!0===e.featureSet.hasZ,hasM:!0===e.layerDefinition.hasM||!0===e.featureSet.hasM,types:n,typeIdField:i,objectIdField:r,spatialReference:t},f="esriGeometryNull"===o||null===o;f||(u.geometryType=o);const m=new d.default(u);return e.layerDefinition.subtypeField&&e.layerDefinition.subtypes&&m.read({subtypes:e.layerDefinition.subtypes,subtypeField:e.layerDefinition.subtypeField}),new y({layer:m,spatialReference:t,isTable:f})}async queryAttachments(){return[]}async getFeatureByObjectId(e){const t=this._createQuery();t.where=this.objectIdField+"="+e.toString();const r=await this._queryLayerFeaturesJSON(t);return 1===r.features.length?((0,a.Rn)(r.features,r.spatialReference??this.spatialReference.toJSON()),r.features[0]):null}serviceUrl(){return""}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return"preferredTimeZone"in this._layer?this._layer.preferredTimeZone:null}get dateFieldsTimeZone(){return"dateFieldsTimeZone"in this._layer?this._layer.dateFieldsTimeZone:null}get datesInUnknownTimezone(){return"datesInUnknownTimezone"in this._layer&&this._layer.datesInUnknownTimezone}get editFieldsInfo(){return"editFieldsInfo"in this._layer?this._layer.editFieldsInfo:null}get timeInfo(){return this._layer.timeInfo}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}},30445:(e,t,r)=>{r.r(t),r.d(t,{constructAssociationMetaDataFeatureSetFromUrl:()=>U,constructFeatureSet:()=>P,constructFeatureSetFromPortalItem:()=>V,constructFeatureSetFromRelationship:()=>G,constructFeatureSetFromUrl:()=>Z,convertToFeatureSet:()=>J,createFeatureSetCollectionFromMap:()=>Q,createFeatureSetCollectionFromService:()=>z,initialiseMetaDataCache:()=>E});var i=r(11254);class n{constructor(){this.declaredRootClass="esri.arcade.featureSetCollection",this._layerById={},this._layerByName={}}add(e,t,r){this._layerById[t]=r,this._layerByName[e]=r}async featureSetByName(e,t=!0,r=["*"]){return void 0===this._layerByName[e]?null:this._layerByName[e]}async featureSetById(e,t=!0,r=["*"]){return void 0===this._layerById[e]?null:this._layerById[e]}castToText(e=!1){return"object, FeatureSetCollection"}}var a=r(78878),s=r(35704),l=r(70333),o=r(48938),u=r(61454),c=r(66395),d=r(87449),p=r(11221),h=r(33325),y=r(80609),f=r(50145),m=r(4576),g=r(80200),_=r(39516),w=r(88368),b=r(68654),F=r(17126),I=r(54546),v=r(61956),S=r(7562);function T(e,t){null==e.clause&&(e.clause=function(e){if(0===e.length)throw new d.dr("NeverReach");const t=[];for(let r=0;r<e.length;r++){const i=e[r],n=[`"${i.name.replaceAll('"','""')}" ${i.asc?">":"<"} @last_${r}`];for(let t=0;t<r;t++){const r=e[t];n.push(`"${r.name.replaceAll('"','""')}" = @last_${t}`)}t.push(n.join(" AND "))}const r=t.join(" OR ");return w.A.create(r)}(e.keyFields));for(let r=0;r<e.keyFields.length;r++){const i=e.keyFields[r].name;e.clause.parameters[`last_${r}`]=t.attributes[i]}}class R extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerDynamic",this._removeGeometry=!1,this._overrideFields=null,this._requestStandardised=!1,this._useDefinitionExpression=!0,this._recentlyUsedQueries=null,this._featureSetQueryInterceptor=null,this._featureSetInfo=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry),e.lrucache&&(this._recentlyUsedQueries=e.lrucache),e.interceptor&&(this._featureSetQueryInterceptor=e.interceptor)}_maxQueryRate(){return h.gO}get urlQueryPath(){return this._layer.parsedUrl.path||""}convertQueryToLruCacheKey(e){const t=this.urlQueryPath+","+(0,h.JB)(e.toJSON());return(0,g.d)(t,g.T.String)}async loadImpl(){return!0===this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),this.hasZ=!0===this._layer.capabilities?.data?.supportsZ,this.hasM=!0===this._layer.capabilities?.data?.supportsM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}if(this._layer.source&&this._layer.source.sourceJSON){const e=this._layer.source.sourceJSON.currentVersion;!0===this._layer.source.sourceJSON.useStandardizedQueries?(this._databaseType=1,null!=e&&e>=10.61&&(this._databaseType=0)):null!=e&&(e>=10.5&&(this._databaseType=1,this._requestStandardised=!0),e>=10.61&&(this._databaseType=0))}this.objectIdField=this._layer.objectIdField;for(const e of this.fields)"global-id"===e.type&&(this.globalIdField=e.name);this.subtypeField=this._layer.subtypeField??"",this.subtypes=this._layer.subtypes,this.typeIdField=("typeIdField"in this._layer?this._layer.typeIdField:null)??"",this.types="types"in this._layer?this._layer.types:null}async _runDatabaseProbe(e){await this._ensureLoaded();const t=new v.A;this.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t.where=e.replace("OBJECTID",this._layer.objectIdField);try{return await this._layer.queryObjectIds(t),!0}catch{return!1}}_canUsePagination(){return!(!this._layer.capabilities||!this._layer.capabilities.query||!0!==this._layer.capabilities.query.supportsPagination)}_cacheableFeatureSetSourceKey(){return this._layer.url}get gdbVersion(){return this._layer&&this._layer.capabilities&&this._layer.capabilities.data&&this._layer.capabilities.data.isVersioned?this._layer.gdbVersion||"SDE.DEFAULT":""}nativeCapabilities(){return{title:this._layer.title??"",source:this,canQueryRelated:!0,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:this._requestStandardised}}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){return await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter?p.An:this._canUsePagination()?this._queryUsingPaging(e):this._queryUsingIdSetTraversal(e)}async _queryUsingPaging(e){let t="",r=!1;null!=e.orderBy&&!0===this._layer.capabilities?.query?.supportsOrderBy&&(t=e.orderBy.constructClause(),r=!0);const i=await this.databaseType(),n=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,i);let a=this._maxQueryRate();const s=this._layer.capabilities?.query.maxRecordCount;null!=s&&s<a&&(a=s);const l=!0!==this._removeGeometry,o=this._overrideFields??this._fieldsIncludingObjectId(["*"]),u=this._createQuery();return u.where=(0,_.mA)(u.where,n),null!=e.spatialFilter&&(u.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),u.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),u.geometry=e.spatialFilter.geometry),u.orderByFields=""!==t?t.split(","):null,u.outFields=o,u.returnGeometry=l,u.outSpatialReference=this.spatialReference,{ordered:r,filterApplied:!0,spatialFilterApplied:!0,features:this._queryPaginated(u,a,e.abortSignal)}}async*_queryPaginated(e,t,r){let i;e.num=t,e.start=0;do{(0,d.dZ)(r),i=await this.executeQuery(e,"execute"),yield i.features,e.start+=t}while(!0===i.exceededTransferLimit)}async _queryUsingIdSetTraversal(e){let t="",r=!1;null!=e.orderBy&&this._layer.capabilities&&this._layer.capabilities.query&&!0===this._layer.capabilities.query.supportsOrderBy&&(t=e.orderBy.constructClause(),r=!0);const i=await this.databaseType(),n=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,i),a=this._createQuery();a.where=(0,_.mA)(a.where,n),null!=e.spatialFilter&&(a.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),a.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),a.geometry=e.spatialFilter.geometry),a.orderByFields=""!==t?t.split(","):null,a.outSpatialReference=this.spatialReference;const s=await this.executeQuery(a,"executeForIds");if((0,d.dZ)(e.abortSignal),null==s||s.length<=0)return p.An;let l=this._maxQueryRate();const o=this._layer.capabilities?.query.maxRecordCount;null!=o&&o<l&&(l=o);const u=this._createQuery();return a.outFields=this._overrideFields??this._fieldsIncludingObjectId(["*"]),a.returnGeometry=!0!==this._removeGeometry,a.outSpatialReference=this.spatialReference,{ordered:r,filterApplied:!0,spatialFilterApplied:!0,features:this._traverseIdSet(u,s,l,e.abortSignal)}}async*_traverseIdSet(e,t,r,i){for(let n=0;n<t.length;n+=r){e.objectIds=t.slice(n,n+r),(0,d.dZ)(i);const a=await this.executeQuery(e,"execute");yield a.features}}async queryStat(e){await this._ensureLoaded();const t=this._layer.capabilities?.query,r=!!t?.supportsSqlExpression,i=!!t?.supportsStatistics,n=!!t?.supportsDistinct,a=(0,f.Dp)(e.stat);if("count"===a)return n?this._queryCount(e):{calculated:!1};const s=e.field;if(null==s)return{calculated:!1};if(!1===i||!1===(0,y.DA)(s)&&!1===r||!1===s.isStandardized)return null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(e.stat,s,e.limit??h.gO,e.abortSignal);if("distinct"===a)return!1===n?null!=e.spatialFilter||null!=e.where?{calculated:!1}:this._manualStat(a,s,e.limit??h.gO,e.abortSignal):{calculated:!1};const l=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:null};const o=this._createQuery();o.where=(0,_.mA)(o.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,l)),null!=e.spatialFilter&&(o.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),o.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),o.geometry=e.spatialFilter.geometry);const u=new S.A;u.statisticType=a,u.onStatisticField=(0,y.YY)(s,l),u.outStatisticFieldName="ARCADE_STAT_RESULT",o.returnGeometry=!1;let c="ARCADE_STAT_RESULT";o.outStatistics=[u];const p=await this.executeQuery(o,"execute");if(!p.hasOwnProperty("features")||0===p.features.length)throw new d.dr("InvalidStatResponse");let m=!1;const g=p.fields??[];for(const e of g)if("ARCADE_STAT_RESULT"===e.name.toUpperCase()){c=e.name,"esriFieldTypeDate"===e.type&&(m=!0);break}const w=p.features[0].attributes[c];return{calculated:!0,result:m&&null!=w?new Date(w):w}}async _queryCount(e){const t=await this.databaseType();if(this.isTable()&&null!=e.spatialFilter)return{calculated:!0,result:0};const r=this._createQuery();return r.where=(0,_.mA)(r.where,null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t)),null!=e.spatialFilter&&(r.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),r.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),r.geometry=e.spatialFilter.geometry),r.returnGeometry=!1,{calculated:!0,result:await this.executeQuery(r,"executeForCount")}}async canQueryAggregate(e){await this._ensureLoaded();let t=!1;const r=this._layer.capabilities?.query,i=!0===r?.supportsSqlExpression;if(null!=r&&!0===r.supportsStatistics&&!0===r.supportsOrderBy&&(t=!0),t)for(const r of e.statistics)(!1===r.workingexpr?.isStandardized||!1===(0,y.DA)(r.workingexpr)&&!1===i)&&(t=!1);return t}async queryAggregate(e){if(await this._ensureLoaded(),this.isTable()&&null!=e.spatialFilter)return p.An;const t=await this.databaseType(),r=e.groupBy,i=e.orderBy;let n=null;if(!this._layer.capabilities.query.supportsPaginationOnAggregatedQueries){const e=this.getFieldsIndex();n={keyFields:r.map((t,r)=>({name:e.normalizeFieldName(t)??t,asc:null==i||1===i._directions[r]}))}}let a="",s=!1;null!=i&&!0===this._layer.capabilities?.query?.supportsOrderBy&&(null==n||(0,m.MJ)(r,0,r.length,i._fields,0,Math.min(i._fields.length,r.length),(e,t)=>e.toLowerCase()===t.toLowerCase()))&&(a=i.constructClause(),s=!0),""===a&&(a=r.join(","));const l=e.statistics.map(e=>new S.A({onStatisticField:null!==e.workingexpr?(0,y.YY)(e.workingexpr,t):"",outStatisticFieldName:e.field,statisticType:e.toStatisticsName()}));let o=this._maxQueryRate();const u=this._layer.capabilities?.query.maxRecordCount;null!=u&&u<o&&(o=u);const c=null==e.where?null==e.spatialFilter?"1=1":"":(0,y.YY)(e.where,t),d=this._createQuery();return d.where=(0,_.mA)(d.where,c),null!=e.spatialFilter&&(d.spatialRelationship=this._makeRelationshipEnum(e.spatialFilter.relation),d.relationParameter=this._makeRelationshipParam(e.spatialFilter.relation),d.geometry=e.spatialFilter.geometry),d.orderByFields=""!==a?a.split(","):null,d.outFields=["*"],d.outStatistics=l,d.groupByFieldsForStatistics=r,d.returnGeometry=!1,null==n?{filterApplied:!0,spatialFilterApplied:!0,ordered:s,features:this._queryPaginated(d,o,e.abortSignal)}:{filterApplied:!0,spatialFilterApplied:!0,ordered:s,features:this._queryKeysetPaginated(d,n,e.abortSignal)}}async*_queryKeysetPaginated(e,t,r){const i=e.where;for(;;){if(null!=t.clause){if(!this._layer.capabilities.query.supportsOrderBy)throw new d.dr("NotImplemented");e.where=(0,_.mA)(i,(0,y.YY)(t.clause,await this.databaseType()))}const n=await this.executeQuery(e,"execute");if((0,d.dZ)(r),!n.hasOwnProperty("features"))throw new d.dr("InvalidStatResponse");if(yield n.features,0===n.features.length||!0!==n.exceededTransferLimit)break;T(t,n.features.at(-1))}}_createQuery(){const e=this._layer.createQuery();return e.returnZ=this.hasZ,e.returnM=this.hasM,this.datesInUnknownTimezone&&(e.timeReferenceUnknownClient=!0),this._requestStandardised&&(e.sqlFormat="standard"),this._useDefinitionExpression?"subtype-group"===this._layer.type&&(e.where=this._layer.definitionExpression):e.where=null,e}executeQuery(e,t){const r="execute"===t?async e=>{const t=await this._layer.source.queryFeaturesJSON(e);return(0,p.Rn)(t.features,t.spatialReference??this.spatialReference.toJSON()),t}:"executeForCount"===t?this._layer.queryFeatureCount.bind(this._layer):this._layer.queryObjectIds.bind(this._layer);let i=null;if(this._recentlyUsedQueries){const t=this.convertQueryToLruCacheKey(e);i=this._recentlyUsedQueries.getFromCache(t),null===i&&(i=r(e),this._recentlyUsedQueries.addToCache(t,i),i=i.catch(e=>{throw this._recentlyUsedQueries?.removeFromCache(t),e}))}return this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:e,method:t}),null===i&&(i=r(e)),i}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}isTable(){return this._layer.isTable||null===this._layer.geometryType||"table"===this._layer.type||""===this._layer.geometryType||"esriGeometryNull"===this._layer.geometryType}_makeRelationshipEnum(e){if(e.includes("esriSpatialRelRelation"))return"relation";switch(e){case"esriSpatialRelRelation":return"relation";case"esriSpatialRelIntersects":return"intersects";case"esriSpatialRelContains":return"contains";case"esriSpatialRelOverlaps":return"overlaps";case"esriSpatialRelWithin":return"within";case"esriSpatialRelTouches":return"touches";case"esriSpatialRelCrosses":return"crosses";case"esriSpatialRelEnvelopeIntersects":return"envelope-intersects"}return e}_makeRelationshipParam(e){return e.includes("esriSpatialRelRelation")?e.split(":")[1]:""}static create(e,t,r,i,n){const a=new b.default({url:e,outFields:null===t?["*"]:t});return new R({layer:a,spatialReference:r,lrucache:i,interceptor:n})}relationshipMetadata(){return this._layer&&this._layer.source&&this._layer.source.sourceJSON?.relationships?this._layer.source.sourceJSON.relationships:[]}serviceUrl(){return(0,h.Qi)(this._layer.parsedUrl.path)}async queryAttachments(e,t,r,i,n){const a=this._layer;if(!function(e){const t=e.capabilities;return t?.data.supportsAttachment&&t?.operations.supportsQueryAttachments}(a))return[];const s=new I.A({objectIds:[e],returnMetadata:n});(t&&t>0||r&&r>0)&&(s.size=[t&&t>0?t:0,r&&r>0?r:t+1]),i&&i.length>0&&(s.attachmentTypes=i),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:a,query:s,method:"attachments"});const l=await a.queryAttachments(s);return l?.[e]?l[e].map(t=>{const r=`${this._layer.parsedUrl.path}/${e}/attachments/${t.id}`;let i=null;return n&&t.exifInfo&&(i=c.A.convertJsonToArcade(t.exifInfo,"system",!0)),new u.A(t.id,t.name,t.contentType,t.size,r,i,t.keywords??null)}):[]}async queryRelatedFeatures(e){const t=(0,F.dw)(e);t.f="json",this._requestStandardised&&(t.sqlFormat="standard"),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preRequestCallback({layer:this._layer,queryPayload:t,method:"relatedrecords",url:this._layer.parsedUrl.path+"/queryRelatedRecords"});const r=await(0,i.A)(this._layer.parsedUrl.path+"/queryRelatedRecords",{responseType:"json",query:t});if(r.data){const e={},t=r.data;if(t?.relatedRecordGroups){const r=t.spatialReference,i=!0===t.exceededTransferLimit;for(const n of t.relatedRecordGroups)(0,p.Rn)(n.relatedRecords,r),e[n.objectId]={features:n.relatedRecords,exceededTransferLimit:i}}return e}throw new d.dr("InvalidRequest")}async getFeatureByObjectId(e,t){const r=this._createQuery();r.outFields=t,r.returnGeometry=!1,r.outSpatialReference=this.spatialReference,r.where=(0,_.mA)(r.where,this.objectIdField+"="+e.toString()),this._featureSetQueryInterceptor&&this._featureSetQueryInterceptor.preLayerQueryCallback({layer:this._layer,query:r,method:"execute"});const i=await this._layer.source.queryFeaturesJSON(r);return 1===i.features.length?((0,p.Rn)(i.features,i.spatialReference??this.spatialReference.toJSON()),i.features[0]):null}async getIdentityUser(){await this.load();const e=l.id?.findCredential(this._layer.url);return e?e.userId:null}async getOwningSystemUrl(){await this.load();const e=l.id?.findServerInfo(this._layer.url);if(e)return e.owningSystemUrl??"";let t=this._layer.url;const r=t.toLowerCase().indexOf("/rest/services");if(t=r>-1?t.slice(0,r):t,t){t+="/rest/info";try{const e=await(0,i.A)(t,{query:{f:"json"}});let r="";return e.data?.owningSystemUrl&&(r=e.data.owningSystemUrl),r}catch{return""}}return""}getDataSourceFeatureSet(){const e=new R({layer:this._layer,spatialReference:this.spatialReference??void 0,outFields:this._overrideFields??void 0,includeGeometry:!this._removeGeometry,lrucache:this._recentlyUsedQueries??void 0,interceptor:this._featureSetQueryInterceptor??void 0});return e._useDefinitionExpression=!1,e}get preferredTimeZone(){return this._layer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._layer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._layer.datesInUnknownTimezone??!1}get editFieldsInfo(){return this._layer.editFieldsInfo??null}get timeInfo(){return this._layer.timeInfo??null}async getFeatureSetInfo(){if(this._featureSetInfo)return this._featureSetInfo;let e=null,t="serviceItemId"in this._layer?this._layer.serviceItemId:null;const r=this._layer.parsedUrl?.path??null;if(r){const n=await(0,i.A)(r,{responseType:"json",query:{f:"json"}});e=n?.data?.name??null,t=n?.data?.serviceItemId??null}const n=this._layer.title&&null!==(this._layer.parent??null);return this._featureSetInfo={layerId:this._layer.layerId,layerName:""===e?null:e,itemId:""===t?null:t,serviceLayerUrl:""===r?null:r,webMapLayerId:n?this._layer.id??null:null,webMapLayerTitle:n?this._layer.title??null:null,className:null,objectClassId:null},this._featureSetInfo}}var A=r(30235),C=r(52006);class x extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerOGC",this._outFields=null,this._returnGeometry=!0,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),null!=e.outFields&&(this._outFields=e.outFields),null!=e.includeGeometry&&(this._returnGeometry=e.includeGeometry)}_maxQueryRate(){return this._layer.effectiveMaxRecordCount}async loadImpl(){return this._layer.loaded?(this._initialiseFeatureSet(),this):(await this._layer.load(),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){if(this.spatialReference??=this._layer.spatialReference,this.geometryType=this._layer.geometryType??"",this.fields=this._layer.fields.slice(),null!=this._outFields)if(1===this._outFields.length&&"*"===this._outFields[0])this._outFields=null;else{const e=new Set(this._outFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({name:t})=>t===this._layer.objectIdField||e.has(t.toLowerCase())),this._outFields=this.fields.map(({name:e})=>e)}this.objectIdField=this._layer.objectIdField,this.hasZ=!!this._layer.hasZ,this.hasM=!1,this.typeIdField=this._layer.typeIdField??"",this.types=this._layer.types??null;const e=this._layer.source.getSource().layerDefinition.featureCount;null!=e&&e>=0&&(this._totalCount=e)}isTable(){return this._layer.isTable}async _queryAll(){await this._ensureLoaded();const e=this._layer.createQuery();return e.outSpatialReference=this.spatialReference,this._queryPaginated(e,this._layer.effectiveMaxRecordCount,o._)}async query(e){await this._ensureLoaded();const t=this._layer.createQuery();if(t.outSpatialReference=this.spatialReference,null!=e.spatialFilter&&!(0,C.Ed)(e.spatialFilter.geometry))switch(e.spatialFilter.relation){case"esriSpatialRelIntersects":case"esriSpatialRelContains":case"esriSpatialRelOverlaps":case"esriSpatialRelWithin":case"esriSpatialRelTouches":case"esriSpatialRelCrosses":t.geometry=e.spatialFilter.geometry.extent}return this._hasCachedFeatures||null==t.geometry?{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:!1,features:await this.queryAll(e.abortSignal)}:{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter||"extent"===e.spatialFilter.geometry.type&&"esriSpatialRelIntersects"===e.spatialFilter.relation,ordered:!1,features:this._queryPaginated(t,this._layer.effectiveMaxRecordCount,e.abortSignal)}}async*_queryPaginated(e,t,r){let i;e.num=t,e.start=0;do{(0,d.dZ)(r),i=await this._layer.source.queryFeaturesJSON(e);const t=i.spatialReference??this.spatialReference.toJSON();yield i.features.map(e=>{const r={};for(const t of this.fields)r[t.name]=e.attributes[t.name];let i=null;return this._returnGeometry&&!this.isTable()&&null!=e.geometry&&(e.geometry.spatialReference=t,i=e.geometry),{geometry:i,attributes:r}}),e.start+=i.features.length}while(!0===i.exceededTransferLimit)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new d.dr("NeverReach")}nativeCapabilities(){return{title:this._layer.title??"",canQueryRelated:!1,source:this,capabilities:this._layer.capabilities,databaseType:this._databaseType,requestStandardised:!0}}async queryAttachments(){return[]}serviceUrl(){return""}relationshipMetadata(){return[]}get gdbVersion(){return""}getFeatureByObjectId(){throw new d.dr("NeverReach")}async getOwningSystemUrl(){return""}async getIdentityUser(){return""}get preferredTimeZone(){return null}get dateFieldsTimeZone(){return null}get datesInUnknownTimezone(){return!1}get editFieldsInfo(){return null}get timeInfo(){return this._layer.timeInfo}async getFeatureSetInfo(){const e=this._layer.title&&this._layer.parent;return{layerId:null,layerName:null,itemId:null,serviceLayerUrl:null,webMapLayerId:e?this._layer.id??null:null,webMapLayerTitle:e?this._layer.title??null:null,className:null,objectClassId:null}}}var M=r(26591);class L extends p.Jn{constructor(e){super(),this.declaredClass="esri.arcade.featureset.sources.FeatureLayerRelated",this._removeGeometry=!1,this._overrideFields=null,this._maxProcessing=1e3,this._layer=e.layer,e.spatialReference&&(this.spatialReference=e.spatialReference),this._findObjectId=e.objectId,this.relationship=e.relationship,this._relatedLayer=e.relatedLayer,void 0!==e.outFields&&(this._overrideFields=e.outFields),void 0!==e.includeGeometry&&(this._removeGeometry=!1===e.includeGeometry)}_maxQueryRate(){return h.gO}async loadImpl(){return await Promise.all([this._layer.load(),this._relatedLayer.load()]),this._initialiseFeatureSet(),this}nativeCapabilities(){return this._relatedLayer.nativeCapabilities()}_initialiseFeatureSet(){if(null==this.spatialReference&&(this.spatialReference=this._layer.spatialReference),this.geometryType=this._relatedLayer.geometryType,this.fields=this._relatedLayer.fields.slice(),this.hasZ=this._relatedLayer.hasZ,this.hasM=this._relatedLayer.hasM,null!==this._overrideFields)if(1===this._overrideFields.length&&"*"===this._overrideFields[0])this._overrideFields=null;else{const e=new Set(this._overrideFields.map(e=>e.toLowerCase()));this.fields=this.fields.filter(({type:t,name:r})=>"oid"===t||e.has(r.toLowerCase())),this._overrideFields=this.fields.map(({name:e})=>e)}const e=this._layer.nativeCapabilities();e&&(this._databaseType=e.databaseType),this.objectIdField=this._relatedLayer.objectIdField,this.globalIdField=this._relatedLayer.globalIdField,this.hasM=this._relatedLayer.supportsM,this.hasZ=this._relatedLayer.supportsZ,this.typeIdField=this._relatedLayer.typeIdField,this.types=this._relatedLayer.types,this.subtypeField=this._relatedLayer.subtypeField,this.subtypes=this._relatedLayer.subtypes}async databaseType(){return this._databaseType=await this._relatedLayer.databaseType(),this._databaseType}isTable(){return this._relatedLayer.isTable()}async _queryAll(){return(await this.query({abortSignal:o._})).features}async query(e){if(await this._ensureLoaded(),await this.databaseType(),this.isTable()&&null!=e.spatialFilter)return p.An;const t=this._layer.nativeCapabilities();if(!1===t.canQueryRelated)return p.An;if(t.capabilities?.queryRelated.supportsPagination)return this._queryUsingPaging(t.source,e);let r="",i=!1;null!=e.orderBy&&!0===t.capabilities?.queryRelated.supportsOrderBy&&(r=e.orderBy.constructClause(),i=!0);const n=new M.default;return n.objectIds=[this._findObjectId],n.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),n.relationshipId=this.relationship.id,n.where="1=1",n.returnGeometry=!0!==this._removeGeometry,n.outSpatialReference=this.spatialReference,n.orderByFields=""!==r?r.split(","):null,{filterApplied:null==e.where,spatialFilterApplied:null==e.spatialFilter,ordered:i,features:async function*(){const r=await t.source.queryRelatedFeatures(n);(0,d.dZ)(e.abortSignal),yield r[this._findObjectId]?r[this._findObjectId].features:[]}.apply(this)}}async _queryUsingPaging(e,t){let r="",i=!1;const n=this._layer.nativeCapabilities();null!=t.orderBy&&!0===n.capabilities?.queryRelated.supportsOrderBy&&(r=t.orderBy.constructClause(),i=!0),await this.databaseType();let a=this._maxQueryRate();const s=n.capabilities?.query.maxRecordCount;null!=s&&s<a&&(a=s);const l=new M.default;return l.relationshipId=this.relationship.id,l.objectIds=[this._findObjectId],l.outFields=null!==this._overrideFields?this._overrideFields:this._fieldsIncludingObjectId(this._relatedLayer.fields?this._relatedLayer.fields.map(e=>e.name):["*"]),l.where="1=1",l.orderByFields=""!==r?r.split(","):null,l.returnGeometry=!0!==this._removeGeometry,l.outSpatialReference=this.spatialReference,{filterApplied:null==t.where,spatialFilterApplied:null==t.spatialFilter,ordered:i,features:this._queryPaginated(e,l,a,t.abortSignal)}}async*_queryPaginated(e,t,r,i){let n;t.num=r,t.start=0;do{(0,d.dZ)(i),n=(await e.queryRelatedFeatures(t))[this._findObjectId]??{exceededTransferLimit:!1,features:[]},yield n.features,t.start+=r}while(!0===n.exceededTransferLimit)}async queryStat(e){return{calculated:!1}}async canQueryAggregate(e){return!1}async queryAggregate(e){throw new d.dr("NeverReach")}_fieldsIncludingObjectId(e){if(null===e)return[this.objectIdField];const t=e.slice();if(t.includes("*"))return t;let r=!1;for(const e of t)if(e.toUpperCase()===this.objectIdField.toUpperCase()){r=!0;break}return r||t.push(this.objectIdField),t}get gdbVersion(){return this._relatedLayer.gdbVersion}relationshipMetadata(){return this._relatedLayer.relationshipMetadata()}serviceUrl(){return this._relatedLayer.serviceUrl()}queryAttachments(e,t,r,i,n){return this._relatedLayer.queryAttachments(e,t,r,i,n)}getFeatureByObjectId(e,t){return this._relatedLayer.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._relatedLayer.getOwningSystemUrl()}getIdentityUser(){return this._relatedLayer.getIdentityUser()}getDataSourceFeatureSet(){return this._relatedLayer}get preferredTimeZone(){return this._relatedLayer.preferredTimeZone??null}get dateFieldsTimeZone(){return this._relatedLayer.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this._relatedLayer.datesInUnknownTimezone}get editFieldsInfo(){return this._relatedLayer.editFieldsInfo??null}get timeInfo(){return this._relatedLayer.timeInfo??null}getFeatureSetInfo(){return this._relatedLayer.getFeatureSetInfo()}}var j=r(23732),O=r(92474),k=r(4146),q=r(80812);function E(){null===j.A.applicationCache&&(j.A.applicationCache=new j.A)}async function N(e,t,r){if(j.A.applicationCache){const r=j.A.applicationCache.getLayerInfo(e);if(r){const i=await r;return new b.default({url:e,outFields:t,sourceJSON:i})}const i=new b.default({url:e,outFields:t}),n=(async()=>(await i.load(),i.sourceJSON))();if(j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,n);try{return await n,i}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}return await n,i}if(null!=r){const i=r.getCachedLayerMetadata(e);if(i){const r=await i;return new b.default({url:e,outFields:t,sourceJSON:r})}const n=new b.default({url:e,outFields:t}),a=(async()=>(await n.load(),n.sourceJSON))();r.setCachedLayerMetadata(e,a);try{return await a,n}catch(t){throw r.removeCachedLayerMetadata(e,a),t}}return new b.default({url:e,outFields:t})}async function Z(e,t,r,i,n,a=null){return P(await N(e,["*"],n),t,r,i,n,a)}function P(e,t=null,r=null,i=!0,n=null,a=null){switch(e.type){case"catalog-footprint":return P(e.parent,t,r,i,n,a);case"subtype-sublayer":{const l=P(e.parent,t,r,i,n,a);return new s.A({parentfeatureset:l,whereclause:w.A.create(e.parent.subtypeField+"="+e.subtypeCode.toString(),{fieldsIndex:e.parent.fieldsIndex,timeZone:l.dateFieldsTimeZoneDefaultUTC})})}case"csv":case"geojson":case"knowledge-graph-sublayer":case"wfs":return new A.A({layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:n,interceptor:a});case"catalog":case"feature":case"oriented-imagery":case"subtype-group":{const s={layer:e,spatialReference:t,outFields:r,includeGeometry:i,lrucache:n,interceptor:a};return!e.url&&e.source?new A.A(s):new R(s)}case"ogc-feature":return new x({layer:e,spatialReference:t,outFields:r,includeGeometry:i});default:throw new Error(`Unsupported layer type: ${e.type}`)}}async function D(e,t){if(null!==j.A.applicationCache){const t=j.A.applicationCache.getLayerInfo(e);if(null!==t)return t}if(null!=t){const r=t.getCachedServiceMetadata(e);if(null!=r)return r}const r=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"},authMode:"no-prompt"});if(t.data){const e=t.data;return e.layers||(e.layers=[]),e.tables||(e.tables=[]),e}return{layers:[],tables:[]}})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,r);try{return await r}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}if(null!=t){t.setCachedServiceMetadata(e,r);try{return await r}catch(i){throw t.removeCachedServiceMetadata(e,r),i}}return r}async function U(e,t,r){const n={metadata:null,networkId:-1,unVersion:3,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map,queryelem:null,layerNameLkp:{},lkp:null},a=await D(e,null);if(n.metadata=a,void 0!==a.controllerDatasetLayers?.utilityNetworkLayerId&&null!==a.controllerDatasetLayers.utilityNetworkLayerId){if(a.layers)for(const e of a.layers)n.layerNameLkp[e.id]=e.name;if(a.tables)for(const e of a.tables)n.layerNameLkp[e.id]=e.name;const l=a.controllerDatasetLayers.utilityNetworkLayerId;n.networkId=l;const o=await async function(e,t){const r="QUERYDATAELEMTS:"+t.toString()+":"+e;if(null!==j.A.applicationCache){const e=j.A.applicationCache.getLayerInfo(r);if(null!==e)return e}const n=(async()=>{const r=await(0,i.A)(e+"/queryDataElements",{method:"post",responseType:"json",query:{layers:JSON.stringify([t.toString()]),f:"json"}});if(r.data){const e=r.data;if(e.layerDataElements?.[0])return e.layerDataElements[0]}throw new d.dr("DataElementsNotFound")})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(r,n);try{return await n}catch(e){throw j.A.applicationCache.clearLayerInfo(r),e}}return n}(e,l);if(o){n.queryelem=o,n.queryelem?.dataElement&&void 0!==n.queryelem.dataElement.schemaGeneration&&(n.unVersion=n.queryelem.dataElement.schemaGeneration),n.lkp={},n.queryelem.dataElement.domainNetworks||(n.queryelem.dataElement.domainNetworks=[]);for(const e of n.queryelem.dataElement.domainNetworks){for(const t of e.edgeSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:n.layerNameLkp[t.layerId]??null};n.layerIdLookup.set(e.layerId,e),n.sourceIdLookup.set(e.sourceId,e),e.className&&(n.lkp[e.className]=e)}for(const t of e.junctionSources??[]){const e={layerId:t.layerId,sourceId:t.sourceId,className:n.layerNameLkp[t.layerId]??null};n.layerIdLookup.set(e.layerId,e),n.sourceIdLookup.set(e.sourceId,e),e.className&&(n.lkp[e.className]=e)}}if(n.queryelem.dataElement.terminalConfigurations)for(const e of n.queryelem.dataElement.terminalConfigurations)for(const t of e.terminals)n.terminals.push({terminalId:t.terminalId,terminalName:t.terminalName});const a=await async function(e){if(null!==j.A.applicationCache){const t=j.A.applicationCache.getLayerInfo(e);if(null!==t)return t}const t=(async()=>{const t=await(0,i.A)(e,{responseType:"json",query:{f:"json"}});return t.data?t.data:null})();if(null!==j.A.applicationCache){j.A.applicationCache.setLayerInfo(e,t);try{return await t}catch(t){throw j.A.applicationCache.clearLayerInfo(e),t}}return t}(e+"/"+l);if(void 0!==a.systemLayers?.associationsTableId&&null!==a.systemLayers.associationsTableId){let i=null;if(r&&n.unVersion<8){const r=[];n.unVersion>=4&&(r.push("STATUS"),r.push("PERCENTALONG")),i=await Z(e+"/"+a.systemLayers.associationsTableId,t,["OBJECTID","FROMNETWORKSOURCEID","TONETWORKSOURCEID","FROMGLOBALID","TOGLOBALID","TOTERMINALID","FROMTERMINALID","ASSOCIATIONTYPE","ISCONTENTVISIBLE","GLOBALID",...r],!1,null,null),await i.load(),n.unVersion>=4&&(i=new s.A({parentfeatureset:i,whereclause:w.A.create("STATUS NOT IN (1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 62, 63)",{fieldsIndex:i.getFieldsIndex(),timeZone:i.dateFieldsTimeZoneDefaultUTC})}),await i.load())}return{lkp:n.lkp,associations:i,unVersion:n.unVersion,terminals:n.terminals,layerIdLookup:n.layerIdLookup,sourceIdLookup:n.sourceIdLookup}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}return{associations:null,unVersion:n.unVersion,lkp:null,terminals:[],layerIdLookup:new Map,sourceIdLookup:new Map}}async function G(e,t,r,i=null,n=null,a=!0,s=null,l=null){let o=e.serviceUrl();if(!o)return null;o=o.endsWith("/")?o+t.relatedTableId.toString():o+"/"+t.relatedTableId.toString();const u=await Z(o,i,n,a,s,l);return new L({layer:e,relatedLayer:u,relationship:t,objectId:r,spatialReference:i,outFields:n,includeGeometry:a,lrucache:s,interceptor:l})}class B extends n{constructor(e,t=null,r=null,i=null){super(),this._map=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this._instantLayers=[]}_makeAndAddFeatureSet(e,t=!0,r=null){const i=P(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache,this._interceptor);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async featureSetByName(e,t=!0,r=null){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetByName(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.title===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=this._map.allLayers.find(t=>(0,h.eB)(t)&&t.title===e);if(null!=n)return this._makeAndAddFeatureSet(n,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,h.eB)(t)&&t.title===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){if((0,O.Zm)(this._map)&&!this._map.loaded)return await this._map.load(),this.featureSetById(e,t,r);null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.id===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=this._map.allLayers.find(t=>(0,h.eB)(t)&&t.id===e);if(n)return this._makeAndAddFeatureSet(n,t,r);if(this._map.allTables){const i=this._map.allTables.find(t=>(0,h.eB)(t)&&t.id===e);if(null!=i)return this._makeAndAddFeatureSet(i,t,r)}return null}}class $ extends n{constructor(e,t=null,r=null,i=null){super(),this._url=e,this._overrideSpatialReference=t,this._lrucache=r,this._interceptor=i,this.metadata=null,this._instantLayers=[]}get url(){return this._url}_makeAndAddFeatureSet(e,t=!0,r=null){const i=P(e,this._overrideSpatialReference,null===r?["*"]:r,t,this._lrucache);return this._instantLayers.push({featureset:i,opitem:e,includeGeometry:t,outFields:JSON.stringify(r)}),i}async _loadMetaData(){const e=await D(this._url,this._lrucache);return this.metadata=e,e}load(){return this._loadMetaData()}clone(){return new $(this._url,this._overrideSpatialReference,this._lrucache,this._interceptor)}async featureSetByName(e,t=!0,r=null){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.title===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=await this._loadMetaData();let a=null;for(const t of n.layers??[])t.name===e&&(a=t);if(!a)for(const t of n.tables??[])t.name===e&&(a=t);if(a){const e=await N(this._url+"/"+a.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}async featureSetById(e,t=!0,r=["*"]){null===r&&(r=["*"]),r=(r=r.slice()).sort();const i=JSON.stringify(r);e=null!=e?e.toString():"";for(let r=0;r<this._instantLayers.length;r++){const n=this._instantLayers[r];if(n.opitem.id===e&&n.includeGeometry===t&&n.outFields===i)return this._instantLayers[r].featureset}const n=await this._loadMetaData();let a=null;for(const t of n.layers??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(a=t);if(!a)for(const t of n.tables??[])null!==t.id&&void 0!==t.id&&t.id.toString()===e&&(a=t);if(a){const e=await N(this._url+"/"+a.id,["*"],this._lrucache);return this._makeAndAddFeatureSet(e,t,r)}return null}}function Q(e,t,r=null,i=null){return new B(e,t,r,i)}function z(e,t,r=null,i=null){return new $(e,t,r,i)}function J(e,t,r,i,n){if(null===e)return null;if((0,a.m)(e)){switch(t){case"datasource":return e.getDataSourceFeatureSet();case"parent":return e;case"root":return e.getRootFeatureSet()}return null}if(e instanceof k.A&&(0,h.NI)(e)){const a=e;switch(t){case"datasource":return P(a,n,"outFields"in a?a.outFields:null,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return P(a,n,"outFields"in a?a.outFields:null,!0,r,i)}return null}if((0,a.a2)(e)){switch(t){case"datasource":return P(e.parent,n,e.parent.outFields,!0,r,i).getDataSourceFeatureSet();case"parent":case"root":return P(e,n,e.parent.outFields,!0,r,i)}return null}return null}async function V(e,t,r,i,n,a,s,l=null){if(j.A.applicationCache){const o=j.A.applicationCache.getLayerInfo(e+":"+a.url);if(o)return K(await o,t,r,i,n,s,l)}if(null!=s){const o=s.getCachedPortalItem(a.url,e);if(null!=o)return await K(await o,t,r,i,n,s,l)}const o=new q.default({id:e,portal:a}).load();j.A.applicationCache?j.A.applicationCache.setLayerInfo(e+":"+a.url,o):null!=s&&s.setCachedPortalItem(a.url,e,o);try{return await K(await o,t,r,i,n,s,l)}catch(t){throw j.A.applicationCache&&j.A.applicationCache.clearLayerInfo(e+":"+a.url),null!=s&&s.removeCachedPortalItem(a.url,e,o),t}}async function K(e,t,r,i,n,a,s){let l;if("Feature Service"===e.type||"Map Service"===e.type)l=await N((0,h.Qi)(e.url??"")+"/"+t,["*"],a);else{if(t)throw new Error(`layerId=${t} provided for ${e.type} item`);if(null!=a){const t=a.getCachedPortalItemLayer(e.portal.url,e.id);if(null!=t)l=await t;else{const t=k.A.fromPortalItem(e);a.setCachedPortalItemLayer(e.portal.url,e.id,t);try{l=await t}catch(r){throw a.removeCachedPortalItemLayer(e.portal.url,e.id,t),r}}}else l=await k.A.fromPortalItem(e)}return P(l,r,i,n,a,s)}},32730:(e,t,r)=>{r.d(t,{BI:()=>m,D3:()=>y,XJ:()=>f,lc:()=>h,mX:()=>_,rU:()=>g,tH:()=>v});var i=r(799);const n="__begin__",a="__end__",s=new RegExp(n,"ig"),l=new RegExp(a,"ig"),o=new RegExp("^"+n,"i"),u=new RegExp(a+"$","i"),c='"',d=c+" + ",p=" + "+c;function h(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=h(e.labelExpression),t.type="conventional"),t}function m(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return _(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function _(e){let t;return e?(t=(0,i.HC)(e,e=>n+'$feature["'+e+'"]'+a),t=o.test(t)?t.replace(o,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(s,d).replaceAll(l,p)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,F=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,I=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=b.exec(e)||F.exec(e);return t?t[1]||t[3]:(t=I.exec(e),t?t[2]:null)}},32756:(e,t,r)=>{r.d(t,{Rr:()=>l,fY:()=>u,ne:()=>o});var i=r(31635),n=r(93637),a=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const o={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const a=e.find(e=>!!e.field);a&&(0,n.sM)(r,[a.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,a.MZ)(o)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143:(e,t,r)=>{r.d(t,{A:()=>d});var i=r(31635),n=r(69540),a=r(25482),s=r(91429),l=r(8631),o=r(29005),u=r(36005),c=r(43937);let d=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[o.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},35704:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(48938),n=r(87449),a=r(11221),s=r(33325),l=r(80609),o=r(88368);class u extends a.t1{constructor(e){super(),this.declaredClass="esri.arcade.featureset.actions.AttributeFilter",this._maxProcessing=1e3,this._parent=e.parentfeatureset,e.whereclause instanceof o.A?(this._whereClause=e.whereclause,this._whereClauseFunction=null):(this._whereClauseFunction=e.whereclause,this._whereClause=null)}_initialiseFeatureSet(){this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(e){let t=e.where;null!==this._whereClauseFunction||(null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause),await this._ensureLoaded();const r=await this._parent.query({...e,where:t});return(0,n.dZ)(e.abortSignal),r.filterApplied&&null==this._whereClauseFunction?r:{...r,features:this._applyFilter(r.features,e.abortSignal)}}async*_applyFilter(e,t){for await(const r of e)if((0,n.dZ)(t),null!=this._whereClause){const e=r.filter(e=>this._whereClause.testFeature(e));e.length>0&&(yield e)}else if(null!=this._whereClauseFunction){const e=[];for(const t of r)await this._whereClauseFunction(t)&&e.push(t);e.length>0&&(yield e)}else yield r}async queryStat(e){if(null!==this._whereClauseFunction)return null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??s.gO,e.abortSignal):{calculated:!1};let t=this._whereClause;null!=e.where&&null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,e.where));const r=await this._parent.queryStat({...e,where:t});return r.calculated?r:null==e.where&&null==e.spatialFilter?this._manualStat(e.stat,e.field,e.limit??s.gO,e.abortSignal):{calculated:!1}}async canQueryAggregate(e){if(null!==this._whereClauseFunction)return!1;let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.canQueryAggregate({...e,where:t})}async queryAggregate(e){let t=e.where;return null!=t?null!==this._whereClause&&(t=(0,l.kg)(this._whereClause,t)):t=this._whereClause,this._parent.queryAggregate({...e,where:t})}getFieldsIndex(){return this._parent.getFieldsIndex()}}},37352:(e,t,r)=>{r.d(t,{A:()=>o});var i,n=r(31635),a=r(7762),s=r(25482),l=r(91429);let o=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new a.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"floorField",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],o.prototype,"viewAllLevelIds",void 0),o=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],o)},37539:(e,t,r)=>{r.d(t,{pO:()=>f,jd:()=>p,Tp:()=>h,w5:()=>d});var i=r(34727),n=r(86211),a=r(73941),s=r(79258);Math.PI;const l=s.$O.radius,o=s.$O.eccentricitySquared,u={a1:l*o,a2:l*o*l*o,a3:l*o*o/2,a4:l*o*l*o*2.5,a5:l*o+l*o*o/2,a6:1-o};s.$O.radius,s.$O.flattening,s.Sw.radius,s.Sw.flattening,s.sH.radius,s.sH.flattening,s.sH.radius;var c=r(21325);const d={2:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:g,11:_,2:f,4:C},5:{5:f,7:null,9:null,10:f,1:v,6:null,8:null,0:null,3:g,11:_,2:f,4:C},7:{5:null,7:f,9:null,10:f,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:F,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,t,r,i){const n=e[t]/k,a=O-2*Math.atan(Math.exp(-e[t+1]/k)),s=k+(e[t+2]??0),l=Math.cos(a)*s;r[i]=Math.cos(n)*l,r[i+1]=Math.sin(n)*l,r[i+2]=Math.sin(a)*s},6:null,8:null,0:null,3:f,11:function(e,t,r,i){m(e,t,r,i),_(r,i,r,i)},2:m,4:function(e,t,r,i){m(e,t,r,i),C(r,i,r,i)}},4:{5:x,7:null,9:null,10:x,1:function(e,t,r,i){x(e,t,r,i),v(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){x(e,t,r,i),g(r,i,r,i)},11:function(e,t,r,i){x(e,t,r,i),_(r,i,r,i)},2:x,4:f},1:{5:A,7:null,9:null,10:A,1:f,6:null,8:null,0:null,3:function(e,t,r,i){A(e,t,r,i),g(r,i,r,i)},11:function(e,t,r,i){A(e,t,r,i),_(r,i,r,i)},2:A,4:function(e,t,r,i){A(e,t,r,i),C(r,i,r,i)}},6:{5:null,7:R,9:null,10:R,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:v,6:I,8:F,0:null,3:g,11:_,2:f,4:C},11:{5:w,7:null,9:null,10:w,1:function(e,t,r,i){w(e,t,r,i),v(r,i,r,i)},6:null,8:null,0:null,3:function(e,t,r,i){w(e,t,r,i),g(r,i,r,i)},11:f,2:w,4:function(e,t,r,i){w(e,t,r,i),C(r,i,r,i)}}};function p(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(M.source.spatialReference===e&&M.dest.spatialReference===t)return M;const r=y(e,M.source),i=y(t,M.dest);return 0===r&&0===i?(0,c.aI)(e,t)?M.projector=f:M.projector=null:M.projector=d[r][i],M}function y(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,n.GA)(e,1)),(0,a.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===a.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===a.FY.wkt?t.spatialReferenceId=6:e.wkt===a.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,r,i){e!==r&&(r[i++]=e[t++],r[i++]=e[t++],r[i]=e[t]??0)}function m(e,t,r,i){r[i]=j*(e[t]/k),r[i+1]=j*(O-2*Math.atan(Math.exp(-e[t+1]/k))),r[i+2]=e[t+2]??0}function g(e,t,r,n){!function(e,t,r,n,a){const s=.4999999*Math.PI,l=(0,i.qE)(L*e[t+1],-s,s),o=Math.sin(l);r[n++]=L*e[t]*a.radius,r[n++]=a.halfSemiMajorAxis*Math.log((1+o)/(1-o)),r[n]=e[t+2]??0}(e,t,r,n,s.$O)}function _(e,t,r,i){r[i]=e[t]*q,r[i+1]=e[t+1]*q,r[i+2]=e[t+2]??0}function w(e,t,r,i){r[i]=e[t]*E,r[i+1]=e[t+1]*E,r[i+2]=e[t+2]??0}function b(e,t,r,i,n){const a=n+(e[t+2]??0),s=L*e[t],l=L*e[t+1],o=Math.cos(l)*a;r[i]=Math.cos(s)*o,r[i+1]=Math.sin(s)*o,r[i+2]=Math.sin(l)*a}function F(e,t,r,i){b(e,t,r,i,s.Sw.radius)}function I(e,t,r,i){b(e,t,r,i,s.sH.radius)}function v(e,t,r,i){b(e,t,r,i,s.$O.radius)}function S(e,t,r,n,a){const s=e[t],l=e[t+1],o=e[t+2]??0,u=Math.sqrt(s*s+l*l+o*o),c=(0,i.YN)(o/(0===u?1:u)),d=Math.atan2(l,s);r[n++]=j*d,r[n++]=j*c,r[n]=u-a}function T(e,t,r,i){S(e,t,r,i,s.Sw.radius)}function R(e,t,r,i){S(e,t,r,i,s.sH.radius)}function A(e,t,r,i){S(e,t,r,i,s.$O.radius)}function C(e,t,r,i){!function(e,t,r,i,n){const a=L*e[t],s=L*e[t+1],l=e[t+2]??0,o=Math.sin(s),u=Math.cos(s),c=n.radius/Math.sqrt(1-n.eccentricitySquared*o*o);r[i++]=(c+l)*u*Math.cos(a),r[i++]=(c+l)*u*Math.sin(a),r[i++]=(c*(1-n.eccentricitySquared)+l)*o}(e,t,r,i,s.$O)}function x(e,t,r,i){const n=u,a=e[t],l=e[t+1],o=e[t+2]??0;let c,d,p,h,y,f,m,g,_,w,b,F,I,v,S,T,R,A,C,x,M;c=Math.abs(o),d=a*a+l*l,p=Math.sqrt(d),h=d+o*o,y=Math.sqrt(h),x=Math.atan2(l,a),f=o*o/h,m=d/h,v=n.a2/y,S=n.a3-n.a4/y,m>.3?(g=c/y*(1+m*(n.a1+v+f*S)/y),C=Math.asin(g),w=g*g,_=Math.sqrt(1-w)):(_=p/y*(1-f*(n.a5-v-m*S)/y),C=Math.acos(_),w=1-_*_,g=Math.sqrt(w)),b=1-s.$O.eccentricitySquared*w,F=s.$O.radius/Math.sqrt(b),I=n.a6*F,v=p-F*_,S=c-I*g,R=_*v+g*S,T=_*S-g*v,A=T/(I/b+R),C+=A,M=R+T*A/2,o<0&&(C=-C),r[i++]=j*x,r[i++]=j*C,r[i]=M}const M={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},L=(0,i.kU)(1),j=(0,i.KJ)(1),O=.5*Math.PI,k=s.$O.radius,q=k*Math.PI/180,E=180/(k*Math.PI)},41366:(e,t,r)=>{r.d(t,{K:()=>d,Q:()=>o});var i=r(31635),n=r(66552),a=r(53966),s=r(91429),l=r(93223);const o=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(o,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},41560:(e,t,r)=>{r.d(t,{Ch:()=>s,mW:()=>a});var i=r(34727),n=r(39516);function a(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const a=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(a&&((0,i.gg)(t,a[0])||(0,i.ZH)(r,a[1])))return"";const s=Array.from(l(e,t,r)),o=function(e,t,r){if(0===e.length)return!0;const n=c(e.at(0)?.minScale),a=d(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(a,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(c(n.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return o&&"1=1"!==o?o:""}function*l(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)o(i.minScale,i.maxScale,t,r)&&(yield i)}}function o(e,t,r,n){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45067:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(31635),n=r(69540),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new a.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:o.read,write:o.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],c)},46140:(e,t,r)=>{r.d(t,{R:()=>n});var i=r(49186);let n=class e{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)}validate(e){if(this.major!==e.major){const 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 e(this.major,this.minor,this._context)}static parse(t,r=""){const[n,a]=t.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new i.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!a?.match||!s.test(a))throw new i.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(n,10),o=parseInt(a,10);return new e(l,o,r)}}},52136:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(31635),n=r(91429);const a=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},55674:(e,t,r)=>{r.d(t,{Ad:()=>h,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>y});var i=r(66131),n=r(49186),a=(r(44208),r(44729)),s=r(15032),l=r(65864),o=r(95466),u=r(43668),c=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return f.create(e,t,null,["$feature","$view"])}function y(e,t,r){return f.create(e,t,r,["$feature","$view","$config"])}class f{static async create(e,t,r,i){const{arcade:a,Dictionary:s}=await(0,u.l)();let l;try{l=a.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const o=a.scriptUsesGeometryEngine(l);o&&await a.enableGeometrySupport(),await a.loadDependentModules(new Set,l,null,!1,o);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=a.compileScript(l,c);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const h=new s;return h.immutable=!1,h.setField("scale",0),new f(e,a,l,d,t,h,p,s)}constructor(e,t,r,i,n,a,s,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=a,this._configDict=s,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:a}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=a?null!=r?i.lY.epochToArcadeDate(a,r):i.lY.unknownEpochToArcadeDate(a):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new o.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return a.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},62815:(e,t,r)=>{r.d(t,{N:()=>s});var i=r(86211),n=r(73941),a=r(21325);function s(e,t,r){if(null==t||null==r||r.vcsWkid||(0,a.aI)(t,r)||(0,n.xP)(t)||(0,n.xP)(r))return;const s=(0,i.G9)(t)/(0,i.G9)(r);if(1!==s)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,s);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,s);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,s);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,s);default:return}}},73681:(e,t,r)=>{r.d(t,{n:()=>o});var i=r(49186),n=r(53966),a=r(46140),s=r(95466),l=r(55674);class o{static async from(e,t,r){const s=e.dictionary_version?a.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const h=await(0,l.xR)(e.expression,null,d);if(!h)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!s||!s.greaterEqual(4,0);y&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const f=new u(r,y);return new o(y,c,h,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},77548:(e,t,r)=>{r.d(t,{Gh:()=>g,tk:()=>h,BR:()=>p,wI:()=>d,G$:()=>f,$x:()=>y,Ov:()=>o,UC:()=>a,W_:()=>u,OP:()=>m,TU:()=>l,XX:()=>s,jy:()=>c});var i=r(70333),n=r(11254);function a(e){return null!=e&&"object"==typeof e&&"type"in e&&"knowledge-graph-sublayer"===e.type}r(7762),r(84952),r(36563),r(36708),r(4146),new WeakMap,r(16215);const s={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function l(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function o(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function u(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function c(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"feature"===e.type}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}async function d(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const a=e.toLowerCase().indexOf("/rest/services");if(-1===a)return null;const s=`${e.slice(0,a)}/rest/info`,l=null!=t?t.signal:null,{data:o}=await(0,n.A)(s,{query:{f:"json"},responseType:"json",signal:l});return o?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function h(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function y(e,t){return null}function f(e){return null}function m(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function g(e,t){if(!t||!m(e))return;const r=(e.url,null);r&&(e.url=r)}},79677:(e,t,r)=>{r.d(t,{A:()=>d});var i,n=r(31635),a=r(25482),s=r(88930),l=r(91429),o=r(98623),u=r(36005),c=r(43937);let d=class extends a.o{static{i=this}static get allTime(){return p}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=o.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let n=this.end;if(n){const r=(0,s.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,a=e.end?.getTime()??1/0;let s,l;return n>=t&&n<=r?s=n:t>=n&&t<=a&&(s=t),r>=n&&r<=a?l=r:a>=t&&a<=r&&(l=a),null==s||null==l||isNaN(s)||isNaN(l)?i.empty:new i({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(e,t,r=o.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:a,end:l}=this;return null!=a&&(n.start=(0,s.S1)(a,e,t,r)),null!=l&&(n.end=(0,s.S1)(l,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],d.prototype,"writeStart",null),d=i=(0,n.Cg)([(0,l.$K)("esri.time.TimeExtent")],d);const p=new d,h=new d({start:void 0,end:void 0})},91218:(e,t,r)=>{r.r(t),r.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>Q,isEqualBaseGCS:()=>$,isLoaded:()=>x,isLoadedOrLoad:()=>M,isLoadedOrLoadFor:()=>L,load:()=>O,project:()=>k,projectAsync:()=>G,projectExtent:()=>te,projectMany:()=>q,projectMultipoint:()=>K,projectOrLoad:()=>N,projectOrLoadMany:()=>Z,projectPoint:()=>J,projectPolygon:()=>X,projectPolyline:()=>W,projectWithoutEngine:()=>z,requiresLoad:()=>j,test:()=>U,tryProject:()=>E,unload:()=>D});var i=r(49186),n=r(74887),a=r(62788),s=r(95488),l=r(51850),o=r(21276),u=r(73941),c=r(5443),d=r(91075),p=r(48526),h=r(86738),y=r(39829),f=r(82799),m=r(16930),g=r(159),_=r(9762),w=r(37539);function b(e,t,r,i,n,a){return F[0]=e,F[1]=t,F[2]=r,(0,_.projectBuffer)(F,i,0,n,a,0)}const F=(0,l.vt)();var I=r(21325);let v=null,S=null,T=null,R=null,A={};const C=new s.I;function x(){return!!(S?.isLoaded()&&T?.isLoaded()&&R?.isLoaded())}function M(){return!!x()||((0,a.gc)(C),O(),!1)}function L(e,t){return!e||!t||B(e,t)||M()}function j(e,t){return!B(e,t)&&!x()}async function O(e){null==v&&(v=Promise.all([r.e(3276).then(r.bind(r,83276)).then(e=>(S=e,S.load())),r.e(8377).then(r.bind(r,8377)).then(e=>(T=e,T.load())),r.e(2158).then(r.bind(r,12158)).then(e=>(R=e,R.load()))])),await v,(0,n.Te)(e),C.notify()}function k(e,t,r){return Array.isArray(e)?0===e.length?[]:((0,o.H)(e),q(e,e[0].spatialReference,t,r)):((0,o.f)(e),q([e],e.spatialReference,t,r)[0])}function q(e,t,r,i){if(null==t||null==r)return e;if(B(t,r,i))return e.map(e=>z(e,t,r));if(null==i?.geographicTransformation&&(0,u.jA)(t))return q(e.map(e=>z(e,t,m.A.WGS84)),m.A.WGS84,r,{zConversionDisabled:i?.zConversionDisabled});if(null==i?.geographicTransformation&&(0,u.jA)(r))return q(e,t,m.A.WGS84).map(e=>z(e,m.A.WGS84,r));if(!x())throw new P;if(!i?.geographicTransformation)if(i?.extendedParams)i={...i,geographicTransformation:R.getTransformation(t,r,i.areaOfInterestExtent)||new g.A};else if(!i?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,r);let n=A[e];n||(n=R.getTransformation(t,r)||new g.A,A[e]=n),i={geographicTransformation:n,zConversionDisabled:i?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?S.executeMany(e,r,i):T.executeMany(e,r,i)}function E(e,t,r){try{return k(e,t,r)}catch(e){if(e instanceof P)return null;throw e}}function N(e,t){const r=Z([e],t);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function Z(e,t,r){if(!x())for(const r of e)if(null!=r&&!(0,I.aI)(r.spatialReference,t)&&(0,I.fn)(r.spatialReference)&&(0,I.fn)(t)&&!B(r.spatialReference,t))return(0,a.gc)(C),{pending:O(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,I.aI)(e.spatialReference,t)?e:(0,I.fn)(e.spatialReference)&&(0,I.fn)(t)?k(e,t,r):null)}}class P extends i.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){v=null,S=null,T=null,R=null,A={}}const U={get loadPromise(){return v}};async function G(e,t,r){if((0,n.Te)(r),!e)return e;const i=Z(Array.isArray(e)?e:[e],t,r);if(i.pending)return await i.pending,(0,n.Te)(r),G(e,t,r);const a=i.geometries??[];return Array.isArray(e)?a:a[0]}function B(e,t,r){return!(r?.areaOfInterestExtent||r?.extendedParams||r?.geographicTransformation)&&(!!(0,I.aI)(e,t)||(0,I.fn)(e)&&(0,I.fn)(t)&&!!(0,w.jd)(e,t))}function $(e,t){if((0,I.aI)(e,t))return!0;if(!(0,I.fn)(e)||!(0,I.fn)(t))return!1;const r=(0,I.oT)(e)||(0,I.K8)(e)||(0,I.x1)(e),i=(0,I.oT)(t)||(0,I.K8)(t)||(0,I.x1)(t);return r&&i}async function Q(e,t,r,i){if(x())return(0,n.NO)(i);if(Array.isArray(e)){for(const{source:t,dest:r,options:n}of e)if(t&&r&&!B(t,r,n))return O(i)}else if(e&&t&&!B(e,t,r))return O(i);return(0,n.NO)(i)}function z(e,t,r){return e?"x"in e?V(e,t,new h.A,r,0):"xmin"in e?re(e,t,new c.A,r,0):"rings"in e?ee(e,t,new y.A,r,0):"paths"in e?H(e,t,new f.A,r,0):"points"in e?Y(e,t,new p.A,r,0):null:null}function J(e,t,r=t.spatialReference,i=0){return null!=r&&null!=e.spatialReference&&null!=V(e,e.spatialReference,t,r,i)}function V(e,t,r,i,n){ne[0]=e.x,ne[1]=e.y;const a=e.z;return ne[2]=void 0!==a?a:n,(0,_.projectBuffer)(ne,t,0,ne,i,0)?(r.x=ne[0],r.y=ne[1],r.spatialReference=i,void 0!==a||(0,u.xP)(i)?(r.z=ne[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===e.m?(r.m=void 0,r.hasM=!1):(r.m=e.m,r.hasM=!0),r):null}function K(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=Y(e,e.spatialReference,t,r,i)}function Y(e,t,r,i,n){const{points:a,hasZ:s,hasM:l}=e,o=[],c=a.length,d=[];for(const e of a)d.push(e[0],e[1],s?e[2]:n);if(!(0,_.projectBuffer)(d,t,0,d,i,0,c))return null;const p=s||(0,u.xP)(i);for(let e=0;e<c;++e){const t=3*e,r=d[t],i=d[t+1];p&&l?o.push([r,i,d[t+2],a[e][3]]):p?o.push([r,i,d[t+2]]):l?o.push([r,i,a[e][2]]):o.push([r,i])}return r.points=o,r.spatialReference=i,r.hasZ=s,r.hasM=l,r}function W(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=H(e,e.spatialReference,t,r,i)}function H(e,t,r,i,n){const{paths:a,hasZ:s,hasM:l}=e,o=[];if(!ie(a,s??!1,l??!1,t,o,i,n))return null;const c=s||(0,u.xP)(i);return r.paths=o,r.spatialReference=i,r.hasZ=c,r.hasM=l,r}function X(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=ee(e,e.spatialReference,t,r,i)}function ee(e,t,r,i,n){const{rings:a,hasZ:s,hasM:l}=e,o=[];if(!ie(a,s??!1,l??!1,t,o,i,n))return null;const c=s||(0,u.xP)(i);return r.rings=o,r.spatialReference=i,r.hasZ=c,r.hasM=l,r}function te(e,t,r=t.spatialReference,i=0){return null!=e.spatialReference&&null!=r&&null!=re(e,e.spatialReference,t,r,i)}function re(e,t,r,i,n){const{xmin:a,ymin:s,xmax:l,ymax:o,hasZ:c,hasM:d}=e;if(!b(a,s,c?e.zmin:n,t,ne,i))return null;const p=c||(0,u.xP)(i);return r.xmin=ne[0],r.ymin=ne[1],p&&(r.zmin=ne[2]),b(l,o,c?e.zmax:n,t,ne,i)?(r.xmax=ne[0],r.ymax=ne[1],p&&(r.zmax=ne[2]),d&&(r.mmin=e.mmin,r.mmax=e.mmax),r.spatialReference=i,r):null}function ie(e,t,r,i,n,a,s=0){const l=new Array;for(const r of e)for(const e of r)l.push(e[0],e[1],t?e[2]:s);if(!(0,_.projectBuffer)(l,i,0,l,a,0))return!1;let o=0;n.length=0;const c=t||(0,u.xP)(a);for(const t of e){const e=new Array;for(const i of t)c&&r?e.push([l[o++],l[o++],l[o++],i[3]]):c?e.push([l[o++],l[o++],l[o++]]):r?(e.push([l[o++],l[o++],i[2]]),o++):(e.push([l[o++],l[o++]]),o++);n.push(e)}return!0}const ne=(0,l.vt)()},91880:(e,t,r)=>{r.d(t,{A:()=>u});var i,n=r(31635),a=r(66552),s=r(25482),l=r(91429);const o=new a.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:o.apiValues,json:{type:o.jsonValues,read:o.read,write:o.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],u)},99157:(e,t,r)=>{r.d(t,{A:()=>l});var i,n=r(31635),a=r(69622),s=r(91429);let l=i=class extends a.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new i({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,n.Cg)([(0,s.MZ)()],l.prototype,"isInverse",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"wkt",void 0),(0,n.Cg)([(0,s.MZ)()],l.prototype,"wkid",void 0),l=i=(0,n.Cg)([(0,s.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)}}]);